/*
** Automatically generated from `tree_bitset.m'
** by the Mercury compiler,
** version 14.01.1, configured for x86_64-apple-darwin13.3.0.
** Do not edit.
**
** The autoconfigured grade settings governing
** the generation of this C file were
**
** TAG_BITS=2
** UNBOXED_FLOAT=no
** PREGENERATED_DIST=yes
** HIGHLEVEL_CODE=yes
**
** END_OF_C_GRADE_INFO
*/


/* :- module tree_bitset. */
/* :- implementation. */

/*
INIT mercury__tree_bitset__init
ENDINIT
*/

#include "tree_bitset.mih"


#include "array.mih"
#include "assoc_list.mih"
#include "benchmarking.mih"
#include "bitmap.mih"
#include "bool.mih"
#include "builtin.mih"
#include "char.mih"
#include "construct.mih"
#include "deconstruct.mih"
#include "dir.mih"
#include "enum.mih"
#include "erlang_rtti_implementation.mih"
#include "exception.mih"
#include "float.mih"
#include "int.mih"
#include "integer.mih"
#include "io.mih"
#include "lexer.mih"
#include "list.mih"
#include "map.mih"
#include "math.mih"
#include "maybe.mih"
#include "mutvar.mih"
#include "ops.mih"
#include "pair.mih"
#include "parser.mih"
#include "pretty_printer.mih"
#include "private_builtin.mih"
#include "random.mih"
#include "require.mih"
#include "rtti_implementation.mih"
#include "set.mih"
#include "set_ordlist.mih"
#include "set_tree234.mih"
#include "solutions.mih"
#include "std_util.mih"
#include "stm_builtin.mih"
#include "store.mih"
#include "stream.mih"
#include "string.mih"
#include "table_builtin.mih"
#include "term.mih"
#include "term_io.mih"
#include "time.mih"
#include "tree234.mih"
#include "type_desc.mih"
#include "unit.mih"
#include "univ.mih"
#include "varset.mih"
#include "version_array.mih"
#include "stream.string_writer.mih"



#line 123 "tree_bitset.m"
struct mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_0_s {
#line 123 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__TypeClassInfo_for_enum_12;
#line 123 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__Elem_1;
#line 123 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__cont;
#line 123 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__cont_env_ptr;
#line 1836 "tree_bitset.m"
  MR_bool mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__succeeded;
#line 1836 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__Index_9;
#line 123 "tree_bitset.m"
};

#line 123 "tree_bitset.m"
struct mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_0_s {
#line 123 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__TypeClassInfo_for_enum_12;
#line 123 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__Elem_1;
#line 123 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__cont;
#line 123 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__cont_env_ptr;
#line 1836 "tree_bitset.m"
  MR_bool mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__succeeded;
#line 1836 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__Index_9;
#line 123 "tree_bitset.m"
};

#line 3706 "tree_bitset.m"
struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_0_s {
#line 3706 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_25;
#line 3706 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_24;
#line 3706 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__P_1;
#line 3706 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_4;
#line 3706 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont;
#line 3706 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont_env_ptr;
#line 3715 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__T_11;
#line 3715 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_20_20;
#line 3706 "tree_bitset.m"
};

#line 3707 "tree_bitset.m"
struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_0_s {
#line 3707 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_25;
#line 3707 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_24;
#line 3707 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__P_1;
#line 3707 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_4;
#line 3707 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont;
#line 3707 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont_env_ptr;
#line 3715 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__T_11;
#line 3715 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_20_20;
#line 3707 "tree_bitset.m"
};

#line 3706 "tree_bitset.m"
struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_0_s {
#line 3706 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__V_26_26;
#line 3706 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_25;
#line 3706 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_24;
#line 3706 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__P_1;
#line 3706 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_4;
#line 3706 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont;
#line 3706 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont_env_ptr;
#line 3715 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__T_11;
#line 3715 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_20_20;
#line 3706 "tree_bitset.m"
};

#line 3707 "tree_bitset.m"
struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_0_s {
#line 3707 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__V_26_26;
#line 3707 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_25;
#line 3707 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_24;
#line 3707 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__P_1;
#line 3707 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_4;
#line 3707 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont;
#line 3707 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont_env_ptr;
#line 3715 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__T_11;
#line 3715 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_20_20;
#line 3707 "tree_bitset.m"
};

#line 3733 "tree_bitset.m"
struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_0_s {
#line 3733 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_24;
#line 3733 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_23;
#line 3733 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__P_1;
#line 3733 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_4;
#line 3733 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont;
#line 3733 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont_env_ptr;
#line 3742 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__T_11;
#line 3742 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_19_19;
#line 3733 "tree_bitset.m"
};

#line 3734 "tree_bitset.m"
struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_0_s {
#line 3734 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_24;
#line 3734 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_23;
#line 3734 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__P_1;
#line 3734 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_4;
#line 3734 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont;
#line 3734 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont_env_ptr;
#line 3742 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__T_11;
#line 3742 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_19_19;
#line 3734 "tree_bitset.m"
};

#line 3733 "tree_bitset.m"
struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_0_s {
#line 3733 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__V_25_25;
#line 3733 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_24;
#line 3733 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_23;
#line 3733 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__P_1;
#line 3733 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_4;
#line 3733 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont;
#line 3733 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont_env_ptr;
#line 3742 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__T_11;
#line 3742 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_19_19;
#line 3733 "tree_bitset.m"
};

#line 3734 "tree_bitset.m"
struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_0_s {
#line 3734 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__V_25_25;
#line 3734 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_24;
#line 3734 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_23;
#line 3734 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__P_1;
#line 3734 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_4;
#line 3734 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont;
#line 3734 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont_env_ptr;
#line 3742 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__T_11;
#line 3742 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_19_19;
#line 3734 "tree_bitset.m"
};

#line 3757 "tree_bitset.m"
struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s {
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_36;
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_37;
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_35;
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1;
#line 3757 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4;
#line 3757 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6;
#line 3757 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont;
#line 3757 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr;
#line 3770 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__T_16;
#line 3770 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_30_30;
#line 3757 "tree_bitset.m"
};

#line 3757 "tree_bitset.m"
struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s {
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_38_38;
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_36;
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_37;
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_35;
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1;
#line 3757 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4;
#line 3757 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6;
#line 3757 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont;
#line 3757 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr;
#line 3770 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__T_16;
#line 3770 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_30_30;
#line 3757 "tree_bitset.m"
};

#line 3791 "tree_bitset.m"
struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s {
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_34;
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_35;
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_33;
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1;
#line 3791 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4;
#line 3791 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6;
#line 3791 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont;
#line 3791 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr;
#line 3804 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__T_16;
#line 3804 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_28_28;
#line 3791 "tree_bitset.m"
};

#line 3791 "tree_bitset.m"
struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s {
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_36_36;
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_34;
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_35;
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_33;
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1;
#line 3791 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4;
#line 3791 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6;
#line 3791 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont;
#line 3791 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr;
#line 3804 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__T_16;
#line 3804 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_28_28;
#line 3791 "tree_bitset.m"
};

#line 3839 "tree_bitset.m"
struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_0_s {
#line 3839 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeInfo_for_U_25;
#line 3839 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeClassInfo_for_enum_24;
#line 3839 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__P_1;
#line 3839 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_4;
#line 3839 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont;
#line 3839 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont_env_ptr;
#line 3850 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__H_10;
#line 3850 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__Components_13;
#line 3850 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_19_19;
#line 3839 "tree_bitset.m"
};

#line 3839 "tree_bitset.m"
struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_0_s {
#line 3839 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_26_26;
#line 3839 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeInfo_for_U_25;
#line 3839 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeClassInfo_for_enum_24;
#line 3839 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__P_1;
#line 3839 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_4;
#line 3839 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont;
#line 3839 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont_env_ptr;
#line 3850 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__H_10;
#line 3850 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__Components_13;
#line 3850 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_19_19;
#line 3839 "tree_bitset.m"
};

#line 3865 "tree_bitset.m"
struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_0_s {
#line 3865 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeInfo_for_U_24;
#line 3865 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeClassInfo_for_enum_23;
#line 3865 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__P_1;
#line 3865 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_4;
#line 3865 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont;
#line 3865 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont_env_ptr;
#line 3876 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__H_10;
#line 3876 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_15_15;
#line 3876 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_16_16;
#line 3876 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_17_17;
#line 3876 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_19_19;
#line 3876 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_21_21;
#line 3865 "tree_bitset.m"
};

#line 3865 "tree_bitset.m"
struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_0_s {
#line 3865 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_25_25;
#line 3865 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeInfo_for_U_24;
#line 3865 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeClassInfo_for_enum_23;
#line 3865 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__P_1;
#line 3865 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_4;
#line 3865 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont;
#line 3865 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont_env_ptr;
#line 3876 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__H_10;
#line 3876 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_15_15;
#line 3876 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_16_16;
#line 3876 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_17_17;
#line 3876 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_19_19;
#line 3876 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_21_21;
#line 3865 "tree_bitset.m"
};

#line 3891 "tree_bitset.m"
struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s {
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_36;
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_37;
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_35;
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1;
#line 3891 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4;
#line 3891 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6;
#line 3891 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont;
#line 3891 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr;
#line 3907 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__H_15;
#line 3907 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__Components_19;
#line 3907 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_28_28;
#line 3891 "tree_bitset.m"
};

#line 3891 "tree_bitset.m"
struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s {
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_38_38;
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_36;
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_37;
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_35;
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1;
#line 3891 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4;
#line 3891 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6;
#line 3891 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont;
#line 3891 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr;
#line 3907 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__H_15;
#line 3907 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__Components_19;
#line 3907 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_28_28;
#line 3891 "tree_bitset.m"
};

#line 3928 "tree_bitset.m"
struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s {
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_34;
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_35;
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_33;
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1;
#line 3928 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4;
#line 3928 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6;
#line 3928 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont;
#line 3928 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr;
#line 3944 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__H_15;
#line 3944 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_25_25;
#line 3944 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_26_26;
#line 3944 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_28_28;
#line 3944 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_31_31;
#line 3928 "tree_bitset.m"
};

#line 3928 "tree_bitset.m"
struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s {
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_36_36;
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_34;
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_35;
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_33;
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1;
#line 3928 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4;
#line 3928 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6;
#line 3928 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont;
#line 3928 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr;
#line 3944 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__H_15;
#line 3944 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_25_25;
#line 3944 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_26_26;
#line 3944 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_28_28;
#line 3944 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_31_31;
#line 3928 "tree_bitset.m"
};

#line 3965 "tree_bitset.m"
struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_0_s {
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_31;
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_30;
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Dir_8;
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__P_9;
#line 3965 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Offset_10;
#line 3965 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_20;
#line 3965 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont;
#line 3965 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont_env_ptr;
#line 3983 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HalfSize_15;
#line 3983 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__LowBits_17;
#line 3983 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HighBits_18;
#line 3997 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_25_25;
#line 3993 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__V_28_28;
#line 3965 "tree_bitset.m"
};

#line 3967 "tree_bitset.m"
struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_0_s {
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_31;
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_30;
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Dir_8;
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__P_9;
#line 3967 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Offset_10;
#line 3967 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_20;
#line 3967 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont;
#line 3967 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont_env_ptr;
#line 3983 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HalfSize_15;
#line 3983 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__LowBits_17;
#line 3983 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HighBits_18;
#line 3997 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_25_25;
#line 3993 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__V_28_28;
#line 3967 "tree_bitset.m"
};

#line 3965 "tree_bitset.m"
struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_0_s {
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__V_32_32;
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_31;
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_30;
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Dir_8;
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__P_9;
#line 3965 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Offset_10;
#line 3965 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_20;
#line 3965 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont;
#line 3965 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont_env_ptr;
#line 3983 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HalfSize_15;
#line 3983 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__LowBits_17;
#line 3983 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HighBits_18;
#line 3997 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_25_25;
#line 3993 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__V_28_28;
#line 3965 "tree_bitset.m"
};

#line 3967 "tree_bitset.m"
struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_0_s {
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__V_32_32;
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_31;
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_30;
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Dir_8;
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__P_9;
#line 3967 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Offset_10;
#line 3967 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_20;
#line 3967 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont;
#line 3967 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont_env_ptr;
#line 3983 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HalfSize_15;
#line 3983 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__LowBits_17;
#line 3983 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HighBits_18;
#line 3997 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_25_25;
#line 3993 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__V_28_28;
#line 3967 "tree_bitset.m"
};

#line 4013 "tree_bitset.m"
struct mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_0_s {
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_41;
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_42;
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_40;
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Dir_10;
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__P_11;
#line 4013 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Offset_12;
#line 4013 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_23;
#line 4013 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_25;
#line 4013 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont;
#line 4013 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont_env_ptr;
#line 4031 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HalfSize_18;
#line 4031 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__LowBits_20;
#line 4031 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HighBits_21;
#line 4046 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_32_32;
#line 4041 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__V_37_37;
#line 4013 "tree_bitset.m"
};

#line 4013 "tree_bitset.m"
struct mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_0_s {
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__V_43_43;
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_41;
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_42;
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_40;
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Dir_10;
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__P_11;
#line 4013 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Offset_12;
#line 4013 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_23;
#line 4013 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_25;
#line 4013 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont;
#line 4013 "tree_bitset.m"
  void * mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont_env_ptr;
#line 4031 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HalfSize_18;
#line 4031 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__LowBits_20;
#line 4031 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HighBits_21;
#line 4046 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_32_32;
#line 4041 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
  MR_Box mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__V_37_37;
#line 4013 "tree_bitset.m"
};

#line 4013 "tree_bitset.m"
struct mercury__tree_bitset__fold2_bits_9_p_4_env_0_s {
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__fold2_bits_9_p_4_env_0__TypeInfo_for_U_41;
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__fold2_bits_9_p_4_env_0__TypeInfo_for_V_42;
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__fold2_bits_9_p_4_env_0__TypeClassInfo_for_enum_40;
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__fold2_bits_9_p_4_env_0__Dir_10;
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__fold2_bits_9_p_4_env_0__P_11;
#line 4013 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__fold2_bits_9_p_4_env_0__Offset_12;
#line 4013 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccA_23;
#line 4013 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccB_25;
#line 4013 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__fold2_bits_9_p_4_env_0__cont;
#line 4013 "tree_bitset.m"
  void * mercury__tree_bitset__fold2_bits_9_p_4_env_0__cont_env_ptr;
#line 4031 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__fold2_bits_9_p_4_env_0__HalfSize_18;
#line 4031 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__fold2_bits_9_p_4_env_0__LowBits_20;
#line 4031 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__fold2_bits_9_p_4_env_0__HighBits_21;
#line 4046 "tree_bitset.m"
  MR_Box mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
  MR_Box mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccB_32_32;
#line 4041 "tree_bitset.m"
  MR_Box mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
  MR_Box mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__fold2_bits_9_p_4_env_0__V_37_37;
#line 4013 "tree_bitset.m"
};

#line 3967 "tree_bitset.m"
struct mercury__tree_bitset__fold_bits_7_p_7_env_0_s {
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__fold_bits_7_p_7_env_0__TypeInfo_for_U_31;
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__fold_bits_7_p_7_env_0__TypeClassInfo_for_enum_30;
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__fold_bits_7_p_7_env_0__Dir_8;
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__fold_bits_7_p_7_env_0__P_9;
#line 3967 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__fold_bits_7_p_7_env_0__Offset_10;
#line 3967 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__fold_bits_7_p_7_env_0__STATE_VARIABLE_Acc_20;
#line 3967 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__fold_bits_7_p_7_env_0__cont;
#line 3967 "tree_bitset.m"
  void * mercury__tree_bitset__fold_bits_7_p_7_env_0__cont_env_ptr;
#line 3983 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__fold_bits_7_p_7_env_0__HalfSize_15;
#line 3983 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__fold_bits_7_p_7_env_0__LowBits_17;
#line 3983 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__fold_bits_7_p_7_env_0__HighBits_18;
#line 3997 "tree_bitset.m"
  MR_Box mercury__tree_bitset__fold_bits_7_p_7_env_0__STATE_VARIABLE_Acc_25_25;
#line 3993 "tree_bitset.m"
  MR_Box mercury__tree_bitset__fold_bits_7_p_7_env_0__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__fold_bits_7_p_7_env_0__V_28_28;
#line 3967 "tree_bitset.m"
};

#line 3965 "tree_bitset.m"
struct mercury__tree_bitset__fold_bits_7_p_6_env_0_s {
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__fold_bits_7_p_6_env_0__TypeInfo_for_U_31;
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__fold_bits_7_p_6_env_0__TypeClassInfo_for_enum_30;
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__fold_bits_7_p_6_env_0__Dir_8;
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__fold_bits_7_p_6_env_0__P_9;
#line 3965 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__fold_bits_7_p_6_env_0__Offset_10;
#line 3965 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__fold_bits_7_p_6_env_0__STATE_VARIABLE_Acc_20;
#line 3965 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__fold_bits_7_p_6_env_0__cont;
#line 3965 "tree_bitset.m"
  void * mercury__tree_bitset__fold_bits_7_p_6_env_0__cont_env_ptr;
#line 3983 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__fold_bits_7_p_6_env_0__HalfSize_15;
#line 3983 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__fold_bits_7_p_6_env_0__LowBits_17;
#line 3983 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__fold_bits_7_p_6_env_0__HighBits_18;
#line 3997 "tree_bitset.m"
  MR_Box mercury__tree_bitset__fold_bits_7_p_6_env_0__STATE_VARIABLE_Acc_25_25;
#line 3993 "tree_bitset.m"
  MR_Box mercury__tree_bitset__fold_bits_7_p_6_env_0__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__fold_bits_7_p_6_env_0__V_28_28;
#line 3965 "tree_bitset.m"
};

#line 3928 "tree_bitset.m"
struct mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0_s {
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__TypeInfo_for_U_34;
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__TypeInfo_for_V_35;
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__TypeClassInfo_for_enum_33;
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__P_1;
#line 3928 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_4;
#line 3928 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_6;
#line 3928 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__cont;
#line 3928 "tree_bitset.m"
  void * mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__cont_env_ptr;
#line 3944 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__H_15;
#line 3944 "tree_bitset.m"
  MR_Box mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
  MR_Box mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__V_25_25;
#line 3944 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__V_26_26;
#line 3944 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__V_28_28;
#line 3944 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__V_31_31;
#line 3928 "tree_bitset.m"
};

#line 3891 "tree_bitset.m"
struct mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0_s {
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__TypeInfo_for_U_36;
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__TypeInfo_for_V_37;
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__TypeClassInfo_for_enum_35;
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__P_1;
#line 3891 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_4;
#line 3891 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_6;
#line 3891 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__cont;
#line 3891 "tree_bitset.m"
  void * mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__cont_env_ptr;
#line 3907 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__H_15;
#line 3907 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__Components_19;
#line 3907 "tree_bitset.m"
  MR_Box mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
  MR_Box mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_28_28;
#line 3891 "tree_bitset.m"
};

#line 3865 "tree_bitset.m"
struct mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0_s {
#line 3865 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__TypeInfo_for_U_24;
#line 3865 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__TypeClassInfo_for_enum_23;
#line 3865 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__P_1;
#line 3865 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__STATE_VARIABLE_Acc_4;
#line 3865 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__cont;
#line 3865 "tree_bitset.m"
  void * mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__cont_env_ptr;
#line 3876 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__H_10;
#line 3876 "tree_bitset.m"
  MR_Box mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__STATE_VARIABLE_Acc_15_15;
#line 3876 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__V_16_16;
#line 3876 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__V_17_17;
#line 3876 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__V_19_19;
#line 3876 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__V_21_21;
#line 3865 "tree_bitset.m"
};

#line 3839 "tree_bitset.m"
struct mercury__tree_bitset__do_foldr_pred_4_p_3_env_0_s {
#line 3839 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__TypeInfo_for_U_25;
#line 3839 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__TypeClassInfo_for_enum_24;
#line 3839 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__P_1;
#line 3839 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__STATE_VARIABLE_Acc_4;
#line 3839 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__cont;
#line 3839 "tree_bitset.m"
  void * mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__cont_env_ptr;
#line 3850 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__H_10;
#line 3850 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__Components_13;
#line 3850 "tree_bitset.m"
  MR_Box mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__STATE_VARIABLE_Acc_19_19;
#line 3839 "tree_bitset.m"
};

#line 3791 "tree_bitset.m"
struct mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0_s {
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__TypeInfo_for_U_34;
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__TypeInfo_for_V_35;
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__TypeClassInfo_for_enum_33;
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__P_1;
#line 3791 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_4;
#line 3791 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_6;
#line 3791 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__cont;
#line 3791 "tree_bitset.m"
  void * mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__cont_env_ptr;
#line 3804 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__T_16;
#line 3804 "tree_bitset.m"
  MR_Box mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
  MR_Box mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_28_28;
#line 3791 "tree_bitset.m"
};

#line 3757 "tree_bitset.m"
struct mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0_s {
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__TypeInfo_for_U_36;
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__TypeInfo_for_V_37;
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__TypeClassInfo_for_enum_35;
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__P_1;
#line 3757 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_4;
#line 3757 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_6;
#line 3757 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__cont;
#line 3757 "tree_bitset.m"
  void * mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__cont_env_ptr;
#line 3770 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__T_16;
#line 3770 "tree_bitset.m"
  MR_Box mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
  MR_Box mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_30_30;
#line 3757 "tree_bitset.m"
};

#line 3734 "tree_bitset.m"
struct mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0_s {
#line 3734 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__TypeInfo_for_U_24;
#line 3734 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__TypeClassInfo_for_enum_23;
#line 3734 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__P_1;
#line 3734 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__STATE_VARIABLE_Acc_4;
#line 3734 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__cont;
#line 3734 "tree_bitset.m"
  void * mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__cont_env_ptr;
#line 3742 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__T_11;
#line 3742 "tree_bitset.m"
  MR_Box mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__STATE_VARIABLE_Acc_19_19;
#line 3734 "tree_bitset.m"
};

#line 3733 "tree_bitset.m"
struct mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0_s {
#line 3733 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__TypeInfo_for_U_24;
#line 3733 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__TypeClassInfo_for_enum_23;
#line 3733 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__P_1;
#line 3733 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__STATE_VARIABLE_Acc_4;
#line 3733 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__cont;
#line 3733 "tree_bitset.m"
  void * mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__cont_env_ptr;
#line 3742 "tree_bitset.m"
  MR_Word mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__T_11;
#line 3742 "tree_bitset.m"
  MR_Box mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__STATE_VARIABLE_Acc_19_19;
#line 3733 "tree_bitset.m"
};

#line 3707 "tree_bitset.m"
struct mercury__tree_bitset__do_foldl_pred_4_p_7_env_0_s {
#line 3707 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__TypeInfo_for_U_25;
#line 3707 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__TypeClassInfo_for_enum_24;
#line 3707 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__P_1;
#line 3707 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__STATE_VARIABLE_Acc_4;
#line 3707 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__cont;
#line 3707 "tree_bitset.m"
  void * mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__cont_env_ptr;
#line 3715 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__T_11;
#line 3715 "tree_bitset.m"
  MR_Box mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__STATE_VARIABLE_Acc_20_20;
#line 3707 "tree_bitset.m"
};

#line 3706 "tree_bitset.m"
struct mercury__tree_bitset__do_foldl_pred_4_p_6_env_0_s {
#line 3706 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__TypeInfo_for_U_25;
#line 3706 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__TypeClassInfo_for_enum_24;
#line 3706 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__P_1;
#line 3706 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__STATE_VARIABLE_Acc_4;
#line 3706 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__cont;
#line 3706 "tree_bitset.m"
  void * mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__cont_env_ptr;
#line 3715 "tree_bitset.m"
  MR_Word mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__T_11;
#line 3715 "tree_bitset.m"
  MR_Box mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__STATE_VARIABLE_Acc_20_20;
#line 3706 "tree_bitset.m"
};

#line 123 "tree_bitset.m"
struct mercury__tree_bitset__member_2_p_1_env_0_s {
#line 123 "tree_bitset.m"
  MR_Word mercury__tree_bitset__member_2_p_1_env_0__TypeClassInfo_for_enum_12;
#line 123 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__member_2_p_1_env_0__Elem_1;
#line 123 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__member_2_p_1_env_0__cont;
#line 123 "tree_bitset.m"
  void * mercury__tree_bitset__member_2_p_1_env_0__cont_env_ptr;
#line 1836 "tree_bitset.m"
  MR_bool mercury__tree_bitset__member_2_p_1_env_0__succeeded;
#line 1836 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__member_2_p_1_env_0__Index_9;
#line 123 "tree_bitset.m"
};


#line 1246 "tree_bitset.c"
static const MR_EnumFunctorDesc mercury__tree_bitset__tree_bitset__enum_functor_desc_fold_direction_0_0;

#line 1249 "tree_bitset.c"
static const MR_EnumFunctorDesc mercury__tree_bitset__tree_bitset__enum_functor_desc_fold_direction_0_1;

#line 1252 "tree_bitset.c"
static const MR_EnumFunctorDescPtr mercury__tree_bitset__tree_bitset__enum_value_ordered_fold_direction_0[2];

#line 1255 "tree_bitset.c"
static const MR_EnumFunctorDescPtr mercury__tree_bitset__tree_bitset__enum_name_ordered_fold_direction_0[2];

#line 1258 "tree_bitset.c"
static const MR_Integer mercury__tree_bitset__tree_bitset__functor_number_map_fold_direction_0[2];

#line 1261 "tree_bitset.c"
static const MR_PseudoTypeInfo mercury__tree_bitset__tree_bitset__field_types_interior_node_0_0[3];

#line 1264 "tree_bitset.c"
static const MR_ConstString mercury__tree_bitset__tree_bitset__field_names_interior_node_0_0[3];

#line 1267 "tree_bitset.c"
static const MR_DuFunctorDesc mercury__tree_bitset__tree_bitset__du_functor_desc_interior_node_0_0;

#line 1270 "tree_bitset.c"
static const MR_DuFunctorDescPtr mercury__tree_bitset__tree_bitset__du_stag_ordered_interior_node_0_0[1];

#line 1273 "tree_bitset.c"
static const MR_DuPtagLayout mercury__tree_bitset__tree_bitset__du_ptag_ordered_interior_node_0[1];

#line 1276 "tree_bitset.c"
static const MR_DuFunctorDescPtr mercury__tree_bitset__tree_bitset__du_name_ordered_interior_node_0[1];

#line 1279 "tree_bitset.c"
static const MR_Integer mercury__tree_bitset__tree_bitset__functor_number_map_interior_node_0[1];

#line 1282 "tree_bitset.c"
static const MR_PseudoTypeInfo mercury__tree_bitset__tree_bitset__field_types_leaf_node_0_0[2];

#line 1285 "tree_bitset.c"
static const MR_ConstString mercury__tree_bitset__tree_bitset__field_names_leaf_node_0_0[2];

#line 1288 "tree_bitset.c"
static const MR_DuFunctorDesc mercury__tree_bitset__tree_bitset__du_functor_desc_leaf_node_0_0;

#line 1291 "tree_bitset.c"
static const MR_DuFunctorDescPtr mercury__tree_bitset__tree_bitset__du_stag_ordered_leaf_node_0_0[1];

#line 1294 "tree_bitset.c"
static const MR_DuPtagLayout mercury__tree_bitset__tree_bitset__du_ptag_ordered_leaf_node_0[1];

#line 1297 "tree_bitset.c"
static const MR_DuFunctorDescPtr mercury__tree_bitset__tree_bitset__du_name_ordered_leaf_node_0[1];

#line 1300 "tree_bitset.c"
static const MR_Integer mercury__tree_bitset__tree_bitset__functor_number_map_leaf_node_0[1];

#line 1303 "tree_bitset.c"
static const MR_FA_TypeInfo_Struct1 mercury__tree_bitset__list__ti_list_1tree_bitset__type_ctor_info_leaf_node_0;

#line 1306 "tree_bitset.c"
static const MR_PseudoTypeInfo mercury__tree_bitset__tree_bitset__field_types_node_list_0_0[1];

#line 1309 "tree_bitset.c"
static const MR_ConstString mercury__tree_bitset__tree_bitset__field_names_node_list_0_0[1];

#line 1312 "tree_bitset.c"
static const MR_DuFunctorDesc mercury__tree_bitset__tree_bitset__du_functor_desc_node_list_0_0;

#line 1315 "tree_bitset.c"
static const MR_FA_TypeInfo_Struct1 mercury__tree_bitset__list__ti_list_1tree_bitset__type_ctor_info_interior_node_0;

#line 1318 "tree_bitset.c"
static const MR_PseudoTypeInfo mercury__tree_bitset__tree_bitset__field_types_node_list_0_1[2];

#line 1321 "tree_bitset.c"
static const MR_ConstString mercury__tree_bitset__tree_bitset__field_names_node_list_0_1[2];

#line 1324 "tree_bitset.c"
static const MR_DuFunctorDesc mercury__tree_bitset__tree_bitset__du_functor_desc_node_list_0_1;

#line 1327 "tree_bitset.c"
static const MR_DuFunctorDescPtr mercury__tree_bitset__tree_bitset__du_stag_ordered_node_list_0_0[1];

#line 1330 "tree_bitset.c"
static const MR_DuFunctorDescPtr mercury__tree_bitset__tree_bitset__du_stag_ordered_node_list_0_1[1];

#line 1333 "tree_bitset.c"
static const MR_DuPtagLayout mercury__tree_bitset__tree_bitset__du_ptag_ordered_node_list_0[2];

#line 1336 "tree_bitset.c"
static const MR_DuFunctorDescPtr mercury__tree_bitset__tree_bitset__du_name_ordered_node_list_0[2];

#line 1339 "tree_bitset.c"
static const MR_Integer mercury__tree_bitset__tree_bitset__functor_number_map_node_list_0[2];

#line 1342 "tree_bitset.c"
static const MR_Integer mercury__tree_bitset__tree_bitset__functor_number_map_tree_bitset_1[1];

#line 1345 "tree_bitset.c"
static const MR_NotagFunctorDesc mercury__tree_bitset__tree_bitset__notag_functor_desc_tree_bitset_1;

#line 1348 "tree_bitset.c"
static MR_bool MR_CALL 
mercury__tree_bitset____Unify____fold_direction_0_0_10001(
#line 1351 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_1,
#line 1353 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_2);

#line 1356 "tree_bitset.c"
static void MR_CALL 
mercury__tree_bitset____Compare____fold_direction_0_0_10001(
#line 1359 "tree_bitset.c"
  MR_Box * mercury__tree_bitset__wrapper_arg_1,
#line 1361 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_2,
#line 1363 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_3);

#line 1366 "tree_bitset.c"
static MR_bool MR_CALL 
mercury__tree_bitset____Unify____interior_node_0_0_10001(
#line 1369 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_1,
#line 1371 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_2);

#line 1374 "tree_bitset.c"
static void MR_CALL 
mercury__tree_bitset____Compare____interior_node_0_0_10001(
#line 1377 "tree_bitset.c"
  MR_Box * mercury__tree_bitset__wrapper_arg_1,
#line 1379 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_2,
#line 1381 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_3);

#line 1384 "tree_bitset.c"
static MR_bool MR_CALL 
mercury__tree_bitset____Unify____leaf_node_0_0_10001(
#line 1387 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_1,
#line 1389 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_2);

#line 1392 "tree_bitset.c"
static void MR_CALL 
mercury__tree_bitset____Compare____leaf_node_0_0_10001(
#line 1395 "tree_bitset.c"
  MR_Box * mercury__tree_bitset__wrapper_arg_1,
#line 1397 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_2,
#line 1399 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_3);

#line 1402 "tree_bitset.c"
static MR_bool MR_CALL 
mercury__tree_bitset____Unify____node_list_0_0_10001(
#line 1405 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_1,
#line 1407 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_2);

#line 1410 "tree_bitset.c"
static void MR_CALL 
mercury__tree_bitset____Compare____node_list_0_0_10001(
#line 1413 "tree_bitset.c"
  MR_Box * mercury__tree_bitset__wrapper_arg_1,
#line 1415 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_2,
#line 1417 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_3);

#line 1420 "tree_bitset.c"
static MR_bool MR_CALL 
mercury__tree_bitset____Unify____tree_bitset_1_0_10001(
#line 1423 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_1,
#line 1425 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_2,
#line 1427 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_3);

#line 1430 "tree_bitset.c"
static void MR_CALL 
mercury__tree_bitset____Compare____tree_bitset_1_0_10001(
#line 1433 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_1,
#line 1435 "tree_bitset.c"
  MR_Box * mercury__tree_bitset__wrapper_arg_2,
#line 1437 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_3,
#line 1439 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_4);

#line 3953 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_55_51_95_95_91_49_44_32_50_44_32_51_44_32_54_93_95_48_7_p_0(
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3953 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__STATE_VARIABLE_Acc_20);

#line 3953 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_55_50_95_95_91_49_44_32_50_44_32_51_44_32_52_44_32_53_44_32_55_44_32_49_48_93_95_48_7_p_0(
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_39_39,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3953 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_Acc_20);

#line 3837 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_55_49_95_95_91_49_44_32_50_44_32_51_44_32_52_44_32_53_44_32_55_44_32_57_93_95_48_4_p_0(
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_33_33,
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3837 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_Acc_4);

#line 3863 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_55_48_95_95_91_49_44_32_50_44_32_51_44_32_52_44_32_53_44_32_55_44_32_57_93_95_48_4_p_0(
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_32_32,
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3863 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_Acc_4);

#line 3700 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_104_111_54_57_95_95_91_49_44_32_50_44_32_51_44_32_53_93_95_48_4_p_0(
#line 3700 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3700 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3700 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3700 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__STATE_VARIABLE_Acc_4);

#line 3727 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_104_111_54_56_95_95_91_49_44_32_50_44_32_51_44_32_53_93_95_48_4_p_0(
#line 3727 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3727 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3727 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3727 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__STATE_VARIABLE_Acc_4);

#line 3953 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_54_55_95_95_91_49_44_32_50_44_32_52_44_32_55_93_95_48_7_p_0(
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_34_34,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3953 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3953 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20);

#line 3953 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_54_54_95_95_91_49_44_32_50_44_32_52_44_32_55_93_95_48_7_p_0(
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_34_34,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3953 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3953 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20);

#line 3837 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_54_51_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0(
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_28_28,
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3837 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3837 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4);

#line 3863 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_54_50_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0(
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_27_27,
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3863 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3863 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4);

#line 3700 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_104_111_54_49_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0(
#line 3700 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_28_28,
#line 3700 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3700 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3700 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3700 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4);

#line 3727 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_104_111_54_48_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0(
#line 3727 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_27_27,
#line 3727 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3727 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3727 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3727 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4);

#line 3953 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_53_54_95_95_91_49_44_32_51_44_32_54_93_95_48_7_p_0(
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_34_34,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3953 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_Acc_20);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_53_53_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_53_52_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_53_51_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_52_55_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_52_54_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_52_53_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_52_52_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_52_49_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_52_48_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_57_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_56_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_55_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_54_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_53_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 12 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_110_111_116_95_95_104_111_51_52_95_95_91_51_93_95_48_4_p_in__require_0(
#line 12 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 12 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 12 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 12 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 12 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_51_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_50_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 12 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_110_111_116_95_95_104_111_51_49_95_95_91_51_93_95_48_4_p_in__require_0(
#line 12 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 12 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 12 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 12 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 12 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_48_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_57_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Word mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Word mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_55_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_54_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Word mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Word mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_53_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_52_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_51_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_50_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_48_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_49_57_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_49_56_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_49_55_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_49_54_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_49_53_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8);

#line 1643 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_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_116_101_109_115_95_116_111_95_105_110_100_101_120_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_95_95_91_49_93_95_48_2_p_0(
#line 1643 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_7,
#line 1643 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1643 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__2_2);

#line 13 "ops.opt"
static MR_Integer MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_67_108_97_115_115_77_101_116_104_111_100_95_102_111_114_95_111_112_115_95_95_111_112_95_116_97_98_108_101_95_95_95_95_111_112_115_95_95_109_101_114_99_117_114_121_95_111_112_95_116_97_98_108_101_95_95_97_114_105_116_121_48_95_95_95_95_95_95_111_112_115_95_95_109_97_120_95_112_114_105_111_114_105_116_121_95_49_95_95_91_49_93_95_48_1_f_in__ops_0(void);

#line 1836 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_2_p_1_1(
#line 1836 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 1836 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_2_p_1_1(
#line 1836 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 1643 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_116_101_109_115_95_116_111_95_105_110_100_101_120_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_p_0(
#line 1643 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_7,
#line 1643 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1643 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__2_2);

#line 3715 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_4_p_6_1(
#line 3715 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3715 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_4_p_7_1(
#line 3715 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3715 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_4_p_6_1(
#line 3715 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3715 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_4_p_7_1(
#line 3715 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3742 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_4_p_6_1(
#line 3742 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3742 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_4_p_7_1(
#line 3742 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3742 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_4_p_6_1(
#line 3742 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3742 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_4_p_7_1(
#line 3742 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3770 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4_1(
#line 3770 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3770 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4_1(
#line 3770 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3804 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4_1(
#line 3804 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3804 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4_1(
#line 3804 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3850 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3_1(
#line 3850 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3850 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3_1(
#line 3850 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3876 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3_1(
#line 3876 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3876 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3_1(
#line 3876 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3907 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4_1(
#line 3907 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3907 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4_1(
#line 3907 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3944 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4_1(
#line 3944 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3944 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4_1(
#line 3944 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3997 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_7_p_6_1(
#line 3997 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3993 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_7_p_6_2(
#line 3993 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3997 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_7_p_7_1(
#line 3997 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3993 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_7_p_7_2(
#line 3993 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3997 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_7_p_6_1(
#line 3997 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3993 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_7_p_6_2(
#line 3993 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3997 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_7_p_7_1(
#line 3997 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3993 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_7_p_7_2(
#line 3993 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 4046 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_9_p_4_1(
#line 4046 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 4041 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_9_p_4_2(
#line 4041 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 4046 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_9_p_4_1(
#line 4046 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 4041 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_9_p_4_2(
#line 4041 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3296 "tree_bitset.m"
static MR_bool MR_CALL 
mercury__tree_bitset__IntroducedFrom__pred__interiorlist_divide_by_set__3296__1_2_p_0(
#line 3296 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__SubLevel_47,
#line 3296 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__2_67);

#line 3294 "tree_bitset.m"
static MR_bool MR_CALL 
mercury__tree_bitset__IntroducedFrom__pred__interiorlist_divide_by_set__3294__1_2_p_0(
#line 3294 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__SubLevel_47,
#line 3294 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__2_93);

#line 3256 "tree_bitset.m"
static MR_bool MR_CALL 
mercury__tree_bitset__IntroducedFrom__pred__interiorlist_divide_by_set__3256__1_2_p_0(
#line 3256 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__DBLimitOffset_22,
#line 3256 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LimitOffset_25);

#line 2190 "tree_bitset.m"
static MR_bool MR_CALL 
mercury__tree_bitset__IntroducedFrom__pred__descend_and_intersect__2190__1_2_p_0(
#line 2190 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__1_49,
#line 2190 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__2_50);

#line 2187 "tree_bitset.m"
static MR_bool MR_CALL 
mercury__tree_bitset__IntroducedFrom__pred__descend_and_intersect__2187__1_2_p_0(
#line 2187 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__1_43,
#line 2187 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__2_44);

#line 2344 "tree_bitset.m"
static MR_bool MR_CALL 
mercury__tree_bitset__IntroducedFrom__pred__difference__2344__1_2_p_0(
#line 2344 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__ParentLimitOffsetA_19,
#line 2344 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__ParentLimitOffsetB_21);

#line 1924 "tree_bitset.m"
static MR_bool MR_CALL 
mercury__tree_bitset__IntroducedFrom__pred__union__1924__1_2_p_0(
#line 1924 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__ParentLimitOffsetA_21,
#line 1924 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__ParentLimitOffsetB_23);

#line 4046 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__fold2_bits_9_p_4_1(
#line 4046 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 4041 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__fold2_bits_9_p_4_2(
#line 4041 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3997 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__fold_bits_7_p_7_1(
#line 3997 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3993 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__fold_bits_7_p_7_2(
#line 3993 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3997 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__fold_bits_7_p_6_1(
#line 3997 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3993 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__fold_bits_7_p_6_2(
#line 3993 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3944 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaf_foldr2_pred_6_p_4_1(
#line 3944 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3907 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__do_foldr2_pred_6_p_4_1(
#line 3907 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3876 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaf_foldr_pred_4_p_3_1(
#line 3876 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3850 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__do_foldr_pred_4_p_3_1(
#line 3850 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3804 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaf_foldl2_pred_6_p_4_1(
#line 3804 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3770 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__do_foldl2_pred_6_p_4_1(
#line 3770 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3742 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaf_foldl_pred_4_p_7_1(
#line 3742 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3742 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaf_foldl_pred_4_p_6_1(
#line 3742 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3715 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__do_foldl_pred_4_p_7_1(
#line 3715 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3715 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__do_foldl_pred_4_p_6_1(
#line 3715 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);

#line 3333 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaflist_divide_by_set_4_p_0(
#line 3333 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 3333 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3333 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3,
#line 3333 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__4_4);

#line 3242 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__interiorlist_divide_by_set_5_p_0(
#line 3242 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__1_1,
#line 3242 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3242 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__3_3,
#line 3242 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__4_4,
#line 3242 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__5_5);

#line 3155 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__divide_by_set_descend_divide_by_8_p_0(
#line 3155 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__DBLevel_9,
#line 3155 "tree_bitset.m"
  MR_Word mercury__tree_bitset__DBNodes_10,
#line 3155 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Level_11,
#line 3155 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__InitOffset_12,
#line 3155 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LimitOffset_13,
#line 3155 "tree_bitset.m"
  MR_Word mercury__tree_bitset__List_14,
#line 3155 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__InList_15,
#line 3155 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__OutList_16);

#line 2918 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__intersect_list_pass_3_p_0(
#line 2918 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_23,
#line 2918 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 2918 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_MergedSets_0_2,
#line 2918 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_MergedSets_3);

#line 2880 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__union_list_pass_3_p_0(
#line 2880 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_23,
#line 2880 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 2880 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_MergedSets_0_2,
#line 2880 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_MergedSets_3);

#line 2790 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__interiorlist_difference_3_p_0(
#line 2790 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 2790 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 2790 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3);

#line 2765 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaflist_difference_3_p_0(
#line 2765 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 2765 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 2765 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3);

#line 2726 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__interiornode_difference_8_p_0(
#line 2726 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LevelA_9,
#line 2726 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadA_10,
#line 2726 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TailA_11,
#line 2726 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LevelB_12,
#line 2726 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadB_13,
#line 2726 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TailB_14,
#line 2726 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__Level_15,
#line 2726 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__List_16);

#line 2636 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__descend_and_difference_list_7_p_0(
#line 2636 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LevelA_8,
#line 2636 "tree_bitset.m"
  MR_Word mercury__tree_bitset__InteriorNodesA_9,
#line 2636 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LevelB_10,
#line 2636 "tree_bitset.m"
  MR_Word mercury__tree_bitset__InteriorNodeB_11,
#line 2636 "tree_bitset.m"
  MR_Word mercury__tree_bitset__InteriorNodesB_12,
#line 2636 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__Level_13,
#line 2636 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__List_14);

#line 2555 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__descend_and_difference_one_6_p_0(
#line 2555 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LevelA_7,
#line 2555 "tree_bitset.m"
  MR_Word mercury__tree_bitset__InteriorNodesA_8,
#line 2555 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LevelB_9,
#line 2555 "tree_bitset.m"
  MR_Word mercury__tree_bitset__InteriorNodeB_10,
#line 2555 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__Level_11,
#line 2555 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__List_12);

#line 2471 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__find_interior_nodes_at_parent_offset_6_p_0(
#line 2471 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__1_1,
#line 2471 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 2471 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__3_3,
#line 2471 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__4_4,
#line 2471 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__5_5,
#line 2471 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__6_6);

#line 2424 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__find_leaf_nodes_at_parent_offset_5_p_0(
#line 2424 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__1_1,
#line 2424 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 2424 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__3_3,
#line 2424 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__4_4,
#line 2424 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__5_5);

#line 2251 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__interiorlist_intersect_3_p_0(
#line 2251 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 2251 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 2251 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3);

#line 2234 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__interiornode_intersect_8_p_0(
#line 2234 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LevelA_9,
#line 2234 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadA_10,
#line 2234 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TailA_11,
#line 2234 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LevelB_12,
#line 2234 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadB_13,
#line 2234 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TailB_14,
#line 2234 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__Level_15,
#line 2234 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__List_16);

#line 2175 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__descend_and_intersect_5_p_0(
#line 2175 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__1_1,
#line 2175 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 2175 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__3_3,
#line 2175 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__4_4,
#line 2175 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__List_5);

#line 2151 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaflist_intersect_3_p_0(
#line 2151 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 2151 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 2151 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3);

#line 2017 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__interiorlist_union_3_p_0(
#line 2017 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 2017 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 2017 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3);

#line 1995 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaflist_union_3_p_0(
#line 1995 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1995 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 1995 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3);

#line 1979 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__interiornode_union_8_p_0(
#line 1979 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LevelA_9,
#line 1979 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadA_10,
#line 1979 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TailA_11,
#line 1979 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LevelB_12,
#line 1979 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadB_13,
#line 1979 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TailB_14,
#line 1979 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__Level_15,
#line 1979 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__List_16);

#line 1873 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leafnode_member_4_p_0(
#line 1873 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__Index_5,
#line 1873 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_6,
#line 1873 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_7,
#line 1873 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_8,
#line 1873 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 1873 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr);

#line 1863 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaflist_member_2_p_0(
#line 1863 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__Index_3,
#line 1863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 1863 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 1863 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr);

#line 1847 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__interiorlist_member_2_p_0(
#line 1847 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__Index_3,
#line 1847 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 1847 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 1847 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr);

#line 1813 "tree_bitset.m"
static MR_bool MR_CALL 
mercury__tree_bitset__interiorlist_contains_2_p_0(
#line 1813 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1813 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_5);

#line 1802 "tree_bitset.m"
static MR_bool MR_CALL 
mercury__tree_bitset__leaflist_contains_2_p_0(
#line 1802 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1802 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_5);

#line 1754 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__group_interior_nodes_in_range_7_p_0(
#line 1754 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Level_1,
#line 1754 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__ParentInitOffset_2,
#line 1754 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__ParentLimitOffset_3,
#line 1754 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_RevAcc_0_4,
#line 1754 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__5_5,
#line 1754 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__ParentNode_6,
#line 1754 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__7_7);

#line 1737 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__group_interior_nodes_4_p_0(
#line 1737 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Level_5,
#line 1737 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Head_6,
#line 1737 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Tail_7,
#line 1737 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__ParentList_8);

#line 1717 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__recursively_group_interior_nodes_3_p_0(
#line 1717 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__CurLevel_4,
#line 1717 "tree_bitset.m"
  MR_Word mercury__tree_bitset__CurNodes_5,
#line 1717 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__List_6);

#line 1691 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__group_leaf_nodes_in_range_6_p_0(
#line 1691 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__ParentInitOffset_1,
#line 1691 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__ParentLimitOffset_2,
#line 1691 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_RevAcc_0_3,
#line 1691 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__4_4,
#line 1691 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__ParentNode_5,
#line 1691 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__6_6);

#line 1674 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__group_leaf_nodes_3_p_0(
#line 1674 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Head_4,
#line 1674 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Tail_5,
#line 1674 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__ParentList_6);

#line 1661 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__gather_bits_for_leaf_5_p_0(
#line 1661 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1661 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__2_2,
#line 1661 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__STATE_VARIABLE_Bits_0_3,
#line 1661 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__STATE_VARIABLE_Bits_4,
#line 1661 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__5_5);

#line 1652 "tree_bitset.m"
static MR_Word MR_CALL 
mercury__tree_bitset__sorted_list_to_leaf_nodes_1_f_0(
#line 1652 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1);

#line 1643 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__items_to_index_2_p_0(
#line 1643 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_7,
#line 1643 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1643 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__2_2);

#line 1587 "tree_bitset.m"
static MR_Integer MR_CALL 
mercury__tree_bitset__find_least_bit_2_3_f_0(
#line 1587 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits0_5,
#line 1587 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_6,
#line 1587 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__BitNum0_7);

#line 1521 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__remove_least_interior_4_p_0(
#line 1521 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Head0_5,
#line 1521 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Tail0_6,
#line 1521 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__Index_7,
#line 1521 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__Nodes_8);

#line 1467 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__remove_gt_leaf_3_p_0(
#line 1467 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1467 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_2,
#line 1467 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3);

#line 1426 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__remove_gt_interior_3_p_0(
#line 1426 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1426 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_2,
#line 1426 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3);

#line 1389 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__remove_leq_leaf_3_p_0(
#line 1389 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1389 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_2,
#line 1389 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3);

#line 1349 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__remove_leq_interior_3_p_0(
#line 1349 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1349 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_2,
#line 1349 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3);

#line 1299 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaflist_delete_3_p_0(
#line 1299 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1299 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_2,
#line 1299 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3);

#line 1258 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__interiorlist_delete_3_p_0(
#line 1258 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1258 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_2,
#line 1258 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3);

#line 1197 "tree_bitset.m"
static MR_bool MR_CALL 
mercury__tree_bitset__interiorlist_insert_new_4_p_0(
#line 1197 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_1,
#line 1197 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Level_2,
#line 1197 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__3_3,
#line 1197 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__Nodes_4);

#line 1173 "tree_bitset.m"
static MR_bool MR_CALL 
mercury__tree_bitset__leaflist_insert_new_3_p_0(
#line 1173 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_1,
#line 1173 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 1173 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__Leaves_3);

#line 1071 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__interiorlist_insert_4_p_0(
#line 1071 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_1,
#line 1071 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Level_2,
#line 1071 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__3_3,
#line 1071 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__Nodes_4);

#line 1047 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaflist_insert_3_p_0(
#line 1047 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_1,
#line 1047 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 1047 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__Leaves_3);

#line 906 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__head_and_tail_3_p_0(
#line 906 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 906 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__Head_2,
#line 906 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__Tail_3);

#line 851 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__raise_to_common_level_10_p_0(
#line 851 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__CurLevel_11,
#line 851 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadA_12,
#line 851 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TailA_13,
#line 851 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadB_14,
#line 851 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TailB_15,
#line 851 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__TopHeadA_16,
#line 851 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__TopTailA_17,
#line 851 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__TopHeadB_18,
#line 851 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__TopTailB_19,
#line 851 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__TopLevel_20);

#line 831 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__raise_interiors_to_level_6_p_0(
#line 831 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__TargetLevel_7,
#line 831 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__CurLevel_8,
#line 831 "tree_bitset.m"
  MR_Word mercury__tree_bitset__CurNodesHead_9,
#line 831 "tree_bitset.m"
  MR_Word mercury__tree_bitset__CurNodesTail_10,
#line 831 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__TopNodesHead_11,
#line 831 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__TopNodesTail_12);

#line 815 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__raise_one_interior_to_level_4_p_0(
#line 815 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__TargetLevel_5,
#line 815 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__CurLevel_6,
#line 815 "tree_bitset.m"
  MR_Word mercury__tree_bitset__CurNode_7,
#line 815 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__TopNode_8);

#line 757 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__expand_range_7_p_0(
#line 757 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_8,
#line 757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__SubNodes_9,
#line 757 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__CurLevel_10,
#line 757 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__CurInitOffset_11,
#line 757 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__CurLimitOffset_12,
#line 757 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__TopNode_13,
#line 757 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__TopLevel_14);

#line 747 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__range_of_parent_node_4_p_0(
#line 747 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__NodeOffset_5,
#line 747 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__NodeLevel_6,
#line 747 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__ParentInitOffset_7,
#line 747 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__ParentLimitOffset_8);

#line 704 "tree_bitset.m"
static MR_Word MR_CALL 
mercury__tree_bitset__integrity_interior_nodes_4_f_0(
#line 704 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 704 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__2_2,
#line 704 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__3_3,
#line 704 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__4_4);

#line 691 "tree_bitset.m"
static MR_Word MR_CALL 
mercury__tree_bitset__integrity_leaf_nodes_3_f_0(
#line 691 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 691 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__2_2,
#line 691 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__3_3);

#line 551 "tree_bitset.m"
static MR_Integer MR_CALL 
mercury__tree_bitset__enum_to_index_1_f_0(
#line 551 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_10,
#line 551 "tree_bitset.m"
  MR_Box mercury__tree_bitset__Elem_3);

#line 1836 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__member_2_p_1_1(
#line 1836 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg);


static /* final */ const MR_Box mercury__tree_bitset_scalar_common_1[2][2];

static /* final */ const MR_Box mercury__tree_bitset_scalar_common_2[1][3];

static /* final */ const MR_Box mercury__tree_bitset_scalar_common_3[1][4];

static /* final */ const MR_Box mercury__tree_bitset_scalar_common_4[2][5];

static /* final */ const MR_Box mercury__tree_bitset_scalar_common_5[1][1];




static /* final */ const MR_Box mercury__tree_bitset_scalar_common_1[2][2] = {
  /* row 0 */
  {
    ((MR_Box) (&mercury__list__list__type_ctor_info_list_1)),
    ((MR_Box) (&mercury__tree_bitset__tree_bitset__type_ctor_info_interior_node_0))
  },
  /* row 1 */
  {
    ((MR_Box) (&mercury__list__list__type_ctor_info_list_1)),
    ((MR_Box) (&mercury__tree_bitset__tree_bitset__type_ctor_info_leaf_node_0))
  },
};

static /* final */ const MR_Box mercury__tree_bitset_scalar_common_2[1][3] = {
  /* row 0 */
  {
    ((MR_Box) (base_typeclass_info_stream__stream__arity2__io__output_stream__arity0__io__state__arity0__)),
    ((MR_Box) (&mercury__io__io__type_ctor_info_output_stream_0)),
    ((MR_Box) (&mercury__io__io__type_ctor_info_state_0))
  },
};

static /* final */ const MR_Box mercury__tree_bitset_scalar_common_3[1][4] = {
  /* row 0 */
  {
    ((MR_Box) (base_typeclass_info_stream__output__arity2__io__output_stream__arity0__io__state__arity0__)),
    ((MR_Box) (&mercury__tree_bitset_scalar_common_2[0])),
    ((MR_Box) (&mercury__io__io__type_ctor_info_output_stream_0)),
    ((MR_Box) (&mercury__io__io__type_ctor_info_state_0))
  },
};

static /* final */ const MR_Box mercury__tree_bitset_scalar_common_4[2][5] = {
  /* row 0 */
  {
    ((MR_Box) (base_typeclass_info_stream__writer__arity3__io__output_stream__arity0__string__arity0__io__state__arity0__)),
    ((MR_Box) (&mercury__tree_bitset_scalar_common_3[0])),
    ((MR_Box) (&mercury__io__io__type_ctor_info_output_stream_0)),
    ((MR_Box) (&mercury__builtin__builtin__type_ctor_info_string_0)),
    ((MR_Box) (&mercury__io__io__type_ctor_info_state_0))
  },
  /* row 1 */
  {
    ((MR_Box) (base_typeclass_info_stream__writer__arity3__io__output_stream__arity0__character__arity0__io__state__arity0__)),
    ((MR_Box) (&mercury__tree_bitset_scalar_common_3[0])),
    ((MR_Box) (&mercury__io__io__type_ctor_info_output_stream_0)),
    ((MR_Box) (&mercury__builtin__builtin__type_ctor_info_character_0)),
    ((MR_Box) (&mercury__io__io__type_ctor_info_state_0))
  },
};

static /* final */ const MR_Box mercury__tree_bitset_scalar_common_5[1][1] = {
  /* row 0 */
  {
    ((MR_Box) (MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))))
  },
};



#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "time.mh"
#include "time.mh"
#include "array.mh"
#include "array.mh"
#include "builtin.mh"
#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "time.mh"
#include "time.mh"
#include "array.mh"
#include "array.mh"
#include "array.mh"
#include "array.mh"
#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "time.mh"
#include "time.mh"
#include "array.mh"
#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "time.mh"
#include "time.mh"
#include "stm_builtin.mh"
#include "stm_builtin.mh"
#include "store.mh"
#include "store.mh"
#include "exception.mh"
#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "stm_builtin.mh"
#include "stm_builtin.mh"
#include "store.mh"
#include "store.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "time.mh"
#include "time.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "time.mh"
#include "time.mh"
#include "array.mh"
#include "array.mh"
#include "dir.mh"
#include "dir.mh"
#include "table_builtin.mh"
#include "table_builtin.mh"
#include "stm_builtin.mh"
#include "stm_builtin.mh"
#include "store.mh"
#include "store.mh"
#include "benchmarking.mh"
#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "time.mh"
#include "time.mh"
#include "array.mh"
#include "array.mh"
#include "bitmap.mh"
#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "time.mh"
#include "time.mh"
#include "stm_builtin.mh"
#include "stm_builtin.mh"
#include "store.mh"
#include "store.mh"
#include "array.mh"
#include "array.mh"
#include "dir.mh"
#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "time.mh"
#include "time.mh"
#include "stm_builtin.mh"
#include "stm_builtin.mh"
#include "store.mh"
#include "store.mh"
#include "array.mh"
#include "array.mh"
#include "float.mh"
#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "time.mh"
#include "time.mh"
#include "stm_builtin.mh"
#include "stm_builtin.mh"
#include "store.mh"
#include "store.mh"
#include "array.mh"
#include "array.mh"
#include "math.mh"
#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "time.mh"
#include "time.mh"
#include "stm_builtin.mh"
#include "stm_builtin.mh"
#include "store.mh"
#include "store.mh"
#include "table_builtin.mh"
#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "time.mh"
#include "time.mh"
#include "time.mh"
#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "stm_builtin.mh"
#include "stm_builtin.mh"
#include "store.mh"
#include "store.mh"
#include "array.mh"
#include "array.mh"
#include "version_array.mh"
#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "time.mh"
#include "time.mh"
#include "stm_builtin.mh"
#include "stm_builtin.mh"
#include "store.mh"
#include "store.mh"
#include "array.mh"
#include "array.mh"
#include "stm_builtin.mh"
#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "time.mh"
#include "time.mh"
#include "store.mh"
#include "store.mh"
#include "store.mh"
#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "time.mh"
#include "time.mh"
#include "pretty_printer.mh"
#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "array.mh"
#include "array.mh"
#include "version_array.mh"
#include "version_array.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "time.mh"
#include "time.mh"
#include "char.mh"
#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "time.mh"
#include "time.mh"
#include "array.mh"
#include "array.mh"
#include "construct.mh"
#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "time.mh"
#include "time.mh"
#include "array.mh"
#include "array.mh"
#include "array.mh"
#include "array.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "version_array.mh"
#include "version_array.mh"
#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "time.mh"
#include "time.mh"
#include "type_desc.mh"
#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "time.mh"
#include "time.mh"
#include "rtti_implementation.mh"
#include "array.mh"
#include "array.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "time.mh"
#include "time.mh"
#include "int.mh"
#include "array.mh"
#include "array.mh"
#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "time.mh"
#include "time.mh"
#include "stm_builtin.mh"
#include "stm_builtin.mh"
#include "store.mh"
#include "store.mh"
#include "private_builtin.mh"
#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "time.mh"
#include "time.mh"
#include "array.mh"
#include "array.mh"
#include "array.mh"
#include "array.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "dir.mh"
#include "dir.mh"
#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "stm_builtin.mh"
#include "stm_builtin.mh"
#include "store.mh"
#include "store.mh"
#include "table_builtin.mh"
#include "table_builtin.mh"
#include "time.mh"
#include "time.mh"
#include "version_array.mh"
#include "version_array.mh"



#line 3538 "tree_bitset.c"
static const MR_EnumFunctorDesc mercury__tree_bitset__tree_bitset__enum_functor_desc_fold_direction_0_0 = {
  (MR_String) "low_to_high",
  (MR_Integer) 0
};

#line 3544 "tree_bitset.c"
static const MR_EnumFunctorDesc mercury__tree_bitset__tree_bitset__enum_functor_desc_fold_direction_0_1 = {
  (MR_String) "high_to_low",
  (MR_Integer) 1
};

#line 3550 "tree_bitset.c"
static const MR_EnumFunctorDescPtr mercury__tree_bitset__tree_bitset__enum_value_ordered_fold_direction_0[2] = {
  &mercury__tree_bitset__tree_bitset__enum_functor_desc_fold_direction_0_0,
  &mercury__tree_bitset__tree_bitset__enum_functor_desc_fold_direction_0_1
};

#line 3556 "tree_bitset.c"
static const MR_EnumFunctorDescPtr mercury__tree_bitset__tree_bitset__enum_name_ordered_fold_direction_0[2] = {
  &mercury__tree_bitset__tree_bitset__enum_functor_desc_fold_direction_0_1,
  &mercury__tree_bitset__tree_bitset__enum_functor_desc_fold_direction_0_0
};

#line 3562 "tree_bitset.c"
static const MR_Integer mercury__tree_bitset__tree_bitset__functor_number_map_fold_direction_0[2] = {
  (MR_Integer) 1,
  (MR_Integer) 0
};

#line 3568 "tree_bitset.c"
const MR_TypeCtorInfo_Struct mercury__tree_bitset__tree_bitset__type_ctor_info_fold_direction_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) -1,
  mercury__private_builtin__MR_TYPECTOR_REP_ENUM,
  ((MR_Box) (mercury__tree_bitset____Unify____fold_direction_0_0_10001)),
  ((MR_Box) (mercury__tree_bitset____Compare____fold_direction_0_0_10001)),
  (MR_String) "tree_bitset",
  (MR_String) "fold_direction",
  {
    mercury__tree_bitset__tree_bitset__enum_name_ordered_fold_direction_0
  },
  {
    mercury__tree_bitset__tree_bitset__enum_value_ordered_fold_direction_0
  },
  (MR_Integer) 2,
  (MR_Integer) 4,
  mercury__tree_bitset__tree_bitset__functor_number_map_fold_direction_0
};

#line 3589 "tree_bitset.c"
static const MR_PseudoTypeInfo mercury__tree_bitset__tree_bitset__field_types_interior_node_0_0[3] = {
  (MR_PseudoTypeInfo) &mercury__builtin__builtin__type_ctor_info_int_0,
  (MR_PseudoTypeInfo) &mercury__builtin__builtin__type_ctor_info_int_0,
  (MR_PseudoTypeInfo) &mercury__tree_bitset__tree_bitset__type_ctor_info_node_list_0
};

#line 3596 "tree_bitset.c"
static const MR_ConstString mercury__tree_bitset__tree_bitset__field_names_interior_node_0_0[3] = {
  (MR_String) "init_offset",
  (MR_String) "limit_offset",
  (MR_String) "components"
};

#line 3603 "tree_bitset.c"
static const MR_DuFunctorDesc mercury__tree_bitset__tree_bitset__du_functor_desc_interior_node_0_0 = {
  (MR_String) "interior_node",
  (MR_Integer) 3,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_NONE,
  (MR_Integer) 0,
  (MR_Integer) -1,
  (MR_Integer) 0,
  mercury__tree_bitset__tree_bitset__field_types_interior_node_0_0,
  mercury__tree_bitset__tree_bitset__field_names_interior_node_0_0,
  NULL,
  NULL
};

#line 3618 "tree_bitset.c"
static const MR_DuFunctorDescPtr mercury__tree_bitset__tree_bitset__du_stag_ordered_interior_node_0_0[1] = {
  &mercury__tree_bitset__tree_bitset__du_functor_desc_interior_node_0_0
};

#line 3623 "tree_bitset.c"
static const MR_DuPtagLayout mercury__tree_bitset__tree_bitset__du_ptag_ordered_interior_node_0[1] = {
  {
    (MR_Integer) 1,
    mercury__private_builtin__MR_SECTAG_NONE,
    mercury__tree_bitset__tree_bitset__du_stag_ordered_interior_node_0_0
  }
};

#line 3632 "tree_bitset.c"
static const MR_DuFunctorDescPtr mercury__tree_bitset__tree_bitset__du_name_ordered_interior_node_0[1] = {
  &mercury__tree_bitset__tree_bitset__du_functor_desc_interior_node_0_0
};

#line 3637 "tree_bitset.c"
static const MR_Integer mercury__tree_bitset__tree_bitset__functor_number_map_interior_node_0[1] = {
  (MR_Integer) 0
};

#line 3642 "tree_bitset.c"
const MR_TypeCtorInfo_Struct mercury__tree_bitset__tree_bitset__type_ctor_info_interior_node_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) 1,
  mercury__private_builtin__MR_TYPECTOR_REP_DU,
  ((MR_Box) (mercury__tree_bitset____Unify____interior_node_0_0_10001)),
  ((MR_Box) (mercury__tree_bitset____Compare____interior_node_0_0_10001)),
  (MR_String) "tree_bitset",
  (MR_String) "interior_node",
  {
    mercury__tree_bitset__tree_bitset__du_name_ordered_interior_node_0
  },
  {
    mercury__tree_bitset__tree_bitset__du_ptag_ordered_interior_node_0
  },
  (MR_Integer) 1,
  (MR_Integer) 4,
  mercury__tree_bitset__tree_bitset__functor_number_map_interior_node_0
};

#line 3663 "tree_bitset.c"
static const MR_PseudoTypeInfo mercury__tree_bitset__tree_bitset__field_types_leaf_node_0_0[2] = {
  (MR_PseudoTypeInfo) &mercury__builtin__builtin__type_ctor_info_int_0,
  (MR_PseudoTypeInfo) &mercury__builtin__builtin__type_ctor_info_int_0
};

#line 3669 "tree_bitset.c"
static const MR_ConstString mercury__tree_bitset__tree_bitset__field_names_leaf_node_0_0[2] = {
  (MR_String) "leaf_offset",
  (MR_String) "leaf_bits"
};

#line 3675 "tree_bitset.c"
static const MR_DuFunctorDesc mercury__tree_bitset__tree_bitset__du_functor_desc_leaf_node_0_0 = {
  (MR_String) "leaf_node",
  (MR_Integer) 2,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_NONE,
  (MR_Integer) 0,
  (MR_Integer) -1,
  (MR_Integer) 0,
  mercury__tree_bitset__tree_bitset__field_types_leaf_node_0_0,
  mercury__tree_bitset__tree_bitset__field_names_leaf_node_0_0,
  NULL,
  NULL
};

#line 3690 "tree_bitset.c"
static const MR_DuFunctorDescPtr mercury__tree_bitset__tree_bitset__du_stag_ordered_leaf_node_0_0[1] = {
  &mercury__tree_bitset__tree_bitset__du_functor_desc_leaf_node_0_0
};

#line 3695 "tree_bitset.c"
static const MR_DuPtagLayout mercury__tree_bitset__tree_bitset__du_ptag_ordered_leaf_node_0[1] = {
  {
    (MR_Integer) 1,
    mercury__private_builtin__MR_SECTAG_NONE,
    mercury__tree_bitset__tree_bitset__du_stag_ordered_leaf_node_0_0
  }
};

#line 3704 "tree_bitset.c"
static const MR_DuFunctorDescPtr mercury__tree_bitset__tree_bitset__du_name_ordered_leaf_node_0[1] = {
  &mercury__tree_bitset__tree_bitset__du_functor_desc_leaf_node_0_0
};

#line 3709 "tree_bitset.c"
static const MR_Integer mercury__tree_bitset__tree_bitset__functor_number_map_leaf_node_0[1] = {
  (MR_Integer) 0
};

#line 3714 "tree_bitset.c"
const MR_TypeCtorInfo_Struct mercury__tree_bitset__tree_bitset__type_ctor_info_leaf_node_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) 1,
  mercury__private_builtin__MR_TYPECTOR_REP_DU,
  ((MR_Box) (mercury__tree_bitset____Unify____leaf_node_0_0_10001)),
  ((MR_Box) (mercury__tree_bitset____Compare____leaf_node_0_0_10001)),
  (MR_String) "tree_bitset",
  (MR_String) "leaf_node",
  {
    mercury__tree_bitset__tree_bitset__du_name_ordered_leaf_node_0
  },
  {
    mercury__tree_bitset__tree_bitset__du_ptag_ordered_leaf_node_0
  },
  (MR_Integer) 1,
  (MR_Integer) 4,
  mercury__tree_bitset__tree_bitset__functor_number_map_leaf_node_0
};

#line 3735 "tree_bitset.c"
static const MR_FA_TypeInfo_Struct1 mercury__tree_bitset__list__ti_list_1tree_bitset__type_ctor_info_leaf_node_0 = {
  &mercury__list__list__type_ctor_info_list_1,
  {
    (MR_TypeInfo) &mercury__tree_bitset__tree_bitset__type_ctor_info_leaf_node_0
  }
};

#line 3743 "tree_bitset.c"
static const MR_PseudoTypeInfo mercury__tree_bitset__tree_bitset__field_types_node_list_0_0[1] = {
  (MR_PseudoTypeInfo) &mercury__tree_bitset__list__ti_list_1tree_bitset__type_ctor_info_leaf_node_0
};

#line 3748 "tree_bitset.c"
static const MR_ConstString mercury__tree_bitset__tree_bitset__field_names_node_list_0_0[1] = {
  (MR_String) "leaf_nodes"
};

#line 3753 "tree_bitset.c"
static const MR_DuFunctorDesc mercury__tree_bitset__tree_bitset__du_functor_desc_node_list_0_0 = {
  (MR_String) "leaf_list",
  (MR_Integer) 1,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_NONE,
  (MR_Integer) 0,
  (MR_Integer) -1,
  (MR_Integer) 0,
  mercury__tree_bitset__tree_bitset__field_types_node_list_0_0,
  mercury__tree_bitset__tree_bitset__field_names_node_list_0_0,
  NULL,
  NULL
};

#line 3768 "tree_bitset.c"
static const MR_FA_TypeInfo_Struct1 mercury__tree_bitset__list__ti_list_1tree_bitset__type_ctor_info_interior_node_0 = {
  &mercury__list__list__type_ctor_info_list_1,
  {
    (MR_TypeInfo) &mercury__tree_bitset__tree_bitset__type_ctor_info_interior_node_0
  }
};

#line 3776 "tree_bitset.c"
static const MR_PseudoTypeInfo mercury__tree_bitset__tree_bitset__field_types_node_list_0_1[2] = {
  (MR_PseudoTypeInfo) &mercury__builtin__builtin__type_ctor_info_int_0,
  (MR_PseudoTypeInfo) &mercury__tree_bitset__list__ti_list_1tree_bitset__type_ctor_info_interior_node_0
};

#line 3782 "tree_bitset.c"
static const MR_ConstString mercury__tree_bitset__tree_bitset__field_names_node_list_0_1[2] = {
  (MR_String) "level",
  (MR_String) "interior_nodes"
};

#line 3788 "tree_bitset.c"
static const MR_DuFunctorDesc mercury__tree_bitset__tree_bitset__du_functor_desc_node_list_0_1 = {
  (MR_String) "interior_list",
  (MR_Integer) 2,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_NONE,
  (MR_Integer) 1,
  (MR_Integer) -1,
  (MR_Integer) 1,
  mercury__tree_bitset__tree_bitset__field_types_node_list_0_1,
  mercury__tree_bitset__tree_bitset__field_names_node_list_0_1,
  NULL,
  NULL
};

#line 3803 "tree_bitset.c"
static const MR_DuFunctorDescPtr mercury__tree_bitset__tree_bitset__du_stag_ordered_node_list_0_0[1] = {
  &mercury__tree_bitset__tree_bitset__du_functor_desc_node_list_0_0
};

#line 3808 "tree_bitset.c"
static const MR_DuFunctorDescPtr mercury__tree_bitset__tree_bitset__du_stag_ordered_node_list_0_1[1] = {
  &mercury__tree_bitset__tree_bitset__du_functor_desc_node_list_0_1
};

#line 3813 "tree_bitset.c"
static const MR_DuPtagLayout mercury__tree_bitset__tree_bitset__du_ptag_ordered_node_list_0[2] = {
  {
    (MR_Integer) 1,
    mercury__private_builtin__MR_SECTAG_NONE,
    mercury__tree_bitset__tree_bitset__du_stag_ordered_node_list_0_0
  },
  {
    (MR_Integer) 1,
    mercury__private_builtin__MR_SECTAG_NONE,
    mercury__tree_bitset__tree_bitset__du_stag_ordered_node_list_0_1
  }
};

#line 3827 "tree_bitset.c"
static const MR_DuFunctorDescPtr mercury__tree_bitset__tree_bitset__du_name_ordered_node_list_0[2] = {
  &mercury__tree_bitset__tree_bitset__du_functor_desc_node_list_0_1,
  &mercury__tree_bitset__tree_bitset__du_functor_desc_node_list_0_0
};

#line 3833 "tree_bitset.c"
static const MR_Integer mercury__tree_bitset__tree_bitset__functor_number_map_node_list_0[2] = {
  (MR_Integer) 1,
  (MR_Integer) 0
};

#line 3839 "tree_bitset.c"
const MR_TypeCtorInfo_Struct mercury__tree_bitset__tree_bitset__type_ctor_info_node_list_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) 2,
  mercury__private_builtin__MR_TYPECTOR_REP_DU,
  ((MR_Box) (mercury__tree_bitset____Unify____node_list_0_0_10001)),
  ((MR_Box) (mercury__tree_bitset____Compare____node_list_0_0_10001)),
  (MR_String) "tree_bitset",
  (MR_String) "node_list",
  {
    mercury__tree_bitset__tree_bitset__du_name_ordered_node_list_0
  },
  {
    mercury__tree_bitset__tree_bitset__du_ptag_ordered_node_list_0
  },
  (MR_Integer) 2,
  (MR_Integer) 4,
  mercury__tree_bitset__tree_bitset__functor_number_map_node_list_0
};

#line 3860 "tree_bitset.c"
static const MR_Integer mercury__tree_bitset__tree_bitset__functor_number_map_tree_bitset_1[1] = {
  (MR_Integer) 0
};

#line 3865 "tree_bitset.c"
static const MR_NotagFunctorDesc mercury__tree_bitset__tree_bitset__notag_functor_desc_tree_bitset_1 = {
  (MR_String) "tree_bitset",
  (MR_PseudoTypeInfo) &mercury__tree_bitset__tree_bitset__type_ctor_info_node_list_0,
  NULL
};

#line 3872 "tree_bitset.c"
const MR_TypeCtorInfo_Struct mercury__tree_bitset__tree_bitset__type_ctor_info_tree_bitset_1 = {
  (MR_Integer) 1,
  (MR_Integer) 15,
  (MR_Integer) -1,
  mercury__private_builtin__MR_TYPECTOR_REP_NOTAG_GROUND,
  ((MR_Box) (mercury__tree_bitset____Unify____tree_bitset_1_0_10001)),
  ((MR_Box) (mercury__tree_bitset____Compare____tree_bitset_1_0_10001)),
  (MR_String) "tree_bitset",
  (MR_String) "tree_bitset",
  {
    &mercury__tree_bitset__tree_bitset__notag_functor_desc_tree_bitset_1
  },
  {
    &mercury__tree_bitset__tree_bitset__notag_functor_desc_tree_bitset_1
  },
  (MR_Integer) 1,
  (MR_Integer) 4,
  mercury__tree_bitset__tree_bitset__functor_number_map_tree_bitset_1
};

#line 3893 "tree_bitset.c"
static MR_bool MR_CALL 
mercury__tree_bitset____Unify____fold_direction_0_0_10001(
#line 3896 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_1,
#line 3898 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_2)
#line 3900 "tree_bitset.c"
{
#line 3902 "tree_bitset.c"
  {
#line 3904 "tree_bitset.c"
    MR_bool mercury__tree_bitset__succeeded;

#line 3907 "tree_bitset.c"
    {
#line 3909 "tree_bitset.c"
      mercury__tree_bitset__succeeded = mercury__tree_bitset____Unify____fold_direction_0_0(((MR_Word) mercury__tree_bitset__wrapper_arg_1), ((MR_Word) mercury__tree_bitset__wrapper_arg_2));
    }
#line 3912 "tree_bitset.c"
    return mercury__tree_bitset__succeeded;
#line 3914 "tree_bitset.c"
  }
#line 3916 "tree_bitset.c"
}

#line 3919 "tree_bitset.c"
static void MR_CALL 
mercury__tree_bitset____Compare____fold_direction_0_0_10001(
#line 3922 "tree_bitset.c"
  MR_Box * mercury__tree_bitset__wrapper_arg_1,
#line 3924 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_2,
#line 3926 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_3)
#line 3928 "tree_bitset.c"
{
#line 3930 "tree_bitset.c"
  {
#line 3932 "tree_bitset.c"
    MR_Word mercury__tree_bitset__conv0_HeadVar__1_1;

#line 3935 "tree_bitset.c"
    {
#line 3937 "tree_bitset.c"
      mercury__tree_bitset____Compare____fold_direction_0_0(&mercury__tree_bitset__conv0_HeadVar__1_1, ((MR_Word) mercury__tree_bitset__wrapper_arg_2), ((MR_Word) mercury__tree_bitset__wrapper_arg_3));
    }
#line 3940 "tree_bitset.c"
    *mercury__tree_bitset__wrapper_arg_1 = ((MR_Box) (mercury__tree_bitset__conv0_HeadVar__1_1));
#line 3942 "tree_bitset.c"
  }
#line 3944 "tree_bitset.c"
}

#line 3947 "tree_bitset.c"
static MR_bool MR_CALL 
mercury__tree_bitset____Unify____interior_node_0_0_10001(
#line 3950 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_1,
#line 3952 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_2)
#line 3954 "tree_bitset.c"
{
#line 3956 "tree_bitset.c"
  {
#line 3958 "tree_bitset.c"
    MR_bool mercury__tree_bitset__succeeded;

#line 3961 "tree_bitset.c"
    {
#line 3963 "tree_bitset.c"
      mercury__tree_bitset__succeeded = mercury__tree_bitset____Unify____interior_node_0_0(((MR_Word) mercury__tree_bitset__wrapper_arg_1), ((MR_Word) mercury__tree_bitset__wrapper_arg_2));
    }
#line 3966 "tree_bitset.c"
    return mercury__tree_bitset__succeeded;
#line 3968 "tree_bitset.c"
  }
#line 3970 "tree_bitset.c"
}

#line 3973 "tree_bitset.c"
static void MR_CALL 
mercury__tree_bitset____Compare____interior_node_0_0_10001(
#line 3976 "tree_bitset.c"
  MR_Box * mercury__tree_bitset__wrapper_arg_1,
#line 3978 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_2,
#line 3980 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_3)
#line 3982 "tree_bitset.c"
{
#line 3984 "tree_bitset.c"
  {
#line 3986 "tree_bitset.c"
    MR_Word mercury__tree_bitset__conv0_HeadVar__1_1;

#line 3989 "tree_bitset.c"
    {
#line 3991 "tree_bitset.c"
      mercury__tree_bitset____Compare____interior_node_0_0(&mercury__tree_bitset__conv0_HeadVar__1_1, ((MR_Word) mercury__tree_bitset__wrapper_arg_2), ((MR_Word) mercury__tree_bitset__wrapper_arg_3));
    }
#line 3994 "tree_bitset.c"
    *mercury__tree_bitset__wrapper_arg_1 = ((MR_Box) (mercury__tree_bitset__conv0_HeadVar__1_1));
#line 3996 "tree_bitset.c"
  }
#line 3998 "tree_bitset.c"
}

#line 4001 "tree_bitset.c"
static MR_bool MR_CALL 
mercury__tree_bitset____Unify____leaf_node_0_0_10001(
#line 4004 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_1,
#line 4006 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_2)
#line 4008 "tree_bitset.c"
{
#line 4010 "tree_bitset.c"
  {
#line 4012 "tree_bitset.c"
    MR_bool mercury__tree_bitset__succeeded;

#line 4015 "tree_bitset.c"
    {
#line 4017 "tree_bitset.c"
      mercury__tree_bitset__succeeded = mercury__tree_bitset____Unify____leaf_node_0_0(((MR_Word) mercury__tree_bitset__wrapper_arg_1), ((MR_Word) mercury__tree_bitset__wrapper_arg_2));
    }
#line 4020 "tree_bitset.c"
    return mercury__tree_bitset__succeeded;
#line 4022 "tree_bitset.c"
  }
#line 4024 "tree_bitset.c"
}

#line 4027 "tree_bitset.c"
static void MR_CALL 
mercury__tree_bitset____Compare____leaf_node_0_0_10001(
#line 4030 "tree_bitset.c"
  MR_Box * mercury__tree_bitset__wrapper_arg_1,
#line 4032 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_2,
#line 4034 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_3)
#line 4036 "tree_bitset.c"
{
#line 4038 "tree_bitset.c"
  {
#line 4040 "tree_bitset.c"
    MR_Word mercury__tree_bitset__conv0_HeadVar__1_1;

#line 4043 "tree_bitset.c"
    {
#line 4045 "tree_bitset.c"
      mercury__tree_bitset____Compare____leaf_node_0_0(&mercury__tree_bitset__conv0_HeadVar__1_1, ((MR_Word) mercury__tree_bitset__wrapper_arg_2), ((MR_Word) mercury__tree_bitset__wrapper_arg_3));
    }
#line 4048 "tree_bitset.c"
    *mercury__tree_bitset__wrapper_arg_1 = ((MR_Box) (mercury__tree_bitset__conv0_HeadVar__1_1));
#line 4050 "tree_bitset.c"
  }
#line 4052 "tree_bitset.c"
}

#line 4055 "tree_bitset.c"
static MR_bool MR_CALL 
mercury__tree_bitset____Unify____node_list_0_0_10001(
#line 4058 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_1,
#line 4060 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_2)
#line 4062 "tree_bitset.c"
{
#line 4064 "tree_bitset.c"
  {
#line 4066 "tree_bitset.c"
    MR_bool mercury__tree_bitset__succeeded;

#line 4069 "tree_bitset.c"
    {
#line 4071 "tree_bitset.c"
      mercury__tree_bitset__succeeded = mercury__tree_bitset____Unify____node_list_0_0(((MR_Word) mercury__tree_bitset__wrapper_arg_1), ((MR_Word) mercury__tree_bitset__wrapper_arg_2));
    }
#line 4074 "tree_bitset.c"
    return mercury__tree_bitset__succeeded;
#line 4076 "tree_bitset.c"
  }
#line 4078 "tree_bitset.c"
}

#line 4081 "tree_bitset.c"
static void MR_CALL 
mercury__tree_bitset____Compare____node_list_0_0_10001(
#line 4084 "tree_bitset.c"
  MR_Box * mercury__tree_bitset__wrapper_arg_1,
#line 4086 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_2,
#line 4088 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_3)
#line 4090 "tree_bitset.c"
{
#line 4092 "tree_bitset.c"
  {
#line 4094 "tree_bitset.c"
    MR_Word mercury__tree_bitset__conv0_HeadVar__1_1;

#line 4097 "tree_bitset.c"
    {
#line 4099 "tree_bitset.c"
      mercury__tree_bitset____Compare____node_list_0_0(&mercury__tree_bitset__conv0_HeadVar__1_1, ((MR_Word) mercury__tree_bitset__wrapper_arg_2), ((MR_Word) mercury__tree_bitset__wrapper_arg_3));
    }
#line 4102 "tree_bitset.c"
    *mercury__tree_bitset__wrapper_arg_1 = ((MR_Box) (mercury__tree_bitset__conv0_HeadVar__1_1));
#line 4104 "tree_bitset.c"
  }
#line 4106 "tree_bitset.c"
}

#line 4109 "tree_bitset.c"
static MR_bool MR_CALL 
mercury__tree_bitset____Unify____tree_bitset_1_0_10001(
#line 4112 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_1,
#line 4114 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_2,
#line 4116 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_3)
#line 4118 "tree_bitset.c"
{
#line 4120 "tree_bitset.c"
  {
#line 4122 "tree_bitset.c"
    MR_bool mercury__tree_bitset__succeeded;

#line 4125 "tree_bitset.c"
    {
#line 4127 "tree_bitset.c"
      mercury__tree_bitset__succeeded = mercury__tree_bitset____Unify____tree_bitset_1_0(((MR_Word) mercury__tree_bitset__wrapper_arg_1), ((MR_Word) mercury__tree_bitset__wrapper_arg_2), ((MR_Word) mercury__tree_bitset__wrapper_arg_3));
    }
#line 4130 "tree_bitset.c"
    return mercury__tree_bitset__succeeded;
#line 4132 "tree_bitset.c"
  }
#line 4134 "tree_bitset.c"
}

#line 4137 "tree_bitset.c"
static void MR_CALL 
mercury__tree_bitset____Compare____tree_bitset_1_0_10001(
#line 4140 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_1,
#line 4142 "tree_bitset.c"
  MR_Box * mercury__tree_bitset__wrapper_arg_2,
#line 4144 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_3,
#line 4146 "tree_bitset.c"
  MR_Box mercury__tree_bitset__wrapper_arg_4)
#line 4148 "tree_bitset.c"
{
#line 4150 "tree_bitset.c"
  {
#line 4152 "tree_bitset.c"
    MR_Word mercury__tree_bitset__conv0_HeadVar__1_1;

#line 4155 "tree_bitset.c"
    {
#line 4157 "tree_bitset.c"
      mercury__tree_bitset____Compare____tree_bitset_1_0(((MR_Word) mercury__tree_bitset__wrapper_arg_1), &mercury__tree_bitset__conv0_HeadVar__1_1, ((MR_Word) mercury__tree_bitset__wrapper_arg_3), ((MR_Word) mercury__tree_bitset__wrapper_arg_4));
    }
#line 4160 "tree_bitset.c"
    *mercury__tree_bitset__wrapper_arg_2 = ((MR_Box) (mercury__tree_bitset__conv0_HeadVar__1_1));
#line 4162 "tree_bitset.c"
  }
#line 4164 "tree_bitset.c"
}

#line 3953 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_55_51_95_95_91_49_44_32_50_44_32_51_44_32_54_93_95_48_7_p_0(
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3953 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3953 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 4211 "tree_bitset.c"
                MR_Box mercury__tree_bitset__Elem0_40;
#line 4213 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));

#line 4216 "tree_bitset.c"
                {
#line 4218 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__Elem0_40);
                }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  {
#line 564 "tree_bitset.m"
                  }
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 972 "tree_bitset.m"
                *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = (mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 + (MR_Integer) 1);
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_72_72 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_72_72);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_55_51_95_95_91_49_44_32_50_44_32_51_44_32_54_93_95_48_7_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3999 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                    {
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                    }
#line 3999 "tree_bitset.m"
                    continue;
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_55_51_95_95_91_49_44_32_50_44_32_51_44_32_54_93_95_48_7_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3995 "tree_bitset.m"
                    mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                    {
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                    }
#line 3995 "tree_bitset.m"
                    continue;
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3953 "tree_bitset.m"
}

#line 3953 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_55_50_95_95_91_49_44_32_50_44_32_51_44_32_52_44_32_53_44_32_55_44_32_49_48_93_95_48_7_p_0(
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_39_39,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3953 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3953 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem0_42;
#line 4412 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));

#line 4415 "tree_bitset.c"
                {
#line 4417 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__Elem0_42);
                }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_42;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 44 "list.opt"
                {
#line 44 "list.opt"
                  MR_Word base;
#line 44 "list.opt"
                  base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 44 "list.opt"
                  *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = base;
#line 44 "list.opt"
                  MR_hl_field(MR_mktag(1), base, 0) = mercury__tree_bitset__Elem_14;
#line 44 "list.opt"
                  MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__STATE_VARIABLE_Acc_0_19));
#line 44 "list.opt"
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_75_75 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_75_75);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_55_50_95_95_91_49_44_32_50_44_32_51_44_32_52_44_32_53_44_32_55_44_32_49_48_93_95_48_7_p_0(mercury__tree_bitset__V_39_39, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3999 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                    {
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                    }
#line 3999 "tree_bitset.m"
                    continue;
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_55_50_95_95_91_49_44_32_50_44_32_51_44_32_52_44_32_53_44_32_55_44_32_49_48_93_95_48_7_p_0(mercury__tree_bitset__V_39_39, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3995 "tree_bitset.m"
                    mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                    {
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                    }
#line 3995 "tree_bitset.m"
                    continue;
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3953 "tree_bitset.m"
}

#line 3837 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_55_49_95_95_91_49_44_32_50_44_32_51_44_32_52_44_32_53_44_32_55_44_32_57_93_95_48_4_p_0(
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_33_33,
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3837 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3837 "tree_bitset.m"
{
#line 3849 "tree_bitset.m"
  while (MR_TRUE)
#line 3849 "tree_bitset.m"
    {
#line 3849 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3849 "tree_bitset.m"
      {
#line 3849 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3849 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3849 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3849 "tree_bitset.m"
        else
#line 3850 "tree_bitset.m"
          {
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13;
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23;

#line 3851 "tree_bitset.m"
            {
#line 3851 "tree_bitset.m"
              mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_55_49_95_95_91_49_44_32_50_44_32_51_44_32_52_44_32_53_44_32_55_44_32_57_93_95_48_4_p_0(mercury__tree_bitset__V_33_33, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3856 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3857 "tree_bitset.m"
              {
#line 3857 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3857 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3858 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3858 "tree_bitset.m"
                {
#line 3858 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_16;
#line 3858 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3858 "tree_bitset.m"
                }
#line 3858 "tree_bitset.m"
                continue;
#line 3857 "tree_bitset.m"
              }
#line 3856 "tree_bitset.m"
            else
#line 3854 "tree_bitset.m"
              {
#line 3854 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3855 "tree_bitset.m"
                {
#line 3855 "tree_bitset.m"
                  mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_55_48_95_95_91_49_44_32_50_44_32_51_44_32_52_44_32_53_44_32_55_44_32_57_93_95_48_4_p_0(mercury__tree_bitset__V_33_33, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3855 "tree_bitset.m"
                  return;
                }
#line 3854 "tree_bitset.m"
              }
#line 3850 "tree_bitset.m"
          }
#line 3849 "tree_bitset.m"
      }
#line 3849 "tree_bitset.m"
      break;
#line 3849 "tree_bitset.m"
    }
#line 3837 "tree_bitset.m"
}

#line 3863 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_55_48_95_95_91_49_44_32_50_44_32_51_44_32_52_44_32_53_44_32_55_44_32_57_93_95_48_4_p_0(
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_32_32,
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3863 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3863 "tree_bitset.m"
{
#line 3875 "tree_bitset.m"
  {
#line 3875 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3875 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3875 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3875 "tree_bitset.m"
    else
#line 3876 "tree_bitset.m"
      {
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__STATE_VARIABLE_Acc_15_15;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_17_17;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_19_19;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_21_21;

#line 3877 "tree_bitset.m"
        {
#line 3877 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_55_48_95_95_91_49_44_32_50_44_32_51_44_32_52_44_32_53_44_32_55_44_32_57_93_95_48_4_p_0(mercury__tree_bitset__V_32_32, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_15_15);
        }
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_55_48_95_95_91_49_44_32_50_44_32_51_44_32_52_44_32_53_44_32_55_44_32_57_93_95_48_4_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 4745 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_19_19  = Bits;
#line 171 "int.opt"
}
#line 3878 "tree_bitset.m"
        {
#line 3878 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_55_50_95_95_91_49_44_32_50_44_32_51_44_32_52_44_32_53_44_32_55_44_32_49_48_93_95_48_7_p_0(mercury__tree_bitset__V_32_32, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 1, mercury__tree_bitset__V_17_17, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_15_15, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3878 "tree_bitset.m"
          return;
        }
#line 3876 "tree_bitset.m"
      }
#line 3875 "tree_bitset.m"
  }
#line 3863 "tree_bitset.m"
}

#line 3700 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_104_111_54_57_95_95_91_49_44_32_50_44_32_51_44_32_53_93_95_48_4_p_0(
#line 3700 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3700 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3700 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3700 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3700 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_104_111_54_57_95_95_91_49_44_32_50_44_32_51_44_32_53_93_95_48_4_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_104_111_54_56_95_95_91_49_44_32_50_44_32_51_44_32_53_93_95_48_4_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3724 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
            {
#line 3724 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
            }
#line 3724 "tree_bitset.m"
            continue;
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3700 "tree_bitset.m"
}

#line 3727 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_104_111_54_56_95_95_91_49_44_32_50_44_32_51_44_32_53_93_95_48_4_p_0(
#line 3727 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3727 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3727 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3727 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3727 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_104_111_54_56_95_95_91_49_44_32_50_44_32_51_44_32_53_93_95_48_4_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 4925 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_55_51_95_95_91_49_44_32_50_44_32_51_44_32_54_93_95_48_7_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3745 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
            {
#line 3745 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
            }
#line 3745 "tree_bitset.m"
            continue;
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3727 "tree_bitset.m"
}

#line 3953 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_54_55_95_95_91_49_44_32_50_44_32_52_44_32_55_93_95_48_7_p_0(
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_34_34,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3953 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3953 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3953 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem0_37;
#line 5015 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 3675 "tree_bitset.m"
                MR_Box MR_CALL (* mercury__tree_bitset__func_1)(MR_Box, MR_Box, MR_Box);

#line 5020 "tree_bitset.c"
                {
#line 5022 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__Elem0_37);
                }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_37;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 3675 "tree_bitset.m"
                mercury__tree_bitset__func_1 = ((MR_Box MR_CALL (*)(MR_Box, MR_Box, MR_Box)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_34_34, (MR_Integer) 1)));
#line 3675 "tree_bitset.m"
                {
#line 3675 "tree_bitset.m"
                  *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__func_1(((MR_Box) mercury__tree_bitset__V_34_34), mercury__tree_bitset__Elem_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19);
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_56_56 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_56_56);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_54_55_95_95_91_49_44_32_50_44_32_52_44_32_55_93_95_48_7_p_0(mercury__tree_bitset__V_34_34, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3999 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                    {
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                    }
#line 3999 "tree_bitset.m"
                    continue;
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_54_55_95_95_91_49_44_32_50_44_32_52_44_32_55_93_95_48_7_p_0(mercury__tree_bitset__V_34_34, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3995 "tree_bitset.m"
                    mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                    {
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                    }
#line 3995 "tree_bitset.m"
                    continue;
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3953 "tree_bitset.m"
}

#line 3953 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_54_54_95_95_91_49_44_32_50_44_32_52_44_32_55_93_95_48_7_p_0(
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_34_34,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3953 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3953 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3953 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem0_37;
#line 5219 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 3811 "tree_bitset.m"
                MR_Box MR_CALL (* mercury__tree_bitset__func_1)(MR_Box, MR_Box, MR_Box);

#line 5224 "tree_bitset.c"
                {
#line 5226 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__Elem0_37);
                }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_37;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 3811 "tree_bitset.m"
                mercury__tree_bitset__func_1 = ((MR_Box MR_CALL (*)(MR_Box, MR_Box, MR_Box)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_34_34, (MR_Integer) 1)));
#line 3811 "tree_bitset.m"
                {
#line 3811 "tree_bitset.m"
                  *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__func_1(((MR_Box) mercury__tree_bitset__V_34_34), mercury__tree_bitset__Elem_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19);
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_56_56 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_56_56);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_54_54_95_95_91_49_44_32_50_44_32_52_44_32_55_93_95_48_7_p_0(mercury__tree_bitset__V_34_34, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3999 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                    {
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                    }
#line 3999 "tree_bitset.m"
                    continue;
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_54_54_95_95_91_49_44_32_50_44_32_52_44_32_55_93_95_48_7_p_0(mercury__tree_bitset__V_34_34, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3995 "tree_bitset.m"
                    mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                    {
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                    }
#line 3995 "tree_bitset.m"
                    continue;
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3953 "tree_bitset.m"
}

#line 3837 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_54_51_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0(
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_28_28,
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3837 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3837 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3837 "tree_bitset.m"
{
#line 3849 "tree_bitset.m"
  while (MR_TRUE)
#line 3849 "tree_bitset.m"
    {
#line 3849 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3849 "tree_bitset.m"
      {
#line 3849 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3849 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3849 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3849 "tree_bitset.m"
        else
#line 3850 "tree_bitset.m"
          {
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13;
#line 3850 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23;

#line 3851 "tree_bitset.m"
            {
#line 3851 "tree_bitset.m"
              mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_54_51_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0(mercury__tree_bitset__V_28_28, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3856 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3857 "tree_bitset.m"
              {
#line 3857 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3857 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3858 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3858 "tree_bitset.m"
                {
#line 3858 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_16;
#line 3858 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3858 "tree_bitset.m"
                }
#line 3858 "tree_bitset.m"
                continue;
#line 3857 "tree_bitset.m"
              }
#line 3856 "tree_bitset.m"
            else
#line 3854 "tree_bitset.m"
              {
#line 3854 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3855 "tree_bitset.m"
                {
#line 3855 "tree_bitset.m"
                  mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_54_50_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0(mercury__tree_bitset__V_28_28, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3855 "tree_bitset.m"
                  return;
                }
#line 3854 "tree_bitset.m"
              }
#line 3850 "tree_bitset.m"
          }
#line 3849 "tree_bitset.m"
      }
#line 3849 "tree_bitset.m"
      break;
#line 3849 "tree_bitset.m"
    }
#line 3837 "tree_bitset.m"
}

#line 3863 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_54_50_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0(
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_27_27,
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3863 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3863 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3863 "tree_bitset.m"
{
#line 3875 "tree_bitset.m"
  {
#line 3875 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3875 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3875 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3875 "tree_bitset.m"
    else
#line 3876 "tree_bitset.m"
      {
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3876 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_15_15;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_17_17;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_19_19;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_21_21;

#line 3877 "tree_bitset.m"
        {
#line 3877 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_54_50_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0(mercury__tree_bitset__V_27_27, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_15_15);
        }
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_54_50_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 5547 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_19_19  = Bits;
#line 171 "int.opt"
}
#line 3878 "tree_bitset.m"
        {
#line 3878 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_54_54_95_95_91_49_44_32_50_44_32_52_44_32_55_93_95_48_7_p_0(mercury__tree_bitset__V_27_27, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 1, mercury__tree_bitset__V_17_17, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_15_15, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3878 "tree_bitset.m"
          return;
        }
#line 3876 "tree_bitset.m"
      }
#line 3875 "tree_bitset.m"
  }
#line 3863 "tree_bitset.m"
}

#line 3700 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_104_111_54_49_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0(
#line 3700 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_28_28,
#line 3700 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3700 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3700 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3700 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3700 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_104_111_54_49_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0(mercury__tree_bitset__V_28_28, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_104_111_54_48_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0(mercury__tree_bitset__V_28_28, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3724 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
            {
#line 3724 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
            }
#line 3724 "tree_bitset.m"
            continue;
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3700 "tree_bitset.m"
}

#line 3727 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_104_111_54_48_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0(
#line 3727 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_27_27,
#line 3727 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3727 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3727 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3727 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3727 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_104_111_54_48_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 5731 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_54_55_95_95_91_49_44_32_50_44_32_52_44_32_55_93_95_48_7_p_0(mercury__tree_bitset__V_27_27, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3745 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
            {
#line 3745 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
            }
#line 3745 "tree_bitset.m"
            continue;
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3727 "tree_bitset.m"
}

#line 3953 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_53_54_95_95_91_49_44_32_51_44_32_54_93_95_48_7_p_0(
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_34_34,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3953 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3953 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem0_37;
#line 5821 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));

#line 5824 "tree_bitset.c"
                {
#line 5826 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__Elem0_37);
                }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_37;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 43 "list.opt"
                {
#line 43 "list.opt"
                  MR_Word base;
#line 43 "list.opt"
                  base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 43 "list.opt"
                  *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = base;
#line 43 "list.opt"
                  MR_hl_field(MR_mktag(1), base, 0) = mercury__tree_bitset__Elem_14;
#line 43 "list.opt"
                  MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__STATE_VARIABLE_Acc_0_19));
#line 43 "list.opt"
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_68_68 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_68_68);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_53_54_95_95_91_49_44_32_51_44_32_54_93_95_48_7_p_0(mercury__tree_bitset__V_34_34, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3999 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                    {
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                    }
#line 3999 "tree_bitset.m"
                    continue;
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_53_54_95_95_91_49_44_32_51_44_32_54_93_95_48_7_p_0(mercury__tree_bitset__V_34_34, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3995 "tree_bitset.m"
                    mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                    {
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                    }
#line 3995 "tree_bitset.m"
                    continue;
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3953 "tree_bitset.m"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_53_53_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded;

#line 29 "require.opt"
    {
#line 29 "require.opt"
      mercury__tree_bitset__succeeded = mercury__tree_bitset__IntroducedFrom__pred__union__1924__1_2_p_0(mercury__tree_bitset__V_9_9, mercury__tree_bitset__V_10_10);
    }
#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_53_52_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_9_9 == mercury__tree_bitset__V_10_10);

#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_53_51_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded;

#line 29 "require.opt"
    {
#line 29 "require.opt"
      mercury__tree_bitset__succeeded = mercury__tree_bitset__IntroducedFrom__pred__difference__2344__1_2_p_0(mercury__tree_bitset__V_9_9, mercury__tree_bitset__V_10_10);
    }
#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_52_55_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_9_9 == mercury__tree_bitset__V_10_10);

#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_52_54_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_9_9 == mercury__tree_bitset__V_10_10);

#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_52_53_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_9_9 == mercury__tree_bitset__V_10_10);

#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_52_52_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_9_9 == mercury__tree_bitset__V_10_10);

#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_52_49_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_10_10 == mercury__tree_bitset__V_9_9);

#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_52_48_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded;

#line 29 "require.opt"
    {
#line 29 "require.opt"
      mercury__tree_bitset__succeeded = mercury__tree_bitset__IntroducedFrom__pred__descend_and_intersect__2187__1_2_p_0(mercury__tree_bitset__V_9_9, mercury__tree_bitset__V_10_10);
    }
#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_57_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded;

#line 29 "require.opt"
    {
#line 29 "require.opt"
      mercury__tree_bitset__succeeded = mercury__tree_bitset__IntroducedFrom__pred__descend_and_intersect__2190__1_2_p_0(mercury__tree_bitset__V_9_9, mercury__tree_bitset__V_10_10);
    }
#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_56_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_9_9 < mercury__tree_bitset__V_10_10);

#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_55_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_10_10 == mercury__tree_bitset__V_9_9);

#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_54_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_9_9 == mercury__tree_bitset__V_10_10);

#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_53_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_9_9 == mercury__tree_bitset__V_10_10);

#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 12 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_110_111_116_95_95_104_111_51_52_95_95_91_51_93_95_48_4_p_in__require_0(
#line 12 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 12 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 12 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 12 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 12 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 12 "require.int"
{
#line 48 "require.opt"
  {
#line 48 "require.opt"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_9_9 == mercury__tree_bitset__V_10_10);

#line 48 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 47 "require.opt"
      {
#line 47 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 47 "require.opt"
        return;
      }
#line 48 "require.opt"
    else
#line 49 "require.opt"
      {
#line 49 "require.opt"
      }
#line 48 "require.opt"
  }
#line 12 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_51_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_9_9 == mercury__tree_bitset__V_10_10);

#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_50_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_10_10 == mercury__tree_bitset__V_9_9);

#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 12 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_110_111_116_95_95_104_111_51_49_95_95_91_51_93_95_48_4_p_in__require_0(
#line 12 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 12 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 12 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 12 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 12 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 12 "require.int"
{
#line 48 "require.opt"
  {
#line 48 "require.opt"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_9_9 == mercury__tree_bitset__V_10_10);

#line 48 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 47 "require.opt"
      {
#line 47 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 47 "require.opt"
        return;
      }
#line 48 "require.opt"
    else
#line 49 "require.opt"
      {
#line 49 "require.opt"
      }
#line 48 "require.opt"
  }
#line 12 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_48_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_10_10 == mercury__tree_bitset__V_9_9);

#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_57_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Word mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Word mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded;
#line 2615 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_71_79 = (MR_Word) &mercury__tree_bitset_scalar_common_1[0];

#line 2615 "tree_bitset.m"
    {
#line 2615 "tree_bitset.m"
      mercury__tree_bitset__succeeded = mercury__builtin__unify_2_p_0(mercury__tree_bitset__TypeInfo_71_79, ((MR_Box) (mercury__tree_bitset__V_9_9)), ((MR_Box) (mercury__tree_bitset__V_10_10)));
    }
#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_55_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_10_10 == mercury__tree_bitset__V_9_9);

#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_54_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Word mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Word mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded;
#line 2704 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_85_93 = (MR_Word) &mercury__tree_bitset_scalar_common_1[0];

#line 2704 "tree_bitset.m"
    {
#line 2704 "tree_bitset.m"
      mercury__tree_bitset__succeeded = mercury__builtin__unify_2_p_0(mercury__tree_bitset__TypeInfo_85_93, ((MR_Box) (mercury__tree_bitset__V_9_9)), ((MR_Box) (mercury__tree_bitset__V_10_10)));
    }
#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_53_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_9_9 == mercury__tree_bitset__V_10_10);

#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_52_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_9_9 == mercury__tree_bitset__V_10_10);

#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_51_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_9_9 == mercury__tree_bitset__V_10_10);

#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_50_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_10_10 == mercury__tree_bitset__V_9_9);

#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_48_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_9_9 == mercury__tree_bitset__V_10_10);

#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_49_57_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_9_9 == mercury__tree_bitset__V_10_10);

#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_49_56_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_9_9 == mercury__tree_bitset__V_10_10);

#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_49_55_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded;

#line 29 "require.opt"
    {
#line 29 "require.opt"
      mercury__tree_bitset__succeeded = mercury__tree_bitset__IntroducedFrom__pred__interiorlist_divide_by_set__3256__1_2_p_0(mercury__tree_bitset__V_9_9, mercury__tree_bitset__V_10_10);
    }
#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_49_54_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded;

#line 29 "require.opt"
    {
#line 29 "require.opt"
      mercury__tree_bitset__succeeded = mercury__tree_bitset__IntroducedFrom__pred__interiorlist_divide_by_set__3294__1_2_p_0(mercury__tree_bitset__V_9_9, mercury__tree_bitset__V_10_10);
    }
#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 8 "require.int"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_49_53_95_95_91_51_93_95_48_4_p_in__require_0(
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_9_9,
#line 8 "require.int"
  MR_Integer mercury__tree_bitset__V_10_10,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Module_6_6,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Proc_7_7,
#line 8 "require.int"
  MR_String mercury__tree_bitset__Message_8_8)
#line 8 "require.int"
{
#line 32 "require.opt"
  {
#line 32 "require.opt"
    MR_bool mercury__tree_bitset__succeeded;

#line 29 "require.opt"
    {
#line 29 "require.opt"
      mercury__tree_bitset__succeeded = mercury__tree_bitset__IntroducedFrom__pred__interiorlist_divide_by_set__3296__1_2_p_0(mercury__tree_bitset__V_9_9, mercury__tree_bitset__V_10_10);
    }
#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0(mercury__tree_bitset__Module_6_6, mercury__tree_bitset__Proc_7_7, mercury__tree_bitset__Message_8_8);
#line 33 "require.opt"
        return;
      }
#line 32 "require.opt"
  }
#line 8 "require.int"
}

#line 51 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_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_105_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_95_95_91_50_93_95_48_0_f_0(
#line 51 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_6_6)
#line 51 "tree_bitset.m"
{
#line 915 "tree_bitset.m"
  {
#line 915 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 915 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__1_1 = (MR_Word) ((MR_Box) (&mercury__tree_bitset_scalar_common_5[0]));
#line 915 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_2_2 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 915 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));

#line 915 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__1_1;
#line 915 "tree_bitset.m"
  }
#line 51 "tree_bitset.m"
}

#line 54 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_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_101_109_112_116_121_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_95_95_91_50_93_95_48_1_p_0(
#line 54 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_5_5,
#line 54 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1)
#line 54 "tree_bitset.m"
{
#line 917 "tree_bitset.m"
  {
#line 917 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 917 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_3_3 = (MR_Word) ((MR_Box) (&mercury__tree_bitset_scalar_common_5[0]));
#line 917 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_6_6 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 917 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_7_7 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastX_18 = (MR_Integer) mercury__tree_bitset__HeadVar__1_1;
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastY_19 = (MR_Integer) mercury__tree_bitset__V_3_3;

#line 499 "tree_bitset.m"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__CastX_18 == mercury__tree_bitset__CastY_19);
#line 499 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 499 "tree_bitset.m"
      mercury__tree_bitset__succeeded = MR_TRUE;
#line 499 "tree_bitset.m"
    else
#line 499 "tree_bitset.m"
      {
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_16_16 = (MR_Word) mercury__tree_bitset__HeadVar__1_1;
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_17_17 = (MR_Word) mercury__tree_bitset__V_3_3;

#line 7373 "tree_bitset.c"
        {
#line 7375 "tree_bitset.c"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset____Unify____node_list_0_0(mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_17_17);
        }
#line 499 "tree_bitset.m"
      }
#line 917 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 917 "tree_bitset.m"
  }
#line 54 "tree_bitset.m"
}

#line 55 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_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_101_109_112_116_121_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_95_91_50_93_95_49_1_p_1(
#line 55 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_4_4,
#line 55 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__1_1)
#line 55 "tree_bitset.m"
{
#line 917 "tree_bitset.m"
  {
#line 917 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 917 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_5_5 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 917 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_6_6 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));

#line 595 "tree_bitset.m"
    *mercury__tree_bitset__HeadVar__1_1 = (MR_Word) ((MR_Box) (&mercury__tree_bitset_scalar_common_5[0]));
#line 917 "tree_bitset.m"
  }
#line 55 "tree_bitset.m"
}

#line 1643 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_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_116_101_109_115_95_116_111_95_105_110_100_101_120_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_95_95_91_49_93_95_48_2_p_0(
#line 1643 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_7,
#line 1643 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1643 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__2_2)
#line 1643 "tree_bitset.m"
{
#line 1647 "tree_bitset.m"
  {
#line 1647 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 1647 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1647 "tree_bitset.m"
      *mercury__tree_bitset__HeadVar__2_2 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1647 "tree_bitset.m"
    else
#line 1648 "tree_bitset.m"
      {
#line 1648 "tree_bitset.m"
        MR_Word mercury__tree_bitset__ElemHead_3 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));
#line 1648 "tree_bitset.m"
        MR_Word mercury__tree_bitset__ElemTail_4 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 1648 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__IndexHead_5;
#line 1648 "tree_bitset.m"
        MR_Word mercury__tree_bitset__IndexTail_6;

#line 1649 "tree_bitset.m"
        {
#line 1649 "tree_bitset.m"
          mercury__tree_bitset__IndexHead_5 = mercury__tree_bitset__enum_to_index_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_7, ((MR_Box) (mercury__tree_bitset__ElemHead_3)));
        }
#line 1650 "tree_bitset.m"
        {
#line 1650 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_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_116_101_109_115_95_116_111_95_105_110_100_101_120_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_95_95_91_49_93_95_48_2_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_7, mercury__tree_bitset__ElemTail_4, &mercury__tree_bitset__IndexTail_6);
        }
#line 1648 "tree_bitset.m"
        {
#line 1648 "tree_bitset.m"
          MR_Word base;
#line 1648 "tree_bitset.m"
          base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1648 "tree_bitset.m"
          *mercury__tree_bitset__HeadVar__2_2 = base;
#line 1648 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__IndexHead_5));
#line 1648 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__IndexTail_6));
#line 1648 "tree_bitset.m"
        }
#line 1648 "tree_bitset.m"
      }
#line 1647 "tree_bitset.m"
  }
#line 1643 "tree_bitset.m"
}

#line 13 "ops.opt"
static MR_Integer MR_CALL 
mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_67_108_97_115_115_77_101_116_104_111_100_95_102_111_114_95_111_112_115_95_95_111_112_95_116_97_98_108_101_95_95_95_95_111_112_115_95_95_109_101_114_99_117_114_121_95_111_112_95_116_97_98_108_101_95_95_97_114_105_116_121_48_95_95_95_95_95_95_111_112_115_95_95_109_97_120_95_112_114_105_111_114_105_116_121_95_49_95_95_91_49_93_95_48_1_f_in__ops_0(void)
#line 13 "ops.opt"
{
#line 38 "ops.opt"
  {
#line 38 "ops.opt"
    MR_bool mercury__tree_bitset__succeeded;

#line 38 "ops.opt"
    return (MR_Integer) 1200;
#line 38 "ops.opt"
  }
#line 13 "ops.opt"
}

#line 51 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__f_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_105_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_0_f_0(
#line 51 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_6_6,
#line 51 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_4)
#line 51 "tree_bitset.m"
{
#line 915 "tree_bitset.m"
  {
#line 915 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 915 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__1_1;

#line 915 "tree_bitset.m"
    {
#line 915 "tree_bitset.m"
      return mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_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_105_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_95_95_91_50_93_95_48_0_f_0(mercury__tree_bitset__V_6_6);
    }
#line 915 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__1_1;
#line 915 "tree_bitset.m"
  }
#line 51 "tree_bitset.m"
}

#line 51 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__f_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_105_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_0_f_0(void)
#line 51 "tree_bitset.m"
{
#line 915 "tree_bitset.m"
  {
#line 915 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 915 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__1_1 = (MR_Word) ((MR_Box) (&mercury__tree_bitset_scalar_common_5[0]));
#line 915 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_2_2 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 915 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));

#line 915 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__1_1;
#line 915 "tree_bitset.m"
  }
#line 51 "tree_bitset.m"
}

#line 54 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_101_109_112_116_121_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_1_p_0(
#line 54 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_5_5,
#line 54 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_2,
#line 54 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1)
#line 54 "tree_bitset.m"
{
#line 917 "tree_bitset.m"
  {
#line 917 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 917 "tree_bitset.m"
    {
#line 917 "tree_bitset.m"
      return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_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_101_109_112_116_121_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_95_95_91_50_93_95_48_1_p_0(mercury__tree_bitset__V_5_5, mercury__tree_bitset__HeadVar__1_1);
    }
#line 917 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 917 "tree_bitset.m"
  }
#line 54 "tree_bitset.m"
}

#line 55 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_109_112_116_121_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_1_p_1(
#line 55 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_4_4,
#line 55 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_2,
#line 55 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__1_1)
#line 55 "tree_bitset.m"
{
#line 917 "tree_bitset.m"
  {
#line 917 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 917 "tree_bitset.m"
    {
#line 917 "tree_bitset.m"
      mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_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_101_109_112_116_121_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_95_91_50_93_95_49_1_p_1(mercury__tree_bitset__V_4_4, mercury__tree_bitset__HeadVar__1_1);
#line 917 "tree_bitset.m"
      return;
    }
#line 917 "tree_bitset.m"
  }
#line 55 "tree_bitset.m"
}

#line 54 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_101_109_112_116_121_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_1_p_0(
#line 54 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1)
#line 54 "tree_bitset.m"
{
#line 917 "tree_bitset.m"
  {
#line 917 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 917 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_3_3 = (MR_Word) ((MR_Box) (&mercury__tree_bitset_scalar_common_5[0]));
#line 917 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_4_4 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 917 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_5_5 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastX_16 = (MR_Integer) mercury__tree_bitset__HeadVar__1_1;
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastY_17 = (MR_Integer) mercury__tree_bitset__V_3_3;

#line 499 "tree_bitset.m"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__CastX_16 == mercury__tree_bitset__CastY_17);
#line 499 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 499 "tree_bitset.m"
      mercury__tree_bitset__succeeded = MR_TRUE;
#line 499 "tree_bitset.m"
    else
#line 499 "tree_bitset.m"
      {
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_14_14 = (MR_Word) mercury__tree_bitset__HeadVar__1_1;
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_15_15 = (MR_Word) mercury__tree_bitset__V_3_3;

#line 7637 "tree_bitset.c"
        {
#line 7639 "tree_bitset.c"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset____Unify____node_list_0_0(mercury__tree_bitset__V_14_14, mercury__tree_bitset__V_15_15);
        }
#line 499 "tree_bitset.m"
      }
#line 917 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 917 "tree_bitset.m"
  }
#line 54 "tree_bitset.m"
}

#line 55 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_109_112_116_121_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_1_p_1(
#line 55 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__1_1)
#line 55 "tree_bitset.m"
{
#line 917 "tree_bitset.m"
  {
#line 917 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 917 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_3_3 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 917 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_4_4 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));

#line 595 "tree_bitset.m"
    *mercury__tree_bitset__HeadVar__1_1 = (MR_Word) ((MR_Box) (&mercury__tree_bitset_scalar_common_5[0]));
#line 917 "tree_bitset.m"
  }
#line 55 "tree_bitset.m"
}

#line 64 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_101_113_117_97_108_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_p_0(
#line 64 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_25_25,
#line 64 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_10,
#line 64 "tree_bitset.m"
  MR_Word mercury__tree_bitset__SetA_3,
#line 64 "tree_bitset.m"
  MR_Word mercury__tree_bitset__SetB_4)
#line 64 "tree_bitset.m"
{
#line 924 "tree_bitset.m"
  {
#line 924 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 137 "private_builtin.opt"
    MR_Word mercury__tree_bitset__TypeInfo_24_24;
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastX_28;
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastY_29;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_113_117_97_108_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_p_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_10 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 7713 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_24_24  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 499 "tree_bitset.m"
    mercury__tree_bitset__CastX_28 = (MR_Integer) mercury__tree_bitset__SetA_3;
#line 499 "tree_bitset.m"
    mercury__tree_bitset__CastY_29 = (MR_Integer) mercury__tree_bitset__SetB_4;
#line 499 "tree_bitset.m"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__CastX_28 == mercury__tree_bitset__CastY_29);
#line 499 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 499 "tree_bitset.m"
      mercury__tree_bitset__succeeded = MR_TRUE;
#line 499 "tree_bitset.m"
    else
#line 499 "tree_bitset.m"
      {
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_26_26 = (MR_Word) mercury__tree_bitset__SetA_3;
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_27_27 = (MR_Word) mercury__tree_bitset__SetB_4;

#line 7739 "tree_bitset.c"
        {
#line 7741 "tree_bitset.c"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset____Unify____node_list_0_0(mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_27_27);
        }
#line 499 "tree_bitset.m"
      }
#line 924 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 924 "tree_bitset.m"
  }
#line 64 "tree_bitset.m"
}

#line 64 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_101_113_117_97_108_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_p_0(
#line 64 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_10,
#line 64 "tree_bitset.m"
  MR_Word mercury__tree_bitset__SetA_3,
#line 64 "tree_bitset.m"
  MR_Word mercury__tree_bitset__SetB_4)
#line 64 "tree_bitset.m"
{
#line 924 "tree_bitset.m"
  {
#line 924 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 137 "private_builtin.opt"
    MR_Word mercury__tree_bitset__TypeInfo_24_24;
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastX_27;
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastY_28;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_113_117_97_108_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_p_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_10 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 7790 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_24_24  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 499 "tree_bitset.m"
    mercury__tree_bitset__CastX_27 = (MR_Integer) mercury__tree_bitset__SetA_3;
#line 499 "tree_bitset.m"
    mercury__tree_bitset__CastY_28 = (MR_Integer) mercury__tree_bitset__SetB_4;
#line 499 "tree_bitset.m"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__CastX_27 == mercury__tree_bitset__CastY_28);
#line 499 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 499 "tree_bitset.m"
      mercury__tree_bitset__succeeded = MR_TRUE;
#line 499 "tree_bitset.m"
    else
#line 499 "tree_bitset.m"
      {
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_25_25 = (MR_Word) mercury__tree_bitset__SetA_3;
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_26_26 = (MR_Word) mercury__tree_bitset__SetB_4;

#line 7816 "tree_bitset.c"
        {
#line 7818 "tree_bitset.c"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset____Unify____node_list_0_0(mercury__tree_bitset__V_25_25, mercury__tree_bitset__V_26_26);
        }
#line 499 "tree_bitset.m"
      }
#line 924 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 924 "tree_bitset.m"
  }
#line 64 "tree_bitset.m"
}

#line 69 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_1_f_0(
#line 69 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_8_8,
#line 69 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_5,
#line 69 "tree_bitset.m"
  MR_Word mercury__tree_bitset__List_3)
#line 69 "tree_bitset.m"
{
#line 1608 "tree_bitset.m"
  {
#line 1608 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1608 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__2_2;
#line 1608 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_7_7;
#line 1608 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_4_4;
#line 1608 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_5_15;
#line 832 "list.opt"
    MR_Word mercury__tree_bitset__conv0_V_4_4;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_1_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_5 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 7871 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_7_7  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 78 "list.opt"
    {
#line 78 "list.opt"
      mercury__list__length_2_3_p_0(mercury__tree_bitset__TypeInfo_7_7, (MR_Word) mercury__tree_bitset__List_3, (MR_Integer) 0, &mercury__tree_bitset__V_5_15);
    }
#line 832 "list.opt"
    {
#line 832 "list.opt"
      mercury__list__merge_sort_2_3_p_0(mercury__tree_bitset__TypeInfo_7_7, mercury__tree_bitset__V_5_15, (MR_Word) mercury__tree_bitset__List_3, &mercury__tree_bitset__conv0_V_4_4);
    }
#line 832 "list.opt"
    mercury__tree_bitset__V_4_4 = (MR_Word) mercury__tree_bitset__conv0_V_4_4;
#line 1608 "tree_bitset.m"
    {
#line 1608 "tree_bitset.m"
      return mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_111_114_116_101_100_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_1_f_0(mercury__tree_bitset__V_8_8, mercury__tree_bitset__TypeClassInfo_for_enum_5, mercury__tree_bitset__V_4_4);
    }
#line 1608 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__2_2;
#line 1608 "tree_bitset.m"
  }
#line 69 "tree_bitset.m"
}

#line 69 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__f_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_105_110_116_93_95_48_95_49_1_f_0(
#line 69 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_5,
#line 69 "tree_bitset.m"
  MR_Word mercury__tree_bitset__List_3)
#line 69 "tree_bitset.m"
{
#line 1608 "tree_bitset.m"
  {
#line 1608 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1608 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__2_2;
#line 1608 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_7_7;
#line 1608 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_4_4;
#line 1608 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_5_14;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_105_110_116_93_95_48_95_49_1_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_5 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 7939 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_7_7  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 78 "list.opt"
    {
#line 78 "list.opt"
      mercury__list__length_2_3_p_0(mercury__tree_bitset__TypeInfo_7_7, mercury__tree_bitset__List_3, (MR_Integer) 0, &mercury__tree_bitset__V_5_14);
    }
#line 832 "list.opt"
    {
#line 832 "list.opt"
      mercury__list__merge_sort_2_3_p_0(mercury__tree_bitset__TypeInfo_7_7, mercury__tree_bitset__V_5_14, mercury__tree_bitset__List_3, &mercury__tree_bitset__V_4_4);
    }
#line 1608 "tree_bitset.m"
    {
#line 1608 "tree_bitset.m"
      return mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_111_114_116_101_100_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_5, mercury__tree_bitset__V_4_4);
    }
#line 1608 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__2_2;
#line 1608 "tree_bitset.m"
  }
#line 69 "tree_bitset.m"
}

#line 70 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_p_0(
#line 70 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_6_6,
#line 70 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_5,
#line 70 "tree_bitset.m"
  MR_Word mercury__tree_bitset__List_3,
#line 70 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__Set_4)
#line 70 "tree_bitset.m"
{
#line 1611 "tree_bitset.m"
  {
#line 1611 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1611 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_7_10;
#line 1611 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_8_8;
#line 1611 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_5_17;
#line 832 "list.opt"
    MR_Word mercury__tree_bitset__conv0_V_8_8;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_p_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_5 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 8009 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_7_10  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 78 "list.opt"
    {
#line 78 "list.opt"
      mercury__list__length_2_3_p_0(mercury__tree_bitset__TypeInfo_7_10, (MR_Word) mercury__tree_bitset__List_3, (MR_Integer) 0, &mercury__tree_bitset__V_5_17);
    }
#line 832 "list.opt"
    {
#line 832 "list.opt"
      mercury__list__merge_sort_2_3_p_0(mercury__tree_bitset__TypeInfo_7_10, mercury__tree_bitset__V_5_17, (MR_Word) mercury__tree_bitset__List_3, &mercury__tree_bitset__conv0_V_8_8);
    }
#line 832 "list.opt"
    mercury__tree_bitset__V_8_8 = (MR_Word) mercury__tree_bitset__conv0_V_8_8;
#line 1608 "tree_bitset.m"
    {
#line 1608 "tree_bitset.m"
      *mercury__tree_bitset__Set_4 = mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_111_114_116_101_100_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_1_f_0(mercury__tree_bitset__V_6_6, mercury__tree_bitset__TypeClassInfo_for_enum_5, mercury__tree_bitset__V_8_8);
    }
#line 1611 "tree_bitset.m"
  }
#line 70 "tree_bitset.m"
}

#line 70 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_105_110_116_93_95_48_95_49_2_p_0(
#line 70 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_5,
#line 70 "tree_bitset.m"
  MR_Word mercury__tree_bitset__List_3,
#line 70 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__Set_4)
#line 70 "tree_bitset.m"
{
#line 1611 "tree_bitset.m"
  {
#line 1611 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1611 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_7_9;
#line 1611 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_7_7;
#line 1611 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_5_16;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_105_110_116_93_95_48_95_49_2_p_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_5 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 8075 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_7_9  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 78 "list.opt"
    {
#line 78 "list.opt"
      mercury__list__length_2_3_p_0(mercury__tree_bitset__TypeInfo_7_9, mercury__tree_bitset__List_3, (MR_Integer) 0, &mercury__tree_bitset__V_5_16);
    }
#line 832 "list.opt"
    {
#line 832 "list.opt"
      mercury__list__merge_sort_2_3_p_0(mercury__tree_bitset__TypeInfo_7_9, mercury__tree_bitset__V_5_16, mercury__tree_bitset__List_3, &mercury__tree_bitset__V_7_7);
    }
#line 1608 "tree_bitset.m"
    {
#line 1608 "tree_bitset.m"
      *mercury__tree_bitset__Set_4 = mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_111_114_116_101_100_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_5, mercury__tree_bitset__V_7_7);
    }
#line 1611 "tree_bitset.m"
  }
#line 70 "tree_bitset.m"
}

#line 75 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_111_114_116_101_100_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_1_f_0(
#line 75 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_32_32,
#line 75 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_25,
#line 75 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Elems_3)
#line 75 "tree_bitset.m"
{
#line 1615 "tree_bitset.m"
  {
#line 1615 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1615 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Set_4;
#line 1615 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Indexes_5;
#line 1615 "tree_bitset.m"
    MR_Word mercury__tree_bitset__LeafNodes_6;

#line 1616 "tree_bitset.m"
    {
#line 1616 "tree_bitset.m"
      mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_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_116_101_109_115_95_116_111_95_105_110_100_101_120_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_95_95_91_49_93_95_48_2_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_25, mercury__tree_bitset__Elems_3, &mercury__tree_bitset__Indexes_5);
    }
#line 1619 "tree_bitset.m"
    {
#line 1619 "tree_bitset.m"
      mercury__tree_bitset__LeafNodes_6 = mercury__tree_bitset__sorted_list_to_leaf_nodes_1_f_0(mercury__tree_bitset__Indexes_5);
    }
#line 1624 "tree_bitset.m"
    if ((mercury__tree_bitset__LeafNodes_6 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1621 "tree_bitset.m"
      {
#line 1621 "tree_bitset.m"
        MR_Word mercury__tree_bitset__List_7 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 1621 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_21_21 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));

#line 595 "tree_bitset.m"
        mercury__tree_bitset__Set_4 = (MR_Word) ((MR_Box) (&mercury__tree_bitset_scalar_common_5[0]));
#line 1621 "tree_bitset.m"
      }
#line 1624 "tree_bitset.m"
    else
#line 1625 "tree_bitset.m"
      {
#line 1625 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafHead_8 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodes_6, (MR_Integer) 0)));
#line 1625 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafTail_9 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodes_6, (MR_Integer) 1)));
#line 1625 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes0_10;
#line 1625 "tree_bitset.m"
        MR_Word mercury__tree_bitset__List_22;

#line 1626 "tree_bitset.m"
        {
#line 1626 "tree_bitset.m"
          mercury__tree_bitset__group_leaf_nodes_3_p_0(mercury__tree_bitset__LeafHead_8, mercury__tree_bitset__LeafTail_9, &mercury__tree_bitset__InteriorNodes0_10);
        }
#line 1630 "tree_bitset.m"
        if ((mercury__tree_bitset__InteriorNodes0_10 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1628 "tree_bitset.m"
          {
#line 1629 "tree_bitset.m"
            {
#line 1629 "tree_bitset.m"
              mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.sorted_list_to_set\'/1", (MR_String) "empty InteriorNodes0");
            }
#line 1628 "tree_bitset.m"
          }
#line 1630 "tree_bitset.m"
        else
#line 1630 "tree_bitset.m"
          {
#line 1630 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_30_30 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorNodes0_10, (MR_Integer) 1)));
#line 1630 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_31_31 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorNodes0_10, (MR_Integer) 0)));

#line 1630 "tree_bitset.m"
            if ((mercury__tree_bitset__V_30_30 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1632 "tree_bitset.m"
              {
#line 1632 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_31_31, (MR_Integer) 0)));
#line 1632 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_31_31, (MR_Integer) 1)));

#line 1632 "tree_bitset.m"
                mercury__tree_bitset__List_22 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_31_31, (MR_Integer) 2)));
#line 1632 "tree_bitset.m"
              }
#line 1630 "tree_bitset.m"
            else
#line 1634 "tree_bitset.m"
              {
#line 1635 "tree_bitset.m"
                {
#line 1635 "tree_bitset.m"
                  mercury__tree_bitset__recursively_group_interior_nodes_3_p_0((MR_Integer) 1, mercury__tree_bitset__InteriorNodes0_10, &mercury__tree_bitset__List_22);
                }
#line 1634 "tree_bitset.m"
              }
#line 1630 "tree_bitset.m"
          }
#line 595 "tree_bitset.m"
        mercury__tree_bitset__Set_4 = (MR_Word) mercury__tree_bitset__List_22;
#line 1625 "tree_bitset.m"
      }
#line 1615 "tree_bitset.m"
    return mercury__tree_bitset__Set_4;
#line 1615 "tree_bitset.m"
  }
#line 75 "tree_bitset.m"
}

#line 75 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_111_114_116_101_100_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_1_f_0(
#line 75 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_25,
#line 75 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Elems_3)
#line 75 "tree_bitset.m"
{
#line 1615 "tree_bitset.m"
  {
#line 1615 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1615 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Set_4;
#line 1615 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Indexes_5;
#line 1615 "tree_bitset.m"
    MR_Word mercury__tree_bitset__LeafNodes_6;

#line 1616 "tree_bitset.m"
    {
#line 1616 "tree_bitset.m"
      mercury__tree_bitset__f_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_116_101_109_115_95_116_111_95_105_110_100_101_120_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_25, mercury__tree_bitset__Elems_3, &mercury__tree_bitset__Indexes_5);
    }
#line 1619 "tree_bitset.m"
    {
#line 1619 "tree_bitset.m"
      mercury__tree_bitset__LeafNodes_6 = mercury__tree_bitset__sorted_list_to_leaf_nodes_1_f_0(mercury__tree_bitset__Indexes_5);
    }
#line 1624 "tree_bitset.m"
    if ((mercury__tree_bitset__LeafNodes_6 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1621 "tree_bitset.m"
      {
#line 1621 "tree_bitset.m"
        MR_Word mercury__tree_bitset__List_7 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 1621 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_21_21 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 137 "private_builtin.opt"
        MR_Word mercury__tree_bitset__TypeInfo_27_27;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_111_114_116_101_100_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_1_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_25 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 8278 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_27_27  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 595 "tree_bitset.m"
        mercury__tree_bitset__Set_4 = (MR_Word) ((MR_Box) (&mercury__tree_bitset_scalar_common_5[0]));
#line 1621 "tree_bitset.m"
      }
#line 1624 "tree_bitset.m"
    else
#line 1625 "tree_bitset.m"
      {
#line 1625 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafHead_8 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodes_6, (MR_Integer) 0)));
#line 1625 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafTail_9 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodes_6, (MR_Integer) 1)));
#line 1625 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes0_10;
#line 1625 "tree_bitset.m"
        MR_Word mercury__tree_bitset__List_22;
#line 137 "private_builtin.opt"
        MR_Word mercury__tree_bitset__TypeInfo_29_29;

#line 1626 "tree_bitset.m"
        {
#line 1626 "tree_bitset.m"
          mercury__tree_bitset__group_leaf_nodes_3_p_0(mercury__tree_bitset__LeafHead_8, mercury__tree_bitset__LeafTail_9, &mercury__tree_bitset__InteriorNodes0_10);
        }
#line 1630 "tree_bitset.m"
        if ((mercury__tree_bitset__InteriorNodes0_10 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1628 "tree_bitset.m"
          {
#line 1629 "tree_bitset.m"
            {
#line 1629 "tree_bitset.m"
              mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.sorted_list_to_set\'/1", (MR_String) "empty InteriorNodes0");
            }
#line 1628 "tree_bitset.m"
          }
#line 1630 "tree_bitset.m"
        else
#line 1630 "tree_bitset.m"
          {
#line 1630 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_30_30 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorNodes0_10, (MR_Integer) 1)));
#line 1630 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_31_31 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorNodes0_10, (MR_Integer) 0)));

#line 1630 "tree_bitset.m"
            if ((mercury__tree_bitset__V_30_30 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1632 "tree_bitset.m"
              {
#line 1632 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_31_31, (MR_Integer) 0)));
#line 1632 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_31_31, (MR_Integer) 1)));

#line 1632 "tree_bitset.m"
                mercury__tree_bitset__List_22 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_31_31, (MR_Integer) 2)));
#line 1632 "tree_bitset.m"
              }
#line 1630 "tree_bitset.m"
            else
#line 1634 "tree_bitset.m"
              {
#line 1635 "tree_bitset.m"
                {
#line 1635 "tree_bitset.m"
                  mercury__tree_bitset__recursively_group_interior_nodes_3_p_0((MR_Integer) 1, mercury__tree_bitset__InteriorNodes0_10, &mercury__tree_bitset__List_22);
                }
#line 1634 "tree_bitset.m"
              }
#line 1630 "tree_bitset.m"
          }
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_111_114_116_101_100_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_1_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_25 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 8370 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_29_29  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 595 "tree_bitset.m"
        mercury__tree_bitset__Set_4 = (MR_Word) mercury__tree_bitset__List_22;
#line 1625 "tree_bitset.m"
      }
#line 1615 "tree_bitset.m"
    return mercury__tree_bitset__Set_4;
#line 1615 "tree_bitset.m"
  }
#line 75 "tree_bitset.m"
}

#line 76 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_111_114_116_101_100_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_p_0(
#line 76 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_6_6,
#line 76 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_5,
#line 76 "tree_bitset.m"
  MR_Word mercury__tree_bitset__List_3,
#line 76 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__Set_4)
#line 76 "tree_bitset.m"
{
#line 1641 "tree_bitset.m"
  {
#line 1641 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 1641 "tree_bitset.m"
    {
#line 1641 "tree_bitset.m"
      *mercury__tree_bitset__Set_4 = mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_111_114_116_101_100_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_1_f_0(mercury__tree_bitset__V_6_6, mercury__tree_bitset__TypeClassInfo_for_enum_5, mercury__tree_bitset__List_3);
    }
#line 1641 "tree_bitset.m"
  }
#line 76 "tree_bitset.m"
}

#line 76 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_111_114_116_101_100_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_p_0(
#line 76 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_5,
#line 76 "tree_bitset.m"
  MR_Word mercury__tree_bitset__List_3,
#line 76 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__Set_4)
#line 76 "tree_bitset.m"
{
#line 1641 "tree_bitset.m"
  {
#line 1641 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 1641 "tree_bitset.m"
    {
#line 1641 "tree_bitset.m"
      *mercury__tree_bitset__Set_4 = mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_111_114_116_101_100_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_5, mercury__tree_bitset__List_3);
    }
#line 1641 "tree_bitset.m"
  }
#line 76 "tree_bitset.m"
}

#line 81 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__f_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_102_114_111_109_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_1_f_0(
#line 81 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_8_8,
#line 81 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_5,
#line 81 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_3)
#line 81 "tree_bitset.m"
{
#line 951 "tree_bitset.m"
  {
#line 951 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 951 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__2_2;
#line 951 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_4_4;
#line 137 "private_builtin.opt"
    MR_Word mercury__tree_bitset__TypeInfo_7_7;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_102_114_111_109_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_1_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_5 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 8479 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_7_7  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 38 "set_ordlist.opt"
    mercury__tree_bitset__V_4_4 = (MR_Word) mercury__tree_bitset__Set_3;
#line 951 "tree_bitset.m"
    {
#line 951 "tree_bitset.m"
      return mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_111_114_116_101_100_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_1_f_0(mercury__tree_bitset__V_8_8, mercury__tree_bitset__TypeClassInfo_for_enum_5, mercury__tree_bitset__V_4_4);
    }
#line 951 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__2_2;
#line 951 "tree_bitset.m"
  }
#line 81 "tree_bitset.m"
}

#line 81 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__f_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_102_114_111_109_95_115_101_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_1_f_0(
#line 81 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_5,
#line 81 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_3)
#line 81 "tree_bitset.m"
{
#line 951 "tree_bitset.m"
  {
#line 951 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 951 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__2_2;
#line 951 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_4_4;
#line 137 "private_builtin.opt"
    MR_Word mercury__tree_bitset__TypeInfo_7_7;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_102_114_111_109_95_115_101_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_1_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_5 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 8535 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_7_7  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 38 "set_ordlist.opt"
    mercury__tree_bitset__V_4_4 = (MR_Word) mercury__tree_bitset__Set_3;
#line 951 "tree_bitset.m"
    {
#line 951 "tree_bitset.m"
      return mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_111_114_116_101_100_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_5, mercury__tree_bitset__V_4_4);
    }
#line 951 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__2_2;
#line 951 "tree_bitset.m"
  }
#line 81 "tree_bitset.m"
}

#line 86 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__f_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_116_111_95_115_111_114_116_101_100_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_1_f_0(
#line 86 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_16_16,
#line 86 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_6,
#line 86 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_3)
#line 86 "tree_bitset.m"
{
#line 944 "tree_bitset.m"
  {
#line 944 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 944 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__2_2;
#line 944 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_5_5 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 944 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_37 = (MR_Word) mercury__tree_bitset__Set_3;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_37)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_40 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_37, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_39_39 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_37, (MR_Integer) 0)));
#line 3822 "tree_bitset.m"
        MR_Word mercury__tree_bitset__conv0_HeadVar__2_2;

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_55_49_95_95_91_49_44_32_50_44_32_51_44_32_52_44_32_53_44_32_55_44_32_57_93_95_48_4_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_6, mercury__tree_bitset__TypeClassInfo_for_enum_6, mercury__tree_bitset__InteriorNodes_40, (MR_Word) mercury__tree_bitset__V_5_5, &mercury__tree_bitset__conv0_HeadVar__2_2);
        }
#line 3822 "tree_bitset.m"
        mercury__tree_bitset__HeadVar__2_2 = (MR_Word) mercury__tree_bitset__conv0_HeadVar__2_2;
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_38 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_37, (MR_Integer) 0)));
#line 3819 "tree_bitset.m"
        MR_Word mercury__tree_bitset__conv1_HeadVar__2_2;

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_55_48_95_95_91_49_44_32_50_44_32_51_44_32_52_44_32_53_44_32_55_44_32_57_93_95_48_4_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_6, mercury__tree_bitset__TypeClassInfo_for_enum_6, mercury__tree_bitset__LeafNodes_38, (MR_Word) mercury__tree_bitset__V_5_5, &mercury__tree_bitset__conv1_HeadVar__2_2);
        }
#line 3819 "tree_bitset.m"
        mercury__tree_bitset__HeadVar__2_2 = (MR_Word) mercury__tree_bitset__conv1_HeadVar__2_2;
#line 3818 "tree_bitset.m"
      }
#line 944 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__2_2;
#line 944 "tree_bitset.m"
  }
#line 86 "tree_bitset.m"
}

#line 86 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__f_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_116_111_95_115_111_114_116_101_100_95_108_105_115_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_1_f_0(
#line 86 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_6,
#line 86 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_3)
#line 86 "tree_bitset.m"
{
#line 944 "tree_bitset.m"
  {
#line 944 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 944 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__2_2;
#line 944 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_5_5 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 944 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_36 = (MR_Word) mercury__tree_bitset__Set_3;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_36)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_39 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_36, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_38_38 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_36, (MR_Integer) 0)));

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_55_49_95_95_91_49_44_32_50_44_32_51_44_32_52_44_32_53_44_32_55_44_32_57_93_95_48_4_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_6, mercury__tree_bitset__TypeClassInfo_for_enum_6, mercury__tree_bitset__InteriorNodes_39, mercury__tree_bitset__V_5_5, &mercury__tree_bitset__HeadVar__2_2);
        }
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_37 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_36, (MR_Integer) 0)));

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_55_48_95_95_91_49_44_32_50_44_32_51_44_32_52_44_32_53_44_32_55_44_32_57_93_95_48_4_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_6, mercury__tree_bitset__TypeClassInfo_for_enum_6, mercury__tree_bitset__LeafNodes_37, mercury__tree_bitset__V_5_5, &mercury__tree_bitset__HeadVar__2_2);
        }
#line 3818 "tree_bitset.m"
      }
#line 944 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__2_2;
#line 944 "tree_bitset.m"
  }
#line 86 "tree_bitset.m"
}

#line 87 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_116_111_95_115_111_114_116_101_100_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_2_p_0(
#line 87 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_6_6,
#line 87 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_5,
#line 87 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_3,
#line 87 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__List_4)
#line 87 "tree_bitset.m"
{
#line 947 "tree_bitset.m"
  {
#line 947 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 947 "tree_bitset.m"
    {
#line 947 "tree_bitset.m"
      *mercury__tree_bitset__List_4 = mercury__tree_bitset__f_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_116_111_95_115_111_114_116_101_100_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_1_f_0(mercury__tree_bitset__V_6_6, mercury__tree_bitset__TypeClassInfo_for_enum_5, mercury__tree_bitset__Set_3);
    }
#line 947 "tree_bitset.m"
  }
#line 87 "tree_bitset.m"
}

#line 87 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_116_111_95_115_111_114_116_101_100_95_108_105_115_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_p_0(
#line 87 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_5,
#line 87 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_3,
#line 87 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__List_4)
#line 87 "tree_bitset.m"
{
#line 947 "tree_bitset.m"
  {
#line 947 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 947 "tree_bitset.m"
    {
#line 947 "tree_bitset.m"
      *mercury__tree_bitset__List_4 = mercury__tree_bitset__f_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_116_111_95_115_111_114_116_101_100_95_108_105_115_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_5, mercury__tree_bitset__Set_3);
    }
#line 947 "tree_bitset.m"
  }
#line 87 "tree_bitset.m"
}

#line 92 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__f_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_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_1_f_0(
#line 92 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_8_8,
#line 92 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_5,
#line 92 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_3)
#line 92 "tree_bitset.m"
{
#line 949 "tree_bitset.m"
  {
#line 949 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 949 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__2_2;
#line 949 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_7_7;
#line 949 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_4_4;
#line 949 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_4_14;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_1_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_5 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 8773 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_7_7  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 949 "tree_bitset.m"
    {
#line 949 "tree_bitset.m"
      mercury__tree_bitset__V_4_4 = mercury__tree_bitset__f_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_116_111_95_115_111_114_116_101_100_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_1_f_0(mercury__tree_bitset__V_8_8, mercury__tree_bitset__TypeClassInfo_for_enum_5, mercury__tree_bitset__Set_3);
    }
#line 58 "list.opt"
    if ((mercury__tree_bitset__V_4_4 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 58 "list.opt"
      mercury__tree_bitset__List_4_14 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 58 "list.opt"
    else
#line 59 "list.opt"
      {
#line 59 "list.opt"
        MR_Word mercury__tree_bitset__X_3_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_4_4, (MR_Integer) 0)));
#line 59 "list.opt"
        MR_Word mercury__tree_bitset__Xs_4_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_4_4, (MR_Integer) 1)));
#line 60 "list.opt"
        MR_Word mercury__tree_bitset__conv0_List_4_14;

#line 60 "list.opt"
        {
#line 60 "list.opt"
          mercury__list__remove_adjacent_dups_2_3_p_0(mercury__tree_bitset__TypeInfo_7_7, (MR_Word) mercury__tree_bitset__Xs_4_16, ((MR_Box) (mercury__tree_bitset__X_3_15)), &mercury__tree_bitset__conv0_List_4_14);
        }
#line 60 "list.opt"
        mercury__tree_bitset__List_4_14 = (MR_Word) mercury__tree_bitset__conv0_List_4_14;
#line 59 "list.opt"
      }
#line 32 "set_ordlist.opt"
    mercury__tree_bitset__HeadVar__2_2 = (MR_Word) mercury__tree_bitset__List_4_14;
#line 949 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__2_2;
#line 949 "tree_bitset.m"
  }
#line 92 "tree_bitset.m"
}

#line 92 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__f_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_116_111_95_115_101_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_1_f_0(
#line 92 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_5,
#line 92 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_3)
#line 92 "tree_bitset.m"
{
#line 949 "tree_bitset.m"
  {
#line 949 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 949 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__2_2;
#line 949 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_7_7;
#line 949 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_4_4;
#line 949 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_4_13;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_116_111_95_115_101_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_1_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_5 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 8855 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_7_7  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 949 "tree_bitset.m"
    {
#line 949 "tree_bitset.m"
      mercury__tree_bitset__V_4_4 = mercury__tree_bitset__f_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_116_111_95_115_111_114_116_101_100_95_108_105_115_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_5, mercury__tree_bitset__Set_3);
    }
#line 58 "list.opt"
    if ((mercury__tree_bitset__V_4_4 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 58 "list.opt"
      mercury__tree_bitset__List_4_13 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 58 "list.opt"
    else
#line 59 "list.opt"
      {
#line 59 "list.opt"
        MR_Integer mercury__tree_bitset__X_3_14 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_4_4, (MR_Integer) 0)));
#line 59 "list.opt"
        MR_Word mercury__tree_bitset__Xs_4_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_4_4, (MR_Integer) 1)));

#line 60 "list.opt"
        {
#line 60 "list.opt"
          mercury__list__remove_adjacent_dups_2_3_p_0(mercury__tree_bitset__TypeInfo_7_7, mercury__tree_bitset__Xs_4_15, ((MR_Box) (mercury__tree_bitset__X_3_14)), &mercury__tree_bitset__List_4_13);
        }
#line 59 "list.opt"
      }
#line 32 "set_ordlist.opt"
    mercury__tree_bitset__HeadVar__2_2 = (MR_Word) mercury__tree_bitset__List_4_13;
#line 949 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__2_2;
#line 949 "tree_bitset.m"
  }
#line 92 "tree_bitset.m"
}

#line 97 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__f_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_109_97_107_101_95_115_105_110_103_108_101_116_111_110_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_1_f_0(
#line 97 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_8_8,
#line 97 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_5,
#line 97 "tree_bitset.m"
  MR_Word mercury__tree_bitset__A_3)
#line 97 "tree_bitset.m"
{
#line 976 "tree_bitset.m"
  {
#line 976 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 976 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__2_2;
#line 976 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_4_4;
#line 976 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_9_9;
#line 976 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_10_10;
#line 137 "private_builtin.opt"
    MR_Word mercury__tree_bitset__TypeInfo_7_7;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_109_97_107_101_95_115_105_110_103_108_101_116_111_110_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_1_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_5 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 8937 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_7_7  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 915 "tree_bitset.m"
    mercury__tree_bitset__V_10_10 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 915 "tree_bitset.m"
    mercury__tree_bitset__V_9_9 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 595 "tree_bitset.m"
    mercury__tree_bitset__V_4_4 = (MR_Word) ((MR_Box) (&mercury__tree_bitset_scalar_common_5[0]));
#line 976 "tree_bitset.m"
    {
#line 976 "tree_bitset.m"
      return mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__f_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_2_f_0(mercury__tree_bitset__V_8_8, mercury__tree_bitset__TypeClassInfo_for_enum_5, mercury__tree_bitset__V_4_4, mercury__tree_bitset__A_3);
    }
#line 976 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__2_2;
#line 976 "tree_bitset.m"
  }
#line 97 "tree_bitset.m"
}

#line 97 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__f_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_109_97_107_101_95_115_105_110_103_108_101_116_111_110_95_115_101_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_1_f_0(
#line 97 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_5,
#line 97 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__A_3)
#line 97 "tree_bitset.m"
{
#line 976 "tree_bitset.m"
  {
#line 976 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 976 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__2_2;
#line 976 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_4_4;
#line 976 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_8_8;
#line 976 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_9_9;
#line 137 "private_builtin.opt"
    MR_Word mercury__tree_bitset__TypeInfo_7_7;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_109_97_107_101_95_115_105_110_103_108_101_116_111_110_95_115_101_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_1_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_5 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 9001 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_7_7  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 915 "tree_bitset.m"
    mercury__tree_bitset__V_9_9 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 915 "tree_bitset.m"
    mercury__tree_bitset__V_8_8 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 595 "tree_bitset.m"
    mercury__tree_bitset__V_4_4 = (MR_Word) ((MR_Box) (&mercury__tree_bitset_scalar_common_5[0]));
#line 976 "tree_bitset.m"
    {
#line 976 "tree_bitset.m"
      return mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__f_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_105_110_116_93_95_48_95_49_2_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_5, mercury__tree_bitset__V_4_4, mercury__tree_bitset__A_3);
    }
#line 976 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__2_2;
#line 976 "tree_bitset.m"
  }
#line 97 "tree_bitset.m"
}

#line 106 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_117_98_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_p_0(
#line 106 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_9_9,
#line 106 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_6,
#line 106 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Subset_3,
#line 106 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_4)
#line 106 "tree_bitset.m"
{
#line 1783 "tree_bitset.m"
  {
#line 1783 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1783 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_7_7;
#line 3663 "tree_bitset.m"
    MR_Word mercury__tree_bitset__conv0_V_7_7;
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastX_14;
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastY_15;

#line 3663 "tree_bitset.m"
    {
#line 3663 "tree_bitset.m"
      mercury__tree_bitset__conv0_V_7_7 = mercury__tree_bitset__intersect_2_f_0(mercury__tree_bitset__TypeInfo_for_T_6, (MR_Word) mercury__tree_bitset__Set_4, (MR_Word) mercury__tree_bitset__Subset_3);
    }
#line 3663 "tree_bitset.m"
    mercury__tree_bitset__V_7_7 = (MR_Word) mercury__tree_bitset__conv0_V_7_7;
#line 499 "tree_bitset.m"
    mercury__tree_bitset__CastX_14 = (MR_Integer) mercury__tree_bitset__Subset_3;
#line 499 "tree_bitset.m"
    mercury__tree_bitset__CastY_15 = (MR_Integer) mercury__tree_bitset__V_7_7;
#line 499 "tree_bitset.m"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__CastX_14 == mercury__tree_bitset__CastY_15);
#line 499 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 499 "tree_bitset.m"
      mercury__tree_bitset__succeeded = MR_TRUE;
#line 499 "tree_bitset.m"
    else
#line 499 "tree_bitset.m"
      {
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_12_12 = (MR_Word) mercury__tree_bitset__Subset_3;
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_13_13 = (MR_Word) mercury__tree_bitset__V_7_7;

#line 9078 "tree_bitset.c"
        {
#line 9080 "tree_bitset.c"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset____Unify____node_list_0_0(mercury__tree_bitset__V_12_12, mercury__tree_bitset__V_13_13);
        }
#line 499 "tree_bitset.m"
      }
#line 1783 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 1783 "tree_bitset.m"
  }
#line 106 "tree_bitset.m"
}

#line 106 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_117_98_115_101_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_p_0(
#line 106 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Subset_3,
#line 106 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_4)
#line 106 "tree_bitset.m"
{
#line 1783 "tree_bitset.m"
  {
#line 1783 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1783 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_for_T_6 = (MR_Word) &mercury__builtin__builtin__type_ctor_info_int_0;
#line 1783 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_7_7;
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastX_12;
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastY_13;

#line 3663 "tree_bitset.m"
    {
#line 3663 "tree_bitset.m"
      mercury__tree_bitset__V_7_7 = mercury__tree_bitset__intersect_2_f_0(mercury__tree_bitset__TypeInfo_for_T_6, mercury__tree_bitset__Set_4, mercury__tree_bitset__Subset_3);
    }
#line 499 "tree_bitset.m"
    mercury__tree_bitset__CastX_12 = (MR_Integer) mercury__tree_bitset__Subset_3;
#line 499 "tree_bitset.m"
    mercury__tree_bitset__CastY_13 = (MR_Integer) mercury__tree_bitset__V_7_7;
#line 499 "tree_bitset.m"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__CastX_12 == mercury__tree_bitset__CastY_13);
#line 499 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 499 "tree_bitset.m"
      mercury__tree_bitset__succeeded = MR_TRUE;
#line 499 "tree_bitset.m"
    else
#line 499 "tree_bitset.m"
      {
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_10_10 = (MR_Word) mercury__tree_bitset__Subset_3;
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_11_11 = (MR_Word) mercury__tree_bitset__V_7_7;

#line 9138 "tree_bitset.c"
        {
#line 9140 "tree_bitset.c"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset____Unify____node_list_0_0(mercury__tree_bitset__V_10_10, mercury__tree_bitset__V_11_11);
        }
#line 499 "tree_bitset.m"
      }
#line 1783 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 1783 "tree_bitset.m"
  }
#line 106 "tree_bitset.m"
}

#line 111 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_117_112_101_114_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_p_0(
#line 111 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_7_7,
#line 111 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_5,
#line 111 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Superset_3,
#line 111 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_4)
#line 111 "tree_bitset.m"
{
#line 1787 "tree_bitset.m"
  {
#line 1787 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 1787 "tree_bitset.m"
    {
#line 1787 "tree_bitset.m"
      return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_117_98_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_p_0(mercury__tree_bitset__V_7_7, mercury__tree_bitset__TypeInfo_for_T_5, mercury__tree_bitset__Set_4, mercury__tree_bitset__Superset_3);
    }
#line 1787 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 1787 "tree_bitset.m"
  }
#line 111 "tree_bitset.m"
}

#line 111 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_117_112_101_114_115_101_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_p_0(
#line 111 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Superset_3,
#line 111 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_4)
#line 111 "tree_bitset.m"
{
#line 1787 "tree_bitset.m"
  {
#line 1787 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 1787 "tree_bitset.m"
    {
#line 1787 "tree_bitset.m"
      return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_117_98_115_101_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_p_0(mercury__tree_bitset__Set_4, mercury__tree_bitset__Superset_3);
    }
#line 1787 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 1787 "tree_bitset.m"
  }
#line 111 "tree_bitset.m"
}

#line 116 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_99_111_110_116_97_105_110_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_p_0(
#line 116 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_11_11,
#line 116 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_10,
#line 116 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_3,
#line 116 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Elem_4)
#line 116 "tree_bitset.m"
{
#line 1791 "tree_bitset.m"
  {
#line 1791 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1791 "tree_bitset.m"
    MR_Word mercury__tree_bitset__NodeList_5 = (MR_Word) mercury__tree_bitset__Set_3;
#line 1791 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__Index_6;

#line 1793 "tree_bitset.m"
    {
#line 1793 "tree_bitset.m"
      mercury__tree_bitset__Index_6 = mercury__tree_bitset__enum_to_index_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_10, ((MR_Box) (mercury__tree_bitset__Elem_4)));
    }
#line 1797 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__NodeList_5)) == (MR_mktag((MR_Integer) 1))))
#line 1798 "tree_bitset.m"
      {
#line 1798 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_5, (MR_Integer) 1)));
#line 1798 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_8_8 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_5, (MR_Integer) 0)));

#line 1799 "tree_bitset.m"
        {
#line 1799 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__interiorlist_contains_2_p_0(mercury__tree_bitset__InteriorNodes_9, mercury__tree_bitset__Index_6);
        }
#line 1798 "tree_bitset.m"
      }
#line 1797 "tree_bitset.m"
    else
#line 1795 "tree_bitset.m"
      {
#line 1795 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_7 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__NodeList_5, (MR_Integer) 0)));

#line 1796 "tree_bitset.m"
        {
#line 1796 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__leaflist_contains_2_p_0(mercury__tree_bitset__LeafNodes_7, mercury__tree_bitset__Index_6);
        }
#line 1795 "tree_bitset.m"
      }
#line 1791 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 1791 "tree_bitset.m"
  }
#line 116 "tree_bitset.m"
}

#line 116 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_99_111_110_116_97_105_110_115_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_p_0(
#line 116 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_10,
#line 116 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_3,
#line 116 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Elem_4)
#line 116 "tree_bitset.m"
{
#line 1791 "tree_bitset.m"
  {
#line 1791 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1791 "tree_bitset.m"
    MR_Word mercury__tree_bitset__NodeList_5 = (MR_Word) mercury__tree_bitset__Set_3;
#line 1791 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__Index_6;

#line 1793 "tree_bitset.m"
    {
#line 1793 "tree_bitset.m"
      mercury__tree_bitset__Index_6 = mercury__tree_bitset__enum_to_index_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_10, ((MR_Box) (mercury__tree_bitset__Elem_4)));
    }
#line 1797 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__NodeList_5)) == (MR_mktag((MR_Integer) 1))))
#line 1798 "tree_bitset.m"
      {
#line 1798 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_5, (MR_Integer) 1)));
#line 1798 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_8_8 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_5, (MR_Integer) 0)));

#line 1799 "tree_bitset.m"
        {
#line 1799 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__interiorlist_contains_2_p_0(mercury__tree_bitset__InteriorNodes_9, mercury__tree_bitset__Index_6);
        }
#line 1798 "tree_bitset.m"
      }
#line 1797 "tree_bitset.m"
    else
#line 1795 "tree_bitset.m"
      {
#line 1795 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_7 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__NodeList_5, (MR_Integer) 0)));

#line 1796 "tree_bitset.m"
        {
#line 1796 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__leaflist_contains_2_p_0(mercury__tree_bitset__LeafNodes_7, mercury__tree_bitset__Index_6);
        }
#line 1795 "tree_bitset.m"
      }
#line 1791 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 1791 "tree_bitset.m"
  }
#line 116 "tree_bitset.m"
}

#line 122 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_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_p_0(
#line 122 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_13_13,
#line 122 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_12,
#line 122 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Elem_1,
#line 122 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_2)
#line 122 "tree_bitset.m"
{
#line 1835 "tree_bitset.m"
  {
#line 1835 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1835 "tree_bitset.m"
    MR_Word mercury__tree_bitset__NodeList_16 = (MR_Word) mercury__tree_bitset__Set_2;
#line 1835 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__Index_17;

#line 1793 "tree_bitset.m"
    {
#line 1793 "tree_bitset.m"
      mercury__tree_bitset__Index_17 = mercury__tree_bitset__enum_to_index_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_12, ((MR_Box) (mercury__tree_bitset__Elem_1)));
    }
#line 1797 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__NodeList_16)) == (MR_mktag((MR_Integer) 1))))
#line 1798 "tree_bitset.m"
      {
#line 1798 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_16, (MR_Integer) 1)));
#line 1798 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_19_19 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_16, (MR_Integer) 0)));

#line 1799 "tree_bitset.m"
        {
#line 1799 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__interiorlist_contains_2_p_0(mercury__tree_bitset__InteriorNodes_20, mercury__tree_bitset__Index_17);
        }
#line 1798 "tree_bitset.m"
      }
#line 1797 "tree_bitset.m"
    else
#line 1795 "tree_bitset.m"
      {
#line 1795 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_18 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__NodeList_16, (MR_Integer) 0)));

#line 1796 "tree_bitset.m"
        {
#line 1796 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__leaflist_contains_2_p_0(mercury__tree_bitset__LeafNodes_18, mercury__tree_bitset__Index_17);
        }
#line 1795 "tree_bitset.m"
      }
#line 1835 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 1835 "tree_bitset.m"
  }
#line 122 "tree_bitset.m"
}

#line 1836 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_2_p_1_1(
#line 1836 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 1836 "tree_bitset.m"
{
#line 1836 "tree_bitset.m"
  {
#line 1836 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 1836 "tree_bitset.m"
    {
#line 565 "tree_bitset.m"
      MR_Word mercury__tree_bitset__Elem0_16;
#line 9414 "tree_bitset.c"
      MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__TypeClassInfo_for_enum_12, (MR_Integer) 0)), (MR_Integer) 6)));
#line 9416 "tree_bitset.c"
      MR_Box mercury__tree_bitset__conv1_Elem0_16;

#line 9419 "tree_bitset.c"
      {
#line 9421 "tree_bitset.c"
        (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__succeeded = mercury__tree_bitset__func_0(((MR_Box) (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__TypeClassInfo_for_enum_12), ((MR_Box) ((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__Index_9)), &mercury__tree_bitset__conv1_Elem0_16);
      }
#line 9424 "tree_bitset.c"
      if ((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__succeeded)
#line 9426 "tree_bitset.c"
        {
#line 9428 "tree_bitset.c"
          mercury__tree_bitset__Elem0_16 = ((MR_Word) mercury__tree_bitset__conv1_Elem0_16);
#line 9430 "tree_bitset.c"
          (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__succeeded = MR_TRUE;
#line 9432 "tree_bitset.c"
        }
#line 565 "tree_bitset.m"
      if ((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__succeeded)
#line 564 "tree_bitset.m"
        *((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__Elem_1) = mercury__tree_bitset__Elem0_16;
#line 565 "tree_bitset.m"
      else
#line 568 "tree_bitset.m"
        {
#line 568 "tree_bitset.m"
          {
#line 568 "tree_bitset.m"
            mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
            return;
          }
#line 568 "tree_bitset.m"
        }
#line 565 "tree_bitset.m"
      {
#line 565 "tree_bitset.m"
        ((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__cont)((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__cont_env_ptr);
#line 565 "tree_bitset.m"
        return;
      }
#line 1836 "tree_bitset.m"
    }
#line 1836 "tree_bitset.m"
  }
#line 1836 "tree_bitset.m"
}

#line 123 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_2_p_1(
#line 123 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_13_13,
#line 123 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_12,
#line 123 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__Elem_1,
#line 123 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_2,
#line 123 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 123 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 123 "tree_bitset.m"
{
#line 123 "tree_bitset.m"
  {
#line 123 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_0_s mercury__tree_bitset__env;

#line 123 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__TypeClassInfo_for_enum_12 = mercury__tree_bitset__TypeClassInfo_for_enum_12;
#line 123 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__Elem_1 = mercury__tree_bitset__Elem_1;
#line 123 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 123 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 1836 "tree_bitset.m"
    {
#line 1836 "tree_bitset.m"
      MR_Word mercury__tree_bitset__NodeList_7 = (MR_Word) mercury__tree_bitset__Set_2;

#line 1841 "tree_bitset.m"
      if (((MR_tag((MR_Word) mercury__tree_bitset__NodeList_7)) == (MR_mktag((MR_Integer) 1))))
#line 1842 "tree_bitset.m"
        {
#line 1842 "tree_bitset.m"
          MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_7, (MR_Integer) 1)));
#line 1842 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_7, (MR_Integer) 0)));

#line 1843 "tree_bitset.m"
          {
#line 1843 "tree_bitset.m"
            mercury__tree_bitset__interiorlist_member_2_p_0(&(mercury__tree_bitset__env).mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__Index_9, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_2_p_1_1, &mercury__tree_bitset__env);
          }
#line 1842 "tree_bitset.m"
        }
#line 1841 "tree_bitset.m"
      else
#line 1839 "tree_bitset.m"
        {
#line 1839 "tree_bitset.m"
          MR_Word mercury__tree_bitset__LeafNodes_8 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__NodeList_7, (MR_Integer) 0)));

#line 1840 "tree_bitset.m"
          {
#line 1840 "tree_bitset.m"
            mercury__tree_bitset__leaflist_member_2_p_0(&(mercury__tree_bitset__env).mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__Index_9, mercury__tree_bitset__LeafNodes_8, mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_2_p_1_1, &mercury__tree_bitset__env);
          }
#line 1839 "tree_bitset.m"
        }
#line 1836 "tree_bitset.m"
    }
#line 123 "tree_bitset.m"
  }
#line 123 "tree_bitset.m"
}

#line 122 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_p_0(
#line 122 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_12,
#line 122 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Elem_1,
#line 122 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_2)
#line 122 "tree_bitset.m"
{
#line 1835 "tree_bitset.m"
  {
#line 1835 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1835 "tree_bitset.m"
    MR_Word mercury__tree_bitset__NodeList_15 = (MR_Word) mercury__tree_bitset__Set_2;
#line 1835 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__Index_16;

#line 1793 "tree_bitset.m"
    {
#line 1793 "tree_bitset.m"
      mercury__tree_bitset__Index_16 = mercury__tree_bitset__enum_to_index_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_12, ((MR_Box) (mercury__tree_bitset__Elem_1)));
    }
#line 1797 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__NodeList_15)) == (MR_mktag((MR_Integer) 1))))
#line 1798 "tree_bitset.m"
      {
#line 1798 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_19 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_15, (MR_Integer) 1)));
#line 1798 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_18_18 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_15, (MR_Integer) 0)));

#line 1799 "tree_bitset.m"
        {
#line 1799 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__interiorlist_contains_2_p_0(mercury__tree_bitset__InteriorNodes_19, mercury__tree_bitset__Index_16);
        }
#line 1798 "tree_bitset.m"
      }
#line 1797 "tree_bitset.m"
    else
#line 1795 "tree_bitset.m"
      {
#line 1795 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_17 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__NodeList_15, (MR_Integer) 0)));

#line 1796 "tree_bitset.m"
        {
#line 1796 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__leaflist_contains_2_p_0(mercury__tree_bitset__LeafNodes_17, mercury__tree_bitset__Index_16);
        }
#line 1795 "tree_bitset.m"
      }
#line 1835 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 1835 "tree_bitset.m"
  }
#line 122 "tree_bitset.m"
}

#line 1836 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_2_p_1_1(
#line 1836 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 1836 "tree_bitset.m"
{
#line 1836 "tree_bitset.m"
  {
#line 1836 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 1836 "tree_bitset.m"
    {
#line 565 "tree_bitset.m"
      MR_Integer mercury__tree_bitset__Elem0_15;
#line 9615 "tree_bitset.c"
      MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__TypeClassInfo_for_enum_12, (MR_Integer) 0)), (MR_Integer) 6)));
#line 9617 "tree_bitset.c"
      MR_Box mercury__tree_bitset__conv1_Elem0_15;

#line 9620 "tree_bitset.c"
      {
#line 9622 "tree_bitset.c"
        (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__succeeded = mercury__tree_bitset__func_0(((MR_Box) (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__TypeClassInfo_for_enum_12), ((MR_Box) ((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__Index_9)), &mercury__tree_bitset__conv1_Elem0_15);
      }
#line 9625 "tree_bitset.c"
      if ((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__succeeded)
#line 9627 "tree_bitset.c"
        {
#line 9629 "tree_bitset.c"
          mercury__tree_bitset__Elem0_15 = ((MR_Integer) mercury__tree_bitset__conv1_Elem0_15);
#line 9631 "tree_bitset.c"
          (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__succeeded = MR_TRUE;
#line 9633 "tree_bitset.c"
        }
#line 565 "tree_bitset.m"
      if ((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__succeeded)
#line 564 "tree_bitset.m"
        *((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__Elem_1) = mercury__tree_bitset__Elem0_15;
#line 565 "tree_bitset.m"
      else
#line 568 "tree_bitset.m"
        {
#line 568 "tree_bitset.m"
          {
#line 568 "tree_bitset.m"
            mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
            return;
          }
#line 568 "tree_bitset.m"
        }
#line 565 "tree_bitset.m"
      {
#line 565 "tree_bitset.m"
        ((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__cont)((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__cont_env_ptr);
#line 565 "tree_bitset.m"
        return;
      }
#line 1836 "tree_bitset.m"
    }
#line 1836 "tree_bitset.m"
  }
#line 1836 "tree_bitset.m"
}

#line 123 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_2_p_1(
#line 123 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_12,
#line 123 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__Elem_1,
#line 123 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_2,
#line 123 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 123 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 123 "tree_bitset.m"
{
#line 123 "tree_bitset.m"
  {
#line 123 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_0_s mercury__tree_bitset__env;

#line 123 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__TypeClassInfo_for_enum_12 = mercury__tree_bitset__TypeClassInfo_for_enum_12;
#line 123 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__Elem_1 = mercury__tree_bitset__Elem_1;
#line 123 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 123 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 1836 "tree_bitset.m"
    {
#line 1836 "tree_bitset.m"
      MR_Word mercury__tree_bitset__NodeList_7 = (MR_Word) mercury__tree_bitset__Set_2;

#line 1841 "tree_bitset.m"
      if (((MR_tag((MR_Word) mercury__tree_bitset__NodeList_7)) == (MR_mktag((MR_Integer) 1))))
#line 1842 "tree_bitset.m"
        {
#line 1842 "tree_bitset.m"
          MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_7, (MR_Integer) 1)));
#line 1842 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_7, (MR_Integer) 0)));

#line 1843 "tree_bitset.m"
          {
#line 1843 "tree_bitset.m"
            mercury__tree_bitset__interiorlist_member_2_p_0(&(mercury__tree_bitset__env).mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__Index_9, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_2_p_1_1, &mercury__tree_bitset__env);
          }
#line 1842 "tree_bitset.m"
        }
#line 1841 "tree_bitset.m"
      else
#line 1839 "tree_bitset.m"
        {
#line 1839 "tree_bitset.m"
          MR_Word mercury__tree_bitset__LeafNodes_8 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__NodeList_7, (MR_Integer) 0)));

#line 1840 "tree_bitset.m"
          {
#line 1840 "tree_bitset.m"
            mercury__tree_bitset__leaflist_member_2_p_0(&(mercury__tree_bitset__env).mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_95_50_95_112_95_49_95_101_110_118_95_48__Index_9, mercury__tree_bitset__LeafNodes_8, mercury__tree_bitset__f_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_109_101_109_98_101_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_2_p_1_1, &mercury__tree_bitset__env);
          }
#line 1839 "tree_bitset.m"
        }
#line 1836 "tree_bitset.m"
    }
#line 123 "tree_bitset.m"
  }
#line 123 "tree_bitset.m"
}

#line 128 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__f_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_2_f_0(
#line 128 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_81_81,
#line 128 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_70,
#line 128 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set0_4,
#line 128 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Elem_5)
#line 128 "tree_bitset.m"
{
#line 987 "tree_bitset.m"
  {
#line 987 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 987 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Set_6;
#line 987 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List0_7 = (MR_Word) mercury__tree_bitset__Set0_4;
#line 987 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__Index_8;

#line 989 "tree_bitset.m"
    {
#line 989 "tree_bitset.m"
      mercury__tree_bitset__Index_8 = mercury__tree_bitset__enum_to_index_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_70, ((MR_Box) (mercury__tree_bitset__Elem_5)));
    }
#line 1016 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List0_7)) == (MR_mktag((MR_Integer) 1))))
#line 1017 "tree_bitset.m"
      {
#line 1017 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__InteriorLevel_20 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List0_7, (MR_Integer) 0)));
#line 1017 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorList0_21 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List0_7, (MR_Integer) 1)));

#line 1023 "tree_bitset.m"
        if ((mercury__tree_bitset__InteriorList0_21 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1019 "tree_bitset.m"
          {
#line 1021 "tree_bitset.m"
            {
#line 1021 "tree_bitset.m"
              mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.insert\'/2", (MR_String) "insert into empty list of interior nodes");
            }
#line 1019 "tree_bitset.m"
          }
#line 1023 "tree_bitset.m"
        else
#line 1024 "tree_bitset.m"
          {
#line 1024 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InteriorNode0_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorList0_21, (MR_Integer) 0)));
#line 1024 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNode0_22, (MR_Integer) 0)));
#line 1024 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentInitOffset_52;
#line 1024 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentLimitOffset_53;
#line 1024 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_23_23 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorList0_21, (MR_Integer) 1)));
#line 1025 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_68_68 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNode0_22, (MR_Integer) 1)));
#line 1025 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_69_69 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNode0_22, (MR_Integer) 2)));

#line 1025 "tree_bitset.m"
            {
#line 1025 "tree_bitset.m"
              mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_24_24, mercury__tree_bitset__InteriorLevel_20, &mercury__tree_bitset__ParentInitOffset_52, &mercury__tree_bitset__ParentLimitOffset_53);
            }
#line 1028 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__ParentInitOffset_52 <= mercury__tree_bitset__Index_8);
#line 1028 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1029 "tree_bitset.m"
              mercury__tree_bitset__succeeded = (mercury__tree_bitset__Index_8 < mercury__tree_bitset__ParentLimitOffset_53);
#line 1035 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1032 "tree_bitset.m"
              {
#line 1032 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_25_25;
#line 1032 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorList_45;
#line 137 "private_builtin.opt"
                MR_Word mercury__tree_bitset__TypeInfo_78_78;

#line 1031 "tree_bitset.m"
                {
#line 1031 "tree_bitset.m"
                  mercury__tree_bitset__interiorlist_insert_4_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__InteriorLevel_20, mercury__tree_bitset__InteriorList0_21, &mercury__tree_bitset__InteriorList_45);
                }
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_70 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 9846 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_78_78  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 1033 "tree_bitset.m"
                {
#line 1033 "tree_bitset.m"
                  mercury__tree_bitset__V_25_25 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1033 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_25_25, 0) = ((MR_Box) (mercury__tree_bitset__InteriorLevel_20));
#line 1033 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_25_25, 1) = ((MR_Box) (mercury__tree_bitset__InteriorList_45));
#line 1033 "tree_bitset.m"
                }
#line 595 "tree_bitset.m"
                mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__V_25_25;
#line 1032 "tree_bitset.m"
              }
#line 1035 "tree_bitset.m"
            else
#line 1038 "tree_bitset.m"
              {
#line 1038 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_26_26 = (mercury__tree_bitset__InteriorLevel_20 + (MR_Integer) 1);
#line 1038 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_28_28;
#line 1038 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_29_29;
#line 1038 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_30_30;
#line 1038 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNode1_46;
#line 1038 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__InteriorLevel1_47;
#line 1038 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorList_48;
#line 137 "private_builtin.opt"
                MR_Word mercury__tree_bitset__TypeInfo_80_80;

#line 1036 "tree_bitset.m"
                {
#line 1036 "tree_bitset.m"
                  mercury__tree_bitset__expand_range_7_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__List0_7, mercury__tree_bitset__V_26_26, mercury__tree_bitset__ParentInitOffset_52, mercury__tree_bitset__ParentLimitOffset_53, &mercury__tree_bitset__InteriorNode1_46, &mercury__tree_bitset__InteriorLevel1_47);
                }
#line 1040 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1039 "tree_bitset.m"
                {
#line 1039 "tree_bitset.m"
                  mercury__tree_bitset__V_28_28 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1039 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_28_28, 0) = ((MR_Box) (mercury__tree_bitset__InteriorNode1_46));
#line 1039 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_28_28, 1) = ((MR_Box) (mercury__tree_bitset__V_29_29));
#line 1039 "tree_bitset.m"
                }
#line 1039 "tree_bitset.m"
                {
#line 1039 "tree_bitset.m"
                  mercury__tree_bitset__interiorlist_insert_4_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__InteriorLevel1_47, mercury__tree_bitset__V_28_28, &mercury__tree_bitset__InteriorList_48);
                }
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_70 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 9925 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_80_80  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 1041 "tree_bitset.m"
                {
#line 1041 "tree_bitset.m"
                  mercury__tree_bitset__V_30_30 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1041 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_30_30, 0) = ((MR_Box) (mercury__tree_bitset__InteriorLevel1_47));
#line 1041 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_30_30, 1) = ((MR_Box) (mercury__tree_bitset__InteriorList_48));
#line 1041 "tree_bitset.m"
                }
#line 595 "tree_bitset.m"
                mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__V_30_30;
#line 1038 "tree_bitset.m"
              }
#line 1024 "tree_bitset.m"
          }
#line 1017 "tree_bitset.m"
      }
#line 1016 "tree_bitset.m"
    else
#line 991 "tree_bitset.m"
      {
#line 991 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafList0_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List0_7, (MR_Integer) 0)));

#line 996 "tree_bitset.m"
        if ((mercury__tree_bitset__LeafList0_9 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 993 "tree_bitset.m"
          {
#line 993 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Offset_10;
#line 993 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Bits_11;
#line 993 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_41_41;
#line 993 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_42_42;
#line 993 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_43_43;
#line 993 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_44_44;
#line 993 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__BitToSet_99;
#line 993 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Trunc_5_103;
#line 993 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Floor0_6_104;
#line 993 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_109_109;
#line 9981 "tree_bitset.c"
            MR_Word mercury__tree_bitset__TypeInfo_72_72;

#line 282 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_2_f_0

	MR_Integer Int;
	MR_Integer Div;

	Int =  mercury__tree_bitset__Index_8 ;
		{
#line 282 "int.opt"

    Div = Int / ML_BITS_PER_INT;

#line 9997 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Trunc_5_103  = Div;
#line 282 "int.opt"
}
#line 285 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_2_f_0

	MR_Integer Int;
	MR_Integer Result;

	Int =  mercury__tree_bitset__Trunc_5_103 ;
		{
#line 285 "int.opt"

    Result = Int * ML_BITS_PER_INT;

#line 10017 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Floor0_6_104  = Result;
#line 285 "int.opt"
}
#line 275 "int.opt"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Floor0_6_104 > mercury__tree_bitset__Index_8);
#line 279 "int.opt"
            if (mercury__tree_bitset__succeeded)
#line 277 "int.opt"
              {
#line 277 "int.opt"
                MR_Integer mercury__tree_bitset__V_7_105;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_2_f_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 10044 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_7_105  = Bits;
#line 171 "int.opt"
}
#line 277 "int.opt"
                mercury__tree_bitset__Offset_10 = (mercury__tree_bitset__Floor0_6_104 - mercury__tree_bitset__V_7_105);
#line 277 "int.opt"
              }
#line 279 "int.opt"
            else
#line 280 "int.opt"
              mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Floor0_6_104;
#line 3621 "tree_bitset.m"
            mercury__tree_bitset__BitToSet_99 = (mercury__tree_bitset__Index_8 - mercury__tree_bitset__Offset_10);
#line 3632 "tree_bitset.m"
            mercury__tree_bitset__V_109_109 = ((MR_Integer) 1 << mercury__tree_bitset__BitToSet_99);
#line 3632 "tree_bitset.m"
            mercury__tree_bitset__Bits_11 = ((MR_Integer) 0 | mercury__tree_bitset__V_109_109);
#line 10065 "tree_bitset.c"
            {
#line 10067 "tree_bitset.c"
              mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_70, (MR_Integer) 1, &mercury__tree_bitset__TypeInfo_72_72);
            }
#line 547 "tree_bitset.m"
            {
#line 547 "tree_bitset.m"
              mercury__tree_bitset__V_43_43 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_43_43, 0) = ((MR_Box) (mercury__tree_bitset__Offset_10));
#line 547 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_43_43, 1) = ((MR_Box) (mercury__tree_bitset__Bits_11));
#line 547 "tree_bitset.m"
            }
#line 995 "tree_bitset.m"
            mercury__tree_bitset__V_44_44 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 995 "tree_bitset.m"
            {
#line 995 "tree_bitset.m"
              mercury__tree_bitset__V_42_42 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 995 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_42_42, 0) = ((MR_Box) (mercury__tree_bitset__V_43_43));
#line 995 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_42_42, 1) = ((MR_Box) (mercury__tree_bitset__V_44_44));
#line 995 "tree_bitset.m"
            }
#line 995 "tree_bitset.m"
            {
#line 995 "tree_bitset.m"
              mercury__tree_bitset__V_41_41 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 995 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_41_41, 0) = ((MR_Box) (mercury__tree_bitset__V_42_42));
#line 995 "tree_bitset.m"
            }
#line 595 "tree_bitset.m"
            mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__V_41_41;
#line 993 "tree_bitset.m"
          }
#line 996 "tree_bitset.m"
        else
#line 997 "tree_bitset.m"
          {
#line 997 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Leaf0_12 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafList0_9, (MR_Integer) 0)));
#line 997 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentInitOffset_14;
#line 997 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentLimitOffset_15;
#line 997 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Leaf0_12, (MR_Integer) 0)));
#line 997 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_13_13 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafList0_9, (MR_Integer) 1)));
#line 998 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_67_67 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Leaf0_12, (MR_Integer) 1)));

#line 998 "tree_bitset.m"
            {
#line 998 "tree_bitset.m"
              mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_34_34, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffset_14, &mercury__tree_bitset__ParentLimitOffset_15);
            }
#line 1001 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__ParentInitOffset_14 <= mercury__tree_bitset__Index_8);
#line 1001 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1002 "tree_bitset.m"
              mercury__tree_bitset__succeeded = (mercury__tree_bitset__Index_8 < mercury__tree_bitset__ParentLimitOffset_15);
#line 1006 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1004 "tree_bitset.m"
              {
#line 1004 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafList_16;
#line 1004 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_36_36;
#line 10140 "tree_bitset.c"
                MR_Word mercury__tree_bitset__TypeInfo_74_74;

#line 1004 "tree_bitset.m"
                {
#line 1004 "tree_bitset.m"
                  mercury__tree_bitset__leaflist_insert_3_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__LeafList0_9, &mercury__tree_bitset__LeafList_16);
                }
#line 10148 "tree_bitset.c"
                {
#line 10150 "tree_bitset.c"
                  mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_70, (MR_Integer) 1, &mercury__tree_bitset__TypeInfo_74_74);
                }
#line 1005 "tree_bitset.m"
                {
#line 1005 "tree_bitset.m"
                  mercury__tree_bitset__V_36_36 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 1005 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_36_36, 0) = ((MR_Box) (mercury__tree_bitset__LeafList_16));
#line 1005 "tree_bitset.m"
                }
#line 595 "tree_bitset.m"
                mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__V_36_36;
#line 1004 "tree_bitset.m"
              }
#line 1006 "tree_bitset.m"
            else
#line 1009 "tree_bitset.m"
              {
#line 1009 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNode1_17;
#line 1009 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__InteriorLevel1_18;
#line 1009 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorList_19;
#line 1009 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_38_38;
#line 1009 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_39_39;
#line 1009 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_40_40;
#line 10181 "tree_bitset.c"
                MR_Word mercury__tree_bitset__TypeInfo_76_76;

#line 1007 "tree_bitset.m"
                {
#line 1007 "tree_bitset.m"
                  mercury__tree_bitset__expand_range_7_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__List0_7, (MR_Integer) 1, mercury__tree_bitset__ParentInitOffset_14, mercury__tree_bitset__ParentLimitOffset_15, &mercury__tree_bitset__InteriorNode1_17, &mercury__tree_bitset__InteriorLevel1_18);
                }
#line 1011 "tree_bitset.m"
                mercury__tree_bitset__V_39_39 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1010 "tree_bitset.m"
                {
#line 1010 "tree_bitset.m"
                  mercury__tree_bitset__V_38_38 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1010 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_38_38, 0) = ((MR_Box) (mercury__tree_bitset__InteriorNode1_17));
#line 1010 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_38_38, 1) = ((MR_Box) (mercury__tree_bitset__V_39_39));
#line 1010 "tree_bitset.m"
                }
#line 1010 "tree_bitset.m"
                {
#line 1010 "tree_bitset.m"
                  mercury__tree_bitset__interiorlist_insert_4_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__InteriorLevel1_18, mercury__tree_bitset__V_38_38, &mercury__tree_bitset__InteriorList_19);
                }
#line 10206 "tree_bitset.c"
                {
#line 10208 "tree_bitset.c"
                  mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_70, (MR_Integer) 1, &mercury__tree_bitset__TypeInfo_76_76);
                }
#line 1012 "tree_bitset.m"
                {
#line 1012 "tree_bitset.m"
                  mercury__tree_bitset__V_40_40 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1012 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_40_40, 0) = ((MR_Box) (mercury__tree_bitset__InteriorLevel1_18));
#line 1012 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_40_40, 1) = ((MR_Box) (mercury__tree_bitset__InteriorList_19));
#line 1012 "tree_bitset.m"
                }
#line 595 "tree_bitset.m"
                mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__V_40_40;
#line 1009 "tree_bitset.m"
              }
#line 997 "tree_bitset.m"
          }
#line 991 "tree_bitset.m"
      }
#line 987 "tree_bitset.m"
    return mercury__tree_bitset__Set_6;
#line 987 "tree_bitset.m"
  }
#line 128 "tree_bitset.m"
}

#line 128 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__f_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_105_110_116_93_95_48_95_49_2_f_0(
#line 128 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_70,
#line 128 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set0_4,
#line 128 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Elem_5)
#line 128 "tree_bitset.m"
{
#line 987 "tree_bitset.m"
  {
#line 987 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 987 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Set_6;
#line 987 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List0_7 = (MR_Word) mercury__tree_bitset__Set0_4;
#line 987 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__Index_8;

#line 989 "tree_bitset.m"
    {
#line 989 "tree_bitset.m"
      mercury__tree_bitset__Index_8 = mercury__tree_bitset__enum_to_index_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_70, ((MR_Box) (mercury__tree_bitset__Elem_5)));
    }
#line 1016 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List0_7)) == (MR_mktag((MR_Integer) 1))))
#line 1017 "tree_bitset.m"
      {
#line 1017 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__InteriorLevel_20 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List0_7, (MR_Integer) 0)));
#line 1017 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorList0_21 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List0_7, (MR_Integer) 1)));

#line 1023 "tree_bitset.m"
        if ((mercury__tree_bitset__InteriorList0_21 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1019 "tree_bitset.m"
          {
#line 1021 "tree_bitset.m"
            {
#line 1021 "tree_bitset.m"
              mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.insert\'/2", (MR_String) "insert into empty list of interior nodes");
            }
#line 1019 "tree_bitset.m"
          }
#line 1023 "tree_bitset.m"
        else
#line 1024 "tree_bitset.m"
          {
#line 1024 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InteriorNode0_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorList0_21, (MR_Integer) 0)));
#line 1024 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNode0_22, (MR_Integer) 0)));
#line 1024 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentInitOffset_52;
#line 1024 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentLimitOffset_53;
#line 1024 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_23_23 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorList0_21, (MR_Integer) 1)));
#line 1025 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_68_68 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNode0_22, (MR_Integer) 1)));
#line 1025 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_69_69 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNode0_22, (MR_Integer) 2)));

#line 1025 "tree_bitset.m"
            {
#line 1025 "tree_bitset.m"
              mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_24_24, mercury__tree_bitset__InteriorLevel_20, &mercury__tree_bitset__ParentInitOffset_52, &mercury__tree_bitset__ParentLimitOffset_53);
            }
#line 1028 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__ParentInitOffset_52 <= mercury__tree_bitset__Index_8);
#line 1028 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1029 "tree_bitset.m"
              mercury__tree_bitset__succeeded = (mercury__tree_bitset__Index_8 < mercury__tree_bitset__ParentLimitOffset_53);
#line 1035 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1032 "tree_bitset.m"
              {
#line 1032 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_25_25;
#line 1032 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorList_45;
#line 137 "private_builtin.opt"
                MR_Word mercury__tree_bitset__TypeInfo_78_78;

#line 1031 "tree_bitset.m"
                {
#line 1031 "tree_bitset.m"
                  mercury__tree_bitset__interiorlist_insert_4_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__InteriorLevel_20, mercury__tree_bitset__InteriorList0_21, &mercury__tree_bitset__InteriorList_45);
                }
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_105_110_116_93_95_48_95_49_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_70 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 10344 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_78_78  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 1033 "tree_bitset.m"
                {
#line 1033 "tree_bitset.m"
                  mercury__tree_bitset__V_25_25 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1033 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_25_25, 0) = ((MR_Box) (mercury__tree_bitset__InteriorLevel_20));
#line 1033 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_25_25, 1) = ((MR_Box) (mercury__tree_bitset__InteriorList_45));
#line 1033 "tree_bitset.m"
                }
#line 595 "tree_bitset.m"
                mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__V_25_25;
#line 1032 "tree_bitset.m"
              }
#line 1035 "tree_bitset.m"
            else
#line 1038 "tree_bitset.m"
              {
#line 1038 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_26_26 = (mercury__tree_bitset__InteriorLevel_20 + (MR_Integer) 1);
#line 1038 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_28_28;
#line 1038 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_29_29;
#line 1038 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_30_30;
#line 1038 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNode1_46;
#line 1038 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__InteriorLevel1_47;
#line 1038 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorList_48;
#line 137 "private_builtin.opt"
                MR_Word mercury__tree_bitset__TypeInfo_80_80;

#line 1036 "tree_bitset.m"
                {
#line 1036 "tree_bitset.m"
                  mercury__tree_bitset__expand_range_7_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__List0_7, mercury__tree_bitset__V_26_26, mercury__tree_bitset__ParentInitOffset_52, mercury__tree_bitset__ParentLimitOffset_53, &mercury__tree_bitset__InteriorNode1_46, &mercury__tree_bitset__InteriorLevel1_47);
                }
#line 1040 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1039 "tree_bitset.m"
                {
#line 1039 "tree_bitset.m"
                  mercury__tree_bitset__V_28_28 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1039 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_28_28, 0) = ((MR_Box) (mercury__tree_bitset__InteriorNode1_46));
#line 1039 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_28_28, 1) = ((MR_Box) (mercury__tree_bitset__V_29_29));
#line 1039 "tree_bitset.m"
                }
#line 1039 "tree_bitset.m"
                {
#line 1039 "tree_bitset.m"
                  mercury__tree_bitset__interiorlist_insert_4_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__InteriorLevel1_47, mercury__tree_bitset__V_28_28, &mercury__tree_bitset__InteriorList_48);
                }
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_105_110_116_93_95_48_95_49_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_70 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 10423 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_80_80  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 1041 "tree_bitset.m"
                {
#line 1041 "tree_bitset.m"
                  mercury__tree_bitset__V_30_30 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1041 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_30_30, 0) = ((MR_Box) (mercury__tree_bitset__InteriorLevel1_47));
#line 1041 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_30_30, 1) = ((MR_Box) (mercury__tree_bitset__InteriorList_48));
#line 1041 "tree_bitset.m"
                }
#line 595 "tree_bitset.m"
                mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__V_30_30;
#line 1038 "tree_bitset.m"
              }
#line 1024 "tree_bitset.m"
          }
#line 1017 "tree_bitset.m"
      }
#line 1016 "tree_bitset.m"
    else
#line 991 "tree_bitset.m"
      {
#line 991 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafList0_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List0_7, (MR_Integer) 0)));

#line 996 "tree_bitset.m"
        if ((mercury__tree_bitset__LeafList0_9 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 993 "tree_bitset.m"
          {
#line 993 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Offset_10;
#line 993 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Bits_11;
#line 993 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_41_41;
#line 993 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_42_42;
#line 993 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_43_43;
#line 993 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_44_44;
#line 993 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__BitToSet_98;
#line 993 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Trunc_5_102;
#line 993 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Floor0_6_103;
#line 993 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_108_108;
#line 10479 "tree_bitset.c"
            MR_Word mercury__tree_bitset__TypeInfo_72_72;

#line 282 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_105_110_116_93_95_48_95_49_2_f_0

	MR_Integer Int;
	MR_Integer Div;

	Int =  mercury__tree_bitset__Index_8 ;
		{
#line 282 "int.opt"

    Div = Int / ML_BITS_PER_INT;

#line 10495 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Trunc_5_102  = Div;
#line 282 "int.opt"
}
#line 285 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_105_110_116_93_95_48_95_49_2_f_0

	MR_Integer Int;
	MR_Integer Result;

	Int =  mercury__tree_bitset__Trunc_5_102 ;
		{
#line 285 "int.opt"

    Result = Int * ML_BITS_PER_INT;

#line 10515 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Floor0_6_103  = Result;
#line 285 "int.opt"
}
#line 275 "int.opt"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Floor0_6_103 > mercury__tree_bitset__Index_8);
#line 279 "int.opt"
            if (mercury__tree_bitset__succeeded)
#line 277 "int.opt"
              {
#line 277 "int.opt"
                MR_Integer mercury__tree_bitset__V_7_104;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_105_110_116_93_95_48_95_49_2_f_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 10542 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_7_104  = Bits;
#line 171 "int.opt"
}
#line 277 "int.opt"
                mercury__tree_bitset__Offset_10 = (mercury__tree_bitset__Floor0_6_103 - mercury__tree_bitset__V_7_104);
#line 277 "int.opt"
              }
#line 279 "int.opt"
            else
#line 280 "int.opt"
              mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Floor0_6_103;
#line 3621 "tree_bitset.m"
            mercury__tree_bitset__BitToSet_98 = (mercury__tree_bitset__Index_8 - mercury__tree_bitset__Offset_10);
#line 3632 "tree_bitset.m"
            mercury__tree_bitset__V_108_108 = ((MR_Integer) 1 << mercury__tree_bitset__BitToSet_98);
#line 3632 "tree_bitset.m"
            mercury__tree_bitset__Bits_11 = ((MR_Integer) 0 | mercury__tree_bitset__V_108_108);
#line 10563 "tree_bitset.c"
            {
#line 10565 "tree_bitset.c"
              mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_70, (MR_Integer) 1, &mercury__tree_bitset__TypeInfo_72_72);
            }
#line 547 "tree_bitset.m"
            {
#line 547 "tree_bitset.m"
              mercury__tree_bitset__V_43_43 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_43_43, 0) = ((MR_Box) (mercury__tree_bitset__Offset_10));
#line 547 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_43_43, 1) = ((MR_Box) (mercury__tree_bitset__Bits_11));
#line 547 "tree_bitset.m"
            }
#line 995 "tree_bitset.m"
            mercury__tree_bitset__V_44_44 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 995 "tree_bitset.m"
            {
#line 995 "tree_bitset.m"
              mercury__tree_bitset__V_42_42 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 995 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_42_42, 0) = ((MR_Box) (mercury__tree_bitset__V_43_43));
#line 995 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_42_42, 1) = ((MR_Box) (mercury__tree_bitset__V_44_44));
#line 995 "tree_bitset.m"
            }
#line 995 "tree_bitset.m"
            {
#line 995 "tree_bitset.m"
              mercury__tree_bitset__V_41_41 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 995 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_41_41, 0) = ((MR_Box) (mercury__tree_bitset__V_42_42));
#line 995 "tree_bitset.m"
            }
#line 595 "tree_bitset.m"
            mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__V_41_41;
#line 993 "tree_bitset.m"
          }
#line 996 "tree_bitset.m"
        else
#line 997 "tree_bitset.m"
          {
#line 997 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Leaf0_12 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafList0_9, (MR_Integer) 0)));
#line 997 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentInitOffset_14;
#line 997 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentLimitOffset_15;
#line 997 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Leaf0_12, (MR_Integer) 0)));
#line 997 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_13_13 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafList0_9, (MR_Integer) 1)));
#line 998 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_67_67 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Leaf0_12, (MR_Integer) 1)));

#line 998 "tree_bitset.m"
            {
#line 998 "tree_bitset.m"
              mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_34_34, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffset_14, &mercury__tree_bitset__ParentLimitOffset_15);
            }
#line 1001 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__ParentInitOffset_14 <= mercury__tree_bitset__Index_8);
#line 1001 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1002 "tree_bitset.m"
              mercury__tree_bitset__succeeded = (mercury__tree_bitset__Index_8 < mercury__tree_bitset__ParentLimitOffset_15);
#line 1006 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1004 "tree_bitset.m"
              {
#line 1004 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafList_16;
#line 1004 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_36_36;
#line 10638 "tree_bitset.c"
                MR_Word mercury__tree_bitset__TypeInfo_74_74;

#line 1004 "tree_bitset.m"
                {
#line 1004 "tree_bitset.m"
                  mercury__tree_bitset__leaflist_insert_3_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__LeafList0_9, &mercury__tree_bitset__LeafList_16);
                }
#line 10646 "tree_bitset.c"
                {
#line 10648 "tree_bitset.c"
                  mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_70, (MR_Integer) 1, &mercury__tree_bitset__TypeInfo_74_74);
                }
#line 1005 "tree_bitset.m"
                {
#line 1005 "tree_bitset.m"
                  mercury__tree_bitset__V_36_36 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 1005 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_36_36, 0) = ((MR_Box) (mercury__tree_bitset__LeafList_16));
#line 1005 "tree_bitset.m"
                }
#line 595 "tree_bitset.m"
                mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__V_36_36;
#line 1004 "tree_bitset.m"
              }
#line 1006 "tree_bitset.m"
            else
#line 1009 "tree_bitset.m"
              {
#line 1009 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNode1_17;
#line 1009 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__InteriorLevel1_18;
#line 1009 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorList_19;
#line 1009 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_38_38;
#line 1009 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_39_39;
#line 1009 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_40_40;
#line 10679 "tree_bitset.c"
                MR_Word mercury__tree_bitset__TypeInfo_76_76;

#line 1007 "tree_bitset.m"
                {
#line 1007 "tree_bitset.m"
                  mercury__tree_bitset__expand_range_7_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__List0_7, (MR_Integer) 1, mercury__tree_bitset__ParentInitOffset_14, mercury__tree_bitset__ParentLimitOffset_15, &mercury__tree_bitset__InteriorNode1_17, &mercury__tree_bitset__InteriorLevel1_18);
                }
#line 1011 "tree_bitset.m"
                mercury__tree_bitset__V_39_39 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1010 "tree_bitset.m"
                {
#line 1010 "tree_bitset.m"
                  mercury__tree_bitset__V_38_38 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1010 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_38_38, 0) = ((MR_Box) (mercury__tree_bitset__InteriorNode1_17));
#line 1010 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_38_38, 1) = ((MR_Box) (mercury__tree_bitset__V_39_39));
#line 1010 "tree_bitset.m"
                }
#line 1010 "tree_bitset.m"
                {
#line 1010 "tree_bitset.m"
                  mercury__tree_bitset__interiorlist_insert_4_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__InteriorLevel1_18, mercury__tree_bitset__V_38_38, &mercury__tree_bitset__InteriorList_19);
                }
#line 10704 "tree_bitset.c"
                {
#line 10706 "tree_bitset.c"
                  mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_70, (MR_Integer) 1, &mercury__tree_bitset__TypeInfo_76_76);
                }
#line 1012 "tree_bitset.m"
                {
#line 1012 "tree_bitset.m"
                  mercury__tree_bitset__V_40_40 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1012 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_40_40, 0) = ((MR_Box) (mercury__tree_bitset__InteriorLevel1_18));
#line 1012 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_40_40, 1) = ((MR_Box) (mercury__tree_bitset__InteriorList_19));
#line 1012 "tree_bitset.m"
                }
#line 595 "tree_bitset.m"
                mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__V_40_40;
#line 1009 "tree_bitset.m"
              }
#line 997 "tree_bitset.m"
          }
#line 991 "tree_bitset.m"
      }
#line 987 "tree_bitset.m"
    return mercury__tree_bitset__Set_6;
#line 987 "tree_bitset.m"
  }
#line 128 "tree_bitset.m"
}

#line 129 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_p_0(
#line 129 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_10_10,
#line 129 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_9,
#line 129 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Elem_4,
#line 129 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_Set_0_6,
#line 129 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_Set_7)
#line 129 "tree_bitset.m"
{
#line 3650 "tree_bitset.m"
  {
#line 3650 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3650 "tree_bitset.m"
    {
#line 3650 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Set_7 = mercury__tree_bitset__f_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_2_f_0(mercury__tree_bitset__V_10_10, mercury__tree_bitset__TypeClassInfo_for_enum_9, mercury__tree_bitset__STATE_VARIABLE_Set_0_6, mercury__tree_bitset__Elem_4);
    }
#line 3650 "tree_bitset.m"
  }
#line 129 "tree_bitset.m"
}

#line 129 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_105_110_116_93_95_48_95_49_3_p_0(
#line 129 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_9,
#line 129 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Elem_4,
#line 129 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_Set_0_6,
#line 129 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_Set_7)
#line 129 "tree_bitset.m"
{
#line 3650 "tree_bitset.m"
  {
#line 3650 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3650 "tree_bitset.m"
    {
#line 3650 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Set_7 = mercury__tree_bitset__f_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_105_110_116_93_95_48_95_49_2_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_9, mercury__tree_bitset__STATE_VARIABLE_Set_0_6, mercury__tree_bitset__Elem_4);
    }
#line 3650 "tree_bitset.m"
  }
#line 129 "tree_bitset.m"
}

#line 143 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__f_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_2_f_0(
#line 143 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_10_10,
#line 143 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_7,
#line 143 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_4,
#line 143 "tree_bitset.m"
  MR_Word mercury__tree_bitset__List_5)
#line 143 "tree_bitset.m"
{
#line 1239 "tree_bitset.m"
  {
#line 1239 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1239 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__3_3;
#line 1239 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_9_9;
#line 1239 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_7_14;
#line 1239 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_6_6;
#line 1239 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_12_12;
#line 1239 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_5_21;
#line 832 "list.opt"
    MR_Word mercury__tree_bitset__conv0_V_12_12;
#line 1239 "tree_bitset.m"
    MR_Word mercury__tree_bitset__conv1_HeadVar__3_3;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_7 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 10841 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_9_9  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_7 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 10863 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_7_14  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 78 "list.opt"
    {
#line 78 "list.opt"
      mercury__list__length_2_3_p_0(mercury__tree_bitset__TypeInfo_7_14, (MR_Word) mercury__tree_bitset__List_5, (MR_Integer) 0, &mercury__tree_bitset__V_5_21);
    }
#line 832 "list.opt"
    {
#line 832 "list.opt"
      mercury__list__merge_sort_2_3_p_0(mercury__tree_bitset__TypeInfo_7_14, mercury__tree_bitset__V_5_21, (MR_Word) mercury__tree_bitset__List_5, &mercury__tree_bitset__conv0_V_12_12);
    }
#line 832 "list.opt"
    mercury__tree_bitset__V_12_12 = (MR_Word) mercury__tree_bitset__conv0_V_12_12;
#line 1608 "tree_bitset.m"
    {
#line 1608 "tree_bitset.m"
      mercury__tree_bitset__V_6_6 = mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_111_114_116_101_100_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_1_f_0(mercury__tree_bitset__V_10_10, mercury__tree_bitset__TypeClassInfo_for_enum_7, mercury__tree_bitset__V_12_12);
    }
#line 1239 "tree_bitset.m"
    {
#line 1239 "tree_bitset.m"
      mercury__tree_bitset__conv1_HeadVar__3_3 = mercury__tree_bitset__union_2_f_0(mercury__tree_bitset__TypeInfo_9_9, (MR_Word) mercury__tree_bitset__V_6_6, (MR_Word) mercury__tree_bitset__Set_4);
    }
#line 1239 "tree_bitset.m"
    mercury__tree_bitset__HeadVar__3_3 = (MR_Word) mercury__tree_bitset__conv1_HeadVar__3_3;
#line 1239 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__3_3;
#line 1239 "tree_bitset.m"
  }
#line 143 "tree_bitset.m"
}

#line 143 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__f_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_105_110_116_93_95_48_95_49_2_f_0(
#line 143 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_7,
#line 143 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_4,
#line 143 "tree_bitset.m"
  MR_Word mercury__tree_bitset__List_5)
#line 143 "tree_bitset.m"
{
#line 1239 "tree_bitset.m"
  {
#line 1239 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1239 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__3_3;
#line 1239 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_9_9;
#line 1239 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_7_13;
#line 1239 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_6_6;
#line 1239 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_11_11;
#line 1239 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_5_20;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_105_110_116_93_95_48_95_49_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_7 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 10944 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_9_9  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_105_110_116_93_95_48_95_49_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_7 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 10966 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_7_13  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 78 "list.opt"
    {
#line 78 "list.opt"
      mercury__list__length_2_3_p_0(mercury__tree_bitset__TypeInfo_7_13, mercury__tree_bitset__List_5, (MR_Integer) 0, &mercury__tree_bitset__V_5_20);
    }
#line 832 "list.opt"
    {
#line 832 "list.opt"
      mercury__list__merge_sort_2_3_p_0(mercury__tree_bitset__TypeInfo_7_13, mercury__tree_bitset__V_5_20, mercury__tree_bitset__List_5, &mercury__tree_bitset__V_11_11);
    }
#line 1608 "tree_bitset.m"
    {
#line 1608 "tree_bitset.m"
      mercury__tree_bitset__V_6_6 = mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_111_114_116_101_100_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_7, mercury__tree_bitset__V_11_11);
    }
#line 1239 "tree_bitset.m"
    {
#line 1239 "tree_bitset.m"
      mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__union_2_f_0(mercury__tree_bitset__TypeInfo_9_9, mercury__tree_bitset__V_6_6, mercury__tree_bitset__Set_4);
    }
#line 1239 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__3_3;
#line 1239 "tree_bitset.m"
  }
#line 143 "tree_bitset.m"
}

#line 144 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_p_0(
#line 144 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_10_10,
#line 144 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_9,
#line 144 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Elems_4,
#line 144 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_Set_0_6,
#line 144 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_Set_7)
#line 144 "tree_bitset.m"
{
#line 3653 "tree_bitset.m"
  {
#line 3653 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3653 "tree_bitset.m"
    {
#line 3653 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Set_7 = mercury__tree_bitset__f_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_2_f_0(mercury__tree_bitset__V_10_10, mercury__tree_bitset__TypeClassInfo_for_enum_9, mercury__tree_bitset__STATE_VARIABLE_Set_0_6, mercury__tree_bitset__Elems_4);
    }
#line 3653 "tree_bitset.m"
  }
#line 144 "tree_bitset.m"
}

#line 144 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_105_110_116_93_95_48_95_49_3_p_0(
#line 144 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_9,
#line 144 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Elems_4,
#line 144 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_Set_0_6,
#line 144 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_Set_7)
#line 144 "tree_bitset.m"
{
#line 3653 "tree_bitset.m"
  {
#line 3653 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3653 "tree_bitset.m"
    {
#line 3653 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Set_7 = mercury__tree_bitset__f_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_105_110_116_93_95_48_95_49_2_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_9, mercury__tree_bitset__STATE_VARIABLE_Set_0_6, mercury__tree_bitset__Elems_4);
    }
#line 3653 "tree_bitset.m"
  }
#line 144 "tree_bitset.m"
}

#line 150 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__f_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_100_101_108_101_116_101_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_f_0(
#line 150 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_19_19,
#line 150 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 150 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set0_4,
#line 150 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Elem_5)
#line 150 "tree_bitset.m"
{
#line 1243 "tree_bitset.m"
  {
#line 1243 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1243 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Set_6;
#line 1243 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List0_7 = (MR_Word) mercury__tree_bitset__Set0_4;
#line 1243 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__Index_8;
#line 1243 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11;
#line 137 "private_builtin.opt"
    MR_Word mercury__tree_bitset__TypeInfo_18_18;

#line 1245 "tree_bitset.m"
    {
#line 1245 "tree_bitset.m"
      mercury__tree_bitset__Index_8 = mercury__tree_bitset__enum_to_index_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_16, ((MR_Box) (mercury__tree_bitset__Elem_5)));
    }
#line 1250 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List0_7)) == (MR_mktag((MR_Integer) 1))))
#line 1251 "tree_bitset.m"
      {
#line 1251 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Level_12 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List0_7, (MR_Integer) 0)));
#line 1251 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes0_13 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List0_7, (MR_Integer) 1)));
#line 1251 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_14;
#line 1251 "tree_bitset.m"
        MR_Word mercury__tree_bitset__List1_15;

#line 1252 "tree_bitset.m"
        {
#line 1252 "tree_bitset.m"
          mercury__tree_bitset__interiorlist_delete_3_p_0(mercury__tree_bitset__InteriorNodes0_13, mercury__tree_bitset__Index_8, &mercury__tree_bitset__InteriorNodes_14);
        }
#line 1253 "tree_bitset.m"
        {
#line 1253 "tree_bitset.m"
          mercury__tree_bitset__List1_15 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1253 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__List1_15, 0) = ((MR_Box) (mercury__tree_bitset__Level_12));
#line 1253 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__List1_15, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodes_14));
#line 1253 "tree_bitset.m"
        }
#line 1254 "tree_bitset.m"
        {
#line 1254 "tree_bitset.m"
          mercury__tree_bitset__prune_top_levels_2_p_0(mercury__tree_bitset__List1_15, &mercury__tree_bitset__List_11);
        }
#line 1251 "tree_bitset.m"
      }
#line 1250 "tree_bitset.m"
    else
#line 1247 "tree_bitset.m"
      {
#line 1247 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes0_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List0_7, (MR_Integer) 0)));
#line 1247 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_10;

#line 1248 "tree_bitset.m"
        {
#line 1248 "tree_bitset.m"
          mercury__tree_bitset__leaflist_delete_3_p_0(mercury__tree_bitset__LeafNodes0_9, mercury__tree_bitset__Index_8, &mercury__tree_bitset__LeafNodes_10);
        }
#line 1249 "tree_bitset.m"
        {
#line 1249 "tree_bitset.m"
          mercury__tree_bitset__List_11 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 1249 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, 0) = ((MR_Box) (mercury__tree_bitset__LeafNodes_10));
#line 1249 "tree_bitset.m"
        }
#line 1247 "tree_bitset.m"
      }
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_100_101_108_101_116_101_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_16 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 11165 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_18_18  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 595 "tree_bitset.m"
    mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__List_11;
#line 1243 "tree_bitset.m"
    return mercury__tree_bitset__Set_6;
#line 1243 "tree_bitset.m"
  }
#line 150 "tree_bitset.m"
}

#line 150 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__f_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_100_101_108_101_116_101_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_f_0(
#line 150 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 150 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set0_4,
#line 150 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Elem_5)
#line 150 "tree_bitset.m"
{
#line 1243 "tree_bitset.m"
  {
#line 1243 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1243 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Set_6;
#line 1243 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List0_7 = (MR_Word) mercury__tree_bitset__Set0_4;
#line 1243 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__Index_8;
#line 1243 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11;
#line 137 "private_builtin.opt"
    MR_Word mercury__tree_bitset__TypeInfo_18_18;

#line 1245 "tree_bitset.m"
    {
#line 1245 "tree_bitset.m"
      mercury__tree_bitset__Index_8 = mercury__tree_bitset__enum_to_index_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_16, ((MR_Box) (mercury__tree_bitset__Elem_5)));
    }
#line 1250 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List0_7)) == (MR_mktag((MR_Integer) 1))))
#line 1251 "tree_bitset.m"
      {
#line 1251 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Level_12 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List0_7, (MR_Integer) 0)));
#line 1251 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes0_13 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List0_7, (MR_Integer) 1)));
#line 1251 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_14;
#line 1251 "tree_bitset.m"
        MR_Word mercury__tree_bitset__List1_15;

#line 1252 "tree_bitset.m"
        {
#line 1252 "tree_bitset.m"
          mercury__tree_bitset__interiorlist_delete_3_p_0(mercury__tree_bitset__InteriorNodes0_13, mercury__tree_bitset__Index_8, &mercury__tree_bitset__InteriorNodes_14);
        }
#line 1253 "tree_bitset.m"
        {
#line 1253 "tree_bitset.m"
          mercury__tree_bitset__List1_15 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1253 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__List1_15, 0) = ((MR_Box) (mercury__tree_bitset__Level_12));
#line 1253 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__List1_15, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodes_14));
#line 1253 "tree_bitset.m"
        }
#line 1254 "tree_bitset.m"
        {
#line 1254 "tree_bitset.m"
          mercury__tree_bitset__prune_top_levels_2_p_0(mercury__tree_bitset__List1_15, &mercury__tree_bitset__List_11);
        }
#line 1251 "tree_bitset.m"
      }
#line 1250 "tree_bitset.m"
    else
#line 1247 "tree_bitset.m"
      {
#line 1247 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes0_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List0_7, (MR_Integer) 0)));
#line 1247 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_10;

#line 1248 "tree_bitset.m"
        {
#line 1248 "tree_bitset.m"
          mercury__tree_bitset__leaflist_delete_3_p_0(mercury__tree_bitset__LeafNodes0_9, mercury__tree_bitset__Index_8, &mercury__tree_bitset__LeafNodes_10);
        }
#line 1249 "tree_bitset.m"
        {
#line 1249 "tree_bitset.m"
          mercury__tree_bitset__List_11 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 1249 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, 0) = ((MR_Box) (mercury__tree_bitset__LeafNodes_10));
#line 1249 "tree_bitset.m"
        }
#line 1247 "tree_bitset.m"
      }
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_100_101_108_101_116_101_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_16 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 11286 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_18_18  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 595 "tree_bitset.m"
    mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__List_11;
#line 1243 "tree_bitset.m"
    return mercury__tree_bitset__Set_6;
#line 1243 "tree_bitset.m"
  }
#line 150 "tree_bitset.m"
}

#line 151 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_101_108_101_116_101_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_p_0(
#line 151 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_10_10,
#line 151 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_9,
#line 151 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Elem_4,
#line 151 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_Set_0_6,
#line 151 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_Set_7)
#line 151 "tree_bitset.m"
{
#line 3656 "tree_bitset.m"
  {
#line 3656 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3656 "tree_bitset.m"
    {
#line 3656 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Set_7 = mercury__tree_bitset__f_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_100_101_108_101_116_101_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_f_0(mercury__tree_bitset__V_10_10, mercury__tree_bitset__TypeClassInfo_for_enum_9, mercury__tree_bitset__STATE_VARIABLE_Set_0_6, mercury__tree_bitset__Elem_4);
    }
#line 3656 "tree_bitset.m"
  }
#line 151 "tree_bitset.m"
}

#line 151 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_101_108_101_116_101_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_3_p_0(
#line 151 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_9,
#line 151 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Elem_4,
#line 151 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_Set_0_6,
#line 151 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_Set_7)
#line 151 "tree_bitset.m"
{
#line 3656 "tree_bitset.m"
  {
#line 3656 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3656 "tree_bitset.m"
    {
#line 3656 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Set_7 = mercury__tree_bitset__f_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_100_101_108_101_116_101_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_9, mercury__tree_bitset__STATE_VARIABLE_Set_0_6, mercury__tree_bitset__Elem_4);
    }
#line 3656 "tree_bitset.m"
  }
#line 151 "tree_bitset.m"
}

#line 158 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__f_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_100_101_108_101_116_101_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_2_f_0(
#line 158 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_10_10,
#line 158 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_7,
#line 158 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_4,
#line 158 "tree_bitset.m"
  MR_Word mercury__tree_bitset__List_5)
#line 158 "tree_bitset.m"
{
#line 1321 "tree_bitset.m"
  {
#line 1321 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1321 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__3_3;
#line 1321 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_9_9;
#line 1321 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_7_14;
#line 1321 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_6_6;
#line 1321 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_12_12;
#line 1321 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_5_21;
#line 832 "list.opt"
    MR_Word mercury__tree_bitset__conv0_V_12_12;
#line 1321 "tree_bitset.m"
    MR_Word mercury__tree_bitset__conv1_HeadVar__3_3;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_100_101_108_101_116_101_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_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_7 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 11409 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_9_9  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_100_101_108_101_116_101_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_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_7 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 11431 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_7_14  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 78 "list.opt"
    {
#line 78 "list.opt"
      mercury__list__length_2_3_p_0(mercury__tree_bitset__TypeInfo_7_14, (MR_Word) mercury__tree_bitset__List_5, (MR_Integer) 0, &mercury__tree_bitset__V_5_21);
    }
#line 832 "list.opt"
    {
#line 832 "list.opt"
      mercury__list__merge_sort_2_3_p_0(mercury__tree_bitset__TypeInfo_7_14, mercury__tree_bitset__V_5_21, (MR_Word) mercury__tree_bitset__List_5, &mercury__tree_bitset__conv0_V_12_12);
    }
#line 832 "list.opt"
    mercury__tree_bitset__V_12_12 = (MR_Word) mercury__tree_bitset__conv0_V_12_12;
#line 1608 "tree_bitset.m"
    {
#line 1608 "tree_bitset.m"
      mercury__tree_bitset__V_6_6 = mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_111_114_116_101_100_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_1_f_0(mercury__tree_bitset__V_10_10, mercury__tree_bitset__TypeClassInfo_for_enum_7, mercury__tree_bitset__V_12_12);
    }
#line 1321 "tree_bitset.m"
    {
#line 1321 "tree_bitset.m"
      mercury__tree_bitset__conv1_HeadVar__3_3 = mercury__tree_bitset__difference_2_f_0(mercury__tree_bitset__TypeInfo_9_9, (MR_Word) mercury__tree_bitset__Set_4, (MR_Word) mercury__tree_bitset__V_6_6);
    }
#line 1321 "tree_bitset.m"
    mercury__tree_bitset__HeadVar__3_3 = (MR_Word) mercury__tree_bitset__conv1_HeadVar__3_3;
#line 1321 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__3_3;
#line 1321 "tree_bitset.m"
  }
#line 158 "tree_bitset.m"
}

#line 158 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__f_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_100_101_108_101_116_101_95_108_105_115_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_f_0(
#line 158 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_7,
#line 158 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_4,
#line 158 "tree_bitset.m"
  MR_Word mercury__tree_bitset__List_5)
#line 158 "tree_bitset.m"
{
#line 1321 "tree_bitset.m"
  {
#line 1321 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1321 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__3_3;
#line 1321 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_9_9;
#line 1321 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_7_13;
#line 1321 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_6_6;
#line 1321 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_11_11;
#line 1321 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_5_20;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_100_101_108_101_116_101_95_108_105_115_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_7 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 11512 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_9_9  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_100_101_108_101_116_101_95_108_105_115_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_7 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 11534 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_7_13  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 78 "list.opt"
    {
#line 78 "list.opt"
      mercury__list__length_2_3_p_0(mercury__tree_bitset__TypeInfo_7_13, mercury__tree_bitset__List_5, (MR_Integer) 0, &mercury__tree_bitset__V_5_20);
    }
#line 832 "list.opt"
    {
#line 832 "list.opt"
      mercury__list__merge_sort_2_3_p_0(mercury__tree_bitset__TypeInfo_7_13, mercury__tree_bitset__V_5_20, mercury__tree_bitset__List_5, &mercury__tree_bitset__V_11_11);
    }
#line 1608 "tree_bitset.m"
    {
#line 1608 "tree_bitset.m"
      mercury__tree_bitset__V_6_6 = mercury__tree_bitset__f_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_111_114_116_101_100_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_7, mercury__tree_bitset__V_11_11);
    }
#line 1321 "tree_bitset.m"
    {
#line 1321 "tree_bitset.m"
      mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__difference_2_f_0(mercury__tree_bitset__TypeInfo_9_9, mercury__tree_bitset__Set_4, mercury__tree_bitset__V_6_6);
    }
#line 1321 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__3_3;
#line 1321 "tree_bitset.m"
  }
#line 158 "tree_bitset.m"
}

#line 159 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_101_108_101_116_101_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_p_0(
#line 159 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_10_10,
#line 159 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_9,
#line 159 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Elems_4,
#line 159 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_Set_0_6,
#line 159 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_Set_7)
#line 159 "tree_bitset.m"
{
#line 3659 "tree_bitset.m"
  {
#line 3659 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3659 "tree_bitset.m"
    {
#line 3659 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Set_7 = mercury__tree_bitset__f_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_100_101_108_101_116_101_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_2_f_0(mercury__tree_bitset__V_10_10, mercury__tree_bitset__TypeClassInfo_for_enum_9, mercury__tree_bitset__STATE_VARIABLE_Set_0_6, mercury__tree_bitset__Elems_4);
    }
#line 3659 "tree_bitset.m"
  }
#line 159 "tree_bitset.m"
}

#line 159 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_101_108_101_116_101_95_108_105_115_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_3_p_0(
#line 159 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_9,
#line 159 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Elems_4,
#line 159 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_Set_0_6,
#line 159 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_Set_7)
#line 159 "tree_bitset.m"
{
#line 3659 "tree_bitset.m"
  {
#line 3659 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3659 "tree_bitset.m"
    {
#line 3659 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Set_7 = mercury__tree_bitset__f_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_100_101_108_101_116_101_95_108_105_115_116_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_9, mercury__tree_bitset__STATE_VARIABLE_Set_0_6, mercury__tree_bitset__Elems_4);
    }
#line 3659 "tree_bitset.m"
  }
#line 159 "tree_bitset.m"
}

#line 260 "tree_bitset.m"
MR_Box MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_108_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_3_f_0(
#line 260 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_20,
#line 260 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_19,
#line 260 "tree_bitset.m"
  MR_Word mercury__tree_bitset__F_5,
#line 260 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 260 "tree_bitset.m"
  MR_Box mercury__tree_bitset__Acc0_7)
#line 260 "tree_bitset.m"
{
#line 3673 "tree_bitset.m"
  {
#line 3673 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3673 "tree_bitset.m"
    MR_Box mercury__tree_bitset__Acc_8;
#line 3673 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_26 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_26)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_29 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_26, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_26, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_104_111_54_49_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0(mercury__tree_bitset__F_5, mercury__tree_bitset__TypeClassInfo_for_enum_19, mercury__tree_bitset__InteriorNodes_29, mercury__tree_bitset__Acc0_7, &mercury__tree_bitset__Acc_8);
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_27 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_26, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_104_111_54_48_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0(mercury__tree_bitset__F_5, mercury__tree_bitset__TypeClassInfo_for_enum_19, mercury__tree_bitset__LeafNodes_27, mercury__tree_bitset__Acc0_7, &mercury__tree_bitset__Acc_8);
        }
#line 3682 "tree_bitset.m"
      }
#line 3673 "tree_bitset.m"
    return mercury__tree_bitset__Acc_8;
#line 3673 "tree_bitset.m"
  }
#line 260 "tree_bitset.m"
}

#line 260 "tree_bitset.m"
MR_Box MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_108_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_f_0(
#line 260 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_21_21,
#line 260 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_20,
#line 260 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_19,
#line 260 "tree_bitset.m"
  MR_Word mercury__tree_bitset__F_5,
#line 260 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 260 "tree_bitset.m"
  MR_Box mercury__tree_bitset__Acc0_7)
#line 260 "tree_bitset.m"
{
#line 3673 "tree_bitset.m"
  {
#line 3673 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3673 "tree_bitset.m"
    MR_Box mercury__tree_bitset__Acc_8;
#line 3673 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_27 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_27)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_30 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_27, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_29_29 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_27, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_104_111_54_49_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0((MR_Word) mercury__tree_bitset__F_5, mercury__tree_bitset__TypeClassInfo_for_enum_19, mercury__tree_bitset__InteriorNodes_30, mercury__tree_bitset__Acc0_7, &mercury__tree_bitset__Acc_8);
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_28 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_27, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_104_111_54_48_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0((MR_Word) mercury__tree_bitset__F_5, mercury__tree_bitset__TypeClassInfo_for_enum_19, mercury__tree_bitset__LeafNodes_28, mercury__tree_bitset__Acc0_7, &mercury__tree_bitset__Acc_8);
        }
#line 3682 "tree_bitset.m"
      }
#line 3673 "tree_bitset.m"
    return mercury__tree_bitset__Acc_8;
#line 3673 "tree_bitset.m"
  }
#line 260 "tree_bitset.m"
}

#line 263 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_108_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_4_p_0(
#line 263 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 263 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 263 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 263 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 263 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 263 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 263 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_4_p_0(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3686 "tree_bitset.m"
          return;
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_4_p_0(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3683 "tree_bitset.m"
          return;
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
  }
#line 263 "tree_bitset.m"
}

#line 264 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_108_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_4_p_1(
#line 264 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 264 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 264 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 264 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 264 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 264 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 264 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_4_p_1(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3686 "tree_bitset.m"
          return;
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_4_p_1(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3683 "tree_bitset.m"
          return;
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
  }
#line 264 "tree_bitset.m"
}

#line 265 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_108_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_4_p_2(
#line 265 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 265 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 265 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 265 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 265 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 265 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 265 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_4_p_2(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3686 "tree_bitset.m"
          return;
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_4_p_2(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3683 "tree_bitset.m"
          return;
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
  }
#line 265 "tree_bitset.m"
}

#line 266 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_108_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3(
#line 266 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 266 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 266 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 266 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 266 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 266 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 266 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
  }
#line 266 "tree_bitset.m"
}

#line 267 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_108_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_4_p_4(
#line 267 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 267 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 267 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 267 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 267 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 267 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 267 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_4_p_4(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_4_p_4(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
  }
#line 267 "tree_bitset.m"
}

#line 268 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_108_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_4_p_5(
#line 268 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 268 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 268 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 268 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 268 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 268 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 268 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_4_p_5(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_4_p_5(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
  }
#line 268 "tree_bitset.m"
}

#line 269 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_108_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_4_p_6(
#line 269 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 269 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 269 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 269 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 269 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 269 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13,
#line 269 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 269 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 269 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_4_p_6(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
#line 3686 "tree_bitset.m"
          return;
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_4_p_6(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
#line 3683 "tree_bitset.m"
          return;
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
  }
#line 269 "tree_bitset.m"
}

#line 270 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_108_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_4_p_7(
#line 270 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 270 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 270 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 270 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 270 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 270 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13,
#line 270 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 270 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 270 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_4_p_7(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
#line 3686 "tree_bitset.m"
          return;
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_4_p_7(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
#line 3683 "tree_bitset.m"
          return;
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
  }
#line 270 "tree_bitset.m"
}

#line 271 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_108_95_95_91_84_32_61_32_105_110_116_93_95_56_95_49_4_p_8(
#line 271 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 271 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 271 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 271 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 271 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 271 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 271 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_57_95_49_4_p_9(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3686 "tree_bitset.m"
          return;
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_57_95_49_4_p_9(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3683 "tree_bitset.m"
          return;
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
  }
#line 271 "tree_bitset.m"
}

#line 272 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_108_95_95_91_84_32_61_32_105_110_116_93_95_57_95_49_4_p_9(
#line 272 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 272 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 272 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 272 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 272 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 272 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 272 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_56_95_49_4_p_8(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3686 "tree_bitset.m"
          return;
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_56_95_49_4_p_8(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3683 "tree_bitset.m"
          return;
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
  }
#line 272 "tree_bitset.m"
}

#line 263 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_108_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_p_0(
#line 263 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_18_18,
#line 263 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 263 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 263 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 263 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 263 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 263 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 263 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_p_0(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3686 "tree_bitset.m"
          return;
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_p_0(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3683 "tree_bitset.m"
          return;
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
  }
#line 263 "tree_bitset.m"
}

#line 264 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_108_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_4_p_1(
#line 264 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_18_18,
#line 264 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 264 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 264 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 264 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 264 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 264 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 264 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_4_p_1(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3686 "tree_bitset.m"
          return;
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_4_p_1(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3683 "tree_bitset.m"
          return;
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
  }
#line 264 "tree_bitset.m"
}

#line 265 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_108_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_4_p_2(
#line 265 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_18_18,
#line 265 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 265 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 265 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 265 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 265 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 265 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 265 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_4_p_2(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3686 "tree_bitset.m"
          return;
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_4_p_2(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3683 "tree_bitset.m"
          return;
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
  }
#line 265 "tree_bitset.m"
}

#line 266 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_108_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3(
#line 266 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_18_18,
#line 266 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 266 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 266 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 266 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 266 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 266 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 266 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
  }
#line 266 "tree_bitset.m"
}

#line 267 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_108_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_4_p_4(
#line 267 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_18_18,
#line 267 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 267 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 267 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 267 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 267 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 267 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 267 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_4_p_4(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_4_p_4(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
  }
#line 267 "tree_bitset.m"
}

#line 268 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_108_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_4_p_5(
#line 268 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_18_18,
#line 268 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 268 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 268 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 268 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 268 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 268 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 268 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_4_p_5(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_4_p_5(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
  }
#line 268 "tree_bitset.m"
}

#line 269 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_108_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_4_p_6(
#line 269 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_18_18,
#line 269 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 269 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 269 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 269 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 269 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 269 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13,
#line 269 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 269 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 269 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_4_p_6(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
#line 3686 "tree_bitset.m"
          return;
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_4_p_6(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
#line 3683 "tree_bitset.m"
          return;
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
  }
#line 269 "tree_bitset.m"
}

#line 270 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_108_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_4_p_7(
#line 270 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_18_18,
#line 270 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 270 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 270 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 270 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 270 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 270 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13,
#line 270 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 270 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 270 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_4_p_7(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
#line 3686 "tree_bitset.m"
          return;
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_4_p_7(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
#line 3683 "tree_bitset.m"
          return;
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
  }
#line 270 "tree_bitset.m"
}

#line 271 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_108_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_56_95_49_4_p_8(
#line 271 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_18_18,
#line 271 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 271 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 271 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 271 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 271 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 271 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 271 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_57_95_49_4_p_9(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3686 "tree_bitset.m"
          return;
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_57_95_49_4_p_9(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3683 "tree_bitset.m"
          return;
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
  }
#line 271 "tree_bitset.m"
}

#line 272 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_108_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_57_95_49_4_p_9(
#line 272 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_18_18,
#line 272 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 272 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 272 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 272 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 272 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 272 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 272 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_56_95_49_4_p_8(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3686 "tree_bitset.m"
          return;
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_56_95_49_4_p_8(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3683 "tree_bitset.m"
          return;
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
  }
#line 272 "tree_bitset.m"
}

#line 293 "tree_bitset.m"
MR_Box MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_114_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_3_f_0(
#line 293 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_20,
#line 293 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_19,
#line 293 "tree_bitset.m"
  MR_Word mercury__tree_bitset__F_5,
#line 293 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 293 "tree_bitset.m"
  MR_Box mercury__tree_bitset__Acc0_7)
#line 293 "tree_bitset.m"
{
#line 3809 "tree_bitset.m"
  {
#line 3809 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3809 "tree_bitset.m"
    MR_Box mercury__tree_bitset__Acc_8;
#line 3809 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_26 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_26)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_29 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_26, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_26, (MR_Integer) 0)));

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_54_51_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0(mercury__tree_bitset__F_5, mercury__tree_bitset__TypeClassInfo_for_enum_19, mercury__tree_bitset__InteriorNodes_29, mercury__tree_bitset__Acc0_7, &mercury__tree_bitset__Acc_8);
        }
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_27 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_26, (MR_Integer) 0)));

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_54_50_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0(mercury__tree_bitset__F_5, mercury__tree_bitset__TypeClassInfo_for_enum_19, mercury__tree_bitset__LeafNodes_27, mercury__tree_bitset__Acc0_7, &mercury__tree_bitset__Acc_8);
        }
#line 3818 "tree_bitset.m"
      }
#line 3809 "tree_bitset.m"
    return mercury__tree_bitset__Acc_8;
#line 3809 "tree_bitset.m"
  }
#line 293 "tree_bitset.m"
}

#line 293 "tree_bitset.m"
MR_Box MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_f_0(
#line 293 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_21_21,
#line 293 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_20,
#line 293 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_19,
#line 293 "tree_bitset.m"
  MR_Word mercury__tree_bitset__F_5,
#line 293 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 293 "tree_bitset.m"
  MR_Box mercury__tree_bitset__Acc0_7)
#line 293 "tree_bitset.m"
{
#line 3809 "tree_bitset.m"
  {
#line 3809 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3809 "tree_bitset.m"
    MR_Box mercury__tree_bitset__Acc_8;
#line 3809 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_27 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_27)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_30 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_27, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_29_29 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_27, (MR_Integer) 0)));

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_54_51_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0((MR_Word) mercury__tree_bitset__F_5, mercury__tree_bitset__TypeClassInfo_for_enum_19, mercury__tree_bitset__InteriorNodes_30, mercury__tree_bitset__Acc0_7, &mercury__tree_bitset__Acc_8);
        }
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_28 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_27, (MR_Integer) 0)));

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_54_50_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0((MR_Word) mercury__tree_bitset__F_5, mercury__tree_bitset__TypeClassInfo_for_enum_19, mercury__tree_bitset__LeafNodes_28, mercury__tree_bitset__Acc0_7, &mercury__tree_bitset__Acc_8);
        }
#line 3818 "tree_bitset.m"
      }
#line 3809 "tree_bitset.m"
    return mercury__tree_bitset__Acc_8;
#line 3809 "tree_bitset.m"
  }
#line 293 "tree_bitset.m"
}

#line 296 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_114_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_4_p_0(
#line 296 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 296 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 296 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 296 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 296 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 296 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 296 "tree_bitset.m"
{
#line 3815 "tree_bitset.m"
  {
#line 3815 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3815 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_4_p_0(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3822 "tree_bitset.m"
          return;
        }
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_4_p_0(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3819 "tree_bitset.m"
          return;
        }
#line 3818 "tree_bitset.m"
      }
#line 3815 "tree_bitset.m"
  }
#line 296 "tree_bitset.m"
}

#line 297 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_114_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_4_p_1(
#line 297 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 297 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 297 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 297 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 297 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 297 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 297 "tree_bitset.m"
{
#line 3815 "tree_bitset.m"
  {
#line 3815 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3815 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_4_p_1(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3822 "tree_bitset.m"
          return;
        }
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_4_p_1(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3819 "tree_bitset.m"
          return;
        }
#line 3818 "tree_bitset.m"
      }
#line 3815 "tree_bitset.m"
  }
#line 297 "tree_bitset.m"
}

#line 298 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_114_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_4_p_2(
#line 298 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 298 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 298 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 298 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 298 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 298 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 298 "tree_bitset.m"
{
#line 3815 "tree_bitset.m"
  {
#line 3815 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3815 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_4_p_2(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_4_p_2(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3818 "tree_bitset.m"
      }
#line 3815 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 3815 "tree_bitset.m"
  }
#line 298 "tree_bitset.m"
}

#line 299 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_114_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3(
#line 299 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 299 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 299 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 299 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 299 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 299 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13,
#line 299 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 299 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 299 "tree_bitset.m"
{
#line 3815 "tree_bitset.m"
  {
#line 3815 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3815 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
#line 3822 "tree_bitset.m"
          return;
        }
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
#line 3819 "tree_bitset.m"
          return;
        }
#line 3818 "tree_bitset.m"
      }
#line 3815 "tree_bitset.m"
  }
#line 299 "tree_bitset.m"
}

#line 300 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_114_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_4_p_4(
#line 300 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 300 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 300 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 300 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 300 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 300 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 300 "tree_bitset.m"
{
#line 3815 "tree_bitset.m"
  {
#line 3815 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3815 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_4_p_4(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3822 "tree_bitset.m"
          return;
        }
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_4_p_4(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3819 "tree_bitset.m"
          return;
        }
#line 3818 "tree_bitset.m"
      }
#line 3815 "tree_bitset.m"
  }
#line 300 "tree_bitset.m"
}

#line 301 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_114_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_4_p_5(
#line 301 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 301 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 301 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 301 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 301 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 301 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 301 "tree_bitset.m"
{
#line 3815 "tree_bitset.m"
  {
#line 3815 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3815 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_4_p_5(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3822 "tree_bitset.m"
          return;
        }
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_4_p_5(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3819 "tree_bitset.m"
          return;
        }
#line 3818 "tree_bitset.m"
      }
#line 3815 "tree_bitset.m"
  }
#line 301 "tree_bitset.m"
}

#line 296 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_p_0(
#line 296 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_18_18,
#line 296 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 296 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 296 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 296 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 296 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 296 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 296 "tree_bitset.m"
{
#line 3815 "tree_bitset.m"
  {
#line 3815 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3815 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_p_0(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3822 "tree_bitset.m"
          return;
        }
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_p_0(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3819 "tree_bitset.m"
          return;
        }
#line 3818 "tree_bitset.m"
      }
#line 3815 "tree_bitset.m"
  }
#line 296 "tree_bitset.m"
}

#line 297 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_4_p_1(
#line 297 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_18_18,
#line 297 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 297 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 297 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 297 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 297 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 297 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 297 "tree_bitset.m"
{
#line 3815 "tree_bitset.m"
  {
#line 3815 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3815 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_4_p_1(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3822 "tree_bitset.m"
          return;
        }
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_4_p_1(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3819 "tree_bitset.m"
          return;
        }
#line 3818 "tree_bitset.m"
      }
#line 3815 "tree_bitset.m"
  }
#line 297 "tree_bitset.m"
}

#line 298 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_4_p_2(
#line 298 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_18_18,
#line 298 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 298 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 298 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 298 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 298 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 298 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 298 "tree_bitset.m"
{
#line 3815 "tree_bitset.m"
  {
#line 3815 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3815 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_4_p_2(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_4_p_2(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3818 "tree_bitset.m"
      }
#line 3815 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 3815 "tree_bitset.m"
  }
#line 298 "tree_bitset.m"
}

#line 299 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3(
#line 299 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_18_18,
#line 299 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 299 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 299 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 299 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 299 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 299 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13,
#line 299 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 299 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 299 "tree_bitset.m"
{
#line 3815 "tree_bitset.m"
  {
#line 3815 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3815 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
#line 3822 "tree_bitset.m"
          return;
        }
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
#line 3819 "tree_bitset.m"
          return;
        }
#line 3818 "tree_bitset.m"
      }
#line 3815 "tree_bitset.m"
  }
#line 299 "tree_bitset.m"
}

#line 300 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_4_p_4(
#line 300 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_18_18,
#line 300 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 300 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 300 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 300 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 300 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 300 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 300 "tree_bitset.m"
{
#line 3815 "tree_bitset.m"
  {
#line 3815 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3815 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_4_p_4(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3822 "tree_bitset.m"
          return;
        }
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_4_p_4(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3819 "tree_bitset.m"
          return;
        }
#line 3818 "tree_bitset.m"
      }
#line 3815 "tree_bitset.m"
  }
#line 300 "tree_bitset.m"
}

#line 301 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_4_p_5(
#line 301 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_18_18,
#line 301 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 301 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 301 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 301 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 301 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 301 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 301 "tree_bitset.m"
{
#line 3815 "tree_bitset.m"
  {
#line 3815 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3815 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_4_p_5(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3822 "tree_bitset.m"
          return;
        }
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_4_p_5(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3819 "tree_bitset.m"
          return;
        }
#line 3818 "tree_bitset.m"
      }
#line 3815 "tree_bitset.m"
  }
#line 301 "tree_bitset.m"
}

#line 321 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_97_108_108_95_116_114_117_101_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_p_0(
#line 321 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_9,
#line 321 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_3,
#line 321 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_4)
#line 321 "tree_bitset.m"
{
#line 4055 "tree_bitset.m"
  {
#line 4055 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 4055 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_5 = (MR_Word) mercury__tree_bitset__Set_4;

#line 4060 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_5)) == (MR_mktag((MR_Integer) 1))))
#line 4061 "tree_bitset.m"
      {
#line 4061 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_8 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_5, (MR_Integer) 1)));
#line 4061 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_7_7 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_5, (MR_Integer) 0)));

#line 4062 "tree_bitset.m"
        {
#line 4062 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_116_101_114_105_111_114_95_97_108_108_95_116_114_117_101_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_9, mercury__tree_bitset__P_3, mercury__tree_bitset__InteriorNodes_8);
        }
#line 4061 "tree_bitset.m"
      }
#line 4060 "tree_bitset.m"
    else
#line 4058 "tree_bitset.m"
      {
#line 4058 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_6 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_5, (MR_Integer) 0)));

#line 4059 "tree_bitset.m"
        {
#line 4059 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_97_108_108_95_116_114_117_101_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_9, mercury__tree_bitset__P_3, mercury__tree_bitset__LeafNodes_6);
        }
#line 4058 "tree_bitset.m"
      }
#line 4055 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 4055 "tree_bitset.m"
  }
#line 321 "tree_bitset.m"
}

#line 321 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_97_108_108_95_116_114_117_101_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_p_0(
#line 321 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_10_10,
#line 321 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_9,
#line 321 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_3,
#line 321 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_4)
#line 321 "tree_bitset.m"
{
#line 4055 "tree_bitset.m"
  {
#line 4055 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 4055 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_5 = (MR_Word) mercury__tree_bitset__Set_4;

#line 4060 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_5)) == (MR_mktag((MR_Integer) 1))))
#line 4061 "tree_bitset.m"
      {
#line 4061 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_8 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_5, (MR_Integer) 1)));
#line 4061 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_7_7 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_5, (MR_Integer) 0)));

#line 4062 "tree_bitset.m"
        {
#line 4062 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_116_101_114_105_111_114_95_97_108_108_95_116_114_117_101_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_p_0(mercury__tree_bitset__V_10_10, mercury__tree_bitset__TypeClassInfo_for_enum_9, mercury__tree_bitset__P_3, mercury__tree_bitset__InteriorNodes_8);
        }
#line 4061 "tree_bitset.m"
      }
#line 4060 "tree_bitset.m"
    else
#line 4058 "tree_bitset.m"
      {
#line 4058 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_6 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_5, (MR_Integer) 0)));

#line 4059 "tree_bitset.m"
        {
#line 4059 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_97_108_108_95_116_114_117_101_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_p_0(mercury__tree_bitset__V_10_10, mercury__tree_bitset__TypeClassInfo_for_enum_9, mercury__tree_bitset__P_3, mercury__tree_bitset__LeafNodes_6);
        }
#line 4058 "tree_bitset.m"
      }
#line 4055 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 4055 "tree_bitset.m"
  }
#line 321 "tree_bitset.m"
}

#line 1643 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_116_101_109_115_95_116_111_95_105_110_100_101_120_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_p_0(
#line 1643 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_7,
#line 1643 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1643 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__2_2)
#line 1643 "tree_bitset.m"
{
#line 1647 "tree_bitset.m"
  {
#line 1647 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 1647 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1647 "tree_bitset.m"
      *mercury__tree_bitset__HeadVar__2_2 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1647 "tree_bitset.m"
    else
#line 1648 "tree_bitset.m"
      {
#line 1648 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__ElemHead_3 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));
#line 1648 "tree_bitset.m"
        MR_Word mercury__tree_bitset__ElemTail_4 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 1648 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__IndexHead_5;
#line 1648 "tree_bitset.m"
        MR_Word mercury__tree_bitset__IndexTail_6;

#line 1649 "tree_bitset.m"
        {
#line 1649 "tree_bitset.m"
          mercury__tree_bitset__IndexHead_5 = mercury__tree_bitset__enum_to_index_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_7, ((MR_Box) (mercury__tree_bitset__ElemHead_3)));
        }
#line 1650 "tree_bitset.m"
        {
#line 1650 "tree_bitset.m"
          mercury__tree_bitset__f_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_116_101_109_115_95_116_111_95_105_110_100_101_120_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_7, mercury__tree_bitset__ElemTail_4, &mercury__tree_bitset__IndexTail_6);
        }
#line 1648 "tree_bitset.m"
        {
#line 1648 "tree_bitset.m"
          MR_Word base;
#line 1648 "tree_bitset.m"
          base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1648 "tree_bitset.m"
          *mercury__tree_bitset__HeadVar__2_2 = base;
#line 1648 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__IndexHead_5));
#line 1648 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__IndexTail_6));
#line 1648 "tree_bitset.m"
        }
#line 1648 "tree_bitset.m"
      }
#line 1647 "tree_bitset.m"
  }
#line 1643 "tree_bitset.m"
}

#line 3700 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_4_p_0(
#line 3700 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3700 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3700 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3700 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3700 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3700 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3700 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_4_p_0(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_4_p_0(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3724 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
            {
#line 3724 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
            }
#line 3724 "tree_bitset.m"
            continue;
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3700 "tree_bitset.m"
}

#line 3701 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_4_p_1(
#line 3701 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3701 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3701 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3701 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3701 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3701 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3701 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_4_p_1(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_4_p_1(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3724 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
            {
#line 3724 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
            }
#line 3724 "tree_bitset.m"
            continue;
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3701 "tree_bitset.m"
}

#line 3702 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_4_p_2(
#line 3702 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3702 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3702 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3702 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3702 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3702 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3702 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_4_p_2(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_4_p_2(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3724 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
            {
#line 3724 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
            }
#line 3724 "tree_bitset.m"
            continue;
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3702 "tree_bitset.m"
}

#line 3703 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3(
#line 3703 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3703 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3703 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3703 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3703 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3703 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3703 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          {
#line 3714 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3714 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3715 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3724 "tree_bitset.m"
              {
#line 3724 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
                {
#line 3724 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
                }
#line 3724 "tree_bitset.m"
                continue;
#line 3724 "tree_bitset.m"
              }
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3703 "tree_bitset.m"
}

#line 3704 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_4_p_4(
#line 3704 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3704 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3704 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3704 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3704 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3704 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3704 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          {
#line 3714 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3714 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_4_p_4(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_4_p_4(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3715 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3724 "tree_bitset.m"
              {
#line 3724 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
                {
#line 3724 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
                }
#line 3724 "tree_bitset.m"
                continue;
#line 3724 "tree_bitset.m"
              }
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3704 "tree_bitset.m"
}

#line 3705 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_4_p_5(
#line 3705 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3705 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3705 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3705 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3705 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3705 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3705 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          {
#line 3714 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3714 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_4_p_5(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_4_p_5(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3715 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3724 "tree_bitset.m"
              {
#line 3724 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
                {
#line 3724 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
                }
#line 3724 "tree_bitset.m"
                continue;
#line 3724 "tree_bitset.m"
              }
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3705 "tree_bitset.m"
}

#line 3715 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_4_p_6_1(
#line 3715 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3715 "tree_bitset.m"
{
#line 3715 "tree_bitset.m"
  {
#line 3715 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3724 "tree_bitset.m"
    {
#line 3724 "tree_bitset.m"
      mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_4_p_6((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__T_11, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_20_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont_env_ptr);
#line 3724 "tree_bitset.m"
      return;
    }
#line 3715 "tree_bitset.m"
  }
#line 3715 "tree_bitset.m"
}

#line 3706 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_4_p_6(
#line 3706 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3706 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3706 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3706 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3706 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3706 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4,
#line 3706 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3706 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3706 "tree_bitset.m"
{
#line 3706 "tree_bitset.m"
  {
#line 3706 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3706 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_25 = mercury__tree_bitset__TypeInfo_for_U_25;
#line 3706 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_24 = mercury__tree_bitset__TypeClassInfo_for_enum_24;
#line 3706 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__P_1 = mercury__tree_bitset__P_1;
#line 3706 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_4;
#line 3706 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3706 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
        {
#line 3714 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_4) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
          {
#line 3714 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont_env_ptr);
#line 3714 "tree_bitset.m"
            return;
          }
#line 3714 "tree_bitset.m"
        }
#line 3714 "tree_bitset.m"
      else
#line 3715 "tree_bitset.m"
        {
#line 3715 "tree_bitset.m"
          MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
          MR_Word mercury__tree_bitset__Components_13;
#line 3716 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_22_22;
#line 3716 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_23_23;

#line 3715 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3716 "tree_bitset.m"
          mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
          mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 3716 "tree_bitset.m"
          mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3720 "tree_bitset.m"
          if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
            {
#line 3721 "tree_bitset.m"
              MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
              {
#line 3722 "tree_bitset.m"
                mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_4_p_6((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_25, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_20_20, mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_4_p_6_1, &mercury__tree_bitset__env);
              }
#line 3721 "tree_bitset.m"
            }
#line 3720 "tree_bitset.m"
          else
#line 3718 "tree_bitset.m"
            {
#line 3718 "tree_bitset.m"
              MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
              {
#line 3719 "tree_bitset.m"
                mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_4_p_6((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_25, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_20_20, mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_4_p_6_1, &mercury__tree_bitset__env);
              }
#line 3718 "tree_bitset.m"
            }
#line 3715 "tree_bitset.m"
        }
#line 3714 "tree_bitset.m"
    }
#line 3706 "tree_bitset.m"
  }
#line 3706 "tree_bitset.m"
}

#line 3715 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_4_p_7_1(
#line 3715 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3715 "tree_bitset.m"
{
#line 3715 "tree_bitset.m"
  {
#line 3715 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3724 "tree_bitset.m"
    {
#line 3724 "tree_bitset.m"
      mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_4_p_7((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__T_11, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_20_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont_env_ptr);
#line 3724 "tree_bitset.m"
      return;
    }
#line 3715 "tree_bitset.m"
  }
#line 3715 "tree_bitset.m"
}

#line 3707 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_4_p_7(
#line 3707 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3707 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3707 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3707 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3707 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3707 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4,
#line 3707 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3707 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3707 "tree_bitset.m"
{
#line 3707 "tree_bitset.m"
  {
#line 3707 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3707 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_25 = mercury__tree_bitset__TypeInfo_for_U_25;
#line 3707 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_24 = mercury__tree_bitset__TypeClassInfo_for_enum_24;
#line 3707 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__P_1 = mercury__tree_bitset__P_1;
#line 3707 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_4;
#line 3707 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3707 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
        {
#line 3714 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_4) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
          {
#line 3714 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont_env_ptr);
#line 3714 "tree_bitset.m"
            return;
          }
#line 3714 "tree_bitset.m"
        }
#line 3714 "tree_bitset.m"
      else
#line 3715 "tree_bitset.m"
        {
#line 3715 "tree_bitset.m"
          MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
          MR_Word mercury__tree_bitset__Components_13;
#line 3716 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_22_22;
#line 3716 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_23_23;

#line 3715 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3716 "tree_bitset.m"
          mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
          mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 3716 "tree_bitset.m"
          mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3720 "tree_bitset.m"
          if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
            {
#line 3721 "tree_bitset.m"
              MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
              {
#line 3722 "tree_bitset.m"
                mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_4_p_7((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_25, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_20_20, mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_4_p_7_1, &mercury__tree_bitset__env);
              }
#line 3721 "tree_bitset.m"
            }
#line 3720 "tree_bitset.m"
          else
#line 3718 "tree_bitset.m"
            {
#line 3718 "tree_bitset.m"
              MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
              {
#line 3719 "tree_bitset.m"
                mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_4_p_7((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_25, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_20_20, mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_4_p_7_1, &mercury__tree_bitset__env);
              }
#line 3718 "tree_bitset.m"
            }
#line 3715 "tree_bitset.m"
        }
#line 3714 "tree_bitset.m"
    }
#line 3707 "tree_bitset.m"
  }
#line 3707 "tree_bitset.m"
}

#line 3708 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_56_95_49_4_p_8(
#line 3708 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3708 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3708 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3708 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3708 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3708 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3708 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_56_95_49_4_p_8(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_56_95_49_4_p_8(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3724 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
            {
#line 3724 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
            }
#line 3724 "tree_bitset.m"
            continue;
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3708 "tree_bitset.m"
}

#line 3709 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_57_95_49_4_p_9(
#line 3709 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3709 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3709 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3709 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3709 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3709 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3709 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_57_95_49_4_p_9(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_57_95_49_4_p_9(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3724 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
            {
#line 3724 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
            }
#line 3724 "tree_bitset.m"
            continue;
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3709 "tree_bitset.m"
}

#line 3700 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_p_0(
#line 3700 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_26_26,
#line 3700 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3700 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3700 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3700 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3700 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3700 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3700 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_p_0(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_p_0(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3724 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
            {
#line 3724 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
            }
#line 3724 "tree_bitset.m"
            continue;
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3700 "tree_bitset.m"
}

#line 3701 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_4_p_1(
#line 3701 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_26_26,
#line 3701 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3701 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3701 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3701 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3701 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3701 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3701 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_4_p_1(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_4_p_1(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3724 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
            {
#line 3724 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
            }
#line 3724 "tree_bitset.m"
            continue;
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3701 "tree_bitset.m"
}

#line 3702 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_4_p_2(
#line 3702 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_26_26,
#line 3702 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3702 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3702 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3702 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3702 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3702 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3702 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_4_p_2(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_4_p_2(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3724 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
            {
#line 3724 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
            }
#line 3724 "tree_bitset.m"
            continue;
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3702 "tree_bitset.m"
}

#line 3703 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3(
#line 3703 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_26_26,
#line 3703 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3703 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3703 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3703 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3703 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3703 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3703 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          {
#line 3714 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3714 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3715 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3724 "tree_bitset.m"
              {
#line 3724 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
                {
#line 3724 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
                }
#line 3724 "tree_bitset.m"
                continue;
#line 3724 "tree_bitset.m"
              }
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3703 "tree_bitset.m"
}

#line 3704 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_4_p_4(
#line 3704 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_26_26,
#line 3704 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3704 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3704 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3704 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3704 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3704 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3704 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          {
#line 3714 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3714 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_4_p_4(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_4_p_4(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3715 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3724 "tree_bitset.m"
              {
#line 3724 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
                {
#line 3724 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
                }
#line 3724 "tree_bitset.m"
                continue;
#line 3724 "tree_bitset.m"
              }
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3704 "tree_bitset.m"
}

#line 3705 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_4_p_5(
#line 3705 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_26_26,
#line 3705 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3705 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3705 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3705 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3705 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3705 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3705 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          {
#line 3714 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3714 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_4_p_5(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_4_p_5(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3715 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3724 "tree_bitset.m"
              {
#line 3724 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
                {
#line 3724 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
                }
#line 3724 "tree_bitset.m"
                continue;
#line 3724 "tree_bitset.m"
              }
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3705 "tree_bitset.m"
}

#line 3715 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_4_p_6_1(
#line 3715 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3715 "tree_bitset.m"
{
#line 3715 "tree_bitset.m"
  {
#line 3715 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3724 "tree_bitset.m"
    {
#line 3724 "tree_bitset.m"
      mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_4_p_6((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__V_26_26, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__T_11, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_20_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont_env_ptr);
#line 3724 "tree_bitset.m"
      return;
    }
#line 3715 "tree_bitset.m"
  }
#line 3715 "tree_bitset.m"
}

#line 3706 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_4_p_6(
#line 3706 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_26_26,
#line 3706 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3706 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3706 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3706 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3706 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3706 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4,
#line 3706 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3706 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3706 "tree_bitset.m"
{
#line 3706 "tree_bitset.m"
  {
#line 3706 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3706 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__V_26_26 = mercury__tree_bitset__V_26_26;
#line 3706 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_25 = mercury__tree_bitset__TypeInfo_for_U_25;
#line 3706 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_24 = mercury__tree_bitset__TypeClassInfo_for_enum_24;
#line 3706 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__P_1 = mercury__tree_bitset__P_1;
#line 3706 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_4;
#line 3706 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3706 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
        {
#line 3714 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_4) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
          {
#line 3714 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont_env_ptr);
#line 3714 "tree_bitset.m"
            return;
          }
#line 3714 "tree_bitset.m"
        }
#line 3714 "tree_bitset.m"
      else
#line 3715 "tree_bitset.m"
        {
#line 3715 "tree_bitset.m"
          MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
          MR_Word mercury__tree_bitset__Components_13;
#line 3716 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_22_22;
#line 3716 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_23_23;

#line 3715 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3716 "tree_bitset.m"
          mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
          mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 3716 "tree_bitset.m"
          mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3720 "tree_bitset.m"
          if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
            {
#line 3721 "tree_bitset.m"
              MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
              {
#line 3722 "tree_bitset.m"
                mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_4_p_6((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__V_26_26, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_25, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_20_20, mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_4_p_6_1, &mercury__tree_bitset__env);
              }
#line 3721 "tree_bitset.m"
            }
#line 3720 "tree_bitset.m"
          else
#line 3718 "tree_bitset.m"
            {
#line 3718 "tree_bitset.m"
              MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
              {
#line 3719 "tree_bitset.m"
                mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_4_p_6((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__V_26_26, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_25, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_20_20, mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_4_p_6_1, &mercury__tree_bitset__env);
              }
#line 3718 "tree_bitset.m"
            }
#line 3715 "tree_bitset.m"
        }
#line 3714 "tree_bitset.m"
    }
#line 3706 "tree_bitset.m"
  }
#line 3706 "tree_bitset.m"
}

#line 3715 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_4_p_7_1(
#line 3715 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3715 "tree_bitset.m"
{
#line 3715 "tree_bitset.m"
  {
#line 3715 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3724 "tree_bitset.m"
    {
#line 3724 "tree_bitset.m"
      mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_4_p_7((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__V_26_26, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__T_11, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_20_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont_env_ptr);
#line 3724 "tree_bitset.m"
      return;
    }
#line 3715 "tree_bitset.m"
  }
#line 3715 "tree_bitset.m"
}

#line 3707 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_4_p_7(
#line 3707 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_26_26,
#line 3707 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3707 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3707 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3707 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3707 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3707 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4,
#line 3707 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3707 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3707 "tree_bitset.m"
{
#line 3707 "tree_bitset.m"
  {
#line 3707 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3707 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__V_26_26 = mercury__tree_bitset__V_26_26;
#line 3707 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_25 = mercury__tree_bitset__TypeInfo_for_U_25;
#line 3707 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_24 = mercury__tree_bitset__TypeClassInfo_for_enum_24;
#line 3707 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__P_1 = mercury__tree_bitset__P_1;
#line 3707 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_4;
#line 3707 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3707 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
        {
#line 3714 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_4) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
          {
#line 3714 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont_env_ptr);
#line 3714 "tree_bitset.m"
            return;
          }
#line 3714 "tree_bitset.m"
        }
#line 3714 "tree_bitset.m"
      else
#line 3715 "tree_bitset.m"
        {
#line 3715 "tree_bitset.m"
          MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
          MR_Word mercury__tree_bitset__Components_13;
#line 3716 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_22_22;
#line 3716 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_23_23;

#line 3715 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3716 "tree_bitset.m"
          mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
          mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 3716 "tree_bitset.m"
          mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3720 "tree_bitset.m"
          if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
            {
#line 3721 "tree_bitset.m"
              MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
              {
#line 3722 "tree_bitset.m"
                mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_4_p_7((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__V_26_26, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_25, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_20_20, mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_4_p_7_1, &mercury__tree_bitset__env);
              }
#line 3721 "tree_bitset.m"
            }
#line 3720 "tree_bitset.m"
          else
#line 3718 "tree_bitset.m"
            {
#line 3718 "tree_bitset.m"
              MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
              {
#line 3719 "tree_bitset.m"
                mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_4_p_7((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__V_26_26, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_25, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_20_20, mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_4_p_7_1, &mercury__tree_bitset__env);
              }
#line 3718 "tree_bitset.m"
            }
#line 3715 "tree_bitset.m"
        }
#line 3714 "tree_bitset.m"
    }
#line 3707 "tree_bitset.m"
  }
#line 3707 "tree_bitset.m"
}

#line 3708 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_56_95_49_4_p_8(
#line 3708 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_26_26,
#line 3708 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3708 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3708 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3708 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3708 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3708 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3708 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_56_95_49_4_p_8(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_56_95_49_4_p_8(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3724 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
            {
#line 3724 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
            }
#line 3724 "tree_bitset.m"
            continue;
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3708 "tree_bitset.m"
}

#line 3709 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_57_95_49_4_p_9(
#line 3709 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_26_26,
#line 3709 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3709 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3709 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3709 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3709 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3709 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3709 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_57_95_49_4_p_9(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_57_95_49_4_p_9(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3724 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
            {
#line 3724 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
            }
#line 3724 "tree_bitset.m"
            continue;
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3709 "tree_bitset.m"
}

#line 3727 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_4_p_0(
#line 3727 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3727 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3727 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3727 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3727 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3727 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3727 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_4_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 16554 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_7_p_0(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3745 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
            {
#line 3745 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
            }
#line 3745 "tree_bitset.m"
            continue;
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3727 "tree_bitset.m"
}

#line 3728 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_4_p_1(
#line 3728 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3728 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3728 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3728 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3728 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3728 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3728 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_4_p_1

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 16654 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_7_p_1(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3745 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
            {
#line 3745 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
            }
#line 3745 "tree_bitset.m"
            continue;
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3728 "tree_bitset.m"
}

#line 3729 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_4_p_2(
#line 3729 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3729 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3729 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3729 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3729 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3729 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3729 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_4_p_2

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 16754 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_7_p_2(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3745 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
            {
#line 3745 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
            }
#line 3745 "tree_bitset.m"
            continue;
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3729 "tree_bitset.m"
}

#line 3730 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3(
#line 3730 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3730 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3730 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3730 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3730 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3730 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3730 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          {
#line 3741 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3741 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 16860 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_7_p_3(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3742 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3745 "tree_bitset.m"
              {
#line 3745 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
                {
#line 3745 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
                }
#line 3745 "tree_bitset.m"
                continue;
#line 3745 "tree_bitset.m"
              }
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3730 "tree_bitset.m"
}

#line 3731 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_4_p_4(
#line 3731 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3731 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3731 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3731 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3731 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3731 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3731 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          {
#line 3741 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3741 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_4_p_4

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 16974 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_7_p_4(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3742 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3745 "tree_bitset.m"
              {
#line 3745 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
                {
#line 3745 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
                }
#line 3745 "tree_bitset.m"
                continue;
#line 3745 "tree_bitset.m"
              }
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3731 "tree_bitset.m"
}

#line 3732 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_4_p_5(
#line 3732 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3732 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3732 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3732 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3732 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3732 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3732 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          {
#line 3741 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3741 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_4_p_5

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 17088 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_7_p_5(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3742 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3745 "tree_bitset.m"
              {
#line 3745 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
                {
#line 3745 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
                }
#line 3745 "tree_bitset.m"
                continue;
#line 3745 "tree_bitset.m"
              }
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3732 "tree_bitset.m"
}

#line 3742 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_4_p_6_1(
#line 3742 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3742 "tree_bitset.m"
{
#line 3742 "tree_bitset.m"
  {
#line 3742 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3745 "tree_bitset.m"
    {
#line 3745 "tree_bitset.m"
      mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_4_p_6((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_23, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__T_11, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_19_19, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont_env_ptr);
#line 3745 "tree_bitset.m"
      return;
    }
#line 3742 "tree_bitset.m"
  }
#line 3742 "tree_bitset.m"
}

#line 3733 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_4_p_6(
#line 3733 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3733 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3733 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3733 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3733 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3733 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4,
#line 3733 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3733 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3733 "tree_bitset.m"
{
#line 3733 "tree_bitset.m"
  {
#line 3733 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3733 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_24 = mercury__tree_bitset__TypeInfo_for_U_24;
#line 3733 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_23 = mercury__tree_bitset__TypeClassInfo_for_enum_23;
#line 3733 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__P_1 = mercury__tree_bitset__P_1;
#line 3733 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_4;
#line 3733 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3733 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
        {
#line 3741 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_4) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
          {
#line 3741 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont_env_ptr);
#line 3741 "tree_bitset.m"
            return;
          }
#line 3741 "tree_bitset.m"
        }
#line 3741 "tree_bitset.m"
      else
#line 3742 "tree_bitset.m"
        {
#line 3742 "tree_bitset.m"
          MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_16_16;
#line 3742 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_21_21;

#line 3742 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3743 "tree_bitset.m"
          mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3743 "tree_bitset.m"
          mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_4_p_6

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 17248 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
          {
#line 3743 "tree_bitset.m"
            mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_7_p_6((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_24, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_23, (MR_Integer) 0, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_4_p_6_1, &mercury__tree_bitset__env);
          }
#line 3742 "tree_bitset.m"
        }
#line 3741 "tree_bitset.m"
    }
#line 3733 "tree_bitset.m"
  }
#line 3733 "tree_bitset.m"
}

#line 3742 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_4_p_7_1(
#line 3742 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3742 "tree_bitset.m"
{
#line 3742 "tree_bitset.m"
  {
#line 3742 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3745 "tree_bitset.m"
    {
#line 3745 "tree_bitset.m"
      mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_4_p_7((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_23, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__T_11, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_19_19, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont_env_ptr);
#line 3745 "tree_bitset.m"
      return;
    }
#line 3742 "tree_bitset.m"
  }
#line 3742 "tree_bitset.m"
}

#line 3734 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_4_p_7(
#line 3734 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3734 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3734 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3734 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3734 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3734 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4,
#line 3734 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3734 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3734 "tree_bitset.m"
{
#line 3734 "tree_bitset.m"
  {
#line 3734 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3734 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_24 = mercury__tree_bitset__TypeInfo_for_U_24;
#line 3734 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_23 = mercury__tree_bitset__TypeClassInfo_for_enum_23;
#line 3734 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__P_1 = mercury__tree_bitset__P_1;
#line 3734 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_4;
#line 3734 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3734 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
        {
#line 3741 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_4) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
          {
#line 3741 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont_env_ptr);
#line 3741 "tree_bitset.m"
            return;
          }
#line 3741 "tree_bitset.m"
        }
#line 3741 "tree_bitset.m"
      else
#line 3742 "tree_bitset.m"
        {
#line 3742 "tree_bitset.m"
          MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_16_16;
#line 3742 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_21_21;

#line 3742 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3743 "tree_bitset.m"
          mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3743 "tree_bitset.m"
          mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_4_p_7

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 17381 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
          {
#line 3743 "tree_bitset.m"
            mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_7_p_7((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_24, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_23, (MR_Integer) 0, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_4_p_7_1, &mercury__tree_bitset__env);
          }
#line 3742 "tree_bitset.m"
        }
#line 3741 "tree_bitset.m"
    }
#line 3734 "tree_bitset.m"
  }
#line 3734 "tree_bitset.m"
}

#line 3735 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_56_95_49_4_p_8(
#line 3735 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3735 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3735 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3735 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3735 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3735 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3735 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_56_95_49_4_p_8

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 17462 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_56_95_49_7_p_8(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3745 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
            {
#line 3745 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
            }
#line 3745 "tree_bitset.m"
            continue;
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3735 "tree_bitset.m"
}

#line 3736 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_57_95_49_4_p_9(
#line 3736 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3736 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3736 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3736 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3736 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3736 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3736 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_57_95_49_4_p_9

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 17562 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_57_95_49_7_p_9(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3745 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
            {
#line 3745 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
            }
#line 3745 "tree_bitset.m"
            continue;
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3736 "tree_bitset.m"
}

#line 3727 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_p_0(
#line 3727 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_25_25,
#line 3727 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3727 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3727 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3727 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3727 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3727 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3727 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 17664 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_7_p_0(mercury__tree_bitset__V_25_25, mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3745 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
            {
#line 3745 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
            }
#line 3745 "tree_bitset.m"
            continue;
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3727 "tree_bitset.m"
}

#line 3728 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_4_p_1(
#line 3728 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_25_25,
#line 3728 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3728 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3728 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3728 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3728 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3728 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3728 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_4_p_1

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 17766 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_7_p_1(mercury__tree_bitset__V_25_25, mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3745 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
            {
#line 3745 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
            }
#line 3745 "tree_bitset.m"
            continue;
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3728 "tree_bitset.m"
}

#line 3729 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_4_p_2(
#line 3729 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_25_25,
#line 3729 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3729 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3729 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3729 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3729 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3729 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3729 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_4_p_2

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 17868 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_7_p_2(mercury__tree_bitset__V_25_25, mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3745 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
            {
#line 3745 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
            }
#line 3745 "tree_bitset.m"
            continue;
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3729 "tree_bitset.m"
}

#line 3730 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3(
#line 3730 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_25_25,
#line 3730 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3730 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3730 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3730 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3730 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3730 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3730 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          {
#line 3741 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3741 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 17976 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_7_p_3(mercury__tree_bitset__V_25_25, mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3742 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3745 "tree_bitset.m"
              {
#line 3745 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
                {
#line 3745 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
                }
#line 3745 "tree_bitset.m"
                continue;
#line 3745 "tree_bitset.m"
              }
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3730 "tree_bitset.m"
}

#line 3731 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_4_p_4(
#line 3731 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_25_25,
#line 3731 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3731 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3731 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3731 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3731 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3731 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3731 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          {
#line 3741 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3741 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_4_p_4

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 18092 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_7_p_4(mercury__tree_bitset__V_25_25, mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3742 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3745 "tree_bitset.m"
              {
#line 3745 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
                {
#line 3745 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
                }
#line 3745 "tree_bitset.m"
                continue;
#line 3745 "tree_bitset.m"
              }
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3731 "tree_bitset.m"
}

#line 3732 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_4_p_5(
#line 3732 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_25_25,
#line 3732 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3732 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3732 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3732 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3732 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3732 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3732 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          {
#line 3741 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3741 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_4_p_5

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 18208 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_7_p_5(mercury__tree_bitset__V_25_25, mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3742 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3745 "tree_bitset.m"
              {
#line 3745 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
                {
#line 3745 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
                }
#line 3745 "tree_bitset.m"
                continue;
#line 3745 "tree_bitset.m"
              }
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3732 "tree_bitset.m"
}

#line 3742 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_4_p_6_1(
#line 3742 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3742 "tree_bitset.m"
{
#line 3742 "tree_bitset.m"
  {
#line 3742 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3745 "tree_bitset.m"
    {
#line 3745 "tree_bitset.m"
      mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_4_p_6((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__V_25_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_23, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__T_11, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_19_19, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont_env_ptr);
#line 3745 "tree_bitset.m"
      return;
    }
#line 3742 "tree_bitset.m"
  }
#line 3742 "tree_bitset.m"
}

#line 3733 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_4_p_6(
#line 3733 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_25_25,
#line 3733 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3733 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3733 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3733 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3733 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3733 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4,
#line 3733 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3733 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3733 "tree_bitset.m"
{
#line 3733 "tree_bitset.m"
  {
#line 3733 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3733 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__V_25_25 = mercury__tree_bitset__V_25_25;
#line 3733 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_24 = mercury__tree_bitset__TypeInfo_for_U_24;
#line 3733 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_23 = mercury__tree_bitset__TypeClassInfo_for_enum_23;
#line 3733 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__P_1 = mercury__tree_bitset__P_1;
#line 3733 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_4;
#line 3733 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3733 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
        {
#line 3741 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_4) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
          {
#line 3741 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__cont_env_ptr);
#line 3741 "tree_bitset.m"
            return;
          }
#line 3741 "tree_bitset.m"
        }
#line 3741 "tree_bitset.m"
      else
#line 3742 "tree_bitset.m"
        {
#line 3742 "tree_bitset.m"
          MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_16_16;
#line 3742 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_21_21;

#line 3742 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3743 "tree_bitset.m"
          mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3743 "tree_bitset.m"
          mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_4_p_6

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 18372 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
          {
#line 3743 "tree_bitset.m"
            mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_7_p_6((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__V_25_25, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_24, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_23, (MR_Integer) 0, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_52_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_4_p_6_1, &mercury__tree_bitset__env);
          }
#line 3742 "tree_bitset.m"
        }
#line 3741 "tree_bitset.m"
    }
#line 3733 "tree_bitset.m"
  }
#line 3733 "tree_bitset.m"
}

#line 3742 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_4_p_7_1(
#line 3742 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3742 "tree_bitset.m"
{
#line 3742 "tree_bitset.m"
  {
#line 3742 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3745 "tree_bitset.m"
    {
#line 3745 "tree_bitset.m"
      mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_4_p_7((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__V_25_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_23, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__T_11, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_19_19, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont_env_ptr);
#line 3745 "tree_bitset.m"
      return;
    }
#line 3742 "tree_bitset.m"
  }
#line 3742 "tree_bitset.m"
}

#line 3734 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_4_p_7(
#line 3734 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_25_25,
#line 3734 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3734 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3734 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3734 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3734 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3734 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4,
#line 3734 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3734 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3734 "tree_bitset.m"
{
#line 3734 "tree_bitset.m"
  {
#line 3734 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3734 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__V_25_25 = mercury__tree_bitset__V_25_25;
#line 3734 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_24 = mercury__tree_bitset__TypeInfo_for_U_24;
#line 3734 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_23 = mercury__tree_bitset__TypeClassInfo_for_enum_23;
#line 3734 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__P_1 = mercury__tree_bitset__P_1;
#line 3734 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_4;
#line 3734 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3734 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
        {
#line 3741 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_4) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
          {
#line 3741 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__cont_env_ptr);
#line 3741 "tree_bitset.m"
            return;
          }
#line 3741 "tree_bitset.m"
        }
#line 3741 "tree_bitset.m"
      else
#line 3742 "tree_bitset.m"
        {
#line 3742 "tree_bitset.m"
          MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_16_16;
#line 3742 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_21_21;

#line 3742 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3743 "tree_bitset.m"
          mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3743 "tree_bitset.m"
          mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_4_p_7

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 18509 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
          {
#line 3743 "tree_bitset.m"
            mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_7_p_7((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__V_25_25, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_24, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_23, (MR_Integer) 0, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_52_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_4_p_7_1, &mercury__tree_bitset__env);
          }
#line 3742 "tree_bitset.m"
        }
#line 3741 "tree_bitset.m"
    }
#line 3734 "tree_bitset.m"
  }
#line 3734 "tree_bitset.m"
}

#line 3735 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_56_95_49_4_p_8(
#line 3735 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_25_25,
#line 3735 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3735 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3735 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3735 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3735 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3735 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3735 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_56_95_49_4_p_8

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 18592 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_56_95_49_7_p_8(mercury__tree_bitset__V_25_25, mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3745 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
            {
#line 3745 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
            }
#line 3745 "tree_bitset.m"
            continue;
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3735 "tree_bitset.m"
}

#line 3736 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_57_95_49_4_p_9(
#line 3736 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_25_25,
#line 3736 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3736 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3736 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3736 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3736 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3736 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3736 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_57_95_49_4_p_9

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 18694 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_57_95_49_7_p_9(mercury__tree_bitset__V_25_25, mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3745 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
            {
#line 3745 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
            }
#line 3745 "tree_bitset.m"
            continue;
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3736 "tree_bitset.m"
}

#line 3749 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_6_p_0(
#line 3749 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3749 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3749 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3749 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3749 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3749 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3749 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3749 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3749 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3749 "tree_bitset.m"
{
#line 3769 "tree_bitset.m"
  while (MR_TRUE)
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3769 "tree_bitset.m"
      {
#line 3769 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        else
#line 3770 "tree_bitset.m"
          {
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 3775 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
              {
#line 3776 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
                {
#line 3777 "tree_bitset.m"
                  mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_6_p_0(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3776 "tree_bitset.m"
              }
#line 3775 "tree_bitset.m"
            else
#line 3773 "tree_bitset.m"
              {
#line 3773 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
                {
#line 3774 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_6_p_0(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3773 "tree_bitset.m"
              }
#line 3779 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3779 "tree_bitset.m"
            {
#line 3779 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;

#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3779 "tree_bitset.m"
            }
#line 3779 "tree_bitset.m"
            continue;
#line 3770 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
      }
#line 3769 "tree_bitset.m"
      break;
#line 3769 "tree_bitset.m"
    }
#line 3749 "tree_bitset.m"
}

#line 3751 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_6_p_1(
#line 3751 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3751 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3751 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3751 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3751 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3751 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3751 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3751 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3751 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3751 "tree_bitset.m"
{
#line 3769 "tree_bitset.m"
  while (MR_TRUE)
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3769 "tree_bitset.m"
      {
#line 3769 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        else
#line 3770 "tree_bitset.m"
          {
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 3775 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
              {
#line 3776 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
                {
#line 3777 "tree_bitset.m"
                  mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_6_p_1(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3776 "tree_bitset.m"
              }
#line 3775 "tree_bitset.m"
            else
#line 3773 "tree_bitset.m"
              {
#line 3773 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
                {
#line 3774 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_6_p_1(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3773 "tree_bitset.m"
              }
#line 3779 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3779 "tree_bitset.m"
            {
#line 3779 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;

#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3779 "tree_bitset.m"
            }
#line 3779 "tree_bitset.m"
            continue;
#line 3770 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
      }
#line 3769 "tree_bitset.m"
      break;
#line 3769 "tree_bitset.m"
    }
#line 3751 "tree_bitset.m"
}

#line 3753 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_6_p_2(
#line 3753 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3753 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3753 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3753 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3753 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3753 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3753 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3753 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3753 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3753 "tree_bitset.m"
{
#line 3769 "tree_bitset.m"
  while (MR_TRUE)
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3769 "tree_bitset.m"
      {
#line 3769 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        else
#line 3770 "tree_bitset.m"
          {
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 3775 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
              {
#line 3776 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
                {
#line 3777 "tree_bitset.m"
                  mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_6_p_2(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3776 "tree_bitset.m"
              }
#line 3775 "tree_bitset.m"
            else
#line 3773 "tree_bitset.m"
              {
#line 3773 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
                {
#line 3774 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_6_p_2(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3773 "tree_bitset.m"
              }
#line 3779 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3779 "tree_bitset.m"
            {
#line 3779 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;

#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3779 "tree_bitset.m"
            }
#line 3779 "tree_bitset.m"
            continue;
#line 3770 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
      }
#line 3769 "tree_bitset.m"
      break;
#line 3769 "tree_bitset.m"
    }
#line 3753 "tree_bitset.m"
}

#line 3755 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_6_p_3(
#line 3755 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3755 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3755 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3755 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3755 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3755 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3755 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3755 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3755 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3755 "tree_bitset.m"
{
#line 3769 "tree_bitset.m"
  while (MR_TRUE)
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3769 "tree_bitset.m"
      {
#line 3769 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3769 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        else
#line 3770 "tree_bitset.m"
          {
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 3775 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
              {
#line 3776 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
                {
#line 3777 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_6_p_3(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3776 "tree_bitset.m"
              }
#line 3775 "tree_bitset.m"
            else
#line 3773 "tree_bitset.m"
              {
#line 3773 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
                {
#line 3774 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_6_p_3(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3773 "tree_bitset.m"
              }
#line 3770 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3779 "tree_bitset.m"
              {
#line 3779 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3779 "tree_bitset.m"
                {
#line 3779 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3779 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3779 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;

#line 3779 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3779 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3779 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3779 "tree_bitset.m"
                }
#line 3779 "tree_bitset.m"
                continue;
#line 3779 "tree_bitset.m"
              }
#line 3770 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3769 "tree_bitset.m"
      }
#line 3769 "tree_bitset.m"
      break;
#line 3769 "tree_bitset.m"
    }
#line 3755 "tree_bitset.m"
}

#line 3770 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4_1(
#line 3770 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3770 "tree_bitset.m"
{
#line 3770 "tree_bitset.m"
  {
#line 3770 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3779 "tree_bitset.m"
    {
#line 3779 "tree_bitset.m"
      mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_36, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_37, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_35, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__T_16, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_29_29, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_30_30, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 3779 "tree_bitset.m"
      return;
    }
#line 3770 "tree_bitset.m"
  }
#line 3770 "tree_bitset.m"
}

#line 3757 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4(
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3757 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3757 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3757 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3757 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6,
#line 3757 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3757 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3757 "tree_bitset.m"
{
#line 3757 "tree_bitset.m"
  {
#line 3757 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_36 = mercury__tree_bitset__TypeInfo_for_U_36;
#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_37 = mercury__tree_bitset__TypeInfo_for_V_37;
#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_35 = mercury__tree_bitset__TypeClassInfo_for_enum_35;
#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1 = mercury__tree_bitset__P_1;
#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_4;
#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_6;
#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
        {
#line 3769 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6) = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4) = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 3769 "tree_bitset.m"
            return;
          }
#line 3769 "tree_bitset.m"
        }
#line 3769 "tree_bitset.m"
      else
#line 3770 "tree_bitset.m"
        {
#line 3770 "tree_bitset.m"
          MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
          MR_Word mercury__tree_bitset__Components_19;
#line 3771 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_33_33;
#line 3771 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_34_34;

#line 3770 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3771 "tree_bitset.m"
          mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
          mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3771 "tree_bitset.m"
          mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3775 "tree_bitset.m"
          if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
            {
#line 3776 "tree_bitset.m"
              MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
              {
#line 3777 "tree_bitset.m"
                mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_36, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_37, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_35, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_30_30, mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4_1, &mercury__tree_bitset__env);
              }
#line 3776 "tree_bitset.m"
            }
#line 3775 "tree_bitset.m"
          else
#line 3773 "tree_bitset.m"
            {
#line 3773 "tree_bitset.m"
              MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
              {
#line 3774 "tree_bitset.m"
                mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_36, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_37, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_35, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_30_30, mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4_1, &mercury__tree_bitset__env);
              }
#line 3773 "tree_bitset.m"
            }
#line 3770 "tree_bitset.m"
        }
#line 3769 "tree_bitset.m"
    }
#line 3757 "tree_bitset.m"
  }
#line 3757 "tree_bitset.m"
}

#line 3759 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_6_p_5(
#line 3759 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3759 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3759 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3759 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3759 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3759 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3759 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3759 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3759 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3759 "tree_bitset.m"
{
#line 3769 "tree_bitset.m"
  while (MR_TRUE)
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3769 "tree_bitset.m"
      {
#line 3769 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        else
#line 3770 "tree_bitset.m"
          {
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 3775 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
              {
#line 3776 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
                {
#line 3777 "tree_bitset.m"
                  mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_6_p_5(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3776 "tree_bitset.m"
              }
#line 3775 "tree_bitset.m"
            else
#line 3773 "tree_bitset.m"
              {
#line 3773 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
                {
#line 3774 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_6_p_5(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3773 "tree_bitset.m"
              }
#line 3779 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3779 "tree_bitset.m"
            {
#line 3779 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;

#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3779 "tree_bitset.m"
            }
#line 3779 "tree_bitset.m"
            continue;
#line 3770 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
      }
#line 3769 "tree_bitset.m"
      break;
#line 3769 "tree_bitset.m"
    }
#line 3759 "tree_bitset.m"
}

#line 3761 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_6_p_6(
#line 3761 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3761 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3761 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3761 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3761 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3761 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3761 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3761 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3761 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3761 "tree_bitset.m"
{
#line 3769 "tree_bitset.m"
  while (MR_TRUE)
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3769 "tree_bitset.m"
      {
#line 3769 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        else
#line 3770 "tree_bitset.m"
          {
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 3775 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
              {
#line 3776 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
                {
#line 3777 "tree_bitset.m"
                  mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_6_p_6(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3776 "tree_bitset.m"
              }
#line 3775 "tree_bitset.m"
            else
#line 3773 "tree_bitset.m"
              {
#line 3773 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
                {
#line 3774 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_6_p_6(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3773 "tree_bitset.m"
              }
#line 3779 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3779 "tree_bitset.m"
            {
#line 3779 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;

#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3779 "tree_bitset.m"
            }
#line 3779 "tree_bitset.m"
            continue;
#line 3770 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
      }
#line 3769 "tree_bitset.m"
      break;
#line 3769 "tree_bitset.m"
    }
#line 3761 "tree_bitset.m"
}

#line 3763 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_6_p_7(
#line 3763 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3763 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3763 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3763 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3763 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3763 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3763 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3763 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3763 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3763 "tree_bitset.m"
{
#line 3769 "tree_bitset.m"
  while (MR_TRUE)
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3769 "tree_bitset.m"
      {
#line 3769 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        else
#line 3770 "tree_bitset.m"
          {
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 3775 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
              {
#line 3776 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
                {
#line 3777 "tree_bitset.m"
                  mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_6_p_7(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3776 "tree_bitset.m"
              }
#line 3775 "tree_bitset.m"
            else
#line 3773 "tree_bitset.m"
              {
#line 3773 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
                {
#line 3774 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_6_p_7(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3773 "tree_bitset.m"
              }
#line 3779 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3779 "tree_bitset.m"
            {
#line 3779 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;

#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3779 "tree_bitset.m"
            }
#line 3779 "tree_bitset.m"
            continue;
#line 3770 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
      }
#line 3769 "tree_bitset.m"
      break;
#line 3769 "tree_bitset.m"
    }
#line 3763 "tree_bitset.m"
}

#line 3749 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_6_p_0(
#line 3749 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_38_38,
#line 3749 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3749 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3749 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3749 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3749 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3749 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3749 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3749 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3749 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3749 "tree_bitset.m"
{
#line 3769 "tree_bitset.m"
  while (MR_TRUE)
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3769 "tree_bitset.m"
      {
#line 3769 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        else
#line 3770 "tree_bitset.m"
          {
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 3775 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
              {
#line 3776 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
                {
#line 3777 "tree_bitset.m"
                  mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_6_p_0(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3776 "tree_bitset.m"
              }
#line 3775 "tree_bitset.m"
            else
#line 3773 "tree_bitset.m"
              {
#line 3773 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
                {
#line 3774 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_6_p_0(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3773 "tree_bitset.m"
              }
#line 3779 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3779 "tree_bitset.m"
            {
#line 3779 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;

#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3779 "tree_bitset.m"
            }
#line 3779 "tree_bitset.m"
            continue;
#line 3770 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
      }
#line 3769 "tree_bitset.m"
      break;
#line 3769 "tree_bitset.m"
    }
#line 3749 "tree_bitset.m"
}

#line 3751 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_6_p_1(
#line 3751 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_38_38,
#line 3751 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3751 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3751 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3751 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3751 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3751 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3751 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3751 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3751 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3751 "tree_bitset.m"
{
#line 3769 "tree_bitset.m"
  while (MR_TRUE)
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3769 "tree_bitset.m"
      {
#line 3769 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        else
#line 3770 "tree_bitset.m"
          {
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 3775 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
              {
#line 3776 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
                {
#line 3777 "tree_bitset.m"
                  mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_6_p_1(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3776 "tree_bitset.m"
              }
#line 3775 "tree_bitset.m"
            else
#line 3773 "tree_bitset.m"
              {
#line 3773 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
                {
#line 3774 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_6_p_1(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3773 "tree_bitset.m"
              }
#line 3779 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3779 "tree_bitset.m"
            {
#line 3779 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;

#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3779 "tree_bitset.m"
            }
#line 3779 "tree_bitset.m"
            continue;
#line 3770 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
      }
#line 3769 "tree_bitset.m"
      break;
#line 3769 "tree_bitset.m"
    }
#line 3751 "tree_bitset.m"
}

#line 3753 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_6_p_2(
#line 3753 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_38_38,
#line 3753 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3753 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3753 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3753 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3753 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3753 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3753 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3753 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3753 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3753 "tree_bitset.m"
{
#line 3769 "tree_bitset.m"
  while (MR_TRUE)
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3769 "tree_bitset.m"
      {
#line 3769 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        else
#line 3770 "tree_bitset.m"
          {
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 3775 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
              {
#line 3776 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
                {
#line 3777 "tree_bitset.m"
                  mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_6_p_2(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3776 "tree_bitset.m"
              }
#line 3775 "tree_bitset.m"
            else
#line 3773 "tree_bitset.m"
              {
#line 3773 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
                {
#line 3774 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_6_p_2(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3773 "tree_bitset.m"
              }
#line 3779 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3779 "tree_bitset.m"
            {
#line 3779 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;

#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3779 "tree_bitset.m"
            }
#line 3779 "tree_bitset.m"
            continue;
#line 3770 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
      }
#line 3769 "tree_bitset.m"
      break;
#line 3769 "tree_bitset.m"
    }
#line 3753 "tree_bitset.m"
}

#line 3755 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_6_p_3(
#line 3755 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_38_38,
#line 3755 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3755 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3755 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3755 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3755 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3755 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3755 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3755 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3755 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3755 "tree_bitset.m"
{
#line 3769 "tree_bitset.m"
  while (MR_TRUE)
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3769 "tree_bitset.m"
      {
#line 3769 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3769 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        else
#line 3770 "tree_bitset.m"
          {
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 3775 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
              {
#line 3776 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
                {
#line 3777 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_6_p_3(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3776 "tree_bitset.m"
              }
#line 3775 "tree_bitset.m"
            else
#line 3773 "tree_bitset.m"
              {
#line 3773 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
                {
#line 3774 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_6_p_3(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3773 "tree_bitset.m"
              }
#line 3770 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3779 "tree_bitset.m"
              {
#line 3779 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3779 "tree_bitset.m"
                {
#line 3779 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3779 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3779 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;

#line 3779 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3779 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3779 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3779 "tree_bitset.m"
                }
#line 3779 "tree_bitset.m"
                continue;
#line 3779 "tree_bitset.m"
              }
#line 3770 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3769 "tree_bitset.m"
      }
#line 3769 "tree_bitset.m"
      break;
#line 3769 "tree_bitset.m"
    }
#line 3755 "tree_bitset.m"
}

#line 3770 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4_1(
#line 3770 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3770 "tree_bitset.m"
{
#line 3770 "tree_bitset.m"
  {
#line 3770 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3779 "tree_bitset.m"
    {
#line 3779 "tree_bitset.m"
      mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_38_38, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_36, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_37, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_35, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__T_16, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_29_29, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_30_30, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 3779 "tree_bitset.m"
      return;
    }
#line 3770 "tree_bitset.m"
  }
#line 3770 "tree_bitset.m"
}

#line 3757 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4(
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_38_38,
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3757 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3757 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3757 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3757 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6,
#line 3757 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3757 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3757 "tree_bitset.m"
{
#line 3757 "tree_bitset.m"
  {
#line 3757 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_38_38 = mercury__tree_bitset__V_38_38;
#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_36 = mercury__tree_bitset__TypeInfo_for_U_36;
#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_37 = mercury__tree_bitset__TypeInfo_for_V_37;
#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_35 = mercury__tree_bitset__TypeClassInfo_for_enum_35;
#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1 = mercury__tree_bitset__P_1;
#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_4;
#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_6;
#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
        {
#line 3769 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6) = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4) = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 3769 "tree_bitset.m"
            return;
          }
#line 3769 "tree_bitset.m"
        }
#line 3769 "tree_bitset.m"
      else
#line 3770 "tree_bitset.m"
        {
#line 3770 "tree_bitset.m"
          MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
          MR_Word mercury__tree_bitset__Components_19;
#line 3771 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_33_33;
#line 3771 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_34_34;

#line 3770 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3771 "tree_bitset.m"
          mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
          mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3771 "tree_bitset.m"
          mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3775 "tree_bitset.m"
          if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
            {
#line 3776 "tree_bitset.m"
              MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
              {
#line 3777 "tree_bitset.m"
                mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_38_38, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_36, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_37, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_35, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_30_30, mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4_1, &mercury__tree_bitset__env);
              }
#line 3776 "tree_bitset.m"
            }
#line 3775 "tree_bitset.m"
          else
#line 3773 "tree_bitset.m"
            {
#line 3773 "tree_bitset.m"
              MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
              {
#line 3774 "tree_bitset.m"
                mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_38_38, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_36, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_37, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_35, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_30_30, mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4_1, &mercury__tree_bitset__env);
              }
#line 3773 "tree_bitset.m"
            }
#line 3770 "tree_bitset.m"
        }
#line 3769 "tree_bitset.m"
    }
#line 3757 "tree_bitset.m"
  }
#line 3757 "tree_bitset.m"
}

#line 3759 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_6_p_5(
#line 3759 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_38_38,
#line 3759 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3759 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3759 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3759 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3759 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3759 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3759 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3759 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3759 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3759 "tree_bitset.m"
{
#line 3769 "tree_bitset.m"
  while (MR_TRUE)
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3769 "tree_bitset.m"
      {
#line 3769 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        else
#line 3770 "tree_bitset.m"
          {
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 3775 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
              {
#line 3776 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
                {
#line 3777 "tree_bitset.m"
                  mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_6_p_5(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3776 "tree_bitset.m"
              }
#line 3775 "tree_bitset.m"
            else
#line 3773 "tree_bitset.m"
              {
#line 3773 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
                {
#line 3774 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_6_p_5(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3773 "tree_bitset.m"
              }
#line 3779 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3779 "tree_bitset.m"
            {
#line 3779 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;

#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3779 "tree_bitset.m"
            }
#line 3779 "tree_bitset.m"
            continue;
#line 3770 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
      }
#line 3769 "tree_bitset.m"
      break;
#line 3769 "tree_bitset.m"
    }
#line 3759 "tree_bitset.m"
}

#line 3761 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_6_p_6(
#line 3761 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_38_38,
#line 3761 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3761 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3761 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3761 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3761 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3761 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3761 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3761 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3761 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3761 "tree_bitset.m"
{
#line 3769 "tree_bitset.m"
  while (MR_TRUE)
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3769 "tree_bitset.m"
      {
#line 3769 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        else
#line 3770 "tree_bitset.m"
          {
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 3775 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
              {
#line 3776 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
                {
#line 3777 "tree_bitset.m"
                  mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_6_p_6(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3776 "tree_bitset.m"
              }
#line 3775 "tree_bitset.m"
            else
#line 3773 "tree_bitset.m"
              {
#line 3773 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
                {
#line 3774 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_6_p_6(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3773 "tree_bitset.m"
              }
#line 3779 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3779 "tree_bitset.m"
            {
#line 3779 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;

#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3779 "tree_bitset.m"
            }
#line 3779 "tree_bitset.m"
            continue;
#line 3770 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
      }
#line 3769 "tree_bitset.m"
      break;
#line 3769 "tree_bitset.m"
    }
#line 3761 "tree_bitset.m"
}

#line 3763 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_6_p_7(
#line 3763 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_38_38,
#line 3763 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3763 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3763 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3763 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3763 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3763 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3763 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3763 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3763 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3763 "tree_bitset.m"
{
#line 3769 "tree_bitset.m"
  while (MR_TRUE)
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3769 "tree_bitset.m"
      {
#line 3769 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        else
#line 3770 "tree_bitset.m"
          {
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 3775 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
              {
#line 3776 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
                {
#line 3777 "tree_bitset.m"
                  mercury__tree_bitset__f_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_100_111_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_6_p_7(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3776 "tree_bitset.m"
              }
#line 3775 "tree_bitset.m"
            else
#line 3773 "tree_bitset.m"
              {
#line 3773 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
                {
#line 3774 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_6_p_7(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3773 "tree_bitset.m"
              }
#line 3779 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3779 "tree_bitset.m"
            {
#line 3779 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;

#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3779 "tree_bitset.m"
            }
#line 3779 "tree_bitset.m"
            continue;
#line 3770 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
      }
#line 3769 "tree_bitset.m"
      break;
#line 3769 "tree_bitset.m"
    }
#line 3763 "tree_bitset.m"
}

#line 3783 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_6_p_0(
#line 3783 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3783 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3783 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3783 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3783 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3783 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3783 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3783 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3783 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3783 "tree_bitset.m"
{
#line 3803 "tree_bitset.m"
  while (MR_TRUE)
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3803 "tree_bitset.m"
      {
#line 3803 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        else
#line 3804 "tree_bitset.m"
          {
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_6_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 20904 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
            {
#line 3805 "tree_bitset.m"
              mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_9_p_0(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3807 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3807 "tree_bitset.m"
            {
#line 3807 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3807 "tree_bitset.m"
            }
#line 3807 "tree_bitset.m"
            continue;
#line 3804 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
      }
#line 3803 "tree_bitset.m"
      break;
#line 3803 "tree_bitset.m"
    }
#line 3783 "tree_bitset.m"
}

#line 3785 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_6_p_1(
#line 3785 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3785 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3785 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3785 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3785 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3785 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3785 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3785 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3785 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3785 "tree_bitset.m"
{
#line 3803 "tree_bitset.m"
  while (MR_TRUE)
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3803 "tree_bitset.m"
      {
#line 3803 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        else
#line 3804 "tree_bitset.m"
          {
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_6_p_1

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 21022 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
            {
#line 3805 "tree_bitset.m"
              mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_9_p_1(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3807 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3807 "tree_bitset.m"
            {
#line 3807 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3807 "tree_bitset.m"
            }
#line 3807 "tree_bitset.m"
            continue;
#line 3804 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
      }
#line 3803 "tree_bitset.m"
      break;
#line 3803 "tree_bitset.m"
    }
#line 3785 "tree_bitset.m"
}

#line 3787 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_6_p_2(
#line 3787 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3787 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3787 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3787 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3787 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3787 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3787 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3787 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3787 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3787 "tree_bitset.m"
{
#line 3803 "tree_bitset.m"
  while (MR_TRUE)
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3803 "tree_bitset.m"
      {
#line 3803 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        else
#line 3804 "tree_bitset.m"
          {
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_6_p_2

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 21140 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
            {
#line 3805 "tree_bitset.m"
              mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_9_p_2(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3807 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3807 "tree_bitset.m"
            {
#line 3807 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3807 "tree_bitset.m"
            }
#line 3807 "tree_bitset.m"
            continue;
#line 3804 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
      }
#line 3803 "tree_bitset.m"
      break;
#line 3803 "tree_bitset.m"
    }
#line 3787 "tree_bitset.m"
}

#line 3789 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_6_p_3(
#line 3789 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3789 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3789 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3789 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3789 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3789 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3789 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3789 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3789 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3789 "tree_bitset.m"
{
#line 3803 "tree_bitset.m"
  while (MR_TRUE)
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3803 "tree_bitset.m"
      {
#line 3803 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3803 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        else
#line 3804 "tree_bitset.m"
          {
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_6_p_3

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 21260 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
            {
#line 3805 "tree_bitset.m"
              mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_9_p_3(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3804 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3807 "tree_bitset.m"
              {
#line 3807 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3807 "tree_bitset.m"
                {
#line 3807 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3807 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3807 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3807 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3807 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3807 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3807 "tree_bitset.m"
                }
#line 3807 "tree_bitset.m"
                continue;
#line 3807 "tree_bitset.m"
              }
#line 3804 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3803 "tree_bitset.m"
      }
#line 3803 "tree_bitset.m"
      break;
#line 3803 "tree_bitset.m"
    }
#line 3789 "tree_bitset.m"
}

#line 3804 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4_1(
#line 3804 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3804 "tree_bitset.m"
{
#line 3804 "tree_bitset.m"
  {
#line 3804 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3807 "tree_bitset.m"
    {
#line 3807 "tree_bitset.m"
      mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_34, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_35, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_33, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__T_16, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_27_27, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_28_28, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 3807 "tree_bitset.m"
      return;
    }
#line 3804 "tree_bitset.m"
  }
#line 3804 "tree_bitset.m"
}

#line 3791 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4(
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3791 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3791 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3791 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3791 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6,
#line 3791 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3791 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3791 "tree_bitset.m"
{
#line 3791 "tree_bitset.m"
  {
#line 3791 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_34 = mercury__tree_bitset__TypeInfo_for_U_34;
#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_35 = mercury__tree_bitset__TypeInfo_for_V_35;
#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_33 = mercury__tree_bitset__TypeClassInfo_for_enum_33;
#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1 = mercury__tree_bitset__P_1;
#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_4;
#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_6;
#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
        {
#line 3803 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6) = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4) = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 3803 "tree_bitset.m"
            return;
          }
#line 3803 "tree_bitset.m"
        }
#line 3803 "tree_bitset.m"
      else
#line 3804 "tree_bitset.m"
        {
#line 3804 "tree_bitset.m"
          MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_24_24;
#line 3804 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_31_31;

#line 3804 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3805 "tree_bitset.m"
          mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3805 "tree_bitset.m"
          mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 21436 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
          {
#line 3805 "tree_bitset.m"
            mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_9_p_4((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_34, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_35, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_33, (MR_Integer) 0, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4_1, &mercury__tree_bitset__env);
          }
#line 3804 "tree_bitset.m"
        }
#line 3803 "tree_bitset.m"
    }
#line 3791 "tree_bitset.m"
  }
#line 3791 "tree_bitset.m"
}

#line 3793 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_6_p_5(
#line 3793 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3793 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3793 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3793 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3793 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3793 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3793 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3793 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3793 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3793 "tree_bitset.m"
{
#line 3803 "tree_bitset.m"
  while (MR_TRUE)
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3803 "tree_bitset.m"
      {
#line 3803 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        else
#line 3804 "tree_bitset.m"
          {
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_6_p_5

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 21531 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
            {
#line 3805 "tree_bitset.m"
              mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_9_p_5(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3807 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3807 "tree_bitset.m"
            {
#line 3807 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3807 "tree_bitset.m"
            }
#line 3807 "tree_bitset.m"
            continue;
#line 3804 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
      }
#line 3803 "tree_bitset.m"
      break;
#line 3803 "tree_bitset.m"
    }
#line 3793 "tree_bitset.m"
}

#line 3795 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_6_p_6(
#line 3795 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3795 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3795 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3795 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3795 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3795 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3795 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3795 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3795 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3795 "tree_bitset.m"
{
#line 3803 "tree_bitset.m"
  while (MR_TRUE)
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3803 "tree_bitset.m"
      {
#line 3803 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        else
#line 3804 "tree_bitset.m"
          {
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_6_p_6

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 21649 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
            {
#line 3805 "tree_bitset.m"
              mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_9_p_6(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3807 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3807 "tree_bitset.m"
            {
#line 3807 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3807 "tree_bitset.m"
            }
#line 3807 "tree_bitset.m"
            continue;
#line 3804 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
      }
#line 3803 "tree_bitset.m"
      break;
#line 3803 "tree_bitset.m"
    }
#line 3795 "tree_bitset.m"
}

#line 3797 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_6_p_7(
#line 3797 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3797 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3797 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3797 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3797 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3797 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3797 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3797 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3797 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3797 "tree_bitset.m"
{
#line 3803 "tree_bitset.m"
  while (MR_TRUE)
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3803 "tree_bitset.m"
      {
#line 3803 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        else
#line 3804 "tree_bitset.m"
          {
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_6_p_7

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 21767 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
            {
#line 3805 "tree_bitset.m"
              mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_9_p_7(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3807 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3807 "tree_bitset.m"
            {
#line 3807 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3807 "tree_bitset.m"
            }
#line 3807 "tree_bitset.m"
            continue;
#line 3804 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
      }
#line 3803 "tree_bitset.m"
      break;
#line 3803 "tree_bitset.m"
    }
#line 3797 "tree_bitset.m"
}

#line 3783 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_6_p_0(
#line 3783 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_36_36,
#line 3783 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3783 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3783 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3783 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3783 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3783 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3783 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3783 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3783 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3783 "tree_bitset.m"
{
#line 3803 "tree_bitset.m"
  while (MR_TRUE)
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3803 "tree_bitset.m"
      {
#line 3803 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        else
#line 3804 "tree_bitset.m"
          {
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_6_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 21887 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
            {
#line 3805 "tree_bitset.m"
              mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_9_p_0(mercury__tree_bitset__V_36_36, mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3807 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3807 "tree_bitset.m"
            {
#line 3807 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3807 "tree_bitset.m"
            }
#line 3807 "tree_bitset.m"
            continue;
#line 3804 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
      }
#line 3803 "tree_bitset.m"
      break;
#line 3803 "tree_bitset.m"
    }
#line 3783 "tree_bitset.m"
}

#line 3785 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_6_p_1(
#line 3785 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_36_36,
#line 3785 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3785 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3785 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3785 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3785 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3785 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3785 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3785 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3785 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3785 "tree_bitset.m"
{
#line 3803 "tree_bitset.m"
  while (MR_TRUE)
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3803 "tree_bitset.m"
      {
#line 3803 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        else
#line 3804 "tree_bitset.m"
          {
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_6_p_1

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 22007 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
            {
#line 3805 "tree_bitset.m"
              mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_9_p_1(mercury__tree_bitset__V_36_36, mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3807 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3807 "tree_bitset.m"
            {
#line 3807 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3807 "tree_bitset.m"
            }
#line 3807 "tree_bitset.m"
            continue;
#line 3804 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
      }
#line 3803 "tree_bitset.m"
      break;
#line 3803 "tree_bitset.m"
    }
#line 3785 "tree_bitset.m"
}

#line 3787 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_6_p_2(
#line 3787 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_36_36,
#line 3787 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3787 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3787 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3787 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3787 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3787 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3787 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3787 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3787 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3787 "tree_bitset.m"
{
#line 3803 "tree_bitset.m"
  while (MR_TRUE)
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3803 "tree_bitset.m"
      {
#line 3803 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        else
#line 3804 "tree_bitset.m"
          {
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_6_p_2

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 22127 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
            {
#line 3805 "tree_bitset.m"
              mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_9_p_2(mercury__tree_bitset__V_36_36, mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3807 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3807 "tree_bitset.m"
            {
#line 3807 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3807 "tree_bitset.m"
            }
#line 3807 "tree_bitset.m"
            continue;
#line 3804 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
      }
#line 3803 "tree_bitset.m"
      break;
#line 3803 "tree_bitset.m"
    }
#line 3787 "tree_bitset.m"
}

#line 3789 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_6_p_3(
#line 3789 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_36_36,
#line 3789 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3789 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3789 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3789 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3789 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3789 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3789 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3789 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3789 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3789 "tree_bitset.m"
{
#line 3803 "tree_bitset.m"
  while (MR_TRUE)
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3803 "tree_bitset.m"
      {
#line 3803 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3803 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        else
#line 3804 "tree_bitset.m"
          {
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_6_p_3

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 22249 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
            {
#line 3805 "tree_bitset.m"
              mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_9_p_3(mercury__tree_bitset__V_36_36, mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3804 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3807 "tree_bitset.m"
              {
#line 3807 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3807 "tree_bitset.m"
                {
#line 3807 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3807 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3807 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3807 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3807 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3807 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3807 "tree_bitset.m"
                }
#line 3807 "tree_bitset.m"
                continue;
#line 3807 "tree_bitset.m"
              }
#line 3804 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3803 "tree_bitset.m"
      }
#line 3803 "tree_bitset.m"
      break;
#line 3803 "tree_bitset.m"
    }
#line 3789 "tree_bitset.m"
}

#line 3804 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4_1(
#line 3804 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3804 "tree_bitset.m"
{
#line 3804 "tree_bitset.m"
  {
#line 3804 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3807 "tree_bitset.m"
    {
#line 3807 "tree_bitset.m"
      mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_36_36, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_34, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_35, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_33, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__T_16, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_27_27, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_28_28, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 3807 "tree_bitset.m"
      return;
    }
#line 3804 "tree_bitset.m"
  }
#line 3804 "tree_bitset.m"
}

#line 3791 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4(
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_36_36,
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3791 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3791 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3791 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3791 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6,
#line 3791 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3791 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3791 "tree_bitset.m"
{
#line 3791 "tree_bitset.m"
  {
#line 3791 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_36_36 = mercury__tree_bitset__V_36_36;
#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_34 = mercury__tree_bitset__TypeInfo_for_U_34;
#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_35 = mercury__tree_bitset__TypeInfo_for_V_35;
#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_33 = mercury__tree_bitset__TypeClassInfo_for_enum_33;
#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1 = mercury__tree_bitset__P_1;
#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_4;
#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_6;
#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
        {
#line 3803 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6) = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4) = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 3803 "tree_bitset.m"
            return;
          }
#line 3803 "tree_bitset.m"
        }
#line 3803 "tree_bitset.m"
      else
#line 3804 "tree_bitset.m"
        {
#line 3804 "tree_bitset.m"
          MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_24_24;
#line 3804 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_31_31;

#line 3804 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3805 "tree_bitset.m"
          mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3805 "tree_bitset.m"
          mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 22429 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
          {
#line 3805 "tree_bitset.m"
            mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_9_p_4((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_36_36, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_34, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_35, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_33, (MR_Integer) 0, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4_1, &mercury__tree_bitset__env);
          }
#line 3804 "tree_bitset.m"
        }
#line 3803 "tree_bitset.m"
    }
#line 3791 "tree_bitset.m"
  }
#line 3791 "tree_bitset.m"
}

#line 3793 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_6_p_5(
#line 3793 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_36_36,
#line 3793 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3793 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3793 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3793 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3793 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3793 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3793 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3793 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3793 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3793 "tree_bitset.m"
{
#line 3803 "tree_bitset.m"
  while (MR_TRUE)
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3803 "tree_bitset.m"
      {
#line 3803 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        else
#line 3804 "tree_bitset.m"
          {
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_6_p_5

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 22526 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
            {
#line 3805 "tree_bitset.m"
              mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_9_p_5(mercury__tree_bitset__V_36_36, mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3807 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3807 "tree_bitset.m"
            {
#line 3807 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3807 "tree_bitset.m"
            }
#line 3807 "tree_bitset.m"
            continue;
#line 3804 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
      }
#line 3803 "tree_bitset.m"
      break;
#line 3803 "tree_bitset.m"
    }
#line 3793 "tree_bitset.m"
}

#line 3795 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_6_p_6(
#line 3795 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_36_36,
#line 3795 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3795 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3795 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3795 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3795 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3795 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3795 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3795 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3795 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3795 "tree_bitset.m"
{
#line 3803 "tree_bitset.m"
  while (MR_TRUE)
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3803 "tree_bitset.m"
      {
#line 3803 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        else
#line 3804 "tree_bitset.m"
          {
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_6_p_6

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 22646 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
            {
#line 3805 "tree_bitset.m"
              mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_9_p_6(mercury__tree_bitset__V_36_36, mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3807 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3807 "tree_bitset.m"
            {
#line 3807 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3807 "tree_bitset.m"
            }
#line 3807 "tree_bitset.m"
            continue;
#line 3804 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
      }
#line 3803 "tree_bitset.m"
      break;
#line 3803 "tree_bitset.m"
    }
#line 3795 "tree_bitset.m"
}

#line 3797 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_6_p_7(
#line 3797 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_36_36,
#line 3797 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3797 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3797 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3797 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3797 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3797 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3797 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3797 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3797 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3797 "tree_bitset.m"
{
#line 3803 "tree_bitset.m"
  while (MR_TRUE)
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3803 "tree_bitset.m"
      {
#line 3803 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        else
#line 3804 "tree_bitset.m"
          {
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_108_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_6_p_7

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 22766 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
            {
#line 3805 "tree_bitset.m"
              mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_9_p_7(mercury__tree_bitset__V_36_36, mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3807 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3807 "tree_bitset.m"
            {
#line 3807 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3807 "tree_bitset.m"
            }
#line 3807 "tree_bitset.m"
            continue;
#line 3804 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
      }
#line 3803 "tree_bitset.m"
      break;
#line 3803 "tree_bitset.m"
    }
#line 3797 "tree_bitset.m"
}

#line 3836 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_4_p_0(
#line 3836 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3836 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3836 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3836 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3836 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3836 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3836 "tree_bitset.m"
{
#line 3849 "tree_bitset.m"
  while (MR_TRUE)
#line 3849 "tree_bitset.m"
    {
#line 3849 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3849 "tree_bitset.m"
      {
#line 3849 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3849 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3849 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3849 "tree_bitset.m"
        else
#line 3850 "tree_bitset.m"
          {
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13;
#line 3850 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23;

#line 3851 "tree_bitset.m"
            {
#line 3851 "tree_bitset.m"
              mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_4_p_0(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3856 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3857 "tree_bitset.m"
              {
#line 3857 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3857 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3858 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3858 "tree_bitset.m"
                {
#line 3858 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_16;
#line 3858 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3858 "tree_bitset.m"
                }
#line 3858 "tree_bitset.m"
                continue;
#line 3857 "tree_bitset.m"
              }
#line 3856 "tree_bitset.m"
            else
#line 3854 "tree_bitset.m"
              {
#line 3854 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3855 "tree_bitset.m"
                {
#line 3855 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_4_p_0(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3855 "tree_bitset.m"
                  return;
                }
#line 3854 "tree_bitset.m"
              }
#line 3850 "tree_bitset.m"
          }
#line 3849 "tree_bitset.m"
      }
#line 3849 "tree_bitset.m"
      break;
#line 3849 "tree_bitset.m"
    }
#line 3836 "tree_bitset.m"
}

#line 3837 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_4_p_1(
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3837 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3837 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3837 "tree_bitset.m"
{
#line 3849 "tree_bitset.m"
  while (MR_TRUE)
#line 3849 "tree_bitset.m"
    {
#line 3849 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3849 "tree_bitset.m"
      {
#line 3849 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3849 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3849 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3849 "tree_bitset.m"
        else
#line 3850 "tree_bitset.m"
          {
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13;
#line 3850 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23;

#line 3851 "tree_bitset.m"
            {
#line 3851 "tree_bitset.m"
              mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_4_p_1(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3856 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3857 "tree_bitset.m"
              {
#line 3857 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3857 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3858 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3858 "tree_bitset.m"
                {
#line 3858 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_16;
#line 3858 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3858 "tree_bitset.m"
                }
#line 3858 "tree_bitset.m"
                continue;
#line 3857 "tree_bitset.m"
              }
#line 3856 "tree_bitset.m"
            else
#line 3854 "tree_bitset.m"
              {
#line 3854 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3855 "tree_bitset.m"
                {
#line 3855 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_4_p_1(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3855 "tree_bitset.m"
                  return;
                }
#line 3854 "tree_bitset.m"
              }
#line 3850 "tree_bitset.m"
          }
#line 3849 "tree_bitset.m"
      }
#line 3849 "tree_bitset.m"
      break;
#line 3849 "tree_bitset.m"
    }
#line 3837 "tree_bitset.m"
}

#line 3838 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_4_p_2(
#line 3838 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3838 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3838 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3838 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3838 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3838 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3838 "tree_bitset.m"
{
#line 3849 "tree_bitset.m"
  while (MR_TRUE)
#line 3849 "tree_bitset.m"
    {
#line 3849 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3849 "tree_bitset.m"
      {
#line 3849 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3849 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3849 "tree_bitset.m"
          {
#line 3849 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3849 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3849 "tree_bitset.m"
          }
#line 3849 "tree_bitset.m"
        else
#line 3850 "tree_bitset.m"
          {
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13;
#line 3850 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23;

#line 3851 "tree_bitset.m"
            {
#line 3851 "tree_bitset.m"
              mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_4_p_2(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3850 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3850 "tree_bitset.m"
              {
#line 3852 "tree_bitset.m"
                mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3852 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 3852 "tree_bitset.m"
                mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3856 "tree_bitset.m"
                if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3857 "tree_bitset.m"
                  {
#line 3857 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3857 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3858 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3858 "tree_bitset.m"
                    {
#line 3858 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_16;
#line 3858 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3858 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3858 "tree_bitset.m"
                      mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3858 "tree_bitset.m"
                    }
#line 3858 "tree_bitset.m"
                    continue;
#line 3857 "tree_bitset.m"
                  }
#line 3856 "tree_bitset.m"
                else
#line 3854 "tree_bitset.m"
                  {
#line 3854 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3855 "tree_bitset.m"
                    {
#line 3855 "tree_bitset.m"
                      return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_4_p_2(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
                    }
#line 3854 "tree_bitset.m"
                  }
#line 3850 "tree_bitset.m"
              }
#line 3850 "tree_bitset.m"
          }
#line 3849 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3849 "tree_bitset.m"
      }
#line 3849 "tree_bitset.m"
      break;
#line 3849 "tree_bitset.m"
    }
#line 3838 "tree_bitset.m"
}

#line 3850 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3_1(
#line 3850 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3850 "tree_bitset.m"
{
#line 3850 "tree_bitset.m"
  {
#line 3850 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3850 "tree_bitset.m"
    {
#line 3852 "tree_bitset.m"
      MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__H_10, (MR_Integer) 0)));
#line 3852 "tree_bitset.m"
      MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__H_10, (MR_Integer) 1)));

#line 3852 "tree_bitset.m"
      (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__H_10, (MR_Integer) 2)));
#line 3856 "tree_bitset.m"
      if (((MR_tag((MR_Word) (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3857 "tree_bitset.m"
        {
#line 3857 "tree_bitset.m"
          MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__Components_13, (MR_Integer) 1)));
#line 3857 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__Components_13, (MR_Integer) 0)));

#line 3858 "tree_bitset.m"
          {
#line 3858 "tree_bitset.m"
            mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeInfo_for_U_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__P_1, mercury__tree_bitset__InteriorNodes_16, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_19_19, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont_env_ptr);
#line 3858 "tree_bitset.m"
            return;
          }
#line 3857 "tree_bitset.m"
        }
#line 3856 "tree_bitset.m"
      else
#line 3854 "tree_bitset.m"
        {
#line 3854 "tree_bitset.m"
          MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__Components_13, (MR_Integer) 0)));

#line 3855 "tree_bitset.m"
          {
#line 3855 "tree_bitset.m"
            mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeInfo_for_U_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__P_1, mercury__tree_bitset__LeafNodes_14, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_19_19, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont_env_ptr);
#line 3855 "tree_bitset.m"
            return;
          }
#line 3854 "tree_bitset.m"
        }
#line 3850 "tree_bitset.m"
    }
#line 3850 "tree_bitset.m"
  }
#line 3850 "tree_bitset.m"
}

#line 3839 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3(
#line 3839 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3839 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3839 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3839 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3839 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3839 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4,
#line 3839 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3839 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3839 "tree_bitset.m"
{
#line 3839 "tree_bitset.m"
  {
#line 3839 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3839 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeInfo_for_U_25 = mercury__tree_bitset__TypeInfo_for_U_25;
#line 3839 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeClassInfo_for_enum_24 = mercury__tree_bitset__TypeClassInfo_for_enum_24;
#line 3839 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__P_1 = mercury__tree_bitset__P_1;
#line 3839 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_4;
#line 3839 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3839 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3849 "tree_bitset.m"
    {
#line 3849 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3849 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3849 "tree_bitset.m"
        {
#line 3849 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_4) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3849 "tree_bitset.m"
          {
#line 3849 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont_env_ptr);
#line 3849 "tree_bitset.m"
            return;
          }
#line 3849 "tree_bitset.m"
        }
#line 3849 "tree_bitset.m"
      else
#line 3850 "tree_bitset.m"
        {
#line 3850 "tree_bitset.m"
          MR_Word mercury__tree_bitset__T_11;

#line 3850 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3850 "tree_bitset.m"
          mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3851 "tree_bitset.m"
          {
#line 3851 "tree_bitset.m"
            mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeInfo_for_U_25, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3_1, &mercury__tree_bitset__env);
          }
#line 3850 "tree_bitset.m"
        }
#line 3849 "tree_bitset.m"
    }
#line 3839 "tree_bitset.m"
  }
#line 3839 "tree_bitset.m"
}

#line 3840 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_4_p_4(
#line 3840 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3840 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3840 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3840 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3840 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3840 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3840 "tree_bitset.m"
{
#line 3849 "tree_bitset.m"
  while (MR_TRUE)
#line 3849 "tree_bitset.m"
    {
#line 3849 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3849 "tree_bitset.m"
      {
#line 3849 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3849 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3849 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3849 "tree_bitset.m"
        else
#line 3850 "tree_bitset.m"
          {
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13;
#line 3850 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23;

#line 3851 "tree_bitset.m"
            {
#line 3851 "tree_bitset.m"
              mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_4_p_4(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3856 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3857 "tree_bitset.m"
              {
#line 3857 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3857 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3858 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3858 "tree_bitset.m"
                {
#line 3858 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_16;
#line 3858 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3858 "tree_bitset.m"
                }
#line 3858 "tree_bitset.m"
                continue;
#line 3857 "tree_bitset.m"
              }
#line 3856 "tree_bitset.m"
            else
#line 3854 "tree_bitset.m"
              {
#line 3854 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3855 "tree_bitset.m"
                {
#line 3855 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_4_p_4(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3855 "tree_bitset.m"
                  return;
                }
#line 3854 "tree_bitset.m"
              }
#line 3850 "tree_bitset.m"
          }
#line 3849 "tree_bitset.m"
      }
#line 3849 "tree_bitset.m"
      break;
#line 3849 "tree_bitset.m"
    }
#line 3840 "tree_bitset.m"
}

#line 3841 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_4_p_5(
#line 3841 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3841 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3841 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3841 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3841 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3841 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3841 "tree_bitset.m"
{
#line 3849 "tree_bitset.m"
  while (MR_TRUE)
#line 3849 "tree_bitset.m"
    {
#line 3849 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3849 "tree_bitset.m"
      {
#line 3849 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3849 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3849 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3849 "tree_bitset.m"
        else
#line 3850 "tree_bitset.m"
          {
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13;
#line 3850 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23;

#line 3851 "tree_bitset.m"
            {
#line 3851 "tree_bitset.m"
              mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_4_p_5(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3856 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3857 "tree_bitset.m"
              {
#line 3857 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3857 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3858 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3858 "tree_bitset.m"
                {
#line 3858 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_16;
#line 3858 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3858 "tree_bitset.m"
                }
#line 3858 "tree_bitset.m"
                continue;
#line 3857 "tree_bitset.m"
              }
#line 3856 "tree_bitset.m"
            else
#line 3854 "tree_bitset.m"
              {
#line 3854 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3855 "tree_bitset.m"
                {
#line 3855 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_4_p_5(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3855 "tree_bitset.m"
                  return;
                }
#line 3854 "tree_bitset.m"
              }
#line 3850 "tree_bitset.m"
          }
#line 3849 "tree_bitset.m"
      }
#line 3849 "tree_bitset.m"
      break;
#line 3849 "tree_bitset.m"
    }
#line 3841 "tree_bitset.m"
}

#line 3836 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_p_0(
#line 3836 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_26_26,
#line 3836 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3836 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3836 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3836 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3836 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3836 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3836 "tree_bitset.m"
{
#line 3849 "tree_bitset.m"
  while (MR_TRUE)
#line 3849 "tree_bitset.m"
    {
#line 3849 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3849 "tree_bitset.m"
      {
#line 3849 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3849 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3849 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3849 "tree_bitset.m"
        else
#line 3850 "tree_bitset.m"
          {
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13;
#line 3850 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23;

#line 3851 "tree_bitset.m"
            {
#line 3851 "tree_bitset.m"
              mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_p_0(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3856 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3857 "tree_bitset.m"
              {
#line 3857 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3857 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3858 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3858 "tree_bitset.m"
                {
#line 3858 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_16;
#line 3858 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3858 "tree_bitset.m"
                }
#line 3858 "tree_bitset.m"
                continue;
#line 3857 "tree_bitset.m"
              }
#line 3856 "tree_bitset.m"
            else
#line 3854 "tree_bitset.m"
              {
#line 3854 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3855 "tree_bitset.m"
                {
#line 3855 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_p_0(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3855 "tree_bitset.m"
                  return;
                }
#line 3854 "tree_bitset.m"
              }
#line 3850 "tree_bitset.m"
          }
#line 3849 "tree_bitset.m"
      }
#line 3849 "tree_bitset.m"
      break;
#line 3849 "tree_bitset.m"
    }
#line 3836 "tree_bitset.m"
}

#line 3837 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_4_p_1(
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_26_26,
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3837 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3837 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3837 "tree_bitset.m"
{
#line 3849 "tree_bitset.m"
  while (MR_TRUE)
#line 3849 "tree_bitset.m"
    {
#line 3849 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3849 "tree_bitset.m"
      {
#line 3849 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3849 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3849 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3849 "tree_bitset.m"
        else
#line 3850 "tree_bitset.m"
          {
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13;
#line 3850 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23;

#line 3851 "tree_bitset.m"
            {
#line 3851 "tree_bitset.m"
              mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_4_p_1(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3856 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3857 "tree_bitset.m"
              {
#line 3857 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3857 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3858 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3858 "tree_bitset.m"
                {
#line 3858 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_16;
#line 3858 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3858 "tree_bitset.m"
                }
#line 3858 "tree_bitset.m"
                continue;
#line 3857 "tree_bitset.m"
              }
#line 3856 "tree_bitset.m"
            else
#line 3854 "tree_bitset.m"
              {
#line 3854 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3855 "tree_bitset.m"
                {
#line 3855 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_4_p_1(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3855 "tree_bitset.m"
                  return;
                }
#line 3854 "tree_bitset.m"
              }
#line 3850 "tree_bitset.m"
          }
#line 3849 "tree_bitset.m"
      }
#line 3849 "tree_bitset.m"
      break;
#line 3849 "tree_bitset.m"
    }
#line 3837 "tree_bitset.m"
}

#line 3838 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_4_p_2(
#line 3838 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_26_26,
#line 3838 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3838 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3838 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3838 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3838 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3838 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3838 "tree_bitset.m"
{
#line 3849 "tree_bitset.m"
  while (MR_TRUE)
#line 3849 "tree_bitset.m"
    {
#line 3849 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3849 "tree_bitset.m"
      {
#line 3849 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3849 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3849 "tree_bitset.m"
          {
#line 3849 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3849 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3849 "tree_bitset.m"
          }
#line 3849 "tree_bitset.m"
        else
#line 3850 "tree_bitset.m"
          {
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13;
#line 3850 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23;

#line 3851 "tree_bitset.m"
            {
#line 3851 "tree_bitset.m"
              mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_4_p_2(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3850 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3850 "tree_bitset.m"
              {
#line 3852 "tree_bitset.m"
                mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3852 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 3852 "tree_bitset.m"
                mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3856 "tree_bitset.m"
                if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3857 "tree_bitset.m"
                  {
#line 3857 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3857 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3858 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3858 "tree_bitset.m"
                    {
#line 3858 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_16;
#line 3858 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3858 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3858 "tree_bitset.m"
                      mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3858 "tree_bitset.m"
                    }
#line 3858 "tree_bitset.m"
                    continue;
#line 3857 "tree_bitset.m"
                  }
#line 3856 "tree_bitset.m"
                else
#line 3854 "tree_bitset.m"
                  {
#line 3854 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3855 "tree_bitset.m"
                    {
#line 3855 "tree_bitset.m"
                      return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_4_p_2(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
                    }
#line 3854 "tree_bitset.m"
                  }
#line 3850 "tree_bitset.m"
              }
#line 3850 "tree_bitset.m"
          }
#line 3849 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3849 "tree_bitset.m"
      }
#line 3849 "tree_bitset.m"
      break;
#line 3849 "tree_bitset.m"
    }
#line 3838 "tree_bitset.m"
}

#line 3850 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3_1(
#line 3850 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3850 "tree_bitset.m"
{
#line 3850 "tree_bitset.m"
  {
#line 3850 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3850 "tree_bitset.m"
    {
#line 3852 "tree_bitset.m"
      MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__H_10, (MR_Integer) 0)));
#line 3852 "tree_bitset.m"
      MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__H_10, (MR_Integer) 1)));

#line 3852 "tree_bitset.m"
      (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__H_10, (MR_Integer) 2)));
#line 3856 "tree_bitset.m"
      if (((MR_tag((MR_Word) (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3857 "tree_bitset.m"
        {
#line 3857 "tree_bitset.m"
          MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__Components_13, (MR_Integer) 1)));
#line 3857 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__Components_13, (MR_Integer) 0)));

#line 3858 "tree_bitset.m"
          {
#line 3858 "tree_bitset.m"
            mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_26_26, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeInfo_for_U_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__P_1, mercury__tree_bitset__InteriorNodes_16, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_19_19, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont_env_ptr);
#line 3858 "tree_bitset.m"
            return;
          }
#line 3857 "tree_bitset.m"
        }
#line 3856 "tree_bitset.m"
      else
#line 3854 "tree_bitset.m"
        {
#line 3854 "tree_bitset.m"
          MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__Components_13, (MR_Integer) 0)));

#line 3855 "tree_bitset.m"
          {
#line 3855 "tree_bitset.m"
            mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_26_26, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeInfo_for_U_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__P_1, mercury__tree_bitset__LeafNodes_14, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_19_19, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont_env_ptr);
#line 3855 "tree_bitset.m"
            return;
          }
#line 3854 "tree_bitset.m"
        }
#line 3850 "tree_bitset.m"
    }
#line 3850 "tree_bitset.m"
  }
#line 3850 "tree_bitset.m"
}

#line 3839 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3(
#line 3839 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_26_26,
#line 3839 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3839 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3839 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3839 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3839 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3839 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4,
#line 3839 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3839 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3839 "tree_bitset.m"
{
#line 3839 "tree_bitset.m"
  {
#line 3839 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3839 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_26_26 = mercury__tree_bitset__V_26_26;
#line 3839 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeInfo_for_U_25 = mercury__tree_bitset__TypeInfo_for_U_25;
#line 3839 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeClassInfo_for_enum_24 = mercury__tree_bitset__TypeClassInfo_for_enum_24;
#line 3839 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__P_1 = mercury__tree_bitset__P_1;
#line 3839 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_4;
#line 3839 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3839 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3849 "tree_bitset.m"
    {
#line 3849 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3849 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3849 "tree_bitset.m"
        {
#line 3849 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_4) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3849 "tree_bitset.m"
          {
#line 3849 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont_env_ptr);
#line 3849 "tree_bitset.m"
            return;
          }
#line 3849 "tree_bitset.m"
        }
#line 3849 "tree_bitset.m"
      else
#line 3850 "tree_bitset.m"
        {
#line 3850 "tree_bitset.m"
          MR_Word mercury__tree_bitset__T_11;

#line 3850 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3850 "tree_bitset.m"
          mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3851 "tree_bitset.m"
          {
#line 3851 "tree_bitset.m"
            mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_26_26, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeInfo_for_U_25, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3_1, &mercury__tree_bitset__env);
          }
#line 3850 "tree_bitset.m"
        }
#line 3849 "tree_bitset.m"
    }
#line 3839 "tree_bitset.m"
  }
#line 3839 "tree_bitset.m"
}

#line 3840 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_4_p_4(
#line 3840 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_26_26,
#line 3840 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3840 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3840 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3840 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3840 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3840 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3840 "tree_bitset.m"
{
#line 3849 "tree_bitset.m"
  while (MR_TRUE)
#line 3849 "tree_bitset.m"
    {
#line 3849 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3849 "tree_bitset.m"
      {
#line 3849 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3849 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3849 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3849 "tree_bitset.m"
        else
#line 3850 "tree_bitset.m"
          {
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13;
#line 3850 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23;

#line 3851 "tree_bitset.m"
            {
#line 3851 "tree_bitset.m"
              mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_4_p_4(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3856 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3857 "tree_bitset.m"
              {
#line 3857 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3857 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3858 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3858 "tree_bitset.m"
                {
#line 3858 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_16;
#line 3858 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3858 "tree_bitset.m"
                }
#line 3858 "tree_bitset.m"
                continue;
#line 3857 "tree_bitset.m"
              }
#line 3856 "tree_bitset.m"
            else
#line 3854 "tree_bitset.m"
              {
#line 3854 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3855 "tree_bitset.m"
                {
#line 3855 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_4_p_4(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3855 "tree_bitset.m"
                  return;
                }
#line 3854 "tree_bitset.m"
              }
#line 3850 "tree_bitset.m"
          }
#line 3849 "tree_bitset.m"
      }
#line 3849 "tree_bitset.m"
      break;
#line 3849 "tree_bitset.m"
    }
#line 3840 "tree_bitset.m"
}

#line 3841 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_4_p_5(
#line 3841 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_26_26,
#line 3841 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3841 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3841 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3841 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3841 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3841 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3841 "tree_bitset.m"
{
#line 3849 "tree_bitset.m"
  while (MR_TRUE)
#line 3849 "tree_bitset.m"
    {
#line 3849 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3849 "tree_bitset.m"
      {
#line 3849 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3849 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3849 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3849 "tree_bitset.m"
        else
#line 3850 "tree_bitset.m"
          {
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13;
#line 3850 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23;

#line 3851 "tree_bitset.m"
            {
#line 3851 "tree_bitset.m"
              mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_4_p_5(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3856 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3857 "tree_bitset.m"
              {
#line 3857 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3857 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3858 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3858 "tree_bitset.m"
                {
#line 3858 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_16;
#line 3858 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3858 "tree_bitset.m"
                }
#line 3858 "tree_bitset.m"
                continue;
#line 3857 "tree_bitset.m"
              }
#line 3856 "tree_bitset.m"
            else
#line 3854 "tree_bitset.m"
              {
#line 3854 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3855 "tree_bitset.m"
                {
#line 3855 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_4_p_5(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3855 "tree_bitset.m"
                  return;
                }
#line 3854 "tree_bitset.m"
              }
#line 3850 "tree_bitset.m"
          }
#line 3849 "tree_bitset.m"
      }
#line 3849 "tree_bitset.m"
      break;
#line 3849 "tree_bitset.m"
    }
#line 3841 "tree_bitset.m"
}

#line 3862 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_4_p_0(
#line 3862 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3862 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3862 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3862 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3862 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3862 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3862 "tree_bitset.m"
{
#line 3875 "tree_bitset.m"
  {
#line 3875 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3875 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3875 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3875 "tree_bitset.m"
    else
#line 3876 "tree_bitset.m"
      {
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3876 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_15_15;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_17_17;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_19_19;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_21_21;

#line 3877 "tree_bitset.m"
        {
#line 3877 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_4_p_0(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_15_15);
        }
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_4_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 24351 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_19_19  = Bits;
#line 171 "int.opt"
}
#line 3878 "tree_bitset.m"
        {
#line 3878 "tree_bitset.m"
          mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_7_p_2(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_17_17, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_15_15, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3878 "tree_bitset.m"
          return;
        }
#line 3876 "tree_bitset.m"
      }
#line 3875 "tree_bitset.m"
  }
#line 3862 "tree_bitset.m"
}

#line 3863 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_4_p_1(
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3863 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3863 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3863 "tree_bitset.m"
{
#line 3875 "tree_bitset.m"
  {
#line 3875 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3875 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3875 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3875 "tree_bitset.m"
    else
#line 3876 "tree_bitset.m"
      {
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3876 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_15_15;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_17_17;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_19_19;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_21_21;

#line 3877 "tree_bitset.m"
        {
#line 3877 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_4_p_1(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_15_15);
        }
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_4_p_1

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 24435 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_19_19  = Bits;
#line 171 "int.opt"
}
#line 3878 "tree_bitset.m"
        {
#line 3878 "tree_bitset.m"
          mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_7_p_0(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_17_17, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_15_15, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3878 "tree_bitset.m"
          return;
        }
#line 3876 "tree_bitset.m"
      }
#line 3875 "tree_bitset.m"
  }
#line 3863 "tree_bitset.m"
}

#line 3864 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_4_p_2(
#line 3864 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3864 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3864 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3864 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3864 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3864 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3864 "tree_bitset.m"
{
#line 3875 "tree_bitset.m"
  {
#line 3875 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3875 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3875 "tree_bitset.m"
      {
#line 3875 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3875 "tree_bitset.m"
        mercury__tree_bitset__succeeded = MR_TRUE;
#line 3875 "tree_bitset.m"
      }
#line 3875 "tree_bitset.m"
    else
#line 3876 "tree_bitset.m"
      {
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3876 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_15_15;
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_16_16;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_17_17;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_19_19;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_21_21;

#line 3877 "tree_bitset.m"
        {
#line 3877 "tree_bitset.m"
          mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_4_p_2(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_15_15);
        }
#line 3876 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3876 "tree_bitset.m"
          {
#line 3878 "tree_bitset.m"
            mercury__tree_bitset__V_16_16 = (MR_Integer) 1;
#line 3878 "tree_bitset.m"
            mercury__tree_bitset__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3878 "tree_bitset.m"
            mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_4_p_2

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 24533 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_19_19  = Bits;
#line 171 "int.opt"
}
#line 3878 "tree_bitset.m"
            {
#line 3878 "tree_bitset.m"
              return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_7_p_3(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__V_16_16, mercury__tree_bitset__P_1, mercury__tree_bitset__V_17_17, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_15_15, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
            }
#line 3876 "tree_bitset.m"
          }
#line 3876 "tree_bitset.m"
      }
#line 3875 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 3875 "tree_bitset.m"
  }
#line 3864 "tree_bitset.m"
}

#line 3876 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3_1(
#line 3876 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3876 "tree_bitset.m"
{
#line 3876 "tree_bitset.m"
  {
#line 3876 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3878 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_16_16 = (MR_Integer) 1;
#line 3878 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__H_10, (MR_Integer) 0)));
#line 3878 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 24585 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_19_19  = Bits;
#line 171 "int.opt"
}
#line 3878 "tree_bitset.m"
    {
#line 3878 "tree_bitset.m"
      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_7_p_6((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeInfo_for_U_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeClassInfo_for_enum_23, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_16_16, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_17_17, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_21_21, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_19_19, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_15_15, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont_env_ptr);
#line 3878 "tree_bitset.m"
      return;
    }
#line 3876 "tree_bitset.m"
  }
#line 3876 "tree_bitset.m"
}

#line 3865 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3(
#line 3865 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3865 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3865 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3865 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3865 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3865 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4,
#line 3865 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3865 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3865 "tree_bitset.m"
{
#line 3865 "tree_bitset.m"
  {
#line 3865 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3865 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeInfo_for_U_24 = mercury__tree_bitset__TypeInfo_for_U_24;
#line 3865 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeClassInfo_for_enum_23 = mercury__tree_bitset__TypeClassInfo_for_enum_23;
#line 3865 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__P_1 = mercury__tree_bitset__P_1;
#line 3865 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_4;
#line 3865 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3865 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3875 "tree_bitset.m"
    {
#line 3875 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3875 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3875 "tree_bitset.m"
        {
#line 3875 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_4) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3875 "tree_bitset.m"
          {
#line 3875 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont_env_ptr);
#line 3875 "tree_bitset.m"
            return;
          }
#line 3875 "tree_bitset.m"
        }
#line 3875 "tree_bitset.m"
      else
#line 3876 "tree_bitset.m"
        {
#line 3876 "tree_bitset.m"
          MR_Word mercury__tree_bitset__T_11;

#line 3876 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3876 "tree_bitset.m"
          mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3877 "tree_bitset.m"
          {
#line 3877 "tree_bitset.m"
            mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeInfo_for_U_24, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeClassInfo_for_enum_23, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_15_15, mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_4_p_3_1, &mercury__tree_bitset__env);
          }
#line 3876 "tree_bitset.m"
        }
#line 3875 "tree_bitset.m"
    }
#line 3865 "tree_bitset.m"
  }
#line 3865 "tree_bitset.m"
}

#line 3866 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_4_p_4(
#line 3866 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3866 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3866 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3866 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3866 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3866 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3866 "tree_bitset.m"
{
#line 3875 "tree_bitset.m"
  {
#line 3875 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3875 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3875 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3875 "tree_bitset.m"
    else
#line 3876 "tree_bitset.m"
      {
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3876 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_15_15;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_17_17;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_19_19;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_21_21;

#line 3877 "tree_bitset.m"
        {
#line 3877 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_4_p_4(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_15_15);
        }
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_4_p_4

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 24750 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_19_19  = Bits;
#line 171 "int.opt"
}
#line 3878 "tree_bitset.m"
        {
#line 3878 "tree_bitset.m"
          mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_57_95_49_7_p_9(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_17_17, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_15_15, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3878 "tree_bitset.m"
          return;
        }
#line 3876 "tree_bitset.m"
      }
#line 3875 "tree_bitset.m"
  }
#line 3866 "tree_bitset.m"
}

#line 3867 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_4_p_5(
#line 3867 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3867 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3867 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3867 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3867 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3867 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3867 "tree_bitset.m"
{
#line 3875 "tree_bitset.m"
  {
#line 3875 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3875 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3875 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3875 "tree_bitset.m"
    else
#line 3876 "tree_bitset.m"
      {
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3876 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_15_15;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_17_17;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_19_19;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_21_21;

#line 3877 "tree_bitset.m"
        {
#line 3877 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_4_p_5(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_15_15);
        }
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_4_p_5

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 24834 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_19_19  = Bits;
#line 171 "int.opt"
}
#line 3878 "tree_bitset.m"
        {
#line 3878 "tree_bitset.m"
          mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_56_95_49_7_p_8(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_17_17, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_15_15, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3878 "tree_bitset.m"
          return;
        }
#line 3876 "tree_bitset.m"
      }
#line 3875 "tree_bitset.m"
  }
#line 3867 "tree_bitset.m"
}

#line 3862 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_p_0(
#line 3862 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_25_25,
#line 3862 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3862 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3862 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3862 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3862 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3862 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3862 "tree_bitset.m"
{
#line 3875 "tree_bitset.m"
  {
#line 3875 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3875 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3875 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3875 "tree_bitset.m"
    else
#line 3876 "tree_bitset.m"
      {
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3876 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_15_15;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_17_17;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_19_19;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_21_21;

#line 3877 "tree_bitset.m"
        {
#line 3877 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_p_0(mercury__tree_bitset__V_25_25, mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_15_15);
        }
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 24920 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_19_19  = Bits;
#line 171 "int.opt"
}
#line 3878 "tree_bitset.m"
        {
#line 3878 "tree_bitset.m"
          mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_7_p_2(mercury__tree_bitset__V_25_25, mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_17_17, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_15_15, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3878 "tree_bitset.m"
          return;
        }
#line 3876 "tree_bitset.m"
      }
#line 3875 "tree_bitset.m"
  }
#line 3862 "tree_bitset.m"
}

#line 3863 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_4_p_1(
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_25_25,
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3863 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3863 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3863 "tree_bitset.m"
{
#line 3875 "tree_bitset.m"
  {
#line 3875 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3875 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3875 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3875 "tree_bitset.m"
    else
#line 3876 "tree_bitset.m"
      {
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3876 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_15_15;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_17_17;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_19_19;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_21_21;

#line 3877 "tree_bitset.m"
        {
#line 3877 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_4_p_1(mercury__tree_bitset__V_25_25, mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_15_15);
        }
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_4_p_1

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 25006 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_19_19  = Bits;
#line 171 "int.opt"
}
#line 3878 "tree_bitset.m"
        {
#line 3878 "tree_bitset.m"
          mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_7_p_0(mercury__tree_bitset__V_25_25, mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_17_17, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_15_15, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3878 "tree_bitset.m"
          return;
        }
#line 3876 "tree_bitset.m"
      }
#line 3875 "tree_bitset.m"
  }
#line 3863 "tree_bitset.m"
}

#line 3864 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_4_p_2(
#line 3864 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_25_25,
#line 3864 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3864 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3864 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3864 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3864 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3864 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3864 "tree_bitset.m"
{
#line 3875 "tree_bitset.m"
  {
#line 3875 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3875 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3875 "tree_bitset.m"
      {
#line 3875 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3875 "tree_bitset.m"
        mercury__tree_bitset__succeeded = MR_TRUE;
#line 3875 "tree_bitset.m"
      }
#line 3875 "tree_bitset.m"
    else
#line 3876 "tree_bitset.m"
      {
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3876 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_15_15;
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_16_16;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_17_17;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_19_19;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_21_21;

#line 3877 "tree_bitset.m"
        {
#line 3877 "tree_bitset.m"
          mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_4_p_2(mercury__tree_bitset__V_25_25, mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_15_15);
        }
#line 3876 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3876 "tree_bitset.m"
          {
#line 3878 "tree_bitset.m"
            mercury__tree_bitset__V_16_16 = (MR_Integer) 1;
#line 3878 "tree_bitset.m"
            mercury__tree_bitset__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3878 "tree_bitset.m"
            mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_4_p_2

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 25106 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_19_19  = Bits;
#line 171 "int.opt"
}
#line 3878 "tree_bitset.m"
            {
#line 3878 "tree_bitset.m"
              return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_7_p_3(mercury__tree_bitset__V_25_25, mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__V_16_16, mercury__tree_bitset__P_1, mercury__tree_bitset__V_17_17, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_15_15, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
            }
#line 3876 "tree_bitset.m"
          }
#line 3876 "tree_bitset.m"
      }
#line 3875 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 3875 "tree_bitset.m"
  }
#line 3864 "tree_bitset.m"
}

#line 3876 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3_1(
#line 3876 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3876 "tree_bitset.m"
{
#line 3876 "tree_bitset.m"
  {
#line 3876 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3878 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_16_16 = (MR_Integer) 1;
#line 3878 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__H_10, (MR_Integer) 0)));
#line 3878 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 25158 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_19_19  = Bits;
#line 171 "int.opt"
}
#line 3878 "tree_bitset.m"
    {
#line 3878 "tree_bitset.m"
      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_7_p_6((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_25_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeInfo_for_U_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeClassInfo_for_enum_23, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_16_16, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_17_17, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_21_21, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_19_19, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_15_15, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont_env_ptr);
#line 3878 "tree_bitset.m"
      return;
    }
#line 3876 "tree_bitset.m"
  }
#line 3876 "tree_bitset.m"
}

#line 3865 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3(
#line 3865 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_25_25,
#line 3865 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3865 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3865 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3865 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3865 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3865 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4,
#line 3865 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3865 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3865 "tree_bitset.m"
{
#line 3865 "tree_bitset.m"
  {
#line 3865 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3865 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_25_25 = mercury__tree_bitset__V_25_25;
#line 3865 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeInfo_for_U_24 = mercury__tree_bitset__TypeInfo_for_U_24;
#line 3865 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeClassInfo_for_enum_23 = mercury__tree_bitset__TypeClassInfo_for_enum_23;
#line 3865 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__P_1 = mercury__tree_bitset__P_1;
#line 3865 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_4;
#line 3865 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3865 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3875 "tree_bitset.m"
    {
#line 3875 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3875 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3875 "tree_bitset.m"
        {
#line 3875 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_4) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3875 "tree_bitset.m"
          {
#line 3875 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__cont_env_ptr);
#line 3875 "tree_bitset.m"
            return;
          }
#line 3875 "tree_bitset.m"
        }
#line 3875 "tree_bitset.m"
      else
#line 3876 "tree_bitset.m"
        {
#line 3876 "tree_bitset.m"
          MR_Word mercury__tree_bitset__T_11;

#line 3876 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3876 "tree_bitset.m"
          mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3877 "tree_bitset.m"
          {
#line 3877 "tree_bitset.m"
            mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__V_25_25, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeInfo_for_U_24, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__TypeClassInfo_for_enum_23, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_95_52_95_112_95_51_95_101_110_118_95_48__STATE_VARIABLE_Acc_15_15, mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_4_p_3_1, &mercury__tree_bitset__env);
          }
#line 3876 "tree_bitset.m"
        }
#line 3875 "tree_bitset.m"
    }
#line 3865 "tree_bitset.m"
  }
#line 3865 "tree_bitset.m"
}

#line 3866 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_4_p_4(
#line 3866 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_25_25,
#line 3866 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3866 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3866 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3866 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3866 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3866 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3866 "tree_bitset.m"
{
#line 3875 "tree_bitset.m"
  {
#line 3875 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3875 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3875 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3875 "tree_bitset.m"
    else
#line 3876 "tree_bitset.m"
      {
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3876 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_15_15;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_17_17;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_19_19;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_21_21;

#line 3877 "tree_bitset.m"
        {
#line 3877 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_4_p_4(mercury__tree_bitset__V_25_25, mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_15_15);
        }
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_4_p_4

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 25329 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_19_19  = Bits;
#line 171 "int.opt"
}
#line 3878 "tree_bitset.m"
        {
#line 3878 "tree_bitset.m"
          mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_57_95_49_7_p_9(mercury__tree_bitset__V_25_25, mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_17_17, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_15_15, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3878 "tree_bitset.m"
          return;
        }
#line 3876 "tree_bitset.m"
      }
#line 3875 "tree_bitset.m"
  }
#line 3866 "tree_bitset.m"
}

#line 3867 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_4_p_5(
#line 3867 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_25_25,
#line 3867 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3867 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3867 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3867 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3867 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3867 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3867 "tree_bitset.m"
{
#line 3875 "tree_bitset.m"
  {
#line 3875 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3875 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3875 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3875 "tree_bitset.m"
    else
#line 3876 "tree_bitset.m"
      {
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3876 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_15_15;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_17_17;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_19_19;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_21_21;

#line 3877 "tree_bitset.m"
        {
#line 3877 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_4_p_5(mercury__tree_bitset__V_25_25, mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_15_15);
        }
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_4_p_5

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 25415 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_19_19  = Bits;
#line 171 "int.opt"
}
#line 3878 "tree_bitset.m"
        {
#line 3878 "tree_bitset.m"
          mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_56_95_49_7_p_8(mercury__tree_bitset__V_25_25, mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_17_17, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_15_15, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3878 "tree_bitset.m"
          return;
        }
#line 3876 "tree_bitset.m"
      }
#line 3875 "tree_bitset.m"
  }
#line 3867 "tree_bitset.m"
}

#line 3883 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_6_p_0(
#line 3883 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3883 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3883 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3883 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3883 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3883 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3883 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3883 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3883 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3883 "tree_bitset.m"
{
#line 3906 "tree_bitset.m"
  while (MR_TRUE)
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3906 "tree_bitset.m"
      {
#line 3906 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        else
#line 3907 "tree_bitset.m"
          {
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34;

#line 3908 "tree_bitset.m"
            {
#line 3908 "tree_bitset.m"
              mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_6_p_0(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
              {
#line 3914 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3915 "tree_bitset.m"
                {
#line 3915 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_22;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3915 "tree_bitset.m"
                }
#line 3915 "tree_bitset.m"
                continue;
#line 3914 "tree_bitset.m"
              }
#line 3913 "tree_bitset.m"
            else
#line 3911 "tree_bitset.m"
              {
#line 3911 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
                {
#line 3912 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_6_p_0(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3912 "tree_bitset.m"
                  return;
                }
#line 3911 "tree_bitset.m"
              }
#line 3907 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
      }
#line 3906 "tree_bitset.m"
      break;
#line 3906 "tree_bitset.m"
    }
#line 3883 "tree_bitset.m"
}

#line 3885 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_6_p_1(
#line 3885 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3885 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3885 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3885 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3885 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3885 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3885 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3885 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3885 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3885 "tree_bitset.m"
{
#line 3906 "tree_bitset.m"
  while (MR_TRUE)
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3906 "tree_bitset.m"
      {
#line 3906 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        else
#line 3907 "tree_bitset.m"
          {
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34;

#line 3908 "tree_bitset.m"
            {
#line 3908 "tree_bitset.m"
              mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_6_p_1(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
              {
#line 3914 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3915 "tree_bitset.m"
                {
#line 3915 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_22;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3915 "tree_bitset.m"
                }
#line 3915 "tree_bitset.m"
                continue;
#line 3914 "tree_bitset.m"
              }
#line 3913 "tree_bitset.m"
            else
#line 3911 "tree_bitset.m"
              {
#line 3911 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
                {
#line 3912 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_6_p_1(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3912 "tree_bitset.m"
                  return;
                }
#line 3911 "tree_bitset.m"
              }
#line 3907 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
      }
#line 3906 "tree_bitset.m"
      break;
#line 3906 "tree_bitset.m"
    }
#line 3885 "tree_bitset.m"
}

#line 3887 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_6_p_2(
#line 3887 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3887 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3887 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3887 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3887 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3887 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3887 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3887 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3887 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3887 "tree_bitset.m"
{
#line 3906 "tree_bitset.m"
  while (MR_TRUE)
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3906 "tree_bitset.m"
      {
#line 3906 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        else
#line 3907 "tree_bitset.m"
          {
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34;

#line 3908 "tree_bitset.m"
            {
#line 3908 "tree_bitset.m"
              mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_6_p_2(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
              {
#line 3914 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3915 "tree_bitset.m"
                {
#line 3915 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_22;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3915 "tree_bitset.m"
                }
#line 3915 "tree_bitset.m"
                continue;
#line 3914 "tree_bitset.m"
              }
#line 3913 "tree_bitset.m"
            else
#line 3911 "tree_bitset.m"
              {
#line 3911 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
                {
#line 3912 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_6_p_2(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3912 "tree_bitset.m"
                  return;
                }
#line 3911 "tree_bitset.m"
              }
#line 3907 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
      }
#line 3906 "tree_bitset.m"
      break;
#line 3906 "tree_bitset.m"
    }
#line 3887 "tree_bitset.m"
}

#line 3889 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_6_p_3(
#line 3889 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3889 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3889 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3889 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3889 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3889 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3889 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3889 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3889 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3889 "tree_bitset.m"
{
#line 3906 "tree_bitset.m"
  while (MR_TRUE)
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3906 "tree_bitset.m"
      {
#line 3906 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3906 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        else
#line 3907 "tree_bitset.m"
          {
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34;

#line 3908 "tree_bitset.m"
            {
#line 3908 "tree_bitset.m"
              mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_6_p_3(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3907 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3907 "tree_bitset.m"
              {
#line 3909 "tree_bitset.m"
                mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
                mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3909 "tree_bitset.m"
                mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
                if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
                  {
#line 3914 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3915 "tree_bitset.m"
                    {
#line 3915 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_22;
#line 3915 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3915 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3915 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3915 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3915 "tree_bitset.m"
                      mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3915 "tree_bitset.m"
                    }
#line 3915 "tree_bitset.m"
                    continue;
#line 3914 "tree_bitset.m"
                  }
#line 3913 "tree_bitset.m"
                else
#line 3911 "tree_bitset.m"
                  {
#line 3911 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
                    {
#line 3912 "tree_bitset.m"
                      return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_6_p_3(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
                    }
#line 3911 "tree_bitset.m"
                  }
#line 3907 "tree_bitset.m"
              }
#line 3907 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3906 "tree_bitset.m"
      }
#line 3906 "tree_bitset.m"
      break;
#line 3906 "tree_bitset.m"
    }
#line 3889 "tree_bitset.m"
}

#line 3907 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4_1(
#line 3907 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3907 "tree_bitset.m"
{
#line 3907 "tree_bitset.m"
  {
#line 3907 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3907 "tree_bitset.m"
    {
#line 3909 "tree_bitset.m"
      MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
      MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__H_15, (MR_Integer) 1)));

#line 3909 "tree_bitset.m"
      (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
      if (((MR_tag((MR_Word) (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
        {
#line 3914 "tree_bitset.m"
          MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
          {
#line 3915 "tree_bitset.m"
            mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_36, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_37, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_35, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1, mercury__tree_bitset__InteriorNodes_22, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_27_27, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_28_28, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 3915 "tree_bitset.m"
            return;
          }
#line 3914 "tree_bitset.m"
        }
#line 3913 "tree_bitset.m"
      else
#line 3911 "tree_bitset.m"
        {
#line 3911 "tree_bitset.m"
          MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
          {
#line 3912 "tree_bitset.m"
            mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_36, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_37, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_35, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1, mercury__tree_bitset__LeafNodes_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_27_27, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_28_28, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 3912 "tree_bitset.m"
            return;
          }
#line 3911 "tree_bitset.m"
        }
#line 3907 "tree_bitset.m"
    }
#line 3907 "tree_bitset.m"
  }
#line 3907 "tree_bitset.m"
}

#line 3891 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4(
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3891 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3891 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3891 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3891 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6,
#line 3891 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3891 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3891 "tree_bitset.m"
{
#line 3891 "tree_bitset.m"
  {
#line 3891 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_36 = mercury__tree_bitset__TypeInfo_for_U_36;
#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_37 = mercury__tree_bitset__TypeInfo_for_V_37;
#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_35 = mercury__tree_bitset__TypeClassInfo_for_enum_35;
#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1 = mercury__tree_bitset__P_1;
#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_4;
#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_6;
#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
        {
#line 3906 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6) = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4) = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 3906 "tree_bitset.m"
            return;
          }
#line 3906 "tree_bitset.m"
        }
#line 3906 "tree_bitset.m"
      else
#line 3907 "tree_bitset.m"
        {
#line 3907 "tree_bitset.m"
          MR_Word mercury__tree_bitset__T_16;

#line 3907 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
          mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3908 "tree_bitset.m"
          {
#line 3908 "tree_bitset.m"
            mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_36, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_37, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_35, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4_1, &mercury__tree_bitset__env);
          }
#line 3907 "tree_bitset.m"
        }
#line 3906 "tree_bitset.m"
    }
#line 3891 "tree_bitset.m"
  }
#line 3891 "tree_bitset.m"
}

#line 3893 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_6_p_5(
#line 3893 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3893 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3893 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3893 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3893 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3893 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3893 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3893 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3893 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3893 "tree_bitset.m"
{
#line 3906 "tree_bitset.m"
  while (MR_TRUE)
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3906 "tree_bitset.m"
      {
#line 3906 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        else
#line 3907 "tree_bitset.m"
          {
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34;

#line 3908 "tree_bitset.m"
            {
#line 3908 "tree_bitset.m"
              mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_6_p_5(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
              {
#line 3914 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3915 "tree_bitset.m"
                {
#line 3915 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_22;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3915 "tree_bitset.m"
                }
#line 3915 "tree_bitset.m"
                continue;
#line 3914 "tree_bitset.m"
              }
#line 3913 "tree_bitset.m"
            else
#line 3911 "tree_bitset.m"
              {
#line 3911 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
                {
#line 3912 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_6_p_5(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3912 "tree_bitset.m"
                  return;
                }
#line 3911 "tree_bitset.m"
              }
#line 3907 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
      }
#line 3906 "tree_bitset.m"
      break;
#line 3906 "tree_bitset.m"
    }
#line 3893 "tree_bitset.m"
}

#line 3895 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_6_p_6(
#line 3895 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3895 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3895 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3895 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3895 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3895 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3895 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3895 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3895 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3895 "tree_bitset.m"
{
#line 3906 "tree_bitset.m"
  while (MR_TRUE)
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3906 "tree_bitset.m"
      {
#line 3906 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        else
#line 3907 "tree_bitset.m"
          {
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34;

#line 3908 "tree_bitset.m"
            {
#line 3908 "tree_bitset.m"
              mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_6_p_6(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
              {
#line 3914 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3915 "tree_bitset.m"
                {
#line 3915 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_22;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3915 "tree_bitset.m"
                }
#line 3915 "tree_bitset.m"
                continue;
#line 3914 "tree_bitset.m"
              }
#line 3913 "tree_bitset.m"
            else
#line 3911 "tree_bitset.m"
              {
#line 3911 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
                {
#line 3912 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_6_p_6(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3912 "tree_bitset.m"
                  return;
                }
#line 3911 "tree_bitset.m"
              }
#line 3907 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
      }
#line 3906 "tree_bitset.m"
      break;
#line 3906 "tree_bitset.m"
    }
#line 3895 "tree_bitset.m"
}

#line 3897 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_6_p_7(
#line 3897 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3897 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3897 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3897 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3897 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3897 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3897 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3897 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3897 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3897 "tree_bitset.m"
{
#line 3906 "tree_bitset.m"
  while (MR_TRUE)
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3906 "tree_bitset.m"
      {
#line 3906 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        else
#line 3907 "tree_bitset.m"
          {
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34;

#line 3908 "tree_bitset.m"
            {
#line 3908 "tree_bitset.m"
              mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_6_p_7(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
              {
#line 3914 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3915 "tree_bitset.m"
                {
#line 3915 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_22;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3915 "tree_bitset.m"
                }
#line 3915 "tree_bitset.m"
                continue;
#line 3914 "tree_bitset.m"
              }
#line 3913 "tree_bitset.m"
            else
#line 3911 "tree_bitset.m"
              {
#line 3911 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
                {
#line 3912 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_6_p_7(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3912 "tree_bitset.m"
                  return;
                }
#line 3911 "tree_bitset.m"
              }
#line 3907 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
      }
#line 3906 "tree_bitset.m"
      break;
#line 3906 "tree_bitset.m"
    }
#line 3897 "tree_bitset.m"
}

#line 3883 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_6_p_0(
#line 3883 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_38_38,
#line 3883 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3883 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3883 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3883 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3883 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3883 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3883 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3883 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3883 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3883 "tree_bitset.m"
{
#line 3906 "tree_bitset.m"
  while (MR_TRUE)
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3906 "tree_bitset.m"
      {
#line 3906 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        else
#line 3907 "tree_bitset.m"
          {
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34;

#line 3908 "tree_bitset.m"
            {
#line 3908 "tree_bitset.m"
              mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_6_p_0(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
              {
#line 3914 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3915 "tree_bitset.m"
                {
#line 3915 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_22;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3915 "tree_bitset.m"
                }
#line 3915 "tree_bitset.m"
                continue;
#line 3914 "tree_bitset.m"
              }
#line 3913 "tree_bitset.m"
            else
#line 3911 "tree_bitset.m"
              {
#line 3911 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
                {
#line 3912 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_6_p_0(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3912 "tree_bitset.m"
                  return;
                }
#line 3911 "tree_bitset.m"
              }
#line 3907 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
      }
#line 3906 "tree_bitset.m"
      break;
#line 3906 "tree_bitset.m"
    }
#line 3883 "tree_bitset.m"
}

#line 3885 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_6_p_1(
#line 3885 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_38_38,
#line 3885 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3885 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3885 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3885 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3885 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3885 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3885 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3885 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3885 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3885 "tree_bitset.m"
{
#line 3906 "tree_bitset.m"
  while (MR_TRUE)
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3906 "tree_bitset.m"
      {
#line 3906 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        else
#line 3907 "tree_bitset.m"
          {
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34;

#line 3908 "tree_bitset.m"
            {
#line 3908 "tree_bitset.m"
              mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_6_p_1(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
              {
#line 3914 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3915 "tree_bitset.m"
                {
#line 3915 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_22;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3915 "tree_bitset.m"
                }
#line 3915 "tree_bitset.m"
                continue;
#line 3914 "tree_bitset.m"
              }
#line 3913 "tree_bitset.m"
            else
#line 3911 "tree_bitset.m"
              {
#line 3911 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
                {
#line 3912 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_6_p_1(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3912 "tree_bitset.m"
                  return;
                }
#line 3911 "tree_bitset.m"
              }
#line 3907 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
      }
#line 3906 "tree_bitset.m"
      break;
#line 3906 "tree_bitset.m"
    }
#line 3885 "tree_bitset.m"
}

#line 3887 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_6_p_2(
#line 3887 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_38_38,
#line 3887 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3887 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3887 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3887 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3887 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3887 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3887 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3887 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3887 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3887 "tree_bitset.m"
{
#line 3906 "tree_bitset.m"
  while (MR_TRUE)
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3906 "tree_bitset.m"
      {
#line 3906 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        else
#line 3907 "tree_bitset.m"
          {
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34;

#line 3908 "tree_bitset.m"
            {
#line 3908 "tree_bitset.m"
              mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_6_p_2(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
              {
#line 3914 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3915 "tree_bitset.m"
                {
#line 3915 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_22;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3915 "tree_bitset.m"
                }
#line 3915 "tree_bitset.m"
                continue;
#line 3914 "tree_bitset.m"
              }
#line 3913 "tree_bitset.m"
            else
#line 3911 "tree_bitset.m"
              {
#line 3911 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
                {
#line 3912 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_6_p_2(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3912 "tree_bitset.m"
                  return;
                }
#line 3911 "tree_bitset.m"
              }
#line 3907 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
      }
#line 3906 "tree_bitset.m"
      break;
#line 3906 "tree_bitset.m"
    }
#line 3887 "tree_bitset.m"
}

#line 3889 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_6_p_3(
#line 3889 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_38_38,
#line 3889 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3889 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3889 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3889 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3889 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3889 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3889 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3889 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3889 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3889 "tree_bitset.m"
{
#line 3906 "tree_bitset.m"
  while (MR_TRUE)
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3906 "tree_bitset.m"
      {
#line 3906 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3906 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        else
#line 3907 "tree_bitset.m"
          {
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34;

#line 3908 "tree_bitset.m"
            {
#line 3908 "tree_bitset.m"
              mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_6_p_3(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3907 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3907 "tree_bitset.m"
              {
#line 3909 "tree_bitset.m"
                mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
                mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3909 "tree_bitset.m"
                mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
                if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
                  {
#line 3914 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3915 "tree_bitset.m"
                    {
#line 3915 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_22;
#line 3915 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3915 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3915 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3915 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3915 "tree_bitset.m"
                      mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3915 "tree_bitset.m"
                    }
#line 3915 "tree_bitset.m"
                    continue;
#line 3914 "tree_bitset.m"
                  }
#line 3913 "tree_bitset.m"
                else
#line 3911 "tree_bitset.m"
                  {
#line 3911 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
                    {
#line 3912 "tree_bitset.m"
                      return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_6_p_3(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
                    }
#line 3911 "tree_bitset.m"
                  }
#line 3907 "tree_bitset.m"
              }
#line 3907 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3906 "tree_bitset.m"
      }
#line 3906 "tree_bitset.m"
      break;
#line 3906 "tree_bitset.m"
    }
#line 3889 "tree_bitset.m"
}

#line 3907 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4_1(
#line 3907 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3907 "tree_bitset.m"
{
#line 3907 "tree_bitset.m"
  {
#line 3907 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3907 "tree_bitset.m"
    {
#line 3909 "tree_bitset.m"
      MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
      MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__H_15, (MR_Integer) 1)));

#line 3909 "tree_bitset.m"
      (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
      if (((MR_tag((MR_Word) (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
        {
#line 3914 "tree_bitset.m"
          MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
          {
#line 3915 "tree_bitset.m"
            mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_38_38, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_36, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_37, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_35, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1, mercury__tree_bitset__InteriorNodes_22, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_27_27, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_28_28, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 3915 "tree_bitset.m"
            return;
          }
#line 3914 "tree_bitset.m"
        }
#line 3913 "tree_bitset.m"
      else
#line 3911 "tree_bitset.m"
        {
#line 3911 "tree_bitset.m"
          MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
          {
#line 3912 "tree_bitset.m"
            mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_38_38, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_36, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_37, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_35, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1, mercury__tree_bitset__LeafNodes_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_27_27, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_28_28, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 3912 "tree_bitset.m"
            return;
          }
#line 3911 "tree_bitset.m"
        }
#line 3907 "tree_bitset.m"
    }
#line 3907 "tree_bitset.m"
  }
#line 3907 "tree_bitset.m"
}

#line 3891 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4(
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_38_38,
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3891 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3891 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3891 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3891 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6,
#line 3891 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3891 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3891 "tree_bitset.m"
{
#line 3891 "tree_bitset.m"
  {
#line 3891 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_38_38 = mercury__tree_bitset__V_38_38;
#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_36 = mercury__tree_bitset__TypeInfo_for_U_36;
#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_37 = mercury__tree_bitset__TypeInfo_for_V_37;
#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_35 = mercury__tree_bitset__TypeClassInfo_for_enum_35;
#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1 = mercury__tree_bitset__P_1;
#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_4;
#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_6;
#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
        {
#line 3906 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6) = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4) = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 3906 "tree_bitset.m"
            return;
          }
#line 3906 "tree_bitset.m"
        }
#line 3906 "tree_bitset.m"
      else
#line 3907 "tree_bitset.m"
        {
#line 3907 "tree_bitset.m"
          MR_Word mercury__tree_bitset__T_16;

#line 3907 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
          mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3908 "tree_bitset.m"
          {
#line 3908 "tree_bitset.m"
            mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4((mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_38_38, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_36, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_37, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_35, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4_1, &mercury__tree_bitset__env);
          }
#line 3907 "tree_bitset.m"
        }
#line 3906 "tree_bitset.m"
    }
#line 3891 "tree_bitset.m"
  }
#line 3891 "tree_bitset.m"
}

#line 3893 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_6_p_5(
#line 3893 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_38_38,
#line 3893 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3893 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3893 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3893 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3893 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3893 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3893 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3893 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3893 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3893 "tree_bitset.m"
{
#line 3906 "tree_bitset.m"
  while (MR_TRUE)
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3906 "tree_bitset.m"
      {
#line 3906 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        else
#line 3907 "tree_bitset.m"
          {
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34;

#line 3908 "tree_bitset.m"
            {
#line 3908 "tree_bitset.m"
              mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_6_p_5(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
              {
#line 3914 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3915 "tree_bitset.m"
                {
#line 3915 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_22;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3915 "tree_bitset.m"
                }
#line 3915 "tree_bitset.m"
                continue;
#line 3914 "tree_bitset.m"
              }
#line 3913 "tree_bitset.m"
            else
#line 3911 "tree_bitset.m"
              {
#line 3911 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
                {
#line 3912 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_6_p_5(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3912 "tree_bitset.m"
                  return;
                }
#line 3911 "tree_bitset.m"
              }
#line 3907 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
      }
#line 3906 "tree_bitset.m"
      break;
#line 3906 "tree_bitset.m"
    }
#line 3893 "tree_bitset.m"
}

#line 3895 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_6_p_6(
#line 3895 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_38_38,
#line 3895 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3895 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3895 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3895 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3895 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3895 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3895 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3895 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3895 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3895 "tree_bitset.m"
{
#line 3906 "tree_bitset.m"
  while (MR_TRUE)
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3906 "tree_bitset.m"
      {
#line 3906 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        else
#line 3907 "tree_bitset.m"
          {
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34;

#line 3908 "tree_bitset.m"
            {
#line 3908 "tree_bitset.m"
              mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_6_p_6(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
              {
#line 3914 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3915 "tree_bitset.m"
                {
#line 3915 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_22;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3915 "tree_bitset.m"
                }
#line 3915 "tree_bitset.m"
                continue;
#line 3914 "tree_bitset.m"
              }
#line 3913 "tree_bitset.m"
            else
#line 3911 "tree_bitset.m"
              {
#line 3911 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
                {
#line 3912 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_6_p_6(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3912 "tree_bitset.m"
                  return;
                }
#line 3911 "tree_bitset.m"
              }
#line 3907 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
      }
#line 3906 "tree_bitset.m"
      break;
#line 3906 "tree_bitset.m"
    }
#line 3895 "tree_bitset.m"
}

#line 3897 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_6_p_7(
#line 3897 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_38_38,
#line 3897 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3897 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3897 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3897 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3897 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3897 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3897 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3897 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3897 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3897 "tree_bitset.m"
{
#line 3906 "tree_bitset.m"
  while (MR_TRUE)
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3906 "tree_bitset.m"
      {
#line 3906 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        else
#line 3907 "tree_bitset.m"
          {
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34;

#line 3908 "tree_bitset.m"
            {
#line 3908 "tree_bitset.m"
              mercury__tree_bitset__f_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_100_111_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_6_p_7(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
              {
#line 3914 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3915 "tree_bitset.m"
                {
#line 3915 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_22;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3915 "tree_bitset.m"
                }
#line 3915 "tree_bitset.m"
                continue;
#line 3914 "tree_bitset.m"
              }
#line 3913 "tree_bitset.m"
            else
#line 3911 "tree_bitset.m"
              {
#line 3911 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
                {
#line 3912 "tree_bitset.m"
                  mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_6_p_7(mercury__tree_bitset__V_38_38, mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3912 "tree_bitset.m"
                  return;
                }
#line 3911 "tree_bitset.m"
              }
#line 3907 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
      }
#line 3906 "tree_bitset.m"
      break;
#line 3906 "tree_bitset.m"
    }
#line 3897 "tree_bitset.m"
}

#line 3920 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_6_p_0(
#line 3920 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3920 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3920 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3920 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3920 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3920 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3920 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3920 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3920 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3920 "tree_bitset.m"
{
#line 3943 "tree_bitset.m"
  {
#line 3943 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
      {
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    else
#line 3944 "tree_bitset.m"
      {
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_26_26;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_31_31;

#line 3945 "tree_bitset.m"
        {
#line 3945 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_6_p_0(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_24_24);
        }
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_6_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 27723 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
        {
#line 3946 "tree_bitset.m"
          mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_9_p_0(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_28_28, mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3946 "tree_bitset.m"
          return;
        }
#line 3944 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
  }
#line 3920 "tree_bitset.m"
}

#line 3922 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_6_p_1(
#line 3922 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3922 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3922 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3922 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3922 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3922 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3922 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3922 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3922 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3922 "tree_bitset.m"
{
#line 3943 "tree_bitset.m"
  {
#line 3943 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
      {
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    else
#line 3944 "tree_bitset.m"
      {
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_26_26;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_31_31;

#line 3945 "tree_bitset.m"
        {
#line 3945 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_6_p_1(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_24_24);
        }
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_6_p_1

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 27821 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
        {
#line 3946 "tree_bitset.m"
          mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_9_p_1(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_28_28, mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3946 "tree_bitset.m"
          return;
        }
#line 3944 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
  }
#line 3922 "tree_bitset.m"
}

#line 3924 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_6_p_2(
#line 3924 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3924 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3924 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3924 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3924 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3924 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3924 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3924 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3924 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3924 "tree_bitset.m"
{
#line 3943 "tree_bitset.m"
  {
#line 3943 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
      {
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    else
#line 3944 "tree_bitset.m"
      {
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_26_26;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_31_31;

#line 3945 "tree_bitset.m"
        {
#line 3945 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_6_p_2(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_24_24);
        }
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_6_p_2

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 27919 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
        {
#line 3946 "tree_bitset.m"
          mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_9_p_2(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_28_28, mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3946 "tree_bitset.m"
          return;
        }
#line 3944 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
  }
#line 3924 "tree_bitset.m"
}

#line 3926 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_6_p_3(
#line 3926 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3926 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3926 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3926 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3926 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3926 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3926 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3926 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3926 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3926 "tree_bitset.m"
{
#line 3943 "tree_bitset.m"
  {
#line 3943 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
      {
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
        mercury__tree_bitset__succeeded = MR_TRUE;
#line 3943 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    else
#line 3944 "tree_bitset.m"
      {
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_25_25;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_26_26;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_31_31;

#line 3945 "tree_bitset.m"
        {
#line 3945 "tree_bitset.m"
          mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_6_p_3(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_24_24);
        }
#line 3944 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3944 "tree_bitset.m"
          {
#line 3946 "tree_bitset.m"
            mercury__tree_bitset__V_25_25 = (MR_Integer) 1;
#line 3946 "tree_bitset.m"
            mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
            mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_6_p_3

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 28027 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
            {
#line 3946 "tree_bitset.m"
              return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_9_p_3(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__V_25_25, mercury__tree_bitset__P_1, mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_28_28, mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
            }
#line 3944 "tree_bitset.m"
          }
#line 3944 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 3943 "tree_bitset.m"
  }
#line 3926 "tree_bitset.m"
}

#line 3944 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4_1(
#line 3944 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3944 "tree_bitset.m"
{
#line 3944 "tree_bitset.m"
  {
#line 3944 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3946 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_25_25 = (MR_Integer) 1;
#line 3946 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 28079 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
    {
#line 3946 "tree_bitset.m"
      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_9_p_4((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_34, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_35, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_33, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_25_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_26_26, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_31_31, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_28_28, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_23_23, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_24_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 3946 "tree_bitset.m"
      return;
    }
#line 3944 "tree_bitset.m"
  }
#line 3944 "tree_bitset.m"
}

#line 3928 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4(
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3928 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3928 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3928 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3928 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6,
#line 3928 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3928 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3928 "tree_bitset.m"
{
#line 3928 "tree_bitset.m"
  {
#line 3928 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_34 = mercury__tree_bitset__TypeInfo_for_U_34;
#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_35 = mercury__tree_bitset__TypeInfo_for_V_35;
#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_33 = mercury__tree_bitset__TypeClassInfo_for_enum_33;
#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1 = mercury__tree_bitset__P_1;
#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_4;
#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_6;
#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3943 "tree_bitset.m"
    {
#line 3943 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
        {
#line 3943 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6) = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4) = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
          {
#line 3943 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 3943 "tree_bitset.m"
            return;
          }
#line 3943 "tree_bitset.m"
        }
#line 3943 "tree_bitset.m"
      else
#line 3944 "tree_bitset.m"
        {
#line 3944 "tree_bitset.m"
          MR_Word mercury__tree_bitset__T_16;

#line 3944 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
          mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3945 "tree_bitset.m"
          {
#line 3945 "tree_bitset.m"
            mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_34, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_35, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_33, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_6_p_4_1, &mercury__tree_bitset__env);
          }
#line 3944 "tree_bitset.m"
        }
#line 3943 "tree_bitset.m"
    }
#line 3928 "tree_bitset.m"
  }
#line 3928 "tree_bitset.m"
}

#line 3930 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_6_p_5(
#line 3930 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3930 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3930 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3930 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3930 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3930 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3930 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3930 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3930 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3930 "tree_bitset.m"
{
#line 3943 "tree_bitset.m"
  {
#line 3943 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
      {
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    else
#line 3944 "tree_bitset.m"
      {
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_26_26;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_31_31;

#line 3945 "tree_bitset.m"
        {
#line 3945 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_6_p_5(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_24_24);
        }
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_6_p_5

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 28270 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
        {
#line 3946 "tree_bitset.m"
          mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_9_p_5(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_28_28, mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3946 "tree_bitset.m"
          return;
        }
#line 3944 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
  }
#line 3930 "tree_bitset.m"
}

#line 3932 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_6_p_6(
#line 3932 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3932 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3932 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3932 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3932 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3932 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3932 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3932 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3932 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3932 "tree_bitset.m"
{
#line 3943 "tree_bitset.m"
  {
#line 3943 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
      {
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    else
#line 3944 "tree_bitset.m"
      {
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_26_26;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_31_31;

#line 3945 "tree_bitset.m"
        {
#line 3945 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_6_p_6(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_24_24);
        }
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_6_p_6

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 28368 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
        {
#line 3946 "tree_bitset.m"
          mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_9_p_6(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_28_28, mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3946 "tree_bitset.m"
          return;
        }
#line 3944 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
  }
#line 3932 "tree_bitset.m"
}

#line 3934 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_6_p_7(
#line 3934 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3934 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3934 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3934 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3934 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3934 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3934 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3934 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3934 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3934 "tree_bitset.m"
{
#line 3943 "tree_bitset.m"
  {
#line 3943 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
      {
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    else
#line 3944 "tree_bitset.m"
      {
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_26_26;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_31_31;

#line 3945 "tree_bitset.m"
        {
#line 3945 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_6_p_7(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_24_24);
        }
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_6_p_7

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 28466 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
        {
#line 3946 "tree_bitset.m"
          mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_9_p_7(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_28_28, mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3946 "tree_bitset.m"
          return;
        }
#line 3944 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
  }
#line 3934 "tree_bitset.m"
}

#line 3920 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_6_p_0(
#line 3920 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_36_36,
#line 3920 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3920 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3920 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3920 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3920 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3920 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3920 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3920 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3920 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3920 "tree_bitset.m"
{
#line 3943 "tree_bitset.m"
  {
#line 3943 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
      {
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    else
#line 3944 "tree_bitset.m"
      {
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_26_26;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_31_31;

#line 3945 "tree_bitset.m"
        {
#line 3945 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_6_p_0(mercury__tree_bitset__V_36_36, mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_24_24);
        }
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_6_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 28566 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
        {
#line 3946 "tree_bitset.m"
          mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_9_p_0(mercury__tree_bitset__V_36_36, mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_28_28, mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3946 "tree_bitset.m"
          return;
        }
#line 3944 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
  }
#line 3920 "tree_bitset.m"
}

#line 3922 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_6_p_1(
#line 3922 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_36_36,
#line 3922 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3922 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3922 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3922 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3922 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3922 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3922 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3922 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3922 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3922 "tree_bitset.m"
{
#line 3943 "tree_bitset.m"
  {
#line 3943 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
      {
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    else
#line 3944 "tree_bitset.m"
      {
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_26_26;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_31_31;

#line 3945 "tree_bitset.m"
        {
#line 3945 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_6_p_1(mercury__tree_bitset__V_36_36, mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_24_24);
        }
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_6_p_1

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 28666 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
        {
#line 3946 "tree_bitset.m"
          mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_9_p_1(mercury__tree_bitset__V_36_36, mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_28_28, mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3946 "tree_bitset.m"
          return;
        }
#line 3944 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
  }
#line 3922 "tree_bitset.m"
}

#line 3924 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_6_p_2(
#line 3924 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_36_36,
#line 3924 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3924 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3924 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3924 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3924 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3924 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3924 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3924 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3924 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3924 "tree_bitset.m"
{
#line 3943 "tree_bitset.m"
  {
#line 3943 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
      {
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    else
#line 3944 "tree_bitset.m"
      {
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_26_26;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_31_31;

#line 3945 "tree_bitset.m"
        {
#line 3945 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_6_p_2(mercury__tree_bitset__V_36_36, mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_24_24);
        }
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_6_p_2

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 28766 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
        {
#line 3946 "tree_bitset.m"
          mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_9_p_2(mercury__tree_bitset__V_36_36, mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_28_28, mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3946 "tree_bitset.m"
          return;
        }
#line 3944 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
  }
#line 3924 "tree_bitset.m"
}

#line 3926 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_6_p_3(
#line 3926 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_36_36,
#line 3926 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3926 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3926 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3926 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3926 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3926 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3926 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3926 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3926 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3926 "tree_bitset.m"
{
#line 3943 "tree_bitset.m"
  {
#line 3943 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
      {
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
        mercury__tree_bitset__succeeded = MR_TRUE;
#line 3943 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    else
#line 3944 "tree_bitset.m"
      {
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_25_25;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_26_26;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_31_31;

#line 3945 "tree_bitset.m"
        {
#line 3945 "tree_bitset.m"
          mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_6_p_3(mercury__tree_bitset__V_36_36, mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_24_24);
        }
#line 3944 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3944 "tree_bitset.m"
          {
#line 3946 "tree_bitset.m"
            mercury__tree_bitset__V_25_25 = (MR_Integer) 1;
#line 3946 "tree_bitset.m"
            mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
            mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_6_p_3

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 28876 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
            {
#line 3946 "tree_bitset.m"
              return mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_9_p_3(mercury__tree_bitset__V_36_36, mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__V_25_25, mercury__tree_bitset__P_1, mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_28_28, mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
            }
#line 3944 "tree_bitset.m"
          }
#line 3944 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 3943 "tree_bitset.m"
  }
#line 3926 "tree_bitset.m"
}

#line 3944 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4_1(
#line 3944 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3944 "tree_bitset.m"
{
#line 3944 "tree_bitset.m"
  {
#line 3944 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3946 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_25_25 = (MR_Integer) 1;
#line 3946 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 28928 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
    {
#line 3946 "tree_bitset.m"
      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_9_p_4((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_36_36, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_34, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_35, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_33, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_25_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_26_26, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_31_31, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_28_28, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_23_23, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_24_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 3946 "tree_bitset.m"
      return;
    }
#line 3944 "tree_bitset.m"
  }
#line 3944 "tree_bitset.m"
}

#line 3928 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4(
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_36_36,
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3928 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3928 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3928 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3928 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6,
#line 3928 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3928 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3928 "tree_bitset.m"
{
#line 3928 "tree_bitset.m"
  {
#line 3928 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_36_36 = mercury__tree_bitset__V_36_36;
#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_34 = mercury__tree_bitset__TypeInfo_for_U_34;
#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_35 = mercury__tree_bitset__TypeInfo_for_V_35;
#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_33 = mercury__tree_bitset__TypeClassInfo_for_enum_33;
#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1 = mercury__tree_bitset__P_1;
#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_4;
#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_6;
#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3943 "tree_bitset.m"
    {
#line 3943 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
        {
#line 3943 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_6) = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_4) = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
          {
#line 3943 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 3943 "tree_bitset.m"
            return;
          }
#line 3943 "tree_bitset.m"
        }
#line 3943 "tree_bitset.m"
      else
#line 3944 "tree_bitset.m"
        {
#line 3944 "tree_bitset.m"
          MR_Word mercury__tree_bitset__T_16;

#line 3944 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
          mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3945 "tree_bitset.m"
          {
#line 3945 "tree_bitset.m"
            mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4((mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__V_36_36, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_34, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_35, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_33, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_54_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_6_p_4_1, &mercury__tree_bitset__env);
          }
#line 3944 "tree_bitset.m"
        }
#line 3943 "tree_bitset.m"
    }
#line 3928 "tree_bitset.m"
  }
#line 3928 "tree_bitset.m"
}

#line 3930 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_6_p_5(
#line 3930 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_36_36,
#line 3930 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3930 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3930 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3930 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3930 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3930 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3930 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3930 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3930 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3930 "tree_bitset.m"
{
#line 3943 "tree_bitset.m"
  {
#line 3943 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
      {
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    else
#line 3944 "tree_bitset.m"
      {
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_26_26;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_31_31;

#line 3945 "tree_bitset.m"
        {
#line 3945 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_6_p_5(mercury__tree_bitset__V_36_36, mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_24_24);
        }
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_6_p_5

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 29125 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
        {
#line 3946 "tree_bitset.m"
          mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_9_p_5(mercury__tree_bitset__V_36_36, mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_28_28, mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3946 "tree_bitset.m"
          return;
        }
#line 3944 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
  }
#line 3930 "tree_bitset.m"
}

#line 3932 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_6_p_6(
#line 3932 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_36_36,
#line 3932 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3932 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3932 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3932 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3932 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3932 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3932 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3932 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3932 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3932 "tree_bitset.m"
{
#line 3943 "tree_bitset.m"
  {
#line 3943 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
      {
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    else
#line 3944 "tree_bitset.m"
      {
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_26_26;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_31_31;

#line 3945 "tree_bitset.m"
        {
#line 3945 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_6_p_6(mercury__tree_bitset__V_36_36, mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_24_24);
        }
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_6_p_6

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 29225 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
        {
#line 3946 "tree_bitset.m"
          mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_9_p_6(mercury__tree_bitset__V_36_36, mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_28_28, mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3946 "tree_bitset.m"
          return;
        }
#line 3944 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
  }
#line 3932 "tree_bitset.m"
}

#line 3934 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_6_p_7(
#line 3934 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_36_36,
#line 3934 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3934 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3934 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3934 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3934 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3934 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3934 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3934 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3934 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3934 "tree_bitset.m"
{
#line 3943 "tree_bitset.m"
  {
#line 3943 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
      {
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    else
#line 3944 "tree_bitset.m"
      {
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_26_26;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_31_31;

#line 3945 "tree_bitset.m"
        {
#line 3945 "tree_bitset.m"
          mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_6_p_7(mercury__tree_bitset__V_36_36, mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_24_24);
        }
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_102_111_108_100_114_50_95_112_114_101_100_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_6_p_7

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 29325 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
        {
#line 3946 "tree_bitset.m"
          mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_9_p_7(mercury__tree_bitset__V_36_36, mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_28_28, mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3946 "tree_bitset.m"
          return;
        }
#line 3944 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
  }
#line 3934 "tree_bitset.m"
}

#line 3953 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_7_p_0(
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3953 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3953 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3953 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem0_34;
#line 29398 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 29400 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_34;
#line 3981 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 29405 "tree_bitset.c"
                {
#line 29407 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__conv1_Elem0_34);
                }
#line 29410 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 29412 "tree_bitset.c"
                  {
#line 29414 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_34 = ((MR_Integer) mercury__tree_bitset__conv1_Elem0_34);
#line 29416 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 29418 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_34;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_9), ((MR_Box) (mercury__tree_bitset__Elem_14)), mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
#line 3981 "tree_bitset.m"
                  return;
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_39_39 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_39_39);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_7_p_0(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3999 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                    {
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                    }
#line 3999 "tree_bitset.m"
                    continue;
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_7_p_0(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3995 "tree_bitset.m"
                    mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                    {
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                    }
#line 3995 "tree_bitset.m"
                    continue;
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3953 "tree_bitset.m"
}

#line 3955 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_7_p_1(
#line 3955 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3955 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3955 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3955 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3955 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3955 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3955 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3955 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3955 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3955 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem0_34;
#line 29618 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 29620 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_34;
#line 3981 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 29625 "tree_bitset.c"
                {
#line 29627 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__conv1_Elem0_34);
                }
#line 29630 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 29632 "tree_bitset.c"
                  {
#line 29634 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_34 = ((MR_Integer) mercury__tree_bitset__conv1_Elem0_34);
#line 29636 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 29638 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_34;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_9), ((MR_Box) (mercury__tree_bitset__Elem_14)), mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
#line 3981 "tree_bitset.m"
                  return;
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_39_39 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_39_39);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_7_p_1(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3999 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                    {
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                    }
#line 3999 "tree_bitset.m"
                    continue;
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_7_p_1(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3995 "tree_bitset.m"
                    mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                    {
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                    }
#line 3995 "tree_bitset.m"
                    continue;
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3955 "tree_bitset.m"
}

#line 3957 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_7_p_2(
#line 3957 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3957 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3957 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3957 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3957 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3957 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3957 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3957 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3957 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3957 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem0_34;
#line 29838 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 29840 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_34;
#line 3981 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 29845 "tree_bitset.c"
                {
#line 29847 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__conv1_Elem0_34);
                }
#line 29850 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 29852 "tree_bitset.c"
                  {
#line 29854 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_34 = ((MR_Integer) mercury__tree_bitset__conv1_Elem0_34);
#line 29856 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 29858 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_34;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_9), ((MR_Box) (mercury__tree_bitset__Elem_14)), mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
#line 3981 "tree_bitset.m"
                  return;
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_39_39 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_39_39);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_7_p_2(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3999 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                    {
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                    }
#line 3999 "tree_bitset.m"
                    continue;
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_7_p_2(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3995 "tree_bitset.m"
                    mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                    {
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                    }
#line 3995 "tree_bitset.m"
                    continue;
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3957 "tree_bitset.m"
}

#line 3959 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_7_p_3(
#line 3959 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3959 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3959 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3959 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3959 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3959 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3959 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3959 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3959 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3959 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          {
#line 3977 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3977 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3977 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem0_34;
#line 30064 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 30066 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_34;
#line 3981 "tree_bitset.m"
                MR_bool MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 30071 "tree_bitset.c"
                {
#line 30073 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__conv1_Elem0_34);
                }
#line 30076 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 30078 "tree_bitset.c"
                  {
#line 30080 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_34 = ((MR_Integer) mercury__tree_bitset__conv1_Elem0_34);
#line 30082 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 30084 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_34;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  return mercury__tree_bitset__succeeded = mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_9), ((MR_Box) (mercury__tree_bitset__Elem_14)), mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_39_39 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_39_39);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_7_p_3(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3997 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 3999 "tree_bitset.m"
                      {
#line 3999 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                        {
#line 3999 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                        }
#line 3999 "tree_bitset.m"
                        continue;
#line 3999 "tree_bitset.m"
                      }
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_7_p_3(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3993 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 3993 "tree_bitset.m"
                      {
#line 3995 "tree_bitset.m"
                        mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                        {
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                        }
#line 3995 "tree_bitset.m"
                        continue;
#line 3993 "tree_bitset.m"
                      }
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3959 "tree_bitset.m"
}

#line 3961 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_7_p_4(
#line 3961 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3961 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3961 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3961 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3961 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3961 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3961 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3961 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3961 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3961 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          {
#line 3977 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3977 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3977 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem0_34;
#line 30300 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 30302 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_34;
#line 3981 "tree_bitset.m"
                MR_bool MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 30307 "tree_bitset.c"
                {
#line 30309 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__conv1_Elem0_34);
                }
#line 30312 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 30314 "tree_bitset.c"
                  {
#line 30316 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_34 = ((MR_Integer) mercury__tree_bitset__conv1_Elem0_34);
#line 30318 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 30320 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_34;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  return mercury__tree_bitset__succeeded = mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_9), ((MR_Box) (mercury__tree_bitset__Elem_14)), mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_39_39 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_39_39);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_7_p_4(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3997 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 3999 "tree_bitset.m"
                      {
#line 3999 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                        {
#line 3999 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                        }
#line 3999 "tree_bitset.m"
                        continue;
#line 3999 "tree_bitset.m"
                      }
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_7_p_4(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3993 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 3993 "tree_bitset.m"
                      {
#line 3995 "tree_bitset.m"
                        mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                        {
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                        }
#line 3995 "tree_bitset.m"
                        continue;
#line 3993 "tree_bitset.m"
                      }
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3961 "tree_bitset.m"
}

#line 3963 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_7_p_5(
#line 3963 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3963 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3963 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3963 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3963 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3963 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3963 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3963 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3963 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3963 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          {
#line 3977 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3977 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3977 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem0_34;
#line 30536 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 30538 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_34;
#line 3981 "tree_bitset.m"
                MR_bool MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 30543 "tree_bitset.c"
                {
#line 30545 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__conv1_Elem0_34);
                }
#line 30548 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 30550 "tree_bitset.c"
                  {
#line 30552 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_34 = ((MR_Integer) mercury__tree_bitset__conv1_Elem0_34);
#line 30554 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 30556 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_34;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  return mercury__tree_bitset__succeeded = mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_9), ((MR_Box) (mercury__tree_bitset__Elem_14)), mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_39_39 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_39_39);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_7_p_5(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3997 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 3999 "tree_bitset.m"
                      {
#line 3999 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                        {
#line 3999 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                        }
#line 3999 "tree_bitset.m"
                        continue;
#line 3999 "tree_bitset.m"
                      }
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_7_p_5(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3993 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 3993 "tree_bitset.m"
                      {
#line 3995 "tree_bitset.m"
                        mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                        {
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                        }
#line 3995 "tree_bitset.m"
                        continue;
#line 3993 "tree_bitset.m"
                      }
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3963 "tree_bitset.m"
}

#line 3997 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_7_p_6_1(
#line 3997 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3997 "tree_bitset.m"
{
#line 3997 "tree_bitset.m"
  {
#line 3997 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3999 "tree_bitset.m"
    {
#line 3999 "tree_bitset.m"
      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_7_p_6((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_31, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Dir_8, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__P_9, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Offset_10, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__LowBits_17, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HalfSize_15, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_25_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont_env_ptr);
#line 3999 "tree_bitset.m"
      return;
    }
#line 3997 "tree_bitset.m"
  }
#line 3997 "tree_bitset.m"
}

#line 3993 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_7_p_6_2(
#line 3993 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3993 "tree_bitset.m"
{
#line 3993 "tree_bitset.m"
  {
#line 3993 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3995 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__V_28_28 = ((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Offset_10 + (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HalfSize_15);
#line 3995 "tree_bitset.m"
    {
#line 3995 "tree_bitset.m"
      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_7_p_6((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_31, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Dir_8, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__P_9, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__V_28_28, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HighBits_18, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HalfSize_15, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_27_27, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont_env_ptr);
#line 3995 "tree_bitset.m"
      return;
    }
#line 3993 "tree_bitset.m"
  }
#line 3993 "tree_bitset.m"
}

#line 3965 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_7_p_6(
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3965 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3965 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3965 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3965 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3965 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20,
#line 3965 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3965 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3965 "tree_bitset.m"
{
#line 3965 "tree_bitset.m"
  {
#line 3965 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_31 = mercury__tree_bitset__TypeInfo_for_U_31;
#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_30 = mercury__tree_bitset__TypeClassInfo_for_enum_30;
#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Dir_8 = mercury__tree_bitset__Dir_8;
#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__P_9 = mercury__tree_bitset__P_9;
#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Offset_10 = mercury__tree_bitset__Offset_10;
#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_20;
#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
      if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
        {
#line 3977 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_20) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3977 "tree_bitset.m"
          {
#line 3977 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont_env_ptr);
#line 3977 "tree_bitset.m"
            return;
          }
#line 3977 "tree_bitset.m"
        }
#line 3979 "tree_bitset.m"
      else
#line 3982 "tree_bitset.m"
        {
#line 3979 "tree_bitset.m"
          mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
          if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
            {
#line 3980 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__Elem0_34;
#line 30846 "tree_bitset.c"
              MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 30848 "tree_bitset.c"
              MR_Box mercury__tree_bitset__conv1_Elem0_34;
#line 3981 "tree_bitset.m"
              void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Cont, void *);

#line 30853 "tree_bitset.c"
              {
#line 30855 "tree_bitset.c"
                mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_30), ((MR_Box) ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Offset_10)), &mercury__tree_bitset__conv1_Elem0_34);
              }
#line 30858 "tree_bitset.c"
              if (mercury__tree_bitset__succeeded)
#line 30860 "tree_bitset.c"
                {
#line 30862 "tree_bitset.c"
                  mercury__tree_bitset__Elem0_34 = ((MR_Integer) mercury__tree_bitset__conv1_Elem0_34);
#line 30864 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = MR_TRUE;
#line 30866 "tree_bitset.c"
                }
#line 565 "tree_bitset.m"
              if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_34;
#line 565 "tree_bitset.m"
              else
#line 568 "tree_bitset.m"
                {
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                    return;
                  }
#line 568 "tree_bitset.m"
                }
#line 3981 "tree_bitset.m"
              mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Cont, void *)) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
              {
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_2(((MR_Box) (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__P_9), ((MR_Box) (mercury__tree_bitset__Elem_14)), mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_20, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont_env_ptr);
#line 3981 "tree_bitset.m"
                return;
              }
#line 3980 "tree_bitset.m"
            }
#line 3982 "tree_bitset.m"
          else
#line 3983 "tree_bitset.m"
            {
#line 3983 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_39_39;

#line 3983 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3645 "tree_bitset.m"
              mercury__tree_bitset__V_39_39 = ((MR_Integer) -1 << (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HalfSize_15);
#line 3645 "tree_bitset.m"
              mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_39_39);
#line 3987 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
              mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HalfSize_15);
#line 3990 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
              if (((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                {
#line 3997 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__V_24_24 = ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Offset_10 + (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HalfSize_15);

#line 3998 "tree_bitset.m"
                  {
#line 3998 "tree_bitset.m"
                    mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_7_p_6((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_31, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Dir_8, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__P_9, mercury__tree_bitset__V_24_24, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HighBits_18, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_25_25, mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_7_p_6_1, &mercury__tree_bitset__env);
                  }
#line 3997 "tree_bitset.m"
                }
#line 3996 "tree_bitset.m"
              else
#line 3993 "tree_bitset.m"
                {
#line 3994 "tree_bitset.m"
                  {
#line 3994 "tree_bitset.m"
                    mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_7_p_6((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_31, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Dir_8, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__P_9, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Offset_10, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__LowBits_17, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_27_27, mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_7_p_6_2, &mercury__tree_bitset__env);
                  }
#line 3993 "tree_bitset.m"
                }
#line 3983 "tree_bitset.m"
            }
#line 3982 "tree_bitset.m"
        }
#line 3979 "tree_bitset.m"
    }
#line 3965 "tree_bitset.m"
  }
#line 3965 "tree_bitset.m"
}

#line 3997 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_7_p_7_1(
#line 3997 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3997 "tree_bitset.m"
{
#line 3997 "tree_bitset.m"
  {
#line 3997 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3999 "tree_bitset.m"
    {
#line 3999 "tree_bitset.m"
      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_7_p_7((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_31, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Dir_8, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__P_9, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Offset_10, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__LowBits_17, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HalfSize_15, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_25_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont_env_ptr);
#line 3999 "tree_bitset.m"
      return;
    }
#line 3997 "tree_bitset.m"
  }
#line 3997 "tree_bitset.m"
}

#line 3993 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_7_p_7_2(
#line 3993 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3993 "tree_bitset.m"
{
#line 3993 "tree_bitset.m"
  {
#line 3993 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3995 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__V_28_28 = ((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Offset_10 + (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HalfSize_15);
#line 3995 "tree_bitset.m"
    {
#line 3995 "tree_bitset.m"
      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_7_p_7((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_31, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Dir_8, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__P_9, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__V_28_28, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HighBits_18, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HalfSize_15, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_27_27, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont_env_ptr);
#line 3995 "tree_bitset.m"
      return;
    }
#line 3993 "tree_bitset.m"
  }
#line 3993 "tree_bitset.m"
}

#line 3967 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_7_p_7(
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3967 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3967 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3967 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3967 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3967 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20,
#line 3967 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3967 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3967 "tree_bitset.m"
{
#line 3967 "tree_bitset.m"
  {
#line 3967 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_31 = mercury__tree_bitset__TypeInfo_for_U_31;
#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_30 = mercury__tree_bitset__TypeClassInfo_for_enum_30;
#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Dir_8 = mercury__tree_bitset__Dir_8;
#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__P_9 = mercury__tree_bitset__P_9;
#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Offset_10 = mercury__tree_bitset__Offset_10;
#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_20;
#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
      if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
        {
#line 3977 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_20) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3977 "tree_bitset.m"
          {
#line 3977 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont_env_ptr);
#line 3977 "tree_bitset.m"
            return;
          }
#line 3977 "tree_bitset.m"
        }
#line 3979 "tree_bitset.m"
      else
#line 3982 "tree_bitset.m"
        {
#line 3979 "tree_bitset.m"
          mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
          if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
            {
#line 3980 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__Elem0_34;
#line 31087 "tree_bitset.c"
              MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 31089 "tree_bitset.c"
              MR_Box mercury__tree_bitset__conv1_Elem0_34;
#line 3981 "tree_bitset.m"
              void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Cont, void *);

#line 31094 "tree_bitset.c"
              {
#line 31096 "tree_bitset.c"
                mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_30), ((MR_Box) ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Offset_10)), &mercury__tree_bitset__conv1_Elem0_34);
              }
#line 31099 "tree_bitset.c"
              if (mercury__tree_bitset__succeeded)
#line 31101 "tree_bitset.c"
                {
#line 31103 "tree_bitset.c"
                  mercury__tree_bitset__Elem0_34 = ((MR_Integer) mercury__tree_bitset__conv1_Elem0_34);
#line 31105 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = MR_TRUE;
#line 31107 "tree_bitset.c"
                }
#line 565 "tree_bitset.m"
              if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_34;
#line 565 "tree_bitset.m"
              else
#line 568 "tree_bitset.m"
                {
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                    return;
                  }
#line 568 "tree_bitset.m"
                }
#line 3981 "tree_bitset.m"
              mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Cont, void *)) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
              {
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_2(((MR_Box) (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__P_9), ((MR_Box) (mercury__tree_bitset__Elem_14)), mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_20, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont_env_ptr);
#line 3981 "tree_bitset.m"
                return;
              }
#line 3980 "tree_bitset.m"
            }
#line 3982 "tree_bitset.m"
          else
#line 3983 "tree_bitset.m"
            {
#line 3983 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_39_39;

#line 3983 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3645 "tree_bitset.m"
              mercury__tree_bitset__V_39_39 = ((MR_Integer) -1 << (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HalfSize_15);
#line 3645 "tree_bitset.m"
              mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_39_39);
#line 3987 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
              mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HalfSize_15);
#line 3990 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
              if (((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                {
#line 3997 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__V_24_24 = ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Offset_10 + (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HalfSize_15);

#line 3998 "tree_bitset.m"
                  {
#line 3998 "tree_bitset.m"
                    mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_7_p_7((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_31, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Dir_8, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__P_9, mercury__tree_bitset__V_24_24, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HighBits_18, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_25_25, mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_7_p_7_1, &mercury__tree_bitset__env);
                  }
#line 3997 "tree_bitset.m"
                }
#line 3996 "tree_bitset.m"
              else
#line 3993 "tree_bitset.m"
                {
#line 3994 "tree_bitset.m"
                  {
#line 3994 "tree_bitset.m"
                    mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_7_p_7((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_31, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Dir_8, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__P_9, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Offset_10, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__LowBits_17, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_27_27, mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_7_p_7_2, &mercury__tree_bitset__env);
                  }
#line 3993 "tree_bitset.m"
                }
#line 3983 "tree_bitset.m"
            }
#line 3982 "tree_bitset.m"
        }
#line 3979 "tree_bitset.m"
    }
#line 3967 "tree_bitset.m"
  }
#line 3967 "tree_bitset.m"
}

#line 3969 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_56_95_49_7_p_8(
#line 3969 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3969 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3969 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3969 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3969 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3969 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3969 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3969 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3969 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3969 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem0_34;
#line 31248 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 31250 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_34;
#line 3981 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 31255 "tree_bitset.c"
                {
#line 31257 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__conv1_Elem0_34);
                }
#line 31260 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 31262 "tree_bitset.c"
                  {
#line 31264 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_34 = ((MR_Integer) mercury__tree_bitset__conv1_Elem0_34);
#line 31266 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 31268 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_34;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_9), ((MR_Box) (mercury__tree_bitset__Elem_14)), mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
#line 3981 "tree_bitset.m"
                  return;
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_39_39 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_39_39);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_56_95_49_7_p_8(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3999 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                    {
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                    }
#line 3999 "tree_bitset.m"
                    continue;
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_56_95_49_7_p_8(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3995 "tree_bitset.m"
                    mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                    {
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                    }
#line 3995 "tree_bitset.m"
                    continue;
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3969 "tree_bitset.m"
}

#line 3971 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_57_95_49_7_p_9(
#line 3971 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3971 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3971 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3971 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3971 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3971 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3971 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3971 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3971 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3971 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem0_34;
#line 31468 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 31470 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_34;
#line 3981 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 31475 "tree_bitset.c"
                {
#line 31477 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__conv1_Elem0_34);
                }
#line 31480 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 31482 "tree_bitset.c"
                  {
#line 31484 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_34 = ((MR_Integer) mercury__tree_bitset__conv1_Elem0_34);
#line 31486 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 31488 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_34;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_9), ((MR_Box) (mercury__tree_bitset__Elem_14)), mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
#line 3981 "tree_bitset.m"
                  return;
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_39_39 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_39_39);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_57_95_49_7_p_9(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3999 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                    {
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                    }
#line 3999 "tree_bitset.m"
                    continue;
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_57_95_49_7_p_9(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3995 "tree_bitset.m"
                    mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                    {
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                    }
#line 3995 "tree_bitset.m"
                    continue;
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3971 "tree_bitset.m"
}

#line 3953 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_7_p_0(
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_32_32,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3953 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3953 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3953 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem0_35;
#line 31690 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 31692 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_35;
#line 3981 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 31697 "tree_bitset.c"
                {
#line 31699 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__conv1_Elem0_35);
                }
#line 31702 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 31704 "tree_bitset.c"
                  {
#line 31706 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_35 = ((MR_Word) mercury__tree_bitset__conv1_Elem0_35);
#line 31708 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 31710 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_35;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_9), ((MR_Box) (mercury__tree_bitset__Elem_14)), mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
#line 3981 "tree_bitset.m"
                  return;
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_40_40 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_40_40);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_7_p_0(mercury__tree_bitset__V_32_32, mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3999 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                    {
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                    }
#line 3999 "tree_bitset.m"
                    continue;
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_7_p_0(mercury__tree_bitset__V_32_32, mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3995 "tree_bitset.m"
                    mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                    {
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                    }
#line 3995 "tree_bitset.m"
                    continue;
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3953 "tree_bitset.m"
}

#line 3955 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_7_p_1(
#line 3955 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_32_32,
#line 3955 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3955 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3955 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3955 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3955 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3955 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3955 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3955 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3955 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3955 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem0_35;
#line 31912 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 31914 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_35;
#line 3981 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 31919 "tree_bitset.c"
                {
#line 31921 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__conv1_Elem0_35);
                }
#line 31924 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 31926 "tree_bitset.c"
                  {
#line 31928 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_35 = ((MR_Word) mercury__tree_bitset__conv1_Elem0_35);
#line 31930 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 31932 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_35;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_9), ((MR_Box) (mercury__tree_bitset__Elem_14)), mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
#line 3981 "tree_bitset.m"
                  return;
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_40_40 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_40_40);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_7_p_1(mercury__tree_bitset__V_32_32, mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3999 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                    {
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                    }
#line 3999 "tree_bitset.m"
                    continue;
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_7_p_1(mercury__tree_bitset__V_32_32, mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3995 "tree_bitset.m"
                    mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                    {
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                    }
#line 3995 "tree_bitset.m"
                    continue;
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3955 "tree_bitset.m"
}

#line 3957 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_7_p_2(
#line 3957 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_32_32,
#line 3957 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3957 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3957 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3957 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3957 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3957 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3957 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3957 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3957 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3957 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem0_35;
#line 32134 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 32136 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_35;
#line 3981 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 32141 "tree_bitset.c"
                {
#line 32143 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__conv1_Elem0_35);
                }
#line 32146 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 32148 "tree_bitset.c"
                  {
#line 32150 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_35 = ((MR_Word) mercury__tree_bitset__conv1_Elem0_35);
#line 32152 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 32154 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_35;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_9), ((MR_Box) (mercury__tree_bitset__Elem_14)), mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
#line 3981 "tree_bitset.m"
                  return;
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_40_40 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_40_40);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_7_p_2(mercury__tree_bitset__V_32_32, mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3999 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                    {
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                    }
#line 3999 "tree_bitset.m"
                    continue;
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_7_p_2(mercury__tree_bitset__V_32_32, mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3995 "tree_bitset.m"
                    mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                    {
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                    }
#line 3995 "tree_bitset.m"
                    continue;
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3957 "tree_bitset.m"
}

#line 3959 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_7_p_3(
#line 3959 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_32_32,
#line 3959 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3959 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3959 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3959 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3959 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3959 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3959 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3959 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3959 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3959 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          {
#line 3977 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3977 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3977 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem0_35;
#line 32362 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 32364 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_35;
#line 3981 "tree_bitset.m"
                MR_bool MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 32369 "tree_bitset.c"
                {
#line 32371 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__conv1_Elem0_35);
                }
#line 32374 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 32376 "tree_bitset.c"
                  {
#line 32378 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_35 = ((MR_Word) mercury__tree_bitset__conv1_Elem0_35);
#line 32380 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 32382 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_35;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  return mercury__tree_bitset__succeeded = mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_9), ((MR_Box) (mercury__tree_bitset__Elem_14)), mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_40_40 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_40_40);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_7_p_3(mercury__tree_bitset__V_32_32, mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3997 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 3999 "tree_bitset.m"
                      {
#line 3999 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                        {
#line 3999 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                        }
#line 3999 "tree_bitset.m"
                        continue;
#line 3999 "tree_bitset.m"
                      }
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_7_p_3(mercury__tree_bitset__V_32_32, mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3993 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 3993 "tree_bitset.m"
                      {
#line 3995 "tree_bitset.m"
                        mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                        {
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                        }
#line 3995 "tree_bitset.m"
                        continue;
#line 3993 "tree_bitset.m"
                      }
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3959 "tree_bitset.m"
}

#line 3961 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_7_p_4(
#line 3961 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_32_32,
#line 3961 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3961 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3961 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3961 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3961 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3961 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3961 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3961 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3961 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3961 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          {
#line 3977 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3977 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3977 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem0_35;
#line 32600 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 32602 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_35;
#line 3981 "tree_bitset.m"
                MR_bool MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 32607 "tree_bitset.c"
                {
#line 32609 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__conv1_Elem0_35);
                }
#line 32612 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 32614 "tree_bitset.c"
                  {
#line 32616 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_35 = ((MR_Word) mercury__tree_bitset__conv1_Elem0_35);
#line 32618 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 32620 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_35;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  return mercury__tree_bitset__succeeded = mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_9), ((MR_Box) (mercury__tree_bitset__Elem_14)), mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_40_40 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_40_40);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_7_p_4(mercury__tree_bitset__V_32_32, mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3997 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 3999 "tree_bitset.m"
                      {
#line 3999 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                        {
#line 3999 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                        }
#line 3999 "tree_bitset.m"
                        continue;
#line 3999 "tree_bitset.m"
                      }
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_7_p_4(mercury__tree_bitset__V_32_32, mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3993 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 3993 "tree_bitset.m"
                      {
#line 3995 "tree_bitset.m"
                        mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                        {
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                        }
#line 3995 "tree_bitset.m"
                        continue;
#line 3993 "tree_bitset.m"
                      }
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3961 "tree_bitset.m"
}

#line 3963 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_7_p_5(
#line 3963 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_32_32,
#line 3963 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3963 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3963 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3963 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3963 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3963 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3963 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3963 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3963 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3963 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          {
#line 3977 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3977 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3977 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem0_35;
#line 32838 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 32840 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_35;
#line 3981 "tree_bitset.m"
                MR_bool MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 32845 "tree_bitset.c"
                {
#line 32847 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__conv1_Elem0_35);
                }
#line 32850 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 32852 "tree_bitset.c"
                  {
#line 32854 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_35 = ((MR_Word) mercury__tree_bitset__conv1_Elem0_35);
#line 32856 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 32858 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_35;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  return mercury__tree_bitset__succeeded = mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_9), ((MR_Box) (mercury__tree_bitset__Elem_14)), mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_40_40 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_40_40);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_7_p_5(mercury__tree_bitset__V_32_32, mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3997 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 3999 "tree_bitset.m"
                      {
#line 3999 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                        {
#line 3999 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                        }
#line 3999 "tree_bitset.m"
                        continue;
#line 3999 "tree_bitset.m"
                      }
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_7_p_5(mercury__tree_bitset__V_32_32, mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3993 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 3993 "tree_bitset.m"
                      {
#line 3995 "tree_bitset.m"
                        mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                        {
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                        }
#line 3995 "tree_bitset.m"
                        continue;
#line 3993 "tree_bitset.m"
                      }
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3963 "tree_bitset.m"
}

#line 3997 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_7_p_6_1(
#line 3997 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3997 "tree_bitset.m"
{
#line 3997 "tree_bitset.m"
  {
#line 3997 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3999 "tree_bitset.m"
    {
#line 3999 "tree_bitset.m"
      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_7_p_6((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__V_32_32, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_31, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Dir_8, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__P_9, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Offset_10, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__LowBits_17, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HalfSize_15, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_25_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont_env_ptr);
#line 3999 "tree_bitset.m"
      return;
    }
#line 3997 "tree_bitset.m"
  }
#line 3997 "tree_bitset.m"
}

#line 3993 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_7_p_6_2(
#line 3993 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3993 "tree_bitset.m"
{
#line 3993 "tree_bitset.m"
  {
#line 3993 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3995 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__V_28_28 = ((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Offset_10 + (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HalfSize_15);
#line 3995 "tree_bitset.m"
    {
#line 3995 "tree_bitset.m"
      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_7_p_6((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__V_32_32, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_31, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Dir_8, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__P_9, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__V_28_28, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HighBits_18, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HalfSize_15, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_27_27, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont_env_ptr);
#line 3995 "tree_bitset.m"
      return;
    }
#line 3993 "tree_bitset.m"
  }
#line 3993 "tree_bitset.m"
}

#line 3965 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_7_p_6(
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_32_32,
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3965 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3965 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3965 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3965 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3965 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20,
#line 3965 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3965 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3965 "tree_bitset.m"
{
#line 3965 "tree_bitset.m"
  {
#line 3965 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__V_32_32 = mercury__tree_bitset__V_32_32;
#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_31 = mercury__tree_bitset__TypeInfo_for_U_31;
#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_30 = mercury__tree_bitset__TypeClassInfo_for_enum_30;
#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Dir_8 = mercury__tree_bitset__Dir_8;
#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__P_9 = mercury__tree_bitset__P_9;
#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Offset_10 = mercury__tree_bitset__Offset_10;
#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_20;
#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
      if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
        {
#line 3977 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_20) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3977 "tree_bitset.m"
          {
#line 3977 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont_env_ptr);
#line 3977 "tree_bitset.m"
            return;
          }
#line 3977 "tree_bitset.m"
        }
#line 3979 "tree_bitset.m"
      else
#line 3982 "tree_bitset.m"
        {
#line 3979 "tree_bitset.m"
          mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
          if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
            {
#line 3980 "tree_bitset.m"
              MR_Word mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
              MR_Word mercury__tree_bitset__Elem0_35;
#line 33152 "tree_bitset.c"
              MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 33154 "tree_bitset.c"
              MR_Box mercury__tree_bitset__conv1_Elem0_35;
#line 3981 "tree_bitset.m"
              void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Cont, void *);

#line 33159 "tree_bitset.c"
              {
#line 33161 "tree_bitset.c"
                mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_30), ((MR_Box) ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Offset_10)), &mercury__tree_bitset__conv1_Elem0_35);
              }
#line 33164 "tree_bitset.c"
              if (mercury__tree_bitset__succeeded)
#line 33166 "tree_bitset.c"
                {
#line 33168 "tree_bitset.c"
                  mercury__tree_bitset__Elem0_35 = ((MR_Word) mercury__tree_bitset__conv1_Elem0_35);
#line 33170 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = MR_TRUE;
#line 33172 "tree_bitset.c"
                }
#line 565 "tree_bitset.m"
              if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_35;
#line 565 "tree_bitset.m"
              else
#line 568 "tree_bitset.m"
                {
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                    return;
                  }
#line 568 "tree_bitset.m"
                }
#line 3981 "tree_bitset.m"
              mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Cont, void *)) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
              {
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_2(((MR_Box) (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__P_9), ((MR_Box) (mercury__tree_bitset__Elem_14)), mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_20, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__cont_env_ptr);
#line 3981 "tree_bitset.m"
                return;
              }
#line 3980 "tree_bitset.m"
            }
#line 3982 "tree_bitset.m"
          else
#line 3983 "tree_bitset.m"
            {
#line 3983 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_40_40;

#line 3983 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3645 "tree_bitset.m"
              mercury__tree_bitset__V_40_40 = ((MR_Integer) -1 << (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HalfSize_15);
#line 3645 "tree_bitset.m"
              mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_40_40);
#line 3987 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
              mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HalfSize_15);
#line 3990 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
              if (((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                {
#line 3997 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__V_24_24 = ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Offset_10 + (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HalfSize_15);

#line 3998 "tree_bitset.m"
                  {
#line 3998 "tree_bitset.m"
                    mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_7_p_6((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__V_32_32, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_31, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Dir_8, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__P_9, mercury__tree_bitset__V_24_24, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HighBits_18, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_25_25, mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_7_p_6_1, &mercury__tree_bitset__env);
                  }
#line 3997 "tree_bitset.m"
                }
#line 3996 "tree_bitset.m"
              else
#line 3993 "tree_bitset.m"
                {
#line 3994 "tree_bitset.m"
                  {
#line 3994 "tree_bitset.m"
                    mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_7_p_6((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__V_32_32, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeInfo_for_U_31, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Dir_8, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__P_9, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__Offset_10, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__LowBits_17, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_95_55_95_112_95_54_95_101_110_118_95_48__STATE_VARIABLE_Acc_27_27, mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_7_p_6_2, &mercury__tree_bitset__env);
                  }
#line 3993 "tree_bitset.m"
                }
#line 3983 "tree_bitset.m"
            }
#line 3982 "tree_bitset.m"
        }
#line 3979 "tree_bitset.m"
    }
#line 3965 "tree_bitset.m"
  }
#line 3965 "tree_bitset.m"
}

#line 3997 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_7_p_7_1(
#line 3997 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3997 "tree_bitset.m"
{
#line 3997 "tree_bitset.m"
  {
#line 3997 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3999 "tree_bitset.m"
    {
#line 3999 "tree_bitset.m"
      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_7_p_7((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__V_32_32, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_31, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Dir_8, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__P_9, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Offset_10, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__LowBits_17, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HalfSize_15, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_25_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont_env_ptr);
#line 3999 "tree_bitset.m"
      return;
    }
#line 3997 "tree_bitset.m"
  }
#line 3997 "tree_bitset.m"
}

#line 3993 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_7_p_7_2(
#line 3993 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3993 "tree_bitset.m"
{
#line 3993 "tree_bitset.m"
  {
#line 3993 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3995 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__V_28_28 = ((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Offset_10 + (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HalfSize_15);
#line 3995 "tree_bitset.m"
    {
#line 3995 "tree_bitset.m"
      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_7_p_7((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__V_32_32, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_31, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Dir_8, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__P_9, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__V_28_28, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HighBits_18, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HalfSize_15, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_27_27, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont_env_ptr);
#line 3995 "tree_bitset.m"
      return;
    }
#line 3993 "tree_bitset.m"
  }
#line 3993 "tree_bitset.m"
}

#line 3967 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_7_p_7(
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_32_32,
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3967 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3967 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3967 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3967 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3967 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20,
#line 3967 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3967 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3967 "tree_bitset.m"
{
#line 3967 "tree_bitset.m"
  {
#line 3967 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_0_s mercury__tree_bitset__env;

#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__V_32_32 = mercury__tree_bitset__V_32_32;
#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_31 = mercury__tree_bitset__TypeInfo_for_U_31;
#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_30 = mercury__tree_bitset__TypeClassInfo_for_enum_30;
#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Dir_8 = mercury__tree_bitset__Dir_8;
#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__P_9 = mercury__tree_bitset__P_9;
#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Offset_10 = mercury__tree_bitset__Offset_10;
#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_20;
#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
      if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
        {
#line 3977 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_20) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3977 "tree_bitset.m"
          {
#line 3977 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont_env_ptr);
#line 3977 "tree_bitset.m"
            return;
          }
#line 3977 "tree_bitset.m"
        }
#line 3979 "tree_bitset.m"
      else
#line 3982 "tree_bitset.m"
        {
#line 3979 "tree_bitset.m"
          mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
          if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
            {
#line 3980 "tree_bitset.m"
              MR_Word mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
              MR_Word mercury__tree_bitset__Elem0_35;
#line 33397 "tree_bitset.c"
              MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 33399 "tree_bitset.c"
              MR_Box mercury__tree_bitset__conv1_Elem0_35;
#line 3981 "tree_bitset.m"
              void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Cont, void *);

#line 33404 "tree_bitset.c"
              {
#line 33406 "tree_bitset.c"
                mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_30), ((MR_Box) ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Offset_10)), &mercury__tree_bitset__conv1_Elem0_35);
              }
#line 33409 "tree_bitset.c"
              if (mercury__tree_bitset__succeeded)
#line 33411 "tree_bitset.c"
                {
#line 33413 "tree_bitset.c"
                  mercury__tree_bitset__Elem0_35 = ((MR_Word) mercury__tree_bitset__conv1_Elem0_35);
#line 33415 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = MR_TRUE;
#line 33417 "tree_bitset.c"
                }
#line 565 "tree_bitset.m"
              if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_35;
#line 565 "tree_bitset.m"
              else
#line 568 "tree_bitset.m"
                {
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                    return;
                  }
#line 568 "tree_bitset.m"
                }
#line 3981 "tree_bitset.m"
              mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Cont, void *)) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
              {
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_2(((MR_Box) (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__P_9), ((MR_Box) (mercury__tree_bitset__Elem_14)), mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_20, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__cont_env_ptr);
#line 3981 "tree_bitset.m"
                return;
              }
#line 3980 "tree_bitset.m"
            }
#line 3982 "tree_bitset.m"
          else
#line 3983 "tree_bitset.m"
            {
#line 3983 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_40_40;

#line 3983 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3645 "tree_bitset.m"
              mercury__tree_bitset__V_40_40 = ((MR_Integer) -1 << (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HalfSize_15);
#line 3645 "tree_bitset.m"
              mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_40_40);
#line 3987 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
              mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HalfSize_15);
#line 3990 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
              if (((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                {
#line 3997 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__V_24_24 = ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Offset_10 + (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HalfSize_15);

#line 3998 "tree_bitset.m"
                  {
#line 3998 "tree_bitset.m"
                    mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_7_p_7((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__V_32_32, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_31, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Dir_8, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__P_9, mercury__tree_bitset__V_24_24, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HighBits_18, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_25_25, mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_7_p_7_1, &mercury__tree_bitset__env);
                  }
#line 3997 "tree_bitset.m"
                }
#line 3996 "tree_bitset.m"
              else
#line 3993 "tree_bitset.m"
                {
#line 3994 "tree_bitset.m"
                  {
#line 3994 "tree_bitset.m"
                    mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_7_p_7((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__V_32_32, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeInfo_for_U_31, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Dir_8, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__P_9, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__Offset_10, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__LowBits_17, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_95_55_95_112_95_55_95_101_110_118_95_48__STATE_VARIABLE_Acc_27_27, mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_7_p_7_2, &mercury__tree_bitset__env);
                  }
#line 3993 "tree_bitset.m"
                }
#line 3983 "tree_bitset.m"
            }
#line 3982 "tree_bitset.m"
        }
#line 3979 "tree_bitset.m"
    }
#line 3967 "tree_bitset.m"
  }
#line 3967 "tree_bitset.m"
}

#line 3969 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_56_95_49_7_p_8(
#line 3969 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_32_32,
#line 3969 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3969 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3969 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3969 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3969 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3969 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3969 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3969 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3969 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3969 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem0_35;
#line 33560 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 33562 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_35;
#line 3981 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 33567 "tree_bitset.c"
                {
#line 33569 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__conv1_Elem0_35);
                }
#line 33572 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 33574 "tree_bitset.c"
                  {
#line 33576 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_35 = ((MR_Word) mercury__tree_bitset__conv1_Elem0_35);
#line 33578 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 33580 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_35;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_9), ((MR_Box) (mercury__tree_bitset__Elem_14)), mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
#line 3981 "tree_bitset.m"
                  return;
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_40_40 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_40_40);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_56_95_49_7_p_8(mercury__tree_bitset__V_32_32, mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3999 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                    {
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                    }
#line 3999 "tree_bitset.m"
                    continue;
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_56_95_49_7_p_8(mercury__tree_bitset__V_32_32, mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3995 "tree_bitset.m"
                    mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                    {
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                    }
#line 3995 "tree_bitset.m"
                    continue;
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3969 "tree_bitset.m"
}

#line 3971 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_57_95_49_7_p_9(
#line 3971 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_32_32,
#line 3971 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3971 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3971 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3971 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3971 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3971 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3971 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3971 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3971 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3971 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem0_35;
#line 33782 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 33784 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_35;
#line 3981 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 33789 "tree_bitset.c"
                {
#line 33791 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__conv1_Elem0_35);
                }
#line 33794 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 33796 "tree_bitset.c"
                  {
#line 33798 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_35 = ((MR_Word) mercury__tree_bitset__conv1_Elem0_35);
#line 33800 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 33802 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_35;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_9), ((MR_Box) (mercury__tree_bitset__Elem_14)), mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
#line 3981 "tree_bitset.m"
                  return;
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_40_40 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_40_40);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_57_95_49_7_p_9(mercury__tree_bitset__V_32_32, mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3999 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                    {
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                    }
#line 3999 "tree_bitset.m"
                    continue;
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_57_95_49_7_p_9(mercury__tree_bitset__V_32_32, mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3995 "tree_bitset.m"
                    mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                    {
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                    }
#line 3995 "tree_bitset.m"
                    continue;
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3971 "tree_bitset.m"
}

#line 4005 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_9_p_0(
#line 4005 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4005 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4005 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4005 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4005 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4005 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4005 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4005 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4005 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4005 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4005 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4005 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25)
#line 4005 "tree_bitset.m"
{
#line 4027 "tree_bitset.m"
  while (MR_TRUE)
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4027 "tree_bitset.m"
      {
#line 4027 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        else
#line 4030 "tree_bitset.m"
          {
#line 4027 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
              {
#line 4028 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem0_45;
#line 34014 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 34016 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_45;
#line 4029 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *);

#line 34021 "tree_bitset.c"
                {
#line 34023 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_40), ((MR_Box) (mercury__tree_bitset__Offset_12)), &mercury__tree_bitset__conv1_Elem0_45);
                }
#line 34026 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 34028 "tree_bitset.c"
                  {
#line 34030 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_45 = ((MR_Integer) mercury__tree_bitset__conv1_Elem0_45);
#line 34032 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 34034 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_45;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
                {
#line 4029 "tree_bitset.m"
                  mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_11), ((MR_Box) (mercury__tree_bitset__Elem_17)), mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, mercury__tree_bitset__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, mercury__tree_bitset__STATE_VARIABLE_AccB_25);
#line 4029 "tree_bitset.m"
                  return;
                }
#line 4028 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
            else
#line 4031 "tree_bitset.m"
              {
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_20;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_21;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_50_50 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_18);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_50_50);
#line 4035 "tree_bitset.m"
                mercury__tree_bitset__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> mercury__tree_bitset__HalfSize_18);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                  {
#line 4046 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_30_30 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4047 "tree_bitset.m"
                    {
#line 4047 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_9_p_0(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__V_30_30, mercury__tree_bitset__HighBits_21, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_32_32);
                    }
#line 4049 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4049 "tree_bitset.m"
                    {
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__LowBits_20;
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4049 "tree_bitset.m"
                    }
#line 4049 "tree_bitset.m"
                    continue;
#line 4046 "tree_bitset.m"
                  }
#line 4045 "tree_bitset.m"
                else
#line 4041 "tree_bitset.m"
                  {
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_37_37;

#line 4042 "tree_bitset.m"
                    {
#line 4042 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_9_p_0(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__Offset_12, mercury__tree_bitset__LowBits_20, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_36_36);
                    }
#line 4043 "tree_bitset.m"
                    mercury__tree_bitset__V_37_37 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4043 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4043 "tree_bitset.m"
                    {
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_12 = mercury__tree_bitset__V_37_37;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__HighBits_21;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;

#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Offset_12 = mercury__tree_bitset__Offset__tmp_copy_12;
#line 4043 "tree_bitset.m"
                    }
#line 4043 "tree_bitset.m"
                    continue;
#line 4041 "tree_bitset.m"
                  }
#line 4031 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
      }
#line 4027 "tree_bitset.m"
      break;
#line 4027 "tree_bitset.m"
    }
#line 4005 "tree_bitset.m"
}

#line 4007 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_9_p_1(
#line 4007 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4007 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4007 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4007 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4007 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4007 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4007 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4007 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4007 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4007 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4007 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4007 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25)
#line 4007 "tree_bitset.m"
{
#line 4027 "tree_bitset.m"
  while (MR_TRUE)
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4027 "tree_bitset.m"
      {
#line 4027 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        else
#line 4030 "tree_bitset.m"
          {
#line 4027 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
              {
#line 4028 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem0_45;
#line 34258 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 34260 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_45;
#line 4029 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *);

#line 34265 "tree_bitset.c"
                {
#line 34267 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_40), ((MR_Box) (mercury__tree_bitset__Offset_12)), &mercury__tree_bitset__conv1_Elem0_45);
                }
#line 34270 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 34272 "tree_bitset.c"
                  {
#line 34274 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_45 = ((MR_Integer) mercury__tree_bitset__conv1_Elem0_45);
#line 34276 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 34278 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_45;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
                {
#line 4029 "tree_bitset.m"
                  mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_11), ((MR_Box) (mercury__tree_bitset__Elem_17)), mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, mercury__tree_bitset__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, mercury__tree_bitset__STATE_VARIABLE_AccB_25);
#line 4029 "tree_bitset.m"
                  return;
                }
#line 4028 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
            else
#line 4031 "tree_bitset.m"
              {
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_20;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_21;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_50_50 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_18);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_50_50);
#line 4035 "tree_bitset.m"
                mercury__tree_bitset__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> mercury__tree_bitset__HalfSize_18);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                  {
#line 4046 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_30_30 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4047 "tree_bitset.m"
                    {
#line 4047 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_9_p_1(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__V_30_30, mercury__tree_bitset__HighBits_21, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_32_32);
                    }
#line 4049 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4049 "tree_bitset.m"
                    {
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__LowBits_20;
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4049 "tree_bitset.m"
                    }
#line 4049 "tree_bitset.m"
                    continue;
#line 4046 "tree_bitset.m"
                  }
#line 4045 "tree_bitset.m"
                else
#line 4041 "tree_bitset.m"
                  {
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_37_37;

#line 4042 "tree_bitset.m"
                    {
#line 4042 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_49_95_49_9_p_1(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__Offset_12, mercury__tree_bitset__LowBits_20, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_36_36);
                    }
#line 4043 "tree_bitset.m"
                    mercury__tree_bitset__V_37_37 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4043 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4043 "tree_bitset.m"
                    {
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_12 = mercury__tree_bitset__V_37_37;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__HighBits_21;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;

#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Offset_12 = mercury__tree_bitset__Offset__tmp_copy_12;
#line 4043 "tree_bitset.m"
                    }
#line 4043 "tree_bitset.m"
                    continue;
#line 4041 "tree_bitset.m"
                  }
#line 4031 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
      }
#line 4027 "tree_bitset.m"
      break;
#line 4027 "tree_bitset.m"
    }
#line 4007 "tree_bitset.m"
}

#line 4009 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_9_p_2(
#line 4009 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4009 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4009 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4009 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4009 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4009 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4009 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4009 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4009 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4009 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4009 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4009 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25)
#line 4009 "tree_bitset.m"
{
#line 4027 "tree_bitset.m"
  while (MR_TRUE)
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4027 "tree_bitset.m"
      {
#line 4027 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        else
#line 4030 "tree_bitset.m"
          {
#line 4027 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
              {
#line 4028 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem0_45;
#line 34502 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 34504 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_45;
#line 4029 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *);

#line 34509 "tree_bitset.c"
                {
#line 34511 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_40), ((MR_Box) (mercury__tree_bitset__Offset_12)), &mercury__tree_bitset__conv1_Elem0_45);
                }
#line 34514 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 34516 "tree_bitset.c"
                  {
#line 34518 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_45 = ((MR_Integer) mercury__tree_bitset__conv1_Elem0_45);
#line 34520 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 34522 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_45;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
                {
#line 4029 "tree_bitset.m"
                  mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_11), ((MR_Box) (mercury__tree_bitset__Elem_17)), mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, mercury__tree_bitset__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, mercury__tree_bitset__STATE_VARIABLE_AccB_25);
#line 4029 "tree_bitset.m"
                  return;
                }
#line 4028 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
            else
#line 4031 "tree_bitset.m"
              {
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_20;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_21;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_50_50 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_18);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_50_50);
#line 4035 "tree_bitset.m"
                mercury__tree_bitset__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> mercury__tree_bitset__HalfSize_18);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                  {
#line 4046 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_30_30 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4047 "tree_bitset.m"
                    {
#line 4047 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_9_p_2(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__V_30_30, mercury__tree_bitset__HighBits_21, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_32_32);
                    }
#line 4049 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4049 "tree_bitset.m"
                    {
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__LowBits_20;
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4049 "tree_bitset.m"
                    }
#line 4049 "tree_bitset.m"
                    continue;
#line 4046 "tree_bitset.m"
                  }
#line 4045 "tree_bitset.m"
                else
#line 4041 "tree_bitset.m"
                  {
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_37_37;

#line 4042 "tree_bitset.m"
                    {
#line 4042 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_50_95_49_9_p_2(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__Offset_12, mercury__tree_bitset__LowBits_20, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_36_36);
                    }
#line 4043 "tree_bitset.m"
                    mercury__tree_bitset__V_37_37 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4043 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4043 "tree_bitset.m"
                    {
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_12 = mercury__tree_bitset__V_37_37;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__HighBits_21;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;

#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Offset_12 = mercury__tree_bitset__Offset__tmp_copy_12;
#line 4043 "tree_bitset.m"
                    }
#line 4043 "tree_bitset.m"
                    continue;
#line 4041 "tree_bitset.m"
                  }
#line 4031 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
      }
#line 4027 "tree_bitset.m"
      break;
#line 4027 "tree_bitset.m"
    }
#line 4009 "tree_bitset.m"
}

#line 4011 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_9_p_3(
#line 4011 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4011 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4011 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4011 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4011 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4011 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4011 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4011 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4011 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4011 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4011 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4011 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25)
#line 4011 "tree_bitset.m"
{
#line 4027 "tree_bitset.m"
  while (MR_TRUE)
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4027 "tree_bitset.m"
      {
#line 4027 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 4026 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        else
#line 4030 "tree_bitset.m"
          {
#line 4027 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
              {
#line 4028 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem0_45;
#line 34748 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 34750 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_45;
#line 4029 "tree_bitset.m"
                MR_bool MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *);

#line 34755 "tree_bitset.c"
                {
#line 34757 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_40), ((MR_Box) (mercury__tree_bitset__Offset_12)), &mercury__tree_bitset__conv1_Elem0_45);
                }
#line 34760 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 34762 "tree_bitset.c"
                  {
#line 34764 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_45 = ((MR_Integer) mercury__tree_bitset__conv1_Elem0_45);
#line 34766 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 34768 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_45;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
                    }
#line 568 "tree_bitset.m"
                  }
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
                {
#line 4029 "tree_bitset.m"
                  return mercury__tree_bitset__succeeded = mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_11), ((MR_Box) (mercury__tree_bitset__Elem_17)), mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, mercury__tree_bitset__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, mercury__tree_bitset__STATE_VARIABLE_AccB_25);
                }
#line 4028 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
            else
#line 4031 "tree_bitset.m"
              {
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_20;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_21;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_50_50 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_18);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_50_50);
#line 4035 "tree_bitset.m"
                mercury__tree_bitset__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> mercury__tree_bitset__HalfSize_18);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                  {
#line 4046 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_30_30 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4047 "tree_bitset.m"
                    {
#line 4047 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_9_p_3(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__V_30_30, mercury__tree_bitset__HighBits_21, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_32_32);
                    }
#line 4046 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 4049 "tree_bitset.m"
                      {
#line 4049 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 4049 "tree_bitset.m"
                        {
#line 4049 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__LowBits_20;
#line 4049 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4049 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4049 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4049 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4049 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4049 "tree_bitset.m"
                          mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4049 "tree_bitset.m"
                          mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4049 "tree_bitset.m"
                        }
#line 4049 "tree_bitset.m"
                        continue;
#line 4049 "tree_bitset.m"
                      }
#line 4046 "tree_bitset.m"
                  }
#line 4045 "tree_bitset.m"
                else
#line 4041 "tree_bitset.m"
                  {
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_37_37;

#line 4042 "tree_bitset.m"
                    {
#line 4042 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_51_95_49_9_p_3(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__Offset_12, mercury__tree_bitset__LowBits_20, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_36_36);
                    }
#line 4041 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 4041 "tree_bitset.m"
                      {
#line 4043 "tree_bitset.m"
                        mercury__tree_bitset__V_37_37 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4043 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 4043 "tree_bitset.m"
                        {
#line 4043 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Offset__tmp_copy_12 = mercury__tree_bitset__V_37_37;
#line 4043 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__HighBits_21;
#line 4043 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4043 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4043 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;

#line 4043 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4043 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4043 "tree_bitset.m"
                          mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4043 "tree_bitset.m"
                          mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4043 "tree_bitset.m"
                          mercury__tree_bitset__Offset_12 = mercury__tree_bitset__Offset__tmp_copy_12;
#line 4043 "tree_bitset.m"
                        }
#line 4043 "tree_bitset.m"
                        continue;
#line 4041 "tree_bitset.m"
                      }
#line 4041 "tree_bitset.m"
                  }
#line 4031 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 4027 "tree_bitset.m"
      }
#line 4027 "tree_bitset.m"
      break;
#line 4027 "tree_bitset.m"
    }
#line 4011 "tree_bitset.m"
}

#line 4046 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_9_p_4_1(
#line 4046 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 4046 "tree_bitset.m"
{
#line 4046 "tree_bitset.m"
  {
#line 4046 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 4049 "tree_bitset.m"
    {
#line 4049 "tree_bitset.m"
      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_9_p_4((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_41, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_42, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_40, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Dir_10, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__P_11, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Offset_12, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__LowBits_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HalfSize_18, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_31_31, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_23, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_32_32, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 4049 "tree_bitset.m"
      return;
    }
#line 4046 "tree_bitset.m"
  }
#line 4046 "tree_bitset.m"
}

#line 4041 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_9_p_4_2(
#line 4041 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 4041 "tree_bitset.m"
{
#line 4041 "tree_bitset.m"
  {
#line 4041 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 4043 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__V_37_37 = ((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Offset_12 + (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HalfSize_18);
#line 4043 "tree_bitset.m"
    {
#line 4043 "tree_bitset.m"
      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_9_p_4((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_41, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_42, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_40, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Dir_10, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__P_11, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__V_37_37, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HighBits_21, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HalfSize_18, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_35_35, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_23, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_36_36, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 4043 "tree_bitset.m"
      return;
    }
#line 4041 "tree_bitset.m"
  }
#line 4041 "tree_bitset.m"
}

#line 4013 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_9_p_4(
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4013 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4013 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4013 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4013 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4013 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4013 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4013 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25,
#line 4013 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 4013 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 4013 "tree_bitset.m"
{
#line 4013 "tree_bitset.m"
  {
#line 4013 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_0_s mercury__tree_bitset__env;

#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_41 = mercury__tree_bitset__TypeInfo_for_U_41;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_42 = mercury__tree_bitset__TypeInfo_for_V_42;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_40 = mercury__tree_bitset__TypeClassInfo_for_enum_40;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Dir_10 = mercury__tree_bitset__Dir_10;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__P_11 = mercury__tree_bitset__P_11;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Offset_12 = mercury__tree_bitset__Offset_12;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_23;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_25;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
      if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
        {
#line 4026 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_25) = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_23) = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 4026 "tree_bitset.m"
            return;
          }
#line 4026 "tree_bitset.m"
        }
#line 4027 "tree_bitset.m"
      else
#line 4030 "tree_bitset.m"
        {
#line 4027 "tree_bitset.m"
          mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
          if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
            {
#line 4028 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__Elem0_45;
#line 35082 "tree_bitset.c"
              MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 35084 "tree_bitset.c"
              MR_Box mercury__tree_bitset__conv1_Elem0_45;
#line 4029 "tree_bitset.m"
              void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *, MR_Cont, void *);

#line 35089 "tree_bitset.c"
              {
#line 35091 "tree_bitset.c"
                mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_40), ((MR_Box) ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Offset_12)), &mercury__tree_bitset__conv1_Elem0_45);
              }
#line 35094 "tree_bitset.c"
              if (mercury__tree_bitset__succeeded)
#line 35096 "tree_bitset.c"
                {
#line 35098 "tree_bitset.c"
                  mercury__tree_bitset__Elem0_45 = ((MR_Integer) mercury__tree_bitset__conv1_Elem0_45);
#line 35100 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = MR_TRUE;
#line 35102 "tree_bitset.c"
                }
#line 565 "tree_bitset.m"
              if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_45;
#line 565 "tree_bitset.m"
              else
#line 568 "tree_bitset.m"
                {
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                    return;
                  }
#line 568 "tree_bitset.m"
                }
#line 4029 "tree_bitset.m"
              mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *, MR_Cont, void *)) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
              {
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_2(((MR_Box) (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__P_11), ((MR_Box) (mercury__tree_bitset__Elem_17)), mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_25, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 4029 "tree_bitset.m"
                return;
              }
#line 4028 "tree_bitset.m"
            }
#line 4030 "tree_bitset.m"
          else
#line 4031 "tree_bitset.m"
            {
#line 4031 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_50_50;

#line 4031 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 3645 "tree_bitset.m"
              mercury__tree_bitset__V_50_50 = ((MR_Integer) -1 << (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HalfSize_18);
#line 3645 "tree_bitset.m"
              mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_50_50);
#line 4035 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
              mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HalfSize_18);
#line 4038 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
              if (((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                {
#line 4046 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__V_30_30 = ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Offset_12 + (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HalfSize_18);

#line 4047 "tree_bitset.m"
                  {
#line 4047 "tree_bitset.m"
                    mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_9_p_4((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_41, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_42, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_40, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Dir_10, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__P_11, mercury__tree_bitset__V_30_30, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HighBits_21, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_32_32, mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_9_p_4_1, &mercury__tree_bitset__env);
                  }
#line 4046 "tree_bitset.m"
                }
#line 4045 "tree_bitset.m"
              else
#line 4041 "tree_bitset.m"
                {
#line 4042 "tree_bitset.m"
                  {
#line 4042 "tree_bitset.m"
                    mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_9_p_4((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_41, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_42, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_40, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Dir_10, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__P_11, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Offset_12, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__LowBits_20, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_36_36, mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_52_95_49_9_p_4_2, &mercury__tree_bitset__env);
                  }
#line 4041 "tree_bitset.m"
                }
#line 4031 "tree_bitset.m"
            }
#line 4030 "tree_bitset.m"
        }
#line 4027 "tree_bitset.m"
    }
#line 4013 "tree_bitset.m"
  }
#line 4013 "tree_bitset.m"
}

#line 4015 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_9_p_5(
#line 4015 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4015 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4015 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4015 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4015 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4015 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4015 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4015 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4015 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4015 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4015 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4015 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25)
#line 4015 "tree_bitset.m"
{
#line 4027 "tree_bitset.m"
  while (MR_TRUE)
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4027 "tree_bitset.m"
      {
#line 4027 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        else
#line 4030 "tree_bitset.m"
          {
#line 4027 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
              {
#line 4028 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem0_45;
#line 35255 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 35257 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_45;
#line 4029 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *);

#line 35262 "tree_bitset.c"
                {
#line 35264 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_40), ((MR_Box) (mercury__tree_bitset__Offset_12)), &mercury__tree_bitset__conv1_Elem0_45);
                }
#line 35267 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 35269 "tree_bitset.c"
                  {
#line 35271 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_45 = ((MR_Integer) mercury__tree_bitset__conv1_Elem0_45);
#line 35273 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 35275 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_45;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
                {
#line 4029 "tree_bitset.m"
                  mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_11), ((MR_Box) (mercury__tree_bitset__Elem_17)), mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, mercury__tree_bitset__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, mercury__tree_bitset__STATE_VARIABLE_AccB_25);
#line 4029 "tree_bitset.m"
                  return;
                }
#line 4028 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
            else
#line 4031 "tree_bitset.m"
              {
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_20;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_21;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_50_50 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_18);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_50_50);
#line 4035 "tree_bitset.m"
                mercury__tree_bitset__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> mercury__tree_bitset__HalfSize_18);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                  {
#line 4046 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_30_30 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4047 "tree_bitset.m"
                    {
#line 4047 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_9_p_5(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__V_30_30, mercury__tree_bitset__HighBits_21, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_32_32);
                    }
#line 4049 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4049 "tree_bitset.m"
                    {
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__LowBits_20;
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4049 "tree_bitset.m"
                    }
#line 4049 "tree_bitset.m"
                    continue;
#line 4046 "tree_bitset.m"
                  }
#line 4045 "tree_bitset.m"
                else
#line 4041 "tree_bitset.m"
                  {
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_37_37;

#line 4042 "tree_bitset.m"
                    {
#line 4042 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_53_95_49_9_p_5(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__Offset_12, mercury__tree_bitset__LowBits_20, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_36_36);
                    }
#line 4043 "tree_bitset.m"
                    mercury__tree_bitset__V_37_37 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4043 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4043 "tree_bitset.m"
                    {
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_12 = mercury__tree_bitset__V_37_37;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__HighBits_21;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;

#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Offset_12 = mercury__tree_bitset__Offset__tmp_copy_12;
#line 4043 "tree_bitset.m"
                    }
#line 4043 "tree_bitset.m"
                    continue;
#line 4041 "tree_bitset.m"
                  }
#line 4031 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
      }
#line 4027 "tree_bitset.m"
      break;
#line 4027 "tree_bitset.m"
    }
#line 4015 "tree_bitset.m"
}

#line 4017 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_9_p_6(
#line 4017 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4017 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4017 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4017 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4017 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4017 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4017 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4017 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4017 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4017 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4017 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4017 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25)
#line 4017 "tree_bitset.m"
{
#line 4027 "tree_bitset.m"
  while (MR_TRUE)
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4027 "tree_bitset.m"
      {
#line 4027 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        else
#line 4030 "tree_bitset.m"
          {
#line 4027 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
              {
#line 4028 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem0_45;
#line 35499 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 35501 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_45;
#line 4029 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *);

#line 35506 "tree_bitset.c"
                {
#line 35508 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_40), ((MR_Box) (mercury__tree_bitset__Offset_12)), &mercury__tree_bitset__conv1_Elem0_45);
                }
#line 35511 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 35513 "tree_bitset.c"
                  {
#line 35515 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_45 = ((MR_Integer) mercury__tree_bitset__conv1_Elem0_45);
#line 35517 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 35519 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_45;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
                {
#line 4029 "tree_bitset.m"
                  mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_11), ((MR_Box) (mercury__tree_bitset__Elem_17)), mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, mercury__tree_bitset__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, mercury__tree_bitset__STATE_VARIABLE_AccB_25);
#line 4029 "tree_bitset.m"
                  return;
                }
#line 4028 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
            else
#line 4031 "tree_bitset.m"
              {
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_20;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_21;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_50_50 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_18);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_50_50);
#line 4035 "tree_bitset.m"
                mercury__tree_bitset__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> mercury__tree_bitset__HalfSize_18);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                  {
#line 4046 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_30_30 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4047 "tree_bitset.m"
                    {
#line 4047 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_9_p_6(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__V_30_30, mercury__tree_bitset__HighBits_21, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_32_32);
                    }
#line 4049 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4049 "tree_bitset.m"
                    {
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__LowBits_20;
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4049 "tree_bitset.m"
                    }
#line 4049 "tree_bitset.m"
                    continue;
#line 4046 "tree_bitset.m"
                  }
#line 4045 "tree_bitset.m"
                else
#line 4041 "tree_bitset.m"
                  {
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_37_37;

#line 4042 "tree_bitset.m"
                    {
#line 4042 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_54_95_49_9_p_6(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__Offset_12, mercury__tree_bitset__LowBits_20, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_36_36);
                    }
#line 4043 "tree_bitset.m"
                    mercury__tree_bitset__V_37_37 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4043 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4043 "tree_bitset.m"
                    {
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_12 = mercury__tree_bitset__V_37_37;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__HighBits_21;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;

#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Offset_12 = mercury__tree_bitset__Offset__tmp_copy_12;
#line 4043 "tree_bitset.m"
                    }
#line 4043 "tree_bitset.m"
                    continue;
#line 4041 "tree_bitset.m"
                  }
#line 4031 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
      }
#line 4027 "tree_bitset.m"
      break;
#line 4027 "tree_bitset.m"
    }
#line 4017 "tree_bitset.m"
}

#line 4019 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_9_p_7(
#line 4019 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4019 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4019 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4019 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4019 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4019 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4019 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4019 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4019 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4019 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4019 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4019 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25)
#line 4019 "tree_bitset.m"
{
#line 4027 "tree_bitset.m"
  while (MR_TRUE)
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4027 "tree_bitset.m"
      {
#line 4027 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        else
#line 4030 "tree_bitset.m"
          {
#line 4027 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
              {
#line 4028 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem0_45;
#line 35743 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 35745 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_45;
#line 4029 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *);

#line 35750 "tree_bitset.c"
                {
#line 35752 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_40), ((MR_Box) (mercury__tree_bitset__Offset_12)), &mercury__tree_bitset__conv1_Elem0_45);
                }
#line 35755 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 35757 "tree_bitset.c"
                  {
#line 35759 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_45 = ((MR_Integer) mercury__tree_bitset__conv1_Elem0_45);
#line 35761 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 35763 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_45;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
                {
#line 4029 "tree_bitset.m"
                  mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_11), ((MR_Box) (mercury__tree_bitset__Elem_17)), mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, mercury__tree_bitset__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, mercury__tree_bitset__STATE_VARIABLE_AccB_25);
#line 4029 "tree_bitset.m"
                  return;
                }
#line 4028 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
            else
#line 4031 "tree_bitset.m"
              {
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_20;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_21;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_50_50 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_18);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_50_50);
#line 4035 "tree_bitset.m"
                mercury__tree_bitset__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> mercury__tree_bitset__HalfSize_18);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                  {
#line 4046 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_30_30 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4047 "tree_bitset.m"
                    {
#line 4047 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_9_p_7(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__V_30_30, mercury__tree_bitset__HighBits_21, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_32_32);
                    }
#line 4049 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4049 "tree_bitset.m"
                    {
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__LowBits_20;
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4049 "tree_bitset.m"
                    }
#line 4049 "tree_bitset.m"
                    continue;
#line 4046 "tree_bitset.m"
                  }
#line 4045 "tree_bitset.m"
                else
#line 4041 "tree_bitset.m"
                  {
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_37_37;

#line 4042 "tree_bitset.m"
                    {
#line 4042 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_55_95_49_9_p_7(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__Offset_12, mercury__tree_bitset__LowBits_20, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_36_36);
                    }
#line 4043 "tree_bitset.m"
                    mercury__tree_bitset__V_37_37 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4043 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4043 "tree_bitset.m"
                    {
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_12 = mercury__tree_bitset__V_37_37;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__HighBits_21;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;

#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Offset_12 = mercury__tree_bitset__Offset__tmp_copy_12;
#line 4043 "tree_bitset.m"
                    }
#line 4043 "tree_bitset.m"
                    continue;
#line 4041 "tree_bitset.m"
                  }
#line 4031 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
      }
#line 4027 "tree_bitset.m"
      break;
#line 4027 "tree_bitset.m"
    }
#line 4019 "tree_bitset.m"
}

#line 4005 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_9_p_0(
#line 4005 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_43_43,
#line 4005 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4005 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4005 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4005 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4005 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4005 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4005 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4005 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4005 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4005 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4005 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4005 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25)
#line 4005 "tree_bitset.m"
{
#line 4027 "tree_bitset.m"
  while (MR_TRUE)
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4027 "tree_bitset.m"
      {
#line 4027 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        else
#line 4030 "tree_bitset.m"
          {
#line 4027 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
              {
#line 4028 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem0_46;
#line 35989 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 35991 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_46;
#line 4029 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *);

#line 35996 "tree_bitset.c"
                {
#line 35998 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_40), ((MR_Box) (mercury__tree_bitset__Offset_12)), &mercury__tree_bitset__conv1_Elem0_46);
                }
#line 36001 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 36003 "tree_bitset.c"
                  {
#line 36005 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_46 = ((MR_Word) mercury__tree_bitset__conv1_Elem0_46);
#line 36007 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 36009 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_46;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
                {
#line 4029 "tree_bitset.m"
                  mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_11), ((MR_Box) (mercury__tree_bitset__Elem_17)), mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, mercury__tree_bitset__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, mercury__tree_bitset__STATE_VARIABLE_AccB_25);
#line 4029 "tree_bitset.m"
                  return;
                }
#line 4028 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
            else
#line 4031 "tree_bitset.m"
              {
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_20;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_21;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_51_51 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_18);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_51_51);
#line 4035 "tree_bitset.m"
                mercury__tree_bitset__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> mercury__tree_bitset__HalfSize_18);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                  {
#line 4046 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_30_30 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4047 "tree_bitset.m"
                    {
#line 4047 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_9_p_0(mercury__tree_bitset__V_43_43, mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__V_30_30, mercury__tree_bitset__HighBits_21, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_32_32);
                    }
#line 4049 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4049 "tree_bitset.m"
                    {
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__LowBits_20;
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4049 "tree_bitset.m"
                    }
#line 4049 "tree_bitset.m"
                    continue;
#line 4046 "tree_bitset.m"
                  }
#line 4045 "tree_bitset.m"
                else
#line 4041 "tree_bitset.m"
                  {
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_37_37;

#line 4042 "tree_bitset.m"
                    {
#line 4042 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_9_p_0(mercury__tree_bitset__V_43_43, mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__Offset_12, mercury__tree_bitset__LowBits_20, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_36_36);
                    }
#line 4043 "tree_bitset.m"
                    mercury__tree_bitset__V_37_37 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4043 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4043 "tree_bitset.m"
                    {
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_12 = mercury__tree_bitset__V_37_37;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__HighBits_21;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;

#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Offset_12 = mercury__tree_bitset__Offset__tmp_copy_12;
#line 4043 "tree_bitset.m"
                    }
#line 4043 "tree_bitset.m"
                    continue;
#line 4041 "tree_bitset.m"
                  }
#line 4031 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
      }
#line 4027 "tree_bitset.m"
      break;
#line 4027 "tree_bitset.m"
    }
#line 4005 "tree_bitset.m"
}

#line 4007 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_9_p_1(
#line 4007 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_43_43,
#line 4007 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4007 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4007 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4007 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4007 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4007 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4007 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4007 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4007 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4007 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4007 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4007 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25)
#line 4007 "tree_bitset.m"
{
#line 4027 "tree_bitset.m"
  while (MR_TRUE)
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4027 "tree_bitset.m"
      {
#line 4027 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        else
#line 4030 "tree_bitset.m"
          {
#line 4027 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
              {
#line 4028 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem0_46;
#line 36235 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 36237 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_46;
#line 4029 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *);

#line 36242 "tree_bitset.c"
                {
#line 36244 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_40), ((MR_Box) (mercury__tree_bitset__Offset_12)), &mercury__tree_bitset__conv1_Elem0_46);
                }
#line 36247 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 36249 "tree_bitset.c"
                  {
#line 36251 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_46 = ((MR_Word) mercury__tree_bitset__conv1_Elem0_46);
#line 36253 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 36255 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_46;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
                {
#line 4029 "tree_bitset.m"
                  mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_11), ((MR_Box) (mercury__tree_bitset__Elem_17)), mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, mercury__tree_bitset__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, mercury__tree_bitset__STATE_VARIABLE_AccB_25);
#line 4029 "tree_bitset.m"
                  return;
                }
#line 4028 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
            else
#line 4031 "tree_bitset.m"
              {
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_20;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_21;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_51_51 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_18);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_51_51);
#line 4035 "tree_bitset.m"
                mercury__tree_bitset__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> mercury__tree_bitset__HalfSize_18);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                  {
#line 4046 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_30_30 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4047 "tree_bitset.m"
                    {
#line 4047 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_9_p_1(mercury__tree_bitset__V_43_43, mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__V_30_30, mercury__tree_bitset__HighBits_21, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_32_32);
                    }
#line 4049 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4049 "tree_bitset.m"
                    {
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__LowBits_20;
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4049 "tree_bitset.m"
                    }
#line 4049 "tree_bitset.m"
                    continue;
#line 4046 "tree_bitset.m"
                  }
#line 4045 "tree_bitset.m"
                else
#line 4041 "tree_bitset.m"
                  {
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_37_37;

#line 4042 "tree_bitset.m"
                    {
#line 4042 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_49_95_49_9_p_1(mercury__tree_bitset__V_43_43, mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__Offset_12, mercury__tree_bitset__LowBits_20, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_36_36);
                    }
#line 4043 "tree_bitset.m"
                    mercury__tree_bitset__V_37_37 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4043 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4043 "tree_bitset.m"
                    {
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_12 = mercury__tree_bitset__V_37_37;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__HighBits_21;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;

#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Offset_12 = mercury__tree_bitset__Offset__tmp_copy_12;
#line 4043 "tree_bitset.m"
                    }
#line 4043 "tree_bitset.m"
                    continue;
#line 4041 "tree_bitset.m"
                  }
#line 4031 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
      }
#line 4027 "tree_bitset.m"
      break;
#line 4027 "tree_bitset.m"
    }
#line 4007 "tree_bitset.m"
}

#line 4009 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_9_p_2(
#line 4009 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_43_43,
#line 4009 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4009 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4009 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4009 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4009 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4009 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4009 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4009 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4009 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4009 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4009 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4009 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25)
#line 4009 "tree_bitset.m"
{
#line 4027 "tree_bitset.m"
  while (MR_TRUE)
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4027 "tree_bitset.m"
      {
#line 4027 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        else
#line 4030 "tree_bitset.m"
          {
#line 4027 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
              {
#line 4028 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem0_46;
#line 36481 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 36483 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_46;
#line 4029 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *);

#line 36488 "tree_bitset.c"
                {
#line 36490 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_40), ((MR_Box) (mercury__tree_bitset__Offset_12)), &mercury__tree_bitset__conv1_Elem0_46);
                }
#line 36493 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 36495 "tree_bitset.c"
                  {
#line 36497 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_46 = ((MR_Word) mercury__tree_bitset__conv1_Elem0_46);
#line 36499 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 36501 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_46;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
                {
#line 4029 "tree_bitset.m"
                  mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_11), ((MR_Box) (mercury__tree_bitset__Elem_17)), mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, mercury__tree_bitset__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, mercury__tree_bitset__STATE_VARIABLE_AccB_25);
#line 4029 "tree_bitset.m"
                  return;
                }
#line 4028 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
            else
#line 4031 "tree_bitset.m"
              {
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_20;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_21;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_51_51 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_18);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_51_51);
#line 4035 "tree_bitset.m"
                mercury__tree_bitset__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> mercury__tree_bitset__HalfSize_18);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                  {
#line 4046 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_30_30 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4047 "tree_bitset.m"
                    {
#line 4047 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_9_p_2(mercury__tree_bitset__V_43_43, mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__V_30_30, mercury__tree_bitset__HighBits_21, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_32_32);
                    }
#line 4049 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4049 "tree_bitset.m"
                    {
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__LowBits_20;
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4049 "tree_bitset.m"
                    }
#line 4049 "tree_bitset.m"
                    continue;
#line 4046 "tree_bitset.m"
                  }
#line 4045 "tree_bitset.m"
                else
#line 4041 "tree_bitset.m"
                  {
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_37_37;

#line 4042 "tree_bitset.m"
                    {
#line 4042 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_50_95_49_9_p_2(mercury__tree_bitset__V_43_43, mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__Offset_12, mercury__tree_bitset__LowBits_20, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_36_36);
                    }
#line 4043 "tree_bitset.m"
                    mercury__tree_bitset__V_37_37 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4043 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4043 "tree_bitset.m"
                    {
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_12 = mercury__tree_bitset__V_37_37;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__HighBits_21;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;

#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Offset_12 = mercury__tree_bitset__Offset__tmp_copy_12;
#line 4043 "tree_bitset.m"
                    }
#line 4043 "tree_bitset.m"
                    continue;
#line 4041 "tree_bitset.m"
                  }
#line 4031 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
      }
#line 4027 "tree_bitset.m"
      break;
#line 4027 "tree_bitset.m"
    }
#line 4009 "tree_bitset.m"
}

#line 4011 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_9_p_3(
#line 4011 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_43_43,
#line 4011 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4011 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4011 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4011 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4011 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4011 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4011 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4011 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4011 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4011 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4011 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4011 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25)
#line 4011 "tree_bitset.m"
{
#line 4027 "tree_bitset.m"
  while (MR_TRUE)
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4027 "tree_bitset.m"
      {
#line 4027 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 4026 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        else
#line 4030 "tree_bitset.m"
          {
#line 4027 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
              {
#line 4028 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem0_46;
#line 36729 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 36731 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_46;
#line 4029 "tree_bitset.m"
                MR_bool MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *);

#line 36736 "tree_bitset.c"
                {
#line 36738 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_40), ((MR_Box) (mercury__tree_bitset__Offset_12)), &mercury__tree_bitset__conv1_Elem0_46);
                }
#line 36741 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 36743 "tree_bitset.c"
                  {
#line 36745 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_46 = ((MR_Word) mercury__tree_bitset__conv1_Elem0_46);
#line 36747 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 36749 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_46;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
                    }
#line 568 "tree_bitset.m"
                  }
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
                {
#line 4029 "tree_bitset.m"
                  return mercury__tree_bitset__succeeded = mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_11), ((MR_Box) (mercury__tree_bitset__Elem_17)), mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, mercury__tree_bitset__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, mercury__tree_bitset__STATE_VARIABLE_AccB_25);
                }
#line 4028 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
            else
#line 4031 "tree_bitset.m"
              {
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_20;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_21;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_51_51 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_18);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_51_51);
#line 4035 "tree_bitset.m"
                mercury__tree_bitset__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> mercury__tree_bitset__HalfSize_18);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                  {
#line 4046 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_30_30 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4047 "tree_bitset.m"
                    {
#line 4047 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_9_p_3(mercury__tree_bitset__V_43_43, mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__V_30_30, mercury__tree_bitset__HighBits_21, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_32_32);
                    }
#line 4046 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 4049 "tree_bitset.m"
                      {
#line 4049 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 4049 "tree_bitset.m"
                        {
#line 4049 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__LowBits_20;
#line 4049 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4049 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4049 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4049 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4049 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4049 "tree_bitset.m"
                          mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4049 "tree_bitset.m"
                          mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4049 "tree_bitset.m"
                        }
#line 4049 "tree_bitset.m"
                        continue;
#line 4049 "tree_bitset.m"
                      }
#line 4046 "tree_bitset.m"
                  }
#line 4045 "tree_bitset.m"
                else
#line 4041 "tree_bitset.m"
                  {
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_37_37;

#line 4042 "tree_bitset.m"
                    {
#line 4042 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_51_95_49_9_p_3(mercury__tree_bitset__V_43_43, mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__Offset_12, mercury__tree_bitset__LowBits_20, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_36_36);
                    }
#line 4041 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 4041 "tree_bitset.m"
                      {
#line 4043 "tree_bitset.m"
                        mercury__tree_bitset__V_37_37 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4043 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 4043 "tree_bitset.m"
                        {
#line 4043 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Offset__tmp_copy_12 = mercury__tree_bitset__V_37_37;
#line 4043 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__HighBits_21;
#line 4043 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4043 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4043 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;

#line 4043 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4043 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4043 "tree_bitset.m"
                          mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4043 "tree_bitset.m"
                          mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4043 "tree_bitset.m"
                          mercury__tree_bitset__Offset_12 = mercury__tree_bitset__Offset__tmp_copy_12;
#line 4043 "tree_bitset.m"
                        }
#line 4043 "tree_bitset.m"
                        continue;
#line 4041 "tree_bitset.m"
                      }
#line 4041 "tree_bitset.m"
                  }
#line 4031 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 4027 "tree_bitset.m"
      }
#line 4027 "tree_bitset.m"
      break;
#line 4027 "tree_bitset.m"
    }
#line 4011 "tree_bitset.m"
}

#line 4046 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_9_p_4_1(
#line 4046 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 4046 "tree_bitset.m"
{
#line 4046 "tree_bitset.m"
  {
#line 4046 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 4049 "tree_bitset.m"
    {
#line 4049 "tree_bitset.m"
      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_9_p_4((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__V_43_43, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_41, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_42, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_40, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Dir_10, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__P_11, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Offset_12, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__LowBits_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HalfSize_18, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_31_31, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_23, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_32_32, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 4049 "tree_bitset.m"
      return;
    }
#line 4046 "tree_bitset.m"
  }
#line 4046 "tree_bitset.m"
}

#line 4041 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_9_p_4_2(
#line 4041 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 4041 "tree_bitset.m"
{
#line 4041 "tree_bitset.m"
  {
#line 4041 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 4043 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__V_37_37 = ((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Offset_12 + (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HalfSize_18);
#line 4043 "tree_bitset.m"
    {
#line 4043 "tree_bitset.m"
      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_9_p_4((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__V_43_43, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_41, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_42, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_40, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Dir_10, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__P_11, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__V_37_37, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HighBits_21, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HalfSize_18, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_35_35, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_23, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_36_36, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 4043 "tree_bitset.m"
      return;
    }
#line 4041 "tree_bitset.m"
  }
#line 4041 "tree_bitset.m"
}

#line 4013 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_9_p_4(
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_43_43,
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4013 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4013 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4013 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4013 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4013 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4013 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4013 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25,
#line 4013 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 4013 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 4013 "tree_bitset.m"
{
#line 4013 "tree_bitset.m"
  {
#line 4013 "tree_bitset.m"
    struct mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_0_s mercury__tree_bitset__env;

#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__V_43_43 = mercury__tree_bitset__V_43_43;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_41 = mercury__tree_bitset__TypeInfo_for_U_41;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_42 = mercury__tree_bitset__TypeInfo_for_V_42;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_40 = mercury__tree_bitset__TypeClassInfo_for_enum_40;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Dir_10 = mercury__tree_bitset__Dir_10;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__P_11 = mercury__tree_bitset__P_11;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Offset_12 = mercury__tree_bitset__Offset_12;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_23;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_25;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont = mercury__tree_bitset__cont;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
      if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
        {
#line 4026 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_25) = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_23) = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont)((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 4026 "tree_bitset.m"
            return;
          }
#line 4026 "tree_bitset.m"
        }
#line 4027 "tree_bitset.m"
      else
#line 4030 "tree_bitset.m"
        {
#line 4027 "tree_bitset.m"
          mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
          if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
            {
#line 4028 "tree_bitset.m"
              MR_Word mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
              MR_Word mercury__tree_bitset__Elem0_46;
#line 37067 "tree_bitset.c"
              MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 37069 "tree_bitset.c"
              MR_Box mercury__tree_bitset__conv1_Elem0_46;
#line 4029 "tree_bitset.m"
              void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *, MR_Cont, void *);

#line 37074 "tree_bitset.c"
              {
#line 37076 "tree_bitset.c"
                mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_40), ((MR_Box) ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Offset_12)), &mercury__tree_bitset__conv1_Elem0_46);
              }
#line 37079 "tree_bitset.c"
              if (mercury__tree_bitset__succeeded)
#line 37081 "tree_bitset.c"
                {
#line 37083 "tree_bitset.c"
                  mercury__tree_bitset__Elem0_46 = ((MR_Word) mercury__tree_bitset__conv1_Elem0_46);
#line 37085 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = MR_TRUE;
#line 37087 "tree_bitset.c"
                }
#line 565 "tree_bitset.m"
              if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_46;
#line 565 "tree_bitset.m"
              else
#line 568 "tree_bitset.m"
                {
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                    return;
                  }
#line 568 "tree_bitset.m"
                }
#line 4029 "tree_bitset.m"
              mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *, MR_Cont, void *)) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
              {
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_2(((MR_Box) (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__P_11), ((MR_Box) (mercury__tree_bitset__Elem_17)), mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_25, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__cont_env_ptr);
#line 4029 "tree_bitset.m"
                return;
              }
#line 4028 "tree_bitset.m"
            }
#line 4030 "tree_bitset.m"
          else
#line 4031 "tree_bitset.m"
            {
#line 4031 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_51_51;

#line 4031 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 3645 "tree_bitset.m"
              mercury__tree_bitset__V_51_51 = ((MR_Integer) -1 << (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HalfSize_18);
#line 3645 "tree_bitset.m"
              mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_51_51);
#line 4035 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
              mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HalfSize_18);
#line 4038 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
              if (((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                {
#line 4046 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__V_30_30 = ((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Offset_12 + (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HalfSize_18);

#line 4047 "tree_bitset.m"
                  {
#line 4047 "tree_bitset.m"
                    mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_9_p_4((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__V_43_43, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_41, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_42, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_40, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Dir_10, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__P_11, mercury__tree_bitset__V_30_30, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HighBits_21, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_32_32, mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_9_p_4_1, &mercury__tree_bitset__env);
                  }
#line 4046 "tree_bitset.m"
                }
#line 4045 "tree_bitset.m"
              else
#line 4041 "tree_bitset.m"
                {
#line 4042 "tree_bitset.m"
                  {
#line 4042 "tree_bitset.m"
                    mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_9_p_4((mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__V_43_43, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_U_41, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeInfo_for_V_42, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__TypeClassInfo_for_enum_40, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Dir_10, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__P_11, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__Offset_12, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__LowBits_20, (mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &(mercury__tree_bitset__env).mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_95_57_95_112_95_52_95_101_110_118_95_48__STATE_VARIABLE_AccB_36_36, mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_52_95_49_9_p_4_2, &mercury__tree_bitset__env);
                  }
#line 4041 "tree_bitset.m"
                }
#line 4031 "tree_bitset.m"
            }
#line 4030 "tree_bitset.m"
        }
#line 4027 "tree_bitset.m"
    }
#line 4013 "tree_bitset.m"
  }
#line 4013 "tree_bitset.m"
}

#line 4015 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_9_p_5(
#line 4015 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_43_43,
#line 4015 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4015 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4015 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4015 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4015 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4015 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4015 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4015 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4015 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4015 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4015 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4015 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25)
#line 4015 "tree_bitset.m"
{
#line 4027 "tree_bitset.m"
  while (MR_TRUE)
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4027 "tree_bitset.m"
      {
#line 4027 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        else
#line 4030 "tree_bitset.m"
          {
#line 4027 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
              {
#line 4028 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem0_46;
#line 37242 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 37244 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_46;
#line 4029 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *);

#line 37249 "tree_bitset.c"
                {
#line 37251 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_40), ((MR_Box) (mercury__tree_bitset__Offset_12)), &mercury__tree_bitset__conv1_Elem0_46);
                }
#line 37254 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 37256 "tree_bitset.c"
                  {
#line 37258 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_46 = ((MR_Word) mercury__tree_bitset__conv1_Elem0_46);
#line 37260 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 37262 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_46;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
                {
#line 4029 "tree_bitset.m"
                  mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_11), ((MR_Box) (mercury__tree_bitset__Elem_17)), mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, mercury__tree_bitset__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, mercury__tree_bitset__STATE_VARIABLE_AccB_25);
#line 4029 "tree_bitset.m"
                  return;
                }
#line 4028 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
            else
#line 4031 "tree_bitset.m"
              {
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_20;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_21;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_51_51 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_18);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_51_51);
#line 4035 "tree_bitset.m"
                mercury__tree_bitset__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> mercury__tree_bitset__HalfSize_18);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                  {
#line 4046 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_30_30 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4047 "tree_bitset.m"
                    {
#line 4047 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_9_p_5(mercury__tree_bitset__V_43_43, mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__V_30_30, mercury__tree_bitset__HighBits_21, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_32_32);
                    }
#line 4049 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4049 "tree_bitset.m"
                    {
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__LowBits_20;
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4049 "tree_bitset.m"
                    }
#line 4049 "tree_bitset.m"
                    continue;
#line 4046 "tree_bitset.m"
                  }
#line 4045 "tree_bitset.m"
                else
#line 4041 "tree_bitset.m"
                  {
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_37_37;

#line 4042 "tree_bitset.m"
                    {
#line 4042 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_53_95_49_9_p_5(mercury__tree_bitset__V_43_43, mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__Offset_12, mercury__tree_bitset__LowBits_20, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_36_36);
                    }
#line 4043 "tree_bitset.m"
                    mercury__tree_bitset__V_37_37 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4043 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4043 "tree_bitset.m"
                    {
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_12 = mercury__tree_bitset__V_37_37;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__HighBits_21;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;

#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Offset_12 = mercury__tree_bitset__Offset__tmp_copy_12;
#line 4043 "tree_bitset.m"
                    }
#line 4043 "tree_bitset.m"
                    continue;
#line 4041 "tree_bitset.m"
                  }
#line 4031 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
      }
#line 4027 "tree_bitset.m"
      break;
#line 4027 "tree_bitset.m"
    }
#line 4015 "tree_bitset.m"
}

#line 4017 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_9_p_6(
#line 4017 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_43_43,
#line 4017 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4017 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4017 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4017 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4017 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4017 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4017 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4017 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4017 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4017 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4017 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4017 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25)
#line 4017 "tree_bitset.m"
{
#line 4027 "tree_bitset.m"
  while (MR_TRUE)
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4027 "tree_bitset.m"
      {
#line 4027 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        else
#line 4030 "tree_bitset.m"
          {
#line 4027 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
              {
#line 4028 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem0_46;
#line 37488 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 37490 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_46;
#line 4029 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *);

#line 37495 "tree_bitset.c"
                {
#line 37497 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_40), ((MR_Box) (mercury__tree_bitset__Offset_12)), &mercury__tree_bitset__conv1_Elem0_46);
                }
#line 37500 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 37502 "tree_bitset.c"
                  {
#line 37504 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_46 = ((MR_Word) mercury__tree_bitset__conv1_Elem0_46);
#line 37506 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 37508 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_46;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
                {
#line 4029 "tree_bitset.m"
                  mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_11), ((MR_Box) (mercury__tree_bitset__Elem_17)), mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, mercury__tree_bitset__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, mercury__tree_bitset__STATE_VARIABLE_AccB_25);
#line 4029 "tree_bitset.m"
                  return;
                }
#line 4028 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
            else
#line 4031 "tree_bitset.m"
              {
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_20;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_21;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_51_51 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_18);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_51_51);
#line 4035 "tree_bitset.m"
                mercury__tree_bitset__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> mercury__tree_bitset__HalfSize_18);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                  {
#line 4046 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_30_30 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4047 "tree_bitset.m"
                    {
#line 4047 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_9_p_6(mercury__tree_bitset__V_43_43, mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__V_30_30, mercury__tree_bitset__HighBits_21, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_32_32);
                    }
#line 4049 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4049 "tree_bitset.m"
                    {
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__LowBits_20;
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4049 "tree_bitset.m"
                    }
#line 4049 "tree_bitset.m"
                    continue;
#line 4046 "tree_bitset.m"
                  }
#line 4045 "tree_bitset.m"
                else
#line 4041 "tree_bitset.m"
                  {
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_37_37;

#line 4042 "tree_bitset.m"
                    {
#line 4042 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_54_95_49_9_p_6(mercury__tree_bitset__V_43_43, mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__Offset_12, mercury__tree_bitset__LowBits_20, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_36_36);
                    }
#line 4043 "tree_bitset.m"
                    mercury__tree_bitset__V_37_37 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4043 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4043 "tree_bitset.m"
                    {
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_12 = mercury__tree_bitset__V_37_37;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__HighBits_21;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;

#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Offset_12 = mercury__tree_bitset__Offset__tmp_copy_12;
#line 4043 "tree_bitset.m"
                    }
#line 4043 "tree_bitset.m"
                    continue;
#line 4041 "tree_bitset.m"
                  }
#line 4031 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
      }
#line 4027 "tree_bitset.m"
      break;
#line 4027 "tree_bitset.m"
    }
#line 4017 "tree_bitset.m"
}

#line 4019 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_9_p_7(
#line 4019 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_43_43,
#line 4019 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4019 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4019 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4019 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4019 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4019 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4019 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4019 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4019 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4019 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4019 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4019 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25)
#line 4019 "tree_bitset.m"
{
#line 4027 "tree_bitset.m"
  while (MR_TRUE)
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4027 "tree_bitset.m"
      {
#line 4027 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        else
#line 4030 "tree_bitset.m"
          {
#line 4027 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
              {
#line 4028 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem0_46;
#line 37734 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 37736 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_46;
#line 4029 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *);

#line 37741 "tree_bitset.c"
                {
#line 37743 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_40), ((MR_Box) (mercury__tree_bitset__Offset_12)), &mercury__tree_bitset__conv1_Elem0_46);
                }
#line 37746 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 37748 "tree_bitset.c"
                  {
#line 37750 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_46 = ((MR_Word) mercury__tree_bitset__conv1_Elem0_46);
#line 37752 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 37754 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_46;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
                {
#line 4029 "tree_bitset.m"
                  mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_11), ((MR_Box) (mercury__tree_bitset__Elem_17)), mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, mercury__tree_bitset__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, mercury__tree_bitset__STATE_VARIABLE_AccB_25);
#line 4029 "tree_bitset.m"
                  return;
                }
#line 4028 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
            else
#line 4031 "tree_bitset.m"
              {
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_20;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_21;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_51_51 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_18);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_51_51);
#line 4035 "tree_bitset.m"
                mercury__tree_bitset__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> mercury__tree_bitset__HalfSize_18);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                  {
#line 4046 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_30_30 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4047 "tree_bitset.m"
                    {
#line 4047 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_9_p_7(mercury__tree_bitset__V_43_43, mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__V_30_30, mercury__tree_bitset__HighBits_21, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_32_32);
                    }
#line 4049 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4049 "tree_bitset.m"
                    {
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__LowBits_20;
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4049 "tree_bitset.m"
                    }
#line 4049 "tree_bitset.m"
                    continue;
#line 4046 "tree_bitset.m"
                  }
#line 4045 "tree_bitset.m"
                else
#line 4041 "tree_bitset.m"
                  {
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_37_37;

#line 4042 "tree_bitset.m"
                    {
#line 4042 "tree_bitset.m"
                      mercury__tree_bitset__f_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_102_111_108_100_50_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_55_95_49_9_p_7(mercury__tree_bitset__V_43_43, mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__Offset_12, mercury__tree_bitset__LowBits_20, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_36_36);
                    }
#line 4043 "tree_bitset.m"
                    mercury__tree_bitset__V_37_37 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4043 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4043 "tree_bitset.m"
                    {
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_12 = mercury__tree_bitset__V_37_37;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__HighBits_21;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;

#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Offset_12 = mercury__tree_bitset__Offset__tmp_copy_12;
#line 4043 "tree_bitset.m"
                    }
#line 4043 "tree_bitset.m"
                    continue;
#line 4041 "tree_bitset.m"
                  }
#line 4031 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
      }
#line 4027 "tree_bitset.m"
      break;
#line 4027 "tree_bitset.m"
    }
#line 4019 "tree_bitset.m"
}

#line 4065 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_116_101_114_105_111_114_95_97_108_108_95_116_114_117_101_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_p_0(
#line 4065 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_13,
#line 4065 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 4065 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2)
#line 4065 "tree_bitset.m"
{
#line 4070 "tree_bitset.m"
  while (MR_TRUE)
#line 4070 "tree_bitset.m"
    {
#line 4070 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4070 "tree_bitset.m"
      {
#line 4070 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 4070 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 4070 "tree_bitset.m"
          mercury__tree_bitset__succeeded = MR_TRUE;
#line 4070 "tree_bitset.m"
        else
#line 4071 "tree_bitset.m"
          {
#line 4071 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_5 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 4071 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_6 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 4071 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_7 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_5, (MR_Integer) 2)));
#line 4072 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_11_11 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_5, (MR_Integer) 0)));
#line 4072 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_12_12 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_5, (MR_Integer) 1)));

#line 4076 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_7)) == (MR_mktag((MR_Integer) 1))))
#line 4077 "tree_bitset.m"
              {
#line 4077 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_7, (MR_Integer) 1)));
#line 4077 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_9_9 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_7, (MR_Integer) 0)));

#line 4078 "tree_bitset.m"
                {
#line 4078 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_116_101_114_105_111_114_95_97_108_108_95_116_114_117_101_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_13, mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__InteriorNodes_10);
                }
#line 4077 "tree_bitset.m"
              }
#line 4076 "tree_bitset.m"
            else
#line 4074 "tree_bitset.m"
              {
#line 4074 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_8 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_7, (MR_Integer) 0)));

#line 4075 "tree_bitset.m"
                {
#line 4075 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_97_108_108_95_116_114_117_101_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_13, mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__LeafNodes_8);
                }
#line 4074 "tree_bitset.m"
              }
#line 4071 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4080 "tree_bitset.m"
              {
#line 4080 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 4080 "tree_bitset.m"
                {
#line 4080 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_6;

#line 4080 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 4080 "tree_bitset.m"
                }
#line 4080 "tree_bitset.m"
                continue;
#line 4080 "tree_bitset.m"
              }
#line 4071 "tree_bitset.m"
          }
#line 4070 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 4070 "tree_bitset.m"
      }
#line 4070 "tree_bitset.m"
      break;
#line 4070 "tree_bitset.m"
    }
#line 4065 "tree_bitset.m"
}

#line 4065 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_116_101_114_105_111_114_95_97_108_108_95_116_114_117_101_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_p_0(
#line 4065 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_14_14,
#line 4065 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_13,
#line 4065 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 4065 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2)
#line 4065 "tree_bitset.m"
{
#line 4070 "tree_bitset.m"
  while (MR_TRUE)
#line 4070 "tree_bitset.m"
    {
#line 4070 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4070 "tree_bitset.m"
      {
#line 4070 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 4070 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 4070 "tree_bitset.m"
          mercury__tree_bitset__succeeded = MR_TRUE;
#line 4070 "tree_bitset.m"
        else
#line 4071 "tree_bitset.m"
          {
#line 4071 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_5 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 4071 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_6 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 4071 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_7 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_5, (MR_Integer) 2)));
#line 4072 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_11_11 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_5, (MR_Integer) 0)));
#line 4072 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_12_12 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_5, (MR_Integer) 1)));

#line 4076 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_7)) == (MR_mktag((MR_Integer) 1))))
#line 4077 "tree_bitset.m"
              {
#line 4077 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_7, (MR_Integer) 1)));
#line 4077 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_9_9 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_7, (MR_Integer) 0)));

#line 4078 "tree_bitset.m"
                {
#line 4078 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_116_101_114_105_111_114_95_97_108_108_95_116_114_117_101_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_p_0(mercury__tree_bitset__V_14_14, mercury__tree_bitset__TypeClassInfo_for_enum_13, mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__InteriorNodes_10);
                }
#line 4077 "tree_bitset.m"
              }
#line 4076 "tree_bitset.m"
            else
#line 4074 "tree_bitset.m"
              {
#line 4074 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_8 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_7, (MR_Integer) 0)));

#line 4075 "tree_bitset.m"
                {
#line 4075 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_101_97_102_95_97_108_108_95_116_114_117_101_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_p_0(mercury__tree_bitset__V_14_14, mercury__tree_bitset__TypeClassInfo_for_enum_13, mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__LeafNodes_8);
                }
#line 4074 "tree_bitset.m"
              }
#line 4071 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4080 "tree_bitset.m"
              {
#line 4080 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 4080 "tree_bitset.m"
                {
#line 4080 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_6;

#line 4080 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 4080 "tree_bitset.m"
                }
#line 4080 "tree_bitset.m"
                continue;
#line 4080 "tree_bitset.m"
              }
#line 4071 "tree_bitset.m"
          }
#line 4070 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 4070 "tree_bitset.m"
      }
#line 4070 "tree_bitset.m"
      break;
#line 4070 "tree_bitset.m"
    }
#line 4065 "tree_bitset.m"
}

#line 4082 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_97_108_108_95_116_114_117_101_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_p_0(
#line 4082 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_12,
#line 4082 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 4082 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2)
#line 4082 "tree_bitset.m"
{
#line 4087 "tree_bitset.m"
  while (MR_TRUE)
#line 4087 "tree_bitset.m"
    {
#line 4087 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4087 "tree_bitset.m"
      {
#line 4087 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 4087 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 4087 "tree_bitset.m"
          mercury__tree_bitset__succeeded = MR_TRUE;
#line 4087 "tree_bitset.m"
        else
#line 4088 "tree_bitset.m"
          {
#line 4088 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_5 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 4088 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_6 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 4088 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_7_7 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_5, (MR_Integer) 0)));
#line 4088 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_9_9;
#line 4088 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_5, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_97_108_108_95_116_114_117_101_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_2_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 38174 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_9_9  = Bits;
#line 171 "int.opt"
}
#line 4089 "tree_bitset.m"
            {
#line 4089 "tree_bitset.m"
              mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_97_108_108_95_116_114_117_101_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_4_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_12, mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__V_7_7, mercury__tree_bitset__V_10_10, mercury__tree_bitset__V_9_9);
            }
#line 4088 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4090 "tree_bitset.m"
              {
#line 4090 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 4090 "tree_bitset.m"
                {
#line 4090 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_6;

#line 4090 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 4090 "tree_bitset.m"
                }
#line 4090 "tree_bitset.m"
                continue;
#line 4090 "tree_bitset.m"
              }
#line 4088 "tree_bitset.m"
          }
#line 4087 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 4087 "tree_bitset.m"
      }
#line 4087 "tree_bitset.m"
      break;
#line 4087 "tree_bitset.m"
    }
#line 4082 "tree_bitset.m"
}

#line 4082 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_101_97_102_95_97_108_108_95_116_114_117_101_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_p_0(
#line 4082 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_13_13,
#line 4082 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_12,
#line 4082 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 4082 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2)
#line 4082 "tree_bitset.m"
{
#line 4087 "tree_bitset.m"
  while (MR_TRUE)
#line 4087 "tree_bitset.m"
    {
#line 4087 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4087 "tree_bitset.m"
      {
#line 4087 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 4087 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 4087 "tree_bitset.m"
          mercury__tree_bitset__succeeded = MR_TRUE;
#line 4087 "tree_bitset.m"
        else
#line 4088 "tree_bitset.m"
          {
#line 4088 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_5 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 4088 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_6 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 4088 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_7_7 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_5, (MR_Integer) 0)));
#line 4088 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_9_9;
#line 4088 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_5, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__f_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_101_97_102_95_97_108_108_95_116_114_117_101_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 38272 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_9_9  = Bits;
#line 171 "int.opt"
}
#line 4089 "tree_bitset.m"
            {
#line 4089 "tree_bitset.m"
              mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_97_108_108_95_116_114_117_101_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_p_0(mercury__tree_bitset__V_13_13, mercury__tree_bitset__TypeClassInfo_for_enum_12, mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__V_7_7, mercury__tree_bitset__V_10_10, mercury__tree_bitset__V_9_9);
            }
#line 4088 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4090 "tree_bitset.m"
              {
#line 4090 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 4090 "tree_bitset.m"
                {
#line 4090 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_6;

#line 4090 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 4090 "tree_bitset.m"
                }
#line 4090 "tree_bitset.m"
                continue;
#line 4090 "tree_bitset.m"
              }
#line 4088 "tree_bitset.m"
          }
#line 4087 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 4087 "tree_bitset.m"
      }
#line 4087 "tree_bitset.m"
      break;
#line 4087 "tree_bitset.m"
    }
#line 4082 "tree_bitset.m"
}

#line 4094 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_97_108_108_95_116_114_117_101_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_4_p_0(
#line 4094 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_17,
#line 4094 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 4094 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_6,
#line 4094 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_7,
#line 4094 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_8)
#line 4094 "tree_bitset.m"
{
#line 4102 "tree_bitset.m"
  while (MR_TRUE)
#line 4102 "tree_bitset.m"
    {
#line 4102 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4102 "tree_bitset.m"
      {
#line 4102 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_7 == (MR_Integer) 0);

#line 4102 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4101 "tree_bitset.m"
          mercury__tree_bitset__succeeded = MR_TRUE;
#line 4102 "tree_bitset.m"
        else
#line 4105 "tree_bitset.m"
          {
#line 4102 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_8 == (MR_Integer) 1);
#line 4105 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4103 "tree_bitset.m"
              {
#line 4103 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem_9;
#line 565 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Elem0_20;
#line 38360 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_17, (MR_Integer) 0)), (MR_Integer) 6)));
#line 38362 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_20;
#line 4104 "tree_bitset.m"
                MR_bool MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box);

#line 38367 "tree_bitset.c"
                {
#line 38369 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_17), ((MR_Box) (mercury__tree_bitset__Offset_6)), &mercury__tree_bitset__conv1_Elem0_20);
                }
#line 38372 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 38374 "tree_bitset.c"
                  {
#line 38376 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_20 = ((MR_Integer) mercury__tree_bitset__conv1_Elem0_20);
#line 38378 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 38380 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_9 = mercury__tree_bitset__Elem0_20;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
                    }
#line 568 "tree_bitset.m"
                  }
#line 4104 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((MR_bool MR_CALL (*)(MR_Box, MR_Box)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_5, (MR_Integer) 1)));
#line 4104 "tree_bitset.m"
                {
#line 4104 "tree_bitset.m"
                  return mercury__tree_bitset__succeeded = mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_5), ((MR_Box) (mercury__tree_bitset__Elem_9)));
                }
#line 4103 "tree_bitset.m"
              }
#line 4105 "tree_bitset.m"
            else
#line 4106 "tree_bitset.m"
              {
#line 4106 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_10 = (mercury__tree_bitset__Size_8 >> (MR_Integer) 1);
#line 4106 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_11;
#line 4106 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_12;
#line 4106 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_13;
#line 4106 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15;
#line 4106 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_16_16;
#line 4106 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_25_25 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_10);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_11 = ~(mercury__tree_bitset__V_25_25);
#line 4110 "tree_bitset.m"
                mercury__tree_bitset__LowBits_12 = (mercury__tree_bitset__Mask_11 & mercury__tree_bitset__Bits_7);
#line 4113 "tree_bitset.m"
                mercury__tree_bitset__V_15_15 = (mercury__tree_bitset__Bits_7 >> mercury__tree_bitset__HalfSize_10);
#line 4113 "tree_bitset.m"
                mercury__tree_bitset__HighBits_13 = (mercury__tree_bitset__Mask_11 & mercury__tree_bitset__V_15_15);
#line 4115 "tree_bitset.m"
                {
#line 4115 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_97_108_108_95_116_114_117_101_95_98_105_116_115_95_95_91_84_32_61_32_105_110_116_93_95_48_95_49_4_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_17, mercury__tree_bitset__P_5, mercury__tree_bitset__Offset_6, mercury__tree_bitset__LowBits_12, mercury__tree_bitset__HalfSize_10);
                }
#line 4106 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 4106 "tree_bitset.m"
                  {
#line 4116 "tree_bitset.m"
                    mercury__tree_bitset__V_16_16 = (mercury__tree_bitset__Offset_6 + mercury__tree_bitset__HalfSize_10);
#line 4116 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4116 "tree_bitset.m"
                    {
#line 4116 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_6 = mercury__tree_bitset__V_16_16;
#line 4116 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_7 = mercury__tree_bitset__HighBits_13;
#line 4116 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_8 = mercury__tree_bitset__HalfSize_10;

#line 4116 "tree_bitset.m"
                      mercury__tree_bitset__Size_8 = mercury__tree_bitset__Size__tmp_copy_8;
#line 4116 "tree_bitset.m"
                      mercury__tree_bitset__Bits_7 = mercury__tree_bitset__Bits__tmp_copy_7;
#line 4116 "tree_bitset.m"
                      mercury__tree_bitset__Offset_6 = mercury__tree_bitset__Offset__tmp_copy_6;
#line 4116 "tree_bitset.m"
                    }
#line 4116 "tree_bitset.m"
                    continue;
#line 4106 "tree_bitset.m"
                  }
#line 4106 "tree_bitset.m"
              }
#line 4105 "tree_bitset.m"
          }
#line 4102 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 4102 "tree_bitset.m"
      }
#line 4102 "tree_bitset.m"
      break;
#line 4102 "tree_bitset.m"
    }
#line 4094 "tree_bitset.m"
}

#line 4094 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__f_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_97_108_108_95_116_114_117_101_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_p_0(
#line 4094 "tree_bitset.m"
  MR_Word mercury__tree_bitset__V_18_18,
#line 4094 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_17,
#line 4094 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 4094 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_6,
#line 4094 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_7,
#line 4094 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_8)
#line 4094 "tree_bitset.m"
{
#line 4102 "tree_bitset.m"
  while (MR_TRUE)
#line 4102 "tree_bitset.m"
    {
#line 4102 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4102 "tree_bitset.m"
      {
#line 4102 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_7 == (MR_Integer) 0);

#line 4102 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4101 "tree_bitset.m"
          mercury__tree_bitset__succeeded = MR_TRUE;
#line 4102 "tree_bitset.m"
        else
#line 4105 "tree_bitset.m"
          {
#line 4102 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_8 == (MR_Integer) 1);
#line 4105 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4103 "tree_bitset.m"
              {
#line 4103 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem_9;
#line 565 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Elem0_21;
#line 38528 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_17, (MR_Integer) 0)), (MR_Integer) 6)));
#line 38530 "tree_bitset.c"
                MR_Box mercury__tree_bitset__conv1_Elem0_21;
#line 4104 "tree_bitset.m"
                MR_bool MR_CALL (* mercury__tree_bitset__func_2)(MR_Box, MR_Box);

#line 38535 "tree_bitset.c"
                {
#line 38537 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_17), ((MR_Box) (mercury__tree_bitset__Offset_6)), &mercury__tree_bitset__conv1_Elem0_21);
                }
#line 38540 "tree_bitset.c"
                if (mercury__tree_bitset__succeeded)
#line 38542 "tree_bitset.c"
                  {
#line 38544 "tree_bitset.c"
                    mercury__tree_bitset__Elem0_21 = ((MR_Word) mercury__tree_bitset__conv1_Elem0_21);
#line 38546 "tree_bitset.c"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 38548 "tree_bitset.c"
                  }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_9 = mercury__tree_bitset__Elem0_21;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
                    }
#line 568 "tree_bitset.m"
                  }
#line 4104 "tree_bitset.m"
                mercury__tree_bitset__func_2 = ((MR_bool MR_CALL (*)(MR_Box, MR_Box)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_5, (MR_Integer) 1)));
#line 4104 "tree_bitset.m"
                {
#line 4104 "tree_bitset.m"
                  return mercury__tree_bitset__succeeded = mercury__tree_bitset__func_2(((MR_Box) mercury__tree_bitset__P_5), ((MR_Box) (mercury__tree_bitset__Elem_9)));
                }
#line 4103 "tree_bitset.m"
              }
#line 4105 "tree_bitset.m"
            else
#line 4106 "tree_bitset.m"
              {
#line 4106 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_10 = (mercury__tree_bitset__Size_8 >> (MR_Integer) 1);
#line 4106 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_11;
#line 4106 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_12;
#line 4106 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_13;
#line 4106 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15;
#line 4106 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_16_16;
#line 4106 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_26_26 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_10);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_11 = ~(mercury__tree_bitset__V_26_26);
#line 4110 "tree_bitset.m"
                mercury__tree_bitset__LowBits_12 = (mercury__tree_bitset__Mask_11 & mercury__tree_bitset__Bits_7);
#line 4113 "tree_bitset.m"
                mercury__tree_bitset__V_15_15 = (mercury__tree_bitset__Bits_7 >> mercury__tree_bitset__HalfSize_10);
#line 4113 "tree_bitset.m"
                mercury__tree_bitset__HighBits_13 = (mercury__tree_bitset__Mask_11 & mercury__tree_bitset__V_15_15);
#line 4115 "tree_bitset.m"
                {
#line 4115 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__f_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_97_108_108_95_116_114_117_101_95_98_105_116_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_p_0(mercury__tree_bitset__V_18_18, mercury__tree_bitset__TypeClassInfo_for_enum_17, mercury__tree_bitset__P_5, mercury__tree_bitset__Offset_6, mercury__tree_bitset__LowBits_12, mercury__tree_bitset__HalfSize_10);
                }
#line 4106 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 4106 "tree_bitset.m"
                  {
#line 4116 "tree_bitset.m"
                    mercury__tree_bitset__V_16_16 = (mercury__tree_bitset__Offset_6 + mercury__tree_bitset__HalfSize_10);
#line 4116 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4116 "tree_bitset.m"
                    {
#line 4116 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_6 = mercury__tree_bitset__V_16_16;
#line 4116 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_7 = mercury__tree_bitset__HighBits_13;
#line 4116 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_8 = mercury__tree_bitset__HalfSize_10;

#line 4116 "tree_bitset.m"
                      mercury__tree_bitset__Size_8 = mercury__tree_bitset__Size__tmp_copy_8;
#line 4116 "tree_bitset.m"
                      mercury__tree_bitset__Bits_7 = mercury__tree_bitset__Bits__tmp_copy_7;
#line 4116 "tree_bitset.m"
                      mercury__tree_bitset__Offset_6 = mercury__tree_bitset__Offset__tmp_copy_6;
#line 4116 "tree_bitset.m"
                    }
#line 4116 "tree_bitset.m"
                    continue;
#line 4106 "tree_bitset.m"
                  }
#line 4106 "tree_bitset.m"
              }
#line 4105 "tree_bitset.m"
          }
#line 4102 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 4102 "tree_bitset.m"
      }
#line 4102 "tree_bitset.m"
      break;
#line 4102 "tree_bitset.m"
    }
#line 4094 "tree_bitset.m"
}

#line 3296 "tree_bitset.m"
static MR_bool MR_CALL 
mercury__tree_bitset__IntroducedFrom__pred__interiorlist_divide_by_set__3296__1_2_p_0(
#line 3296 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__SubLevel_47,
#line 3296 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__2_67)
#line 3296 "tree_bitset.m"
{
#line 3296 "tree_bitset.m"
  {
#line 3296 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__SubLevel_47 == mercury__tree_bitset__HeadVar__2_67);

#line 3296 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 3296 "tree_bitset.m"
  }
#line 3296 "tree_bitset.m"
}

#line 3294 "tree_bitset.m"
static MR_bool MR_CALL 
mercury__tree_bitset__IntroducedFrom__pred__interiorlist_divide_by_set__3294__1_2_p_0(
#line 3294 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__SubLevel_47,
#line 3294 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__2_93)
#line 3294 "tree_bitset.m"
{
#line 3294 "tree_bitset.m"
  {
#line 3294 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__HeadVar__2_93 == mercury__tree_bitset__SubLevel_47);

#line 3294 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 3294 "tree_bitset.m"
  }
#line 3294 "tree_bitset.m"
}

#line 3256 "tree_bitset.m"
static MR_bool MR_CALL 
mercury__tree_bitset__IntroducedFrom__pred__interiorlist_divide_by_set__3256__1_2_p_0(
#line 3256 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__DBLimitOffset_22,
#line 3256 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LimitOffset_25)
#line 3256 "tree_bitset.m"
{
#line 3256 "tree_bitset.m"
  {
#line 3256 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__DBLimitOffset_22 == mercury__tree_bitset__LimitOffset_25);

#line 3256 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 3256 "tree_bitset.m"
  }
#line 3256 "tree_bitset.m"
}

#line 2190 "tree_bitset.m"
static MR_bool MR_CALL 
mercury__tree_bitset__IntroducedFrom__pred__descend_and_intersect__2190__1_2_p_0(
#line 2190 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__1_49,
#line 2190 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__2_50)
#line 2190 "tree_bitset.m"
{
#line 2190 "tree_bitset.m"
  {
#line 2190 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__HeadVar__1_49 == mercury__tree_bitset__HeadVar__2_50);

#line 2190 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 2190 "tree_bitset.m"
  }
#line 2190 "tree_bitset.m"
}

#line 2187 "tree_bitset.m"
static MR_bool MR_CALL 
mercury__tree_bitset__IntroducedFrom__pred__descend_and_intersect__2187__1_2_p_0(
#line 2187 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__1_43,
#line 2187 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__2_44)
#line 2187 "tree_bitset.m"
{
#line 2187 "tree_bitset.m"
  {
#line 2187 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__HeadVar__1_43 == mercury__tree_bitset__HeadVar__2_44);

#line 2187 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 2187 "tree_bitset.m"
  }
#line 2187 "tree_bitset.m"
}

#line 2344 "tree_bitset.m"
static MR_bool MR_CALL 
mercury__tree_bitset__IntroducedFrom__pred__difference__2344__1_2_p_0(
#line 2344 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__ParentLimitOffsetA_19,
#line 2344 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__ParentLimitOffsetB_21)
#line 2344 "tree_bitset.m"
{
#line 2344 "tree_bitset.m"
  {
#line 2344 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__ParentLimitOffsetA_19 == mercury__tree_bitset__ParentLimitOffsetB_21);

#line 2344 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 2344 "tree_bitset.m"
  }
#line 2344 "tree_bitset.m"
}

#line 1924 "tree_bitset.m"
static MR_bool MR_CALL 
mercury__tree_bitset__IntroducedFrom__pred__union__1924__1_2_p_0(
#line 1924 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__ParentLimitOffsetA_21,
#line 1924 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__ParentLimitOffsetB_23)
#line 1924 "tree_bitset.m"
{
#line 1924 "tree_bitset.m"
  {
#line 1924 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__ParentLimitOffsetA_21 == mercury__tree_bitset__ParentLimitOffsetB_23);

#line 1924 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 1924 "tree_bitset.m"
  }
#line 1924 "tree_bitset.m"
}

#line 499 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset____Compare____tree_bitset_1_0(
#line 499 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_8,
#line 499 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__1_1,
#line 499 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 499 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__3_3)
#line 499 "tree_bitset.m"
{
#line 499 "tree_bitset.m"
  {
#line 499 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastX_6 = (MR_Integer) mercury__tree_bitset__HeadVar__2_2;
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastY_7 = (MR_Integer) mercury__tree_bitset__HeadVar__3_3;

#line 499 "tree_bitset.m"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__CastX_6 == mercury__tree_bitset__CastY_7);
#line 499 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 38823 "tree_bitset.c"
      *mercury__tree_bitset__HeadVar__1_1 = (MR_Integer) 0;
#line 499 "tree_bitset.m"
    else
#line 499 "tree_bitset.m"
      {
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_4_4 = (MR_Word) mercury__tree_bitset__HeadVar__2_2;
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_5_5 = (MR_Word) mercury__tree_bitset__HeadVar__3_3;

#line 499 "tree_bitset.m"
        {
#line 499 "tree_bitset.m"
          mercury__tree_bitset____Compare____node_list_0_0(mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__V_4_4, mercury__tree_bitset__V_5_5);
#line 499 "tree_bitset.m"
          return;
        }
#line 499 "tree_bitset.m"
      }
#line 499 "tree_bitset.m"
  }
#line 499 "tree_bitset.m"
}

#line 499 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset____Unify____tree_bitset_1_0(
#line 499 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_7,
#line 499 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 499 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2)
#line 499 "tree_bitset.m"
{
#line 499 "tree_bitset.m"
  {
#line 499 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastX_5 = (MR_Integer) mercury__tree_bitset__HeadVar__1_1;
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastY_6 = (MR_Integer) mercury__tree_bitset__HeadVar__2_2;

#line 499 "tree_bitset.m"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__CastX_5 == mercury__tree_bitset__CastY_6);
#line 499 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 499 "tree_bitset.m"
      mercury__tree_bitset__succeeded = MR_TRUE;
#line 499 "tree_bitset.m"
    else
#line 499 "tree_bitset.m"
      {
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_3_3 = (MR_Word) mercury__tree_bitset__HeadVar__1_1;
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_4_4 = (MR_Word) mercury__tree_bitset__HeadVar__2_2;

#line 38883 "tree_bitset.c"
        {
#line 38885 "tree_bitset.c"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset____Unify____node_list_0_0(mercury__tree_bitset__V_3_3, mercury__tree_bitset__V_4_4);
        }
#line 499 "tree_bitset.m"
      }
#line 499 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 499 "tree_bitset.m"
  }
#line 499 "tree_bitset.m"
}

#line 502 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset____Compare____node_list_0_0(
#line 502 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__1_1,
#line 502 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 502 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__3_3)
#line 502 "tree_bitset.m"
{
#line 502 "tree_bitset.m"
  {
#line 502 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 502 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastX_17 = (MR_Integer) mercury__tree_bitset__HeadVar__2_2;
#line 502 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastY_18 = (MR_Integer) mercury__tree_bitset__HeadVar__3_3;

#line 502 "tree_bitset.m"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__CastX_17 == mercury__tree_bitset__CastY_18);
#line 502 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 38921 "tree_bitset.c"
      *mercury__tree_bitset__HeadVar__1_1 = (MR_Integer) 0;
#line 502 "tree_bitset.m"
    else
#line 502 "tree_bitset.m"
      if (((MR_tag((MR_Word) mercury__tree_bitset__HeadVar__2_2)) == (MR_mktag((MR_Integer) 1))))
#line 502 "tree_bitset.m"
        {
#line 502 "tree_bitset.m"
          MR_Word mercury__tree_bitset__V_22_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 502 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));

#line 502 "tree_bitset.m"
          if (((MR_tag((MR_Word) mercury__tree_bitset__HeadVar__3_3)) == (MR_mktag((MR_Integer) 1))))
#line 502 "tree_bitset.m"
            {
#line 502 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_14_14 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__3_3, (MR_Integer) 0)));
#line 502 "tree_bitset.m"
              MR_Word mercury__tree_bitset__V_15_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__3_3, (MR_Integer) 1)));
#line 502 "tree_bitset.m"
              MR_Word mercury__tree_bitset__V_16_16;

#line 66 "private_builtin.opt"
              mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_23_23 < mercury__tree_bitset__V_14_14);
#line 69 "private_builtin.opt"
              if (mercury__tree_bitset__succeeded)
#line 68 "private_builtin.opt"
                mercury__tree_bitset__V_16_16 = (MR_Integer) 1;
#line 69 "private_builtin.opt"
              else
#line 74 "private_builtin.opt"
                {
#line 71 "private_builtin.opt"
                  mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_23_23 == mercury__tree_bitset__V_14_14);
#line 74 "private_builtin.opt"
                  if (mercury__tree_bitset__succeeded)
#line 73 "private_builtin.opt"
                    mercury__tree_bitset__V_16_16 = (MR_Integer) 0;
#line 74 "private_builtin.opt"
                  else
#line 75 "private_builtin.opt"
                    mercury__tree_bitset__V_16_16 = (MR_Integer) 2;
#line 74 "private_builtin.opt"
                }
#line 38967 "tree_bitset.c"
              mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_16_16 == (MR_Integer) 0);
#line 502 "tree_bitset.m"
              mercury__tree_bitset__succeeded = !(mercury__tree_bitset__succeeded);
#line 502 "tree_bitset.m"
              if (mercury__tree_bitset__succeeded)
#line 502 "tree_bitset.m"
                *mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__V_16_16;
#line 502 "tree_bitset.m"
              else
#line 502 "tree_bitset.m"
                {
#line 502 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__TypeInfo_20_20 = (MR_Word) &mercury__tree_bitset_scalar_common_1[0];

#line 502 "tree_bitset.m"
                  {
#line 502 "tree_bitset.m"
                    mercury__builtin__compare_3_p_0(mercury__tree_bitset__TypeInfo_20_20, mercury__tree_bitset__HeadVar__1_1, ((MR_Box) (mercury__tree_bitset__V_22_22)), ((MR_Box) (mercury__tree_bitset__V_15_15)));
#line 502 "tree_bitset.m"
                    return;
                  }
#line 502 "tree_bitset.m"
                }
#line 502 "tree_bitset.m"
            }
#line 502 "tree_bitset.m"
          else
#line 38995 "tree_bitset.c"
            *mercury__tree_bitset__HeadVar__1_1 = (MR_Integer) 2;
#line 502 "tree_bitset.m"
        }
#line 502 "tree_bitset.m"
      else
#line 502 "tree_bitset.m"
        {
#line 502 "tree_bitset.m"
          MR_Word mercury__tree_bitset__V_24_24 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));

#line 502 "tree_bitset.m"
          if (((MR_tag((MR_Word) mercury__tree_bitset__HeadVar__3_3)) == (MR_mktag((MR_Integer) 1))))
#line 39008 "tree_bitset.c"
            *mercury__tree_bitset__HeadVar__1_1 = (MR_Integer) 1;
#line 502 "tree_bitset.m"
          else
#line 502 "tree_bitset.m"
            {
#line 502 "tree_bitset.m"
              MR_Word mercury__tree_bitset__TypeInfo_21_21 = (MR_Word) &mercury__tree_bitset_scalar_common_1[1];
#line 502 "tree_bitset.m"
              MR_Word mercury__tree_bitset__V_5_5 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__3_3, (MR_Integer) 0)));

#line 502 "tree_bitset.m"
              {
#line 502 "tree_bitset.m"
                mercury__builtin__compare_3_p_0(mercury__tree_bitset__TypeInfo_21_21, mercury__tree_bitset__HeadVar__1_1, ((MR_Box) (mercury__tree_bitset__V_24_24)), ((MR_Box) (mercury__tree_bitset__V_5_5)));
#line 502 "tree_bitset.m"
                return;
              }
#line 502 "tree_bitset.m"
            }
#line 502 "tree_bitset.m"
        }
#line 502 "tree_bitset.m"
  }
#line 502 "tree_bitset.m"
}

#line 502 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset____Unify____node_list_0_0(
#line 502 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 502 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2)
#line 502 "tree_bitset.m"
{
#line 502 "tree_bitset.m"
  {
#line 502 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 502 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastX_9 = (MR_Integer) mercury__tree_bitset__HeadVar__1_1;
#line 502 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastY_10 = (MR_Integer) mercury__tree_bitset__HeadVar__2_2;

#line 502 "tree_bitset.m"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__CastX_9 == mercury__tree_bitset__CastY_10);
#line 502 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 502 "tree_bitset.m"
      mercury__tree_bitset__succeeded = MR_TRUE;
#line 502 "tree_bitset.m"
    else
#line 502 "tree_bitset.m"
      if (((MR_tag((MR_Word) mercury__tree_bitset__HeadVar__1_1)) == (MR_mktag((MR_Integer) 1))))
#line 502 "tree_bitset.m"
        {
#line 502 "tree_bitset.m"
          MR_Word mercury__tree_bitset__TypeInfo_11_11;
#line 502 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_5_5 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));
#line 502 "tree_bitset.m"
          MR_Word mercury__tree_bitset__V_6_6 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 502 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_7_7;
#line 502 "tree_bitset.m"
          MR_Word mercury__tree_bitset__V_8_8;

#line 502 "tree_bitset.m"
          mercury__tree_bitset__succeeded = ((MR_tag((MR_Word) mercury__tree_bitset__HeadVar__2_2)) == (MR_mktag((MR_Integer) 1)));
#line 502 "tree_bitset.m"
          if (mercury__tree_bitset__succeeded)
#line 502 "tree_bitset.m"
            {
#line 502 "tree_bitset.m"
              mercury__tree_bitset__V_7_7 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 502 "tree_bitset.m"
              mercury__tree_bitset__V_8_8 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 39086 "tree_bitset.c"
              mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_5_5 == mercury__tree_bitset__V_7_7);
#line 502 "tree_bitset.m"
              if (mercury__tree_bitset__succeeded)
#line 502 "tree_bitset.m"
                {
#line 39092 "tree_bitset.c"
                  mercury__tree_bitset__TypeInfo_11_11 = (MR_Word) &mercury__tree_bitset_scalar_common_1[0];
#line 39094 "tree_bitset.c"
                  {
#line 39096 "tree_bitset.c"
                    return mercury__tree_bitset__succeeded = mercury__builtin__unify_2_p_0(mercury__tree_bitset__TypeInfo_11_11, ((MR_Box) (mercury__tree_bitset__V_6_6)), ((MR_Box) (mercury__tree_bitset__V_8_8)));
                  }
#line 502 "tree_bitset.m"
                }
#line 502 "tree_bitset.m"
            }
#line 502 "tree_bitset.m"
        }
#line 502 "tree_bitset.m"
      else
#line 502 "tree_bitset.m"
        {
#line 502 "tree_bitset.m"
          MR_Word mercury__tree_bitset__TypeInfo_12_12;
#line 502 "tree_bitset.m"
          MR_Word mercury__tree_bitset__V_3_3 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));
#line 502 "tree_bitset.m"
          MR_Word mercury__tree_bitset__V_4_4;

#line 502 "tree_bitset.m"
          mercury__tree_bitset__succeeded = ((MR_tag((MR_Word) mercury__tree_bitset__HeadVar__2_2)) == (MR_mktag((MR_Integer) 0)));
#line 502 "tree_bitset.m"
          if (mercury__tree_bitset__succeeded)
#line 502 "tree_bitset.m"
            {
#line 502 "tree_bitset.m"
              mercury__tree_bitset__V_4_4 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 39124 "tree_bitset.c"
              mercury__tree_bitset__TypeInfo_12_12 = (MR_Word) &mercury__tree_bitset_scalar_common_1[1];
#line 39126 "tree_bitset.c"
              {
#line 39128 "tree_bitset.c"
                return mercury__tree_bitset__succeeded = mercury__builtin__unify_2_p_0(mercury__tree_bitset__TypeInfo_12_12, ((MR_Box) (mercury__tree_bitset__V_3_3)), ((MR_Box) (mercury__tree_bitset__V_4_4)));
              }
#line 502 "tree_bitset.m"
            }
#line 502 "tree_bitset.m"
        }
#line 502 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 502 "tree_bitset.m"
  }
#line 502 "tree_bitset.m"
}

#line 514 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset____Compare____leaf_node_0_0(
#line 514 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__1_1,
#line 514 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 514 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__3_3)
#line 514 "tree_bitset.m"
{
#line 514 "tree_bitset.m"
  {
#line 514 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 514 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastX_9 = (MR_Integer) mercury__tree_bitset__HeadVar__2_2;
#line 514 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastY_10 = (MR_Integer) mercury__tree_bitset__HeadVar__3_3;

#line 514 "tree_bitset.m"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__CastX_9 == mercury__tree_bitset__CastY_10);
#line 514 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 39166 "tree_bitset.c"
      *mercury__tree_bitset__HeadVar__1_1 = (MR_Integer) 0;
#line 514 "tree_bitset.m"
    else
#line 514 "tree_bitset.m"
      {
#line 514 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_4_4 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 514 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_5_5 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 514 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_6_6 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__3_3, (MR_Integer) 0)));
#line 514 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_7_7 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__3_3, (MR_Integer) 1)));
#line 514 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_8_8;

#line 66 "private_builtin.opt"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_4_4 < mercury__tree_bitset__V_6_6);
#line 69 "private_builtin.opt"
        if (mercury__tree_bitset__succeeded)
#line 68 "private_builtin.opt"
          mercury__tree_bitset__V_8_8 = (MR_Integer) 1;
#line 69 "private_builtin.opt"
        else
#line 74 "private_builtin.opt"
          {
#line 71 "private_builtin.opt"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_4_4 == mercury__tree_bitset__V_6_6);
#line 74 "private_builtin.opt"
            if (mercury__tree_bitset__succeeded)
#line 73 "private_builtin.opt"
              mercury__tree_bitset__V_8_8 = (MR_Integer) 0;
#line 74 "private_builtin.opt"
            else
#line 75 "private_builtin.opt"
              mercury__tree_bitset__V_8_8 = (MR_Integer) 2;
#line 74 "private_builtin.opt"
          }
#line 39205 "tree_bitset.c"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_8_8 == (MR_Integer) 0);
#line 514 "tree_bitset.m"
        mercury__tree_bitset__succeeded = !(mercury__tree_bitset__succeeded);
#line 514 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 514 "tree_bitset.m"
          *mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__V_8_8;
#line 514 "tree_bitset.m"
        else
#line 69 "private_builtin.opt"
          {
#line 66 "private_builtin.opt"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_5_5 < mercury__tree_bitset__V_7_7);
#line 69 "private_builtin.opt"
            if (mercury__tree_bitset__succeeded)
#line 68 "private_builtin.opt"
              *mercury__tree_bitset__HeadVar__1_1 = (MR_Integer) 1;
#line 69 "private_builtin.opt"
            else
#line 74 "private_builtin.opt"
              {
#line 71 "private_builtin.opt"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_5_5 == mercury__tree_bitset__V_7_7);
#line 74 "private_builtin.opt"
                if (mercury__tree_bitset__succeeded)
#line 73 "private_builtin.opt"
                  *mercury__tree_bitset__HeadVar__1_1 = (MR_Integer) 0;
#line 74 "private_builtin.opt"
                else
#line 75 "private_builtin.opt"
                  *mercury__tree_bitset__HeadVar__1_1 = (MR_Integer) 2;
#line 74 "private_builtin.opt"
              }
#line 69 "private_builtin.opt"
          }
#line 514 "tree_bitset.m"
      }
#line 514 "tree_bitset.m"
  }
#line 514 "tree_bitset.m"
}

#line 514 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset____Unify____leaf_node_0_0(
#line 514 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 514 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2)
#line 514 "tree_bitset.m"
{
#line 514 "tree_bitset.m"
  {
#line 514 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 514 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastX_7 = (MR_Integer) mercury__tree_bitset__HeadVar__1_1;
#line 514 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastY_8 = (MR_Integer) mercury__tree_bitset__HeadVar__2_2;

#line 514 "tree_bitset.m"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__CastX_7 == mercury__tree_bitset__CastY_8);
#line 514 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 514 "tree_bitset.m"
      mercury__tree_bitset__succeeded = MR_TRUE;
#line 514 "tree_bitset.m"
    else
#line 514 "tree_bitset.m"
      {
#line 514 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_3_3 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));
#line 514 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_4_4 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 514 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_5_5 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 514 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_6_6 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));

#line 39285 "tree_bitset.c"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_3_3 == mercury__tree_bitset__V_5_5);
#line 514 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 39289 "tree_bitset.c"
          mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_4_4 == mercury__tree_bitset__V_6_6);
#line 514 "tree_bitset.m"
      }
#line 514 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 514 "tree_bitset.m"
  }
#line 514 "tree_bitset.m"
}

#line 525 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset____Compare____interior_node_0_0(
#line 525 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__1_1,
#line 525 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 525 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__3_3)
#line 525 "tree_bitset.m"
{
#line 525 "tree_bitset.m"
  {
#line 525 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 525 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastX_12 = (MR_Integer) mercury__tree_bitset__HeadVar__2_2;
#line 525 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastY_13 = (MR_Integer) mercury__tree_bitset__HeadVar__3_3;

#line 525 "tree_bitset.m"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__CastX_12 == mercury__tree_bitset__CastY_13);
#line 525 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 39324 "tree_bitset.c"
      *mercury__tree_bitset__HeadVar__1_1 = (MR_Integer) 0;
#line 525 "tree_bitset.m"
    else
#line 525 "tree_bitset.m"
      {
#line 525 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_4_4 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 525 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_5_5 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 525 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_6_6 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 2)));
#line 525 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_7_7 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__3_3, (MR_Integer) 0)));
#line 525 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_8_8 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__3_3, (MR_Integer) 1)));
#line 525 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_9_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__3_3, (MR_Integer) 2)));
#line 525 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_10_10;

#line 66 "private_builtin.opt"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_4_4 < mercury__tree_bitset__V_7_7);
#line 69 "private_builtin.opt"
        if (mercury__tree_bitset__succeeded)
#line 68 "private_builtin.opt"
          mercury__tree_bitset__V_10_10 = (MR_Integer) 1;
#line 69 "private_builtin.opt"
        else
#line 74 "private_builtin.opt"
          {
#line 71 "private_builtin.opt"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_4_4 == mercury__tree_bitset__V_7_7);
#line 74 "private_builtin.opt"
            if (mercury__tree_bitset__succeeded)
#line 73 "private_builtin.opt"
              mercury__tree_bitset__V_10_10 = (MR_Integer) 0;
#line 74 "private_builtin.opt"
            else
#line 75 "private_builtin.opt"
              mercury__tree_bitset__V_10_10 = (MR_Integer) 2;
#line 74 "private_builtin.opt"
          }
#line 39367 "tree_bitset.c"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_10_10 == (MR_Integer) 0);
#line 525 "tree_bitset.m"
        mercury__tree_bitset__succeeded = !(mercury__tree_bitset__succeeded);
#line 525 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 525 "tree_bitset.m"
          *mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__V_10_10;
#line 525 "tree_bitset.m"
        else
#line 525 "tree_bitset.m"
          {
#line 525 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_11_11;

#line 66 "private_builtin.opt"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_5_5 < mercury__tree_bitset__V_8_8);
#line 69 "private_builtin.opt"
            if (mercury__tree_bitset__succeeded)
#line 68 "private_builtin.opt"
              mercury__tree_bitset__V_11_11 = (MR_Integer) 1;
#line 69 "private_builtin.opt"
            else
#line 74 "private_builtin.opt"
              {
#line 71 "private_builtin.opt"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_5_5 == mercury__tree_bitset__V_8_8);
#line 74 "private_builtin.opt"
                if (mercury__tree_bitset__succeeded)
#line 73 "private_builtin.opt"
                  mercury__tree_bitset__V_11_11 = (MR_Integer) 0;
#line 74 "private_builtin.opt"
                else
#line 75 "private_builtin.opt"
                  mercury__tree_bitset__V_11_11 = (MR_Integer) 2;
#line 74 "private_builtin.opt"
              }
#line 39404 "tree_bitset.c"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_11_11 == (MR_Integer) 0);
#line 525 "tree_bitset.m"
            mercury__tree_bitset__succeeded = !(mercury__tree_bitset__succeeded);
#line 525 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 525 "tree_bitset.m"
              *mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__V_11_11;
#line 525 "tree_bitset.m"
            else
#line 525 "tree_bitset.m"
              {
#line 525 "tree_bitset.m"
                mercury__tree_bitset____Compare____node_list_0_0(mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__V_6_6, mercury__tree_bitset__V_9_9);
#line 525 "tree_bitset.m"
                return;
              }
#line 525 "tree_bitset.m"
          }
#line 525 "tree_bitset.m"
      }
#line 525 "tree_bitset.m"
  }
#line 525 "tree_bitset.m"
}

#line 525 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset____Unify____interior_node_0_0(
#line 525 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 525 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2)
#line 525 "tree_bitset.m"
{
#line 525 "tree_bitset.m"
  {
#line 525 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 525 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastX_9 = (MR_Integer) mercury__tree_bitset__HeadVar__1_1;
#line 525 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastY_10 = (MR_Integer) mercury__tree_bitset__HeadVar__2_2;

#line 525 "tree_bitset.m"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__CastX_9 == mercury__tree_bitset__CastY_10);
#line 525 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 525 "tree_bitset.m"
      mercury__tree_bitset__succeeded = MR_TRUE;
#line 525 "tree_bitset.m"
    else
#line 525 "tree_bitset.m"
      {
#line 525 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_3_3 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));
#line 525 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_4_4 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 525 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_5_5 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 2)));
#line 525 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_6_6 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 525 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_7_7 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 525 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_8_8 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 2)));

#line 39471 "tree_bitset.c"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_3_3 == mercury__tree_bitset__V_6_6);
#line 525 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 525 "tree_bitset.m"
          {
#line 39477 "tree_bitset.c"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_4_4 == mercury__tree_bitset__V_7_7);
#line 525 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 39481 "tree_bitset.c"
              {
#line 39483 "tree_bitset.c"
                return mercury__tree_bitset__succeeded = mercury__tree_bitset____Unify____node_list_0_0(mercury__tree_bitset__V_5_5, mercury__tree_bitset__V_8_8);
              }
#line 525 "tree_bitset.m"
          }
#line 525 "tree_bitset.m"
      }
#line 525 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 525 "tree_bitset.m"
  }
#line 525 "tree_bitset.m"
}

#line 3669 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset____Compare____fold_direction_0_0(
#line 3669 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__1_1,
#line 3669 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3669 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__3_3)
#line 3669 "tree_bitset.m"
{
#line 3669 "tree_bitset.m"
  {
#line 3669 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3669 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__Cast_HeadVar1_4 = (MR_Integer) mercury__tree_bitset__HeadVar__2_2;
#line 3669 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__Cast_HeadVar2_5 = (MR_Integer) mercury__tree_bitset__HeadVar__3_3;

#line 66 "private_builtin.opt"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__Cast_HeadVar1_4 < mercury__tree_bitset__Cast_HeadVar2_5);
#line 69 "private_builtin.opt"
    if (mercury__tree_bitset__succeeded)
#line 68 "private_builtin.opt"
      *mercury__tree_bitset__HeadVar__1_1 = (MR_Integer) 1;
#line 69 "private_builtin.opt"
    else
#line 74 "private_builtin.opt"
      {
#line 71 "private_builtin.opt"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__Cast_HeadVar1_4 == mercury__tree_bitset__Cast_HeadVar2_5);
#line 74 "private_builtin.opt"
        if (mercury__tree_bitset__succeeded)
#line 73 "private_builtin.opt"
          *mercury__tree_bitset__HeadVar__1_1 = (MR_Integer) 0;
#line 74 "private_builtin.opt"
        else
#line 75 "private_builtin.opt"
          *mercury__tree_bitset__HeadVar__1_1 = (MR_Integer) 2;
#line 74 "private_builtin.opt"
      }
#line 3669 "tree_bitset.m"
  }
#line 3669 "tree_bitset.m"
}

#line 3669 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset____Unify____fold_direction_0_0(
#line 3669 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_1,
#line 3669 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2)
#line 3669 "tree_bitset.m"
{
#line 39553 "tree_bitset.c"
  {
#line 39555 "tree_bitset.c"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__HeadVar__2_1 == mercury__tree_bitset__HeadVar__2_2);

#line 39558 "tree_bitset.c"
    return mercury__tree_bitset__succeeded;
#line 39560 "tree_bitset.c"
  }
#line 3669 "tree_bitset.m"
}

#line 4094 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__all_true_bits_4_p_0(
#line 4094 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_17,
#line 4094 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 4094 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_6,
#line 4094 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_7,
#line 4094 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_8)
#line 4094 "tree_bitset.m"
{
#line 4102 "tree_bitset.m"
  while (MR_TRUE)
#line 4102 "tree_bitset.m"
    {
#line 4102 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4102 "tree_bitset.m"
      {
#line 4102 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_7 == (MR_Integer) 0);

#line 4102 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4101 "tree_bitset.m"
          mercury__tree_bitset__succeeded = MR_TRUE;
#line 4102 "tree_bitset.m"
        else
#line 4105 "tree_bitset.m"
          {
#line 4102 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_8 == (MR_Integer) 1);
#line 4105 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4103 "tree_bitset.m"
              {
#line 4103 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem_9;
#line 565 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem0_20;
#line 39609 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_17, (MR_Integer) 0)), (MR_Integer) 6)));
#line 4104 "tree_bitset.m"
                MR_bool MR_CALL (* mercury__tree_bitset__func_1)(MR_Box, MR_Box);

#line 39614 "tree_bitset.c"
                {
#line 39616 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_17), ((MR_Box) (mercury__tree_bitset__Offset_6)), &mercury__tree_bitset__Elem0_20);
                }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_9 = mercury__tree_bitset__Elem0_20;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
                    }
#line 568 "tree_bitset.m"
                  }
#line 4104 "tree_bitset.m"
                mercury__tree_bitset__func_1 = ((MR_bool MR_CALL (*)(MR_Box, MR_Box)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_5, (MR_Integer) 1)));
#line 4104 "tree_bitset.m"
                {
#line 4104 "tree_bitset.m"
                  return mercury__tree_bitset__succeeded = mercury__tree_bitset__func_1(((MR_Box) mercury__tree_bitset__P_5), mercury__tree_bitset__Elem_9);
                }
#line 4103 "tree_bitset.m"
              }
#line 4105 "tree_bitset.m"
            else
#line 4106 "tree_bitset.m"
              {
#line 4106 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_10 = (mercury__tree_bitset__Size_8 >> (MR_Integer) 1);
#line 4106 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_11;
#line 4106 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_12;
#line 4106 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_13;
#line 4106 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15;
#line 4106 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_16_16;
#line 4106 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_25_25 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_10);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_11 = ~(mercury__tree_bitset__V_25_25);
#line 4110 "tree_bitset.m"
                mercury__tree_bitset__LowBits_12 = (mercury__tree_bitset__Mask_11 & mercury__tree_bitset__Bits_7);
#line 4113 "tree_bitset.m"
                mercury__tree_bitset__V_15_15 = (mercury__tree_bitset__Bits_7 >> mercury__tree_bitset__HalfSize_10);
#line 4113 "tree_bitset.m"
                mercury__tree_bitset__HighBits_13 = (mercury__tree_bitset__Mask_11 & mercury__tree_bitset__V_15_15);
#line 4115 "tree_bitset.m"
                {
#line 4115 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__all_true_bits_4_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_17, mercury__tree_bitset__P_5, mercury__tree_bitset__Offset_6, mercury__tree_bitset__LowBits_12, mercury__tree_bitset__HalfSize_10);
                }
#line 4106 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 4106 "tree_bitset.m"
                  {
#line 4116 "tree_bitset.m"
                    mercury__tree_bitset__V_16_16 = (mercury__tree_bitset__Offset_6 + mercury__tree_bitset__HalfSize_10);
#line 4116 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4116 "tree_bitset.m"
                    {
#line 4116 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_6 = mercury__tree_bitset__V_16_16;
#line 4116 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_7 = mercury__tree_bitset__HighBits_13;
#line 4116 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_8 = mercury__tree_bitset__HalfSize_10;

#line 4116 "tree_bitset.m"
                      mercury__tree_bitset__Size_8 = mercury__tree_bitset__Size__tmp_copy_8;
#line 4116 "tree_bitset.m"
                      mercury__tree_bitset__Bits_7 = mercury__tree_bitset__Bits__tmp_copy_7;
#line 4116 "tree_bitset.m"
                      mercury__tree_bitset__Offset_6 = mercury__tree_bitset__Offset__tmp_copy_6;
#line 4116 "tree_bitset.m"
                    }
#line 4116 "tree_bitset.m"
                    continue;
#line 4106 "tree_bitset.m"
                  }
#line 4106 "tree_bitset.m"
              }
#line 4105 "tree_bitset.m"
          }
#line 4102 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 4102 "tree_bitset.m"
      }
#line 4102 "tree_bitset.m"
      break;
#line 4102 "tree_bitset.m"
    }
#line 4094 "tree_bitset.m"
}

#line 4082 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__leaf_all_true_2_p_0(
#line 4082 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_12,
#line 4082 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 4082 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2)
#line 4082 "tree_bitset.m"
{
#line 4087 "tree_bitset.m"
  while (MR_TRUE)
#line 4087 "tree_bitset.m"
    {
#line 4087 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4087 "tree_bitset.m"
      {
#line 4087 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 4087 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 4087 "tree_bitset.m"
          mercury__tree_bitset__succeeded = MR_TRUE;
#line 4087 "tree_bitset.m"
        else
#line 4088 "tree_bitset.m"
          {
#line 4088 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_5 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 4088 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_6 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 4088 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_7_7 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_5, (MR_Integer) 0)));
#line 4088 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_9_9;
#line 4088 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_5, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_all_true_2_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 39771 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_9_9  = Bits;
#line 171 "int.opt"
}
#line 4089 "tree_bitset.m"
            {
#line 4089 "tree_bitset.m"
              mercury__tree_bitset__succeeded = mercury__tree_bitset__all_true_bits_4_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_12, mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__V_7_7, mercury__tree_bitset__V_10_10, mercury__tree_bitset__V_9_9);
            }
#line 4088 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4090 "tree_bitset.m"
              {
#line 4090 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 4090 "tree_bitset.m"
                {
#line 4090 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_6;

#line 4090 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 4090 "tree_bitset.m"
                }
#line 4090 "tree_bitset.m"
                continue;
#line 4090 "tree_bitset.m"
              }
#line 4088 "tree_bitset.m"
          }
#line 4087 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 4087 "tree_bitset.m"
      }
#line 4087 "tree_bitset.m"
      break;
#line 4087 "tree_bitset.m"
    }
#line 4082 "tree_bitset.m"
}

#line 4065 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__interior_all_true_2_p_0(
#line 4065 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_13,
#line 4065 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 4065 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2)
#line 4065 "tree_bitset.m"
{
#line 4070 "tree_bitset.m"
  while (MR_TRUE)
#line 4070 "tree_bitset.m"
    {
#line 4070 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4070 "tree_bitset.m"
      {
#line 4070 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 4070 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 4070 "tree_bitset.m"
          mercury__tree_bitset__succeeded = MR_TRUE;
#line 4070 "tree_bitset.m"
        else
#line 4071 "tree_bitset.m"
          {
#line 4071 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_5 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 4071 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_6 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 4071 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_7 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_5, (MR_Integer) 2)));
#line 4072 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_11_11 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_5, (MR_Integer) 0)));
#line 4072 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_12_12 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_5, (MR_Integer) 1)));

#line 4076 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_7)) == (MR_mktag((MR_Integer) 1))))
#line 4077 "tree_bitset.m"
              {
#line 4077 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_7, (MR_Integer) 1)));
#line 4077 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_9_9 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_7, (MR_Integer) 0)));

#line 4078 "tree_bitset.m"
                {
#line 4078 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__interior_all_true_2_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_13, mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__InteriorNodes_10);
                }
#line 4077 "tree_bitset.m"
              }
#line 4076 "tree_bitset.m"
            else
#line 4074 "tree_bitset.m"
              {
#line 4074 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_8 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_7, (MR_Integer) 0)));

#line 4075 "tree_bitset.m"
                {
#line 4075 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__leaf_all_true_2_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_13, mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__LeafNodes_8);
                }
#line 4074 "tree_bitset.m"
              }
#line 4071 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4080 "tree_bitset.m"
              {
#line 4080 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 4080 "tree_bitset.m"
                {
#line 4080 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_6;

#line 4080 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 4080 "tree_bitset.m"
                }
#line 4080 "tree_bitset.m"
                continue;
#line 4080 "tree_bitset.m"
              }
#line 4071 "tree_bitset.m"
          }
#line 4070 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 4070 "tree_bitset.m"
      }
#line 4070 "tree_bitset.m"
      break;
#line 4070 "tree_bitset.m"
    }
#line 4065 "tree_bitset.m"
}

#line 4019 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__fold2_bits_9_p_7(
#line 4019 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4019 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4019 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4019 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4019 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4019 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4019 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4019 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4019 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4019 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4019 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4019 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25)
#line 4019 "tree_bitset.m"
{
#line 4027 "tree_bitset.m"
  while (MR_TRUE)
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4027 "tree_bitset.m"
      {
#line 4027 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        else
#line 4030 "tree_bitset.m"
          {
#line 4027 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
              {
#line 4028 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem0_45;
#line 39982 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 4029 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_1)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *);

#line 39987 "tree_bitset.c"
                {
#line 39989 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_40), ((MR_Box) (mercury__tree_bitset__Offset_12)), &mercury__tree_bitset__Elem0_45);
                }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_45;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_1 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
                {
#line 4029 "tree_bitset.m"
                  mercury__tree_bitset__func_1(((MR_Box) mercury__tree_bitset__P_11), mercury__tree_bitset__Elem_17, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, mercury__tree_bitset__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, mercury__tree_bitset__STATE_VARIABLE_AccB_25);
#line 4029 "tree_bitset.m"
                  return;
                }
#line 4028 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
            else
#line 4031 "tree_bitset.m"
              {
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_20;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_21;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_50_50 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_18);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_50_50);
#line 4035 "tree_bitset.m"
                mercury__tree_bitset__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> mercury__tree_bitset__HalfSize_18);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                  {
#line 4046 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_30_30 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4047 "tree_bitset.m"
                    {
#line 4047 "tree_bitset.m"
                      mercury__tree_bitset__fold2_bits_9_p_7(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__V_30_30, mercury__tree_bitset__HighBits_21, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_32_32);
                    }
#line 4049 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4049 "tree_bitset.m"
                    {
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__LowBits_20;
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4049 "tree_bitset.m"
                    }
#line 4049 "tree_bitset.m"
                    continue;
#line 4046 "tree_bitset.m"
                  }
#line 4045 "tree_bitset.m"
                else
#line 4041 "tree_bitset.m"
                  {
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_37_37;

#line 4042 "tree_bitset.m"
                    {
#line 4042 "tree_bitset.m"
                      mercury__tree_bitset__fold2_bits_9_p_7(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__Offset_12, mercury__tree_bitset__LowBits_20, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_36_36);
                    }
#line 4043 "tree_bitset.m"
                    mercury__tree_bitset__V_37_37 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4043 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4043 "tree_bitset.m"
                    {
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_12 = mercury__tree_bitset__V_37_37;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__HighBits_21;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;

#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Offset_12 = mercury__tree_bitset__Offset__tmp_copy_12;
#line 4043 "tree_bitset.m"
                    }
#line 4043 "tree_bitset.m"
                    continue;
#line 4041 "tree_bitset.m"
                  }
#line 4031 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
      }
#line 4027 "tree_bitset.m"
      break;
#line 4027 "tree_bitset.m"
    }
#line 4019 "tree_bitset.m"
}

#line 4017 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__fold2_bits_9_p_6(
#line 4017 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4017 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4017 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4017 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4017 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4017 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4017 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4017 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4017 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4017 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4017 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4017 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25)
#line 4017 "tree_bitset.m"
{
#line 4027 "tree_bitset.m"
  while (MR_TRUE)
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4027 "tree_bitset.m"
      {
#line 4027 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        else
#line 4030 "tree_bitset.m"
          {
#line 4027 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
              {
#line 4028 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem0_45;
#line 40214 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 4029 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_1)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *);

#line 40219 "tree_bitset.c"
                {
#line 40221 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_40), ((MR_Box) (mercury__tree_bitset__Offset_12)), &mercury__tree_bitset__Elem0_45);
                }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_45;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_1 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
                {
#line 4029 "tree_bitset.m"
                  mercury__tree_bitset__func_1(((MR_Box) mercury__tree_bitset__P_11), mercury__tree_bitset__Elem_17, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, mercury__tree_bitset__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, mercury__tree_bitset__STATE_VARIABLE_AccB_25);
#line 4029 "tree_bitset.m"
                  return;
                }
#line 4028 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
            else
#line 4031 "tree_bitset.m"
              {
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_20;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_21;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_50_50 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_18);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_50_50);
#line 4035 "tree_bitset.m"
                mercury__tree_bitset__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> mercury__tree_bitset__HalfSize_18);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                  {
#line 4046 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_30_30 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4047 "tree_bitset.m"
                    {
#line 4047 "tree_bitset.m"
                      mercury__tree_bitset__fold2_bits_9_p_6(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__V_30_30, mercury__tree_bitset__HighBits_21, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_32_32);
                    }
#line 4049 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4049 "tree_bitset.m"
                    {
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__LowBits_20;
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4049 "tree_bitset.m"
                    }
#line 4049 "tree_bitset.m"
                    continue;
#line 4046 "tree_bitset.m"
                  }
#line 4045 "tree_bitset.m"
                else
#line 4041 "tree_bitset.m"
                  {
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_37_37;

#line 4042 "tree_bitset.m"
                    {
#line 4042 "tree_bitset.m"
                      mercury__tree_bitset__fold2_bits_9_p_6(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__Offset_12, mercury__tree_bitset__LowBits_20, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_36_36);
                    }
#line 4043 "tree_bitset.m"
                    mercury__tree_bitset__V_37_37 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4043 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4043 "tree_bitset.m"
                    {
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_12 = mercury__tree_bitset__V_37_37;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__HighBits_21;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;

#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Offset_12 = mercury__tree_bitset__Offset__tmp_copy_12;
#line 4043 "tree_bitset.m"
                    }
#line 4043 "tree_bitset.m"
                    continue;
#line 4041 "tree_bitset.m"
                  }
#line 4031 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
      }
#line 4027 "tree_bitset.m"
      break;
#line 4027 "tree_bitset.m"
    }
#line 4017 "tree_bitset.m"
}

#line 4015 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__fold2_bits_9_p_5(
#line 4015 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4015 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4015 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4015 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4015 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4015 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4015 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4015 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4015 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4015 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4015 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4015 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25)
#line 4015 "tree_bitset.m"
{
#line 4027 "tree_bitset.m"
  while (MR_TRUE)
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4027 "tree_bitset.m"
      {
#line 4027 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        else
#line 4030 "tree_bitset.m"
          {
#line 4027 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
              {
#line 4028 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem0_45;
#line 40446 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 4029 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_1)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *);

#line 40451 "tree_bitset.c"
                {
#line 40453 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_40), ((MR_Box) (mercury__tree_bitset__Offset_12)), &mercury__tree_bitset__Elem0_45);
                }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_45;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_1 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
                {
#line 4029 "tree_bitset.m"
                  mercury__tree_bitset__func_1(((MR_Box) mercury__tree_bitset__P_11), mercury__tree_bitset__Elem_17, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, mercury__tree_bitset__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, mercury__tree_bitset__STATE_VARIABLE_AccB_25);
#line 4029 "tree_bitset.m"
                  return;
                }
#line 4028 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
            else
#line 4031 "tree_bitset.m"
              {
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_20;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_21;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_50_50 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_18);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_50_50);
#line 4035 "tree_bitset.m"
                mercury__tree_bitset__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> mercury__tree_bitset__HalfSize_18);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                  {
#line 4046 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_30_30 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4047 "tree_bitset.m"
                    {
#line 4047 "tree_bitset.m"
                      mercury__tree_bitset__fold2_bits_9_p_5(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__V_30_30, mercury__tree_bitset__HighBits_21, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_32_32);
                    }
#line 4049 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4049 "tree_bitset.m"
                    {
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__LowBits_20;
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4049 "tree_bitset.m"
                    }
#line 4049 "tree_bitset.m"
                    continue;
#line 4046 "tree_bitset.m"
                  }
#line 4045 "tree_bitset.m"
                else
#line 4041 "tree_bitset.m"
                  {
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_37_37;

#line 4042 "tree_bitset.m"
                    {
#line 4042 "tree_bitset.m"
                      mercury__tree_bitset__fold2_bits_9_p_5(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__Offset_12, mercury__tree_bitset__LowBits_20, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_36_36);
                    }
#line 4043 "tree_bitset.m"
                    mercury__tree_bitset__V_37_37 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4043 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4043 "tree_bitset.m"
                    {
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_12 = mercury__tree_bitset__V_37_37;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__HighBits_21;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;

#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Offset_12 = mercury__tree_bitset__Offset__tmp_copy_12;
#line 4043 "tree_bitset.m"
                    }
#line 4043 "tree_bitset.m"
                    continue;
#line 4041 "tree_bitset.m"
                  }
#line 4031 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
      }
#line 4027 "tree_bitset.m"
      break;
#line 4027 "tree_bitset.m"
    }
#line 4015 "tree_bitset.m"
}

#line 4046 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__fold2_bits_9_p_4_1(
#line 4046 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 4046 "tree_bitset.m"
{
#line 4046 "tree_bitset.m"
  {
#line 4046 "tree_bitset.m"
    struct mercury__tree_bitset__fold2_bits_9_p_4_env_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__fold2_bits_9_p_4_env_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 4049 "tree_bitset.m"
    {
#line 4049 "tree_bitset.m"
      mercury__tree_bitset__fold2_bits_9_p_4((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__TypeInfo_for_U_41, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__TypeInfo_for_V_42, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__TypeClassInfo_for_enum_40, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__Dir_10, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__P_11, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__Offset_12, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__LowBits_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__HalfSize_18, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccA_31_31, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccA_23, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccB_32_32, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccB_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__cont_env_ptr);
#line 4049 "tree_bitset.m"
      return;
    }
#line 4046 "tree_bitset.m"
  }
#line 4046 "tree_bitset.m"
}

#line 4041 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__fold2_bits_9_p_4_2(
#line 4041 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 4041 "tree_bitset.m"
{
#line 4041 "tree_bitset.m"
  {
#line 4041 "tree_bitset.m"
    struct mercury__tree_bitset__fold2_bits_9_p_4_env_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__fold2_bits_9_p_4_env_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 4043 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__V_37_37 = ((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__Offset_12 + (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__HalfSize_18);
#line 4043 "tree_bitset.m"
    {
#line 4043 "tree_bitset.m"
      mercury__tree_bitset__fold2_bits_9_p_4((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__TypeInfo_for_U_41, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__TypeInfo_for_V_42, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__TypeClassInfo_for_enum_40, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__Dir_10, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__P_11, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__V_37_37, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__HighBits_21, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__HalfSize_18, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccA_35_35, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccA_23, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccB_36_36, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccB_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold2_bits_9_p_4_env_0__cont_env_ptr);
#line 4043 "tree_bitset.m"
      return;
    }
#line 4041 "tree_bitset.m"
  }
#line 4041 "tree_bitset.m"
}

#line 4013 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__fold2_bits_9_p_4(
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4013 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4013 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4013 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4013 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4013 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4013 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4013 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4013 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25,
#line 4013 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 4013 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 4013 "tree_bitset.m"
{
#line 4013 "tree_bitset.m"
  {
#line 4013 "tree_bitset.m"
    struct mercury__tree_bitset__fold2_bits_9_p_4_env_0_s mercury__tree_bitset__env;

#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__TypeInfo_for_U_41 = mercury__tree_bitset__TypeInfo_for_U_41;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__TypeInfo_for_V_42 = mercury__tree_bitset__TypeInfo_for_V_42;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__TypeClassInfo_for_enum_40 = mercury__tree_bitset__TypeClassInfo_for_enum_40;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__Dir_10 = mercury__tree_bitset__Dir_10;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__P_11 = mercury__tree_bitset__P_11;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__Offset_12 = mercury__tree_bitset__Offset_12;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_23;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_25;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__cont = mercury__tree_bitset__cont;
#line 4013 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
      if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
        {
#line 4026 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccB_25) = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccA_23) = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__cont)((mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__cont_env_ptr);
#line 4026 "tree_bitset.m"
            return;
          }
#line 4026 "tree_bitset.m"
        }
#line 4027 "tree_bitset.m"
      else
#line 4030 "tree_bitset.m"
        {
#line 4027 "tree_bitset.m"
          mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
          if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
            {
#line 4028 "tree_bitset.m"
              MR_Box mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
              MR_Box mercury__tree_bitset__Elem0_45;
#line 40758 "tree_bitset.c"
              MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 4029 "tree_bitset.m"
              void MR_CALL (* mercury__tree_bitset__func_1)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *, MR_Cont, void *);

#line 40763 "tree_bitset.c"
              {
#line 40765 "tree_bitset.c"
                mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__TypeClassInfo_for_enum_40), ((MR_Box) ((mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__Offset_12)), &mercury__tree_bitset__Elem0_45);
              }
#line 565 "tree_bitset.m"
              if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_45;
#line 565 "tree_bitset.m"
              else
#line 568 "tree_bitset.m"
                {
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                    return;
                  }
#line 568 "tree_bitset.m"
                }
#line 4029 "tree_bitset.m"
              mercury__tree_bitset__func_1 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *, MR_Cont, void *)) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
              {
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_1(((MR_Box) (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__P_11), mercury__tree_bitset__Elem_17, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccB_25, (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__cont, (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__cont_env_ptr);
#line 4029 "tree_bitset.m"
                return;
              }
#line 4028 "tree_bitset.m"
            }
#line 4030 "tree_bitset.m"
          else
#line 4031 "tree_bitset.m"
            {
#line 4031 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_50_50;

#line 4031 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 3645 "tree_bitset.m"
              mercury__tree_bitset__V_50_50 = ((MR_Integer) -1 << (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__HalfSize_18);
#line 3645 "tree_bitset.m"
              mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_50_50);
#line 4035 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
              mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__HalfSize_18);
#line 4038 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
              if (((mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                {
#line 4046 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__V_30_30 = ((mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__Offset_12 + (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__HalfSize_18);

#line 4047 "tree_bitset.m"
                  {
#line 4047 "tree_bitset.m"
                    mercury__tree_bitset__fold2_bits_9_p_4((mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__TypeInfo_for_U_41, (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__TypeInfo_for_V_42, (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__TypeClassInfo_for_enum_40, (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__Dir_10, (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__P_11, mercury__tree_bitset__V_30_30, (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__HighBits_21, (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &(mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &(mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccB_32_32, mercury__tree_bitset__fold2_bits_9_p_4_1, &mercury__tree_bitset__env);
                  }
#line 4046 "tree_bitset.m"
                }
#line 4045 "tree_bitset.m"
              else
#line 4041 "tree_bitset.m"
                {
#line 4042 "tree_bitset.m"
                  {
#line 4042 "tree_bitset.m"
                    mercury__tree_bitset__fold2_bits_9_p_4((mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__TypeInfo_for_U_41, (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__TypeInfo_for_V_42, (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__TypeClassInfo_for_enum_40, (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__Dir_10, (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__P_11, (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__Offset_12, (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__LowBits_20, (mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &(mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &(mercury__tree_bitset__env).mercury__tree_bitset__fold2_bits_9_p_4_env_0__STATE_VARIABLE_AccB_36_36, mercury__tree_bitset__fold2_bits_9_p_4_2, &mercury__tree_bitset__env);
                  }
#line 4041 "tree_bitset.m"
                }
#line 4031 "tree_bitset.m"
            }
#line 4030 "tree_bitset.m"
        }
#line 4027 "tree_bitset.m"
    }
#line 4013 "tree_bitset.m"
  }
#line 4013 "tree_bitset.m"
}

#line 4011 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__fold2_bits_9_p_3(
#line 4011 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4011 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4011 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4011 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4011 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4011 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4011 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4011 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4011 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4011 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4011 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4011 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25)
#line 4011 "tree_bitset.m"
{
#line 4027 "tree_bitset.m"
  while (MR_TRUE)
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4027 "tree_bitset.m"
      {
#line 4027 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 4026 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        else
#line 4030 "tree_bitset.m"
          {
#line 4027 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
              {
#line 4028 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem0_45;
#line 40921 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 4029 "tree_bitset.m"
                MR_bool MR_CALL (* mercury__tree_bitset__func_1)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *);

#line 40926 "tree_bitset.c"
                {
#line 40928 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_40), ((MR_Box) (mercury__tree_bitset__Offset_12)), &mercury__tree_bitset__Elem0_45);
                }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_45;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
                    }
#line 568 "tree_bitset.m"
                  }
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_1 = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
                {
#line 4029 "tree_bitset.m"
                  return mercury__tree_bitset__succeeded = mercury__tree_bitset__func_1(((MR_Box) mercury__tree_bitset__P_11), mercury__tree_bitset__Elem_17, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, mercury__tree_bitset__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, mercury__tree_bitset__STATE_VARIABLE_AccB_25);
                }
#line 4028 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
            else
#line 4031 "tree_bitset.m"
              {
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_20;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_21;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_50_50 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_18);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_50_50);
#line 4035 "tree_bitset.m"
                mercury__tree_bitset__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> mercury__tree_bitset__HalfSize_18);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                  {
#line 4046 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_30_30 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4047 "tree_bitset.m"
                    {
#line 4047 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__fold2_bits_9_p_3(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__V_30_30, mercury__tree_bitset__HighBits_21, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_32_32);
                    }
#line 4046 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 4049 "tree_bitset.m"
                      {
#line 4049 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 4049 "tree_bitset.m"
                        {
#line 4049 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__LowBits_20;
#line 4049 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4049 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4049 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4049 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4049 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4049 "tree_bitset.m"
                          mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4049 "tree_bitset.m"
                          mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4049 "tree_bitset.m"
                        }
#line 4049 "tree_bitset.m"
                        continue;
#line 4049 "tree_bitset.m"
                      }
#line 4046 "tree_bitset.m"
                  }
#line 4045 "tree_bitset.m"
                else
#line 4041 "tree_bitset.m"
                  {
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_37_37;

#line 4042 "tree_bitset.m"
                    {
#line 4042 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__fold2_bits_9_p_3(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__Offset_12, mercury__tree_bitset__LowBits_20, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_36_36);
                    }
#line 4041 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 4041 "tree_bitset.m"
                      {
#line 4043 "tree_bitset.m"
                        mercury__tree_bitset__V_37_37 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4043 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 4043 "tree_bitset.m"
                        {
#line 4043 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Offset__tmp_copy_12 = mercury__tree_bitset__V_37_37;
#line 4043 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__HighBits_21;
#line 4043 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4043 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4043 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;

#line 4043 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4043 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4043 "tree_bitset.m"
                          mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4043 "tree_bitset.m"
                          mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4043 "tree_bitset.m"
                          mercury__tree_bitset__Offset_12 = mercury__tree_bitset__Offset__tmp_copy_12;
#line 4043 "tree_bitset.m"
                        }
#line 4043 "tree_bitset.m"
                        continue;
#line 4041 "tree_bitset.m"
                      }
#line 4041 "tree_bitset.m"
                  }
#line 4031 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 4027 "tree_bitset.m"
      }
#line 4027 "tree_bitset.m"
      break;
#line 4027 "tree_bitset.m"
    }
#line 4011 "tree_bitset.m"
}

#line 4009 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__fold2_bits_9_p_2(
#line 4009 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4009 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4009 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4009 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4009 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4009 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4009 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4009 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4009 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4009 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4009 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4009 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25)
#line 4009 "tree_bitset.m"
{
#line 4027 "tree_bitset.m"
  while (MR_TRUE)
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4027 "tree_bitset.m"
      {
#line 4027 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        else
#line 4030 "tree_bitset.m"
          {
#line 4027 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
              {
#line 4028 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem0_45;
#line 41163 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 4029 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_1)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *);

#line 41168 "tree_bitset.c"
                {
#line 41170 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_40), ((MR_Box) (mercury__tree_bitset__Offset_12)), &mercury__tree_bitset__Elem0_45);
                }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_45;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_1 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
                {
#line 4029 "tree_bitset.m"
                  mercury__tree_bitset__func_1(((MR_Box) mercury__tree_bitset__P_11), mercury__tree_bitset__Elem_17, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, mercury__tree_bitset__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, mercury__tree_bitset__STATE_VARIABLE_AccB_25);
#line 4029 "tree_bitset.m"
                  return;
                }
#line 4028 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
            else
#line 4031 "tree_bitset.m"
              {
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_20;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_21;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_50_50 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_18);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_50_50);
#line 4035 "tree_bitset.m"
                mercury__tree_bitset__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> mercury__tree_bitset__HalfSize_18);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                  {
#line 4046 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_30_30 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4047 "tree_bitset.m"
                    {
#line 4047 "tree_bitset.m"
                      mercury__tree_bitset__fold2_bits_9_p_2(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__V_30_30, mercury__tree_bitset__HighBits_21, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_32_32);
                    }
#line 4049 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4049 "tree_bitset.m"
                    {
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__LowBits_20;
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4049 "tree_bitset.m"
                    }
#line 4049 "tree_bitset.m"
                    continue;
#line 4046 "tree_bitset.m"
                  }
#line 4045 "tree_bitset.m"
                else
#line 4041 "tree_bitset.m"
                  {
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_37_37;

#line 4042 "tree_bitset.m"
                    {
#line 4042 "tree_bitset.m"
                      mercury__tree_bitset__fold2_bits_9_p_2(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__Offset_12, mercury__tree_bitset__LowBits_20, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_36_36);
                    }
#line 4043 "tree_bitset.m"
                    mercury__tree_bitset__V_37_37 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4043 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4043 "tree_bitset.m"
                    {
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_12 = mercury__tree_bitset__V_37_37;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__HighBits_21;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;

#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Offset_12 = mercury__tree_bitset__Offset__tmp_copy_12;
#line 4043 "tree_bitset.m"
                    }
#line 4043 "tree_bitset.m"
                    continue;
#line 4041 "tree_bitset.m"
                  }
#line 4031 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
      }
#line 4027 "tree_bitset.m"
      break;
#line 4027 "tree_bitset.m"
    }
#line 4009 "tree_bitset.m"
}

#line 4007 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__fold2_bits_9_p_1(
#line 4007 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4007 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4007 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4007 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4007 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4007 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4007 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4007 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4007 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4007 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4007 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4007 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25)
#line 4007 "tree_bitset.m"
{
#line 4027 "tree_bitset.m"
  while (MR_TRUE)
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4027 "tree_bitset.m"
      {
#line 4027 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        else
#line 4030 "tree_bitset.m"
          {
#line 4027 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
              {
#line 4028 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem0_45;
#line 41395 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 4029 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_1)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *);

#line 41400 "tree_bitset.c"
                {
#line 41402 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_40), ((MR_Box) (mercury__tree_bitset__Offset_12)), &mercury__tree_bitset__Elem0_45);
                }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_45;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_1 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
                {
#line 4029 "tree_bitset.m"
                  mercury__tree_bitset__func_1(((MR_Box) mercury__tree_bitset__P_11), mercury__tree_bitset__Elem_17, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, mercury__tree_bitset__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, mercury__tree_bitset__STATE_VARIABLE_AccB_25);
#line 4029 "tree_bitset.m"
                  return;
                }
#line 4028 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
            else
#line 4031 "tree_bitset.m"
              {
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_20;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_21;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_50_50 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_18);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_50_50);
#line 4035 "tree_bitset.m"
                mercury__tree_bitset__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> mercury__tree_bitset__HalfSize_18);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                  {
#line 4046 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_30_30 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4047 "tree_bitset.m"
                    {
#line 4047 "tree_bitset.m"
                      mercury__tree_bitset__fold2_bits_9_p_1(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__V_30_30, mercury__tree_bitset__HighBits_21, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_32_32);
                    }
#line 4049 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4049 "tree_bitset.m"
                    {
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__LowBits_20;
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4049 "tree_bitset.m"
                    }
#line 4049 "tree_bitset.m"
                    continue;
#line 4046 "tree_bitset.m"
                  }
#line 4045 "tree_bitset.m"
                else
#line 4041 "tree_bitset.m"
                  {
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_37_37;

#line 4042 "tree_bitset.m"
                    {
#line 4042 "tree_bitset.m"
                      mercury__tree_bitset__fold2_bits_9_p_1(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__Offset_12, mercury__tree_bitset__LowBits_20, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_36_36);
                    }
#line 4043 "tree_bitset.m"
                    mercury__tree_bitset__V_37_37 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4043 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4043 "tree_bitset.m"
                    {
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_12 = mercury__tree_bitset__V_37_37;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__HighBits_21;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;

#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Offset_12 = mercury__tree_bitset__Offset__tmp_copy_12;
#line 4043 "tree_bitset.m"
                    }
#line 4043 "tree_bitset.m"
                    continue;
#line 4041 "tree_bitset.m"
                  }
#line 4031 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
      }
#line 4027 "tree_bitset.m"
      break;
#line 4027 "tree_bitset.m"
    }
#line 4007 "tree_bitset.m"
}

#line 4005 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__fold2_bits_9_p_0(
#line 4005 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_41,
#line 4005 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_42,
#line 4005 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_40,
#line 4005 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_10,
#line 4005 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_11,
#line 4005 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_12,
#line 4005 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_13,
#line 4005 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_14,
#line 4005 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_22,
#line 4005 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_23,
#line 4005 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_24,
#line 4005 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_25)
#line 4005 "tree_bitset.m"
{
#line 4027 "tree_bitset.m"
  while (MR_TRUE)
#line 4027 "tree_bitset.m"
    {
#line 4027 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 4027 "tree_bitset.m"
      {
#line 4027 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_13 == (MR_Integer) 0);

#line 4027 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 4026 "tree_bitset.m"
          {
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_25 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_24;
#line 4026 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_23 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_22;
#line 4026 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
        else
#line 4030 "tree_bitset.m"
          {
#line 4027 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_14 == (MR_Integer) 1);
#line 4030 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 4028 "tree_bitset.m"
              {
#line 4028 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem_17;
#line 565 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem0_45;
#line 41627 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_40, (MR_Integer) 0)), (MR_Integer) 6)));
#line 4029 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_1)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *);

#line 41632 "tree_bitset.c"
                {
#line 41634 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_40), ((MR_Box) (mercury__tree_bitset__Offset_12)), &mercury__tree_bitset__Elem0_45);
                }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_17 = mercury__tree_bitset__Elem0_45;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 4029 "tree_bitset.m"
                mercury__tree_bitset__func_1 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_11, (MR_Integer) 1)));
#line 4029 "tree_bitset.m"
                {
#line 4029 "tree_bitset.m"
                  mercury__tree_bitset__func_1(((MR_Box) mercury__tree_bitset__P_11), mercury__tree_bitset__Elem_17, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, mercury__tree_bitset__STATE_VARIABLE_AccA_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, mercury__tree_bitset__STATE_VARIABLE_AccB_25);
#line 4029 "tree_bitset.m"
                  return;
                }
#line 4028 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
            else
#line 4031 "tree_bitset.m"
              {
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_18 = (mercury__tree_bitset__Size_14 >> (MR_Integer) 1);
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_19;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_20;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_21;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_29_29;
#line 4031 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_50_50 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_18);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_19 = ~(mercury__tree_bitset__V_50_50);
#line 4035 "tree_bitset.m"
                mercury__tree_bitset__LowBits_20 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__Bits_13);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (mercury__tree_bitset__Bits_13 >> mercury__tree_bitset__HalfSize_18);
#line 4038 "tree_bitset.m"
                mercury__tree_bitset__HighBits_21 = (mercury__tree_bitset__Mask_19 & mercury__tree_bitset__V_29_29);
#line 4045 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_10 == (MR_Integer) 1))
#line 4046 "tree_bitset.m"
                  {
#line 4046 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_30_30 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4046 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4047 "tree_bitset.m"
                    {
#line 4047 "tree_bitset.m"
                      mercury__tree_bitset__fold2_bits_9_p_0(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__V_30_30, mercury__tree_bitset__HighBits_21, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_31_31, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_32_32);
                    }
#line 4049 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4049 "tree_bitset.m"
                    {
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__LowBits_20;
#line 4049 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_31_31;
#line 4049 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_32_32;

#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4049 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4049 "tree_bitset.m"
                    }
#line 4049 "tree_bitset.m"
                    continue;
#line 4046 "tree_bitset.m"
                  }
#line 4045 "tree_bitset.m"
                else
#line 4041 "tree_bitset.m"
                  {
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4041 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;
#line 4041 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_37_37;

#line 4042 "tree_bitset.m"
                    {
#line 4042 "tree_bitset.m"
                      mercury__tree_bitset__fold2_bits_9_p_0(mercury__tree_bitset__TypeInfo_for_U_41, mercury__tree_bitset__TypeInfo_for_V_42, mercury__tree_bitset__TypeClassInfo_for_enum_40, mercury__tree_bitset__Dir_10, mercury__tree_bitset__P_11, mercury__tree_bitset__Offset_12, mercury__tree_bitset__LowBits_20, mercury__tree_bitset__HalfSize_18, mercury__tree_bitset__STATE_VARIABLE_AccA_0_22, &mercury__tree_bitset__STATE_VARIABLE_AccA_35_35, mercury__tree_bitset__STATE_VARIABLE_AccB_0_24, &mercury__tree_bitset__STATE_VARIABLE_AccB_36_36);
                    }
#line 4043 "tree_bitset.m"
                    mercury__tree_bitset__V_37_37 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__HalfSize_18);
#line 4043 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 4043 "tree_bitset.m"
                    {
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_12 = mercury__tree_bitset__V_37_37;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_13 = mercury__tree_bitset__HighBits_21;
#line 4043 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_14 = mercury__tree_bitset__HalfSize_18;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_35_35;
#line 4043 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_36_36;

#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_24 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_24;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_22 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_22;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Size_14 = mercury__tree_bitset__Size__tmp_copy_14;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Bits_13 = mercury__tree_bitset__Bits__tmp_copy_13;
#line 4043 "tree_bitset.m"
                      mercury__tree_bitset__Offset_12 = mercury__tree_bitset__Offset__tmp_copy_12;
#line 4043 "tree_bitset.m"
                    }
#line 4043 "tree_bitset.m"
                    continue;
#line 4041 "tree_bitset.m"
                  }
#line 4031 "tree_bitset.m"
              }
#line 4030 "tree_bitset.m"
          }
#line 4027 "tree_bitset.m"
      }
#line 4027 "tree_bitset.m"
      break;
#line 4027 "tree_bitset.m"
    }
#line 4005 "tree_bitset.m"
}

#line 3971 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__fold_bits_7_p_9(
#line 3971 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3971 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3971 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3971 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3971 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3971 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3971 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3971 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3971 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3971 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem0_34;
#line 41847 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 3981 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_1)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 41852 "tree_bitset.c"
                {
#line 41854 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__Elem0_34);
                }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_34;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_1 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  mercury__tree_bitset__func_1(((MR_Box) mercury__tree_bitset__P_9), mercury__tree_bitset__Elem_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
#line 3981 "tree_bitset.m"
                  return;
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_39_39 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_39_39);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__fold_bits_7_p_9(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3999 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                    {
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                    }
#line 3999 "tree_bitset.m"
                    continue;
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__fold_bits_7_p_9(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3995 "tree_bitset.m"
                    mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                    {
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                    }
#line 3995 "tree_bitset.m"
                    continue;
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3971 "tree_bitset.m"
}

#line 3969 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__fold_bits_7_p_8(
#line 3969 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3969 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3969 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3969 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3969 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3969 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3969 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3969 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3969 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3969 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem0_34;
#line 42055 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 3981 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_1)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 42060 "tree_bitset.c"
                {
#line 42062 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__Elem0_34);
                }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_34;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_1 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  mercury__tree_bitset__func_1(((MR_Box) mercury__tree_bitset__P_9), mercury__tree_bitset__Elem_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
#line 3981 "tree_bitset.m"
                  return;
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_39_39 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_39_39);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__fold_bits_7_p_8(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3999 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                    {
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                    }
#line 3999 "tree_bitset.m"
                    continue;
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__fold_bits_7_p_8(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3995 "tree_bitset.m"
                    mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                    {
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                    }
#line 3995 "tree_bitset.m"
                    continue;
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3969 "tree_bitset.m"
}

#line 3997 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__fold_bits_7_p_7_1(
#line 3997 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3997 "tree_bitset.m"
{
#line 3997 "tree_bitset.m"
  {
#line 3997 "tree_bitset.m"
    struct mercury__tree_bitset__fold_bits_7_p_7_env_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__fold_bits_7_p_7_env_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3999 "tree_bitset.m"
    {
#line 3999 "tree_bitset.m"
      mercury__tree_bitset__fold_bits_7_p_7((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__TypeInfo_for_U_31, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__Dir_8, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__P_9, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__Offset_10, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__LowBits_17, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__HalfSize_15, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__STATE_VARIABLE_Acc_25_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__STATE_VARIABLE_Acc_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__cont_env_ptr);
#line 3999 "tree_bitset.m"
      return;
    }
#line 3997 "tree_bitset.m"
  }
#line 3997 "tree_bitset.m"
}

#line 3993 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__fold_bits_7_p_7_2(
#line 3993 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3993 "tree_bitset.m"
{
#line 3993 "tree_bitset.m"
  {
#line 3993 "tree_bitset.m"
    struct mercury__tree_bitset__fold_bits_7_p_7_env_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__fold_bits_7_p_7_env_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3995 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__V_28_28 = ((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__Offset_10 + (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__HalfSize_15);
#line 3995 "tree_bitset.m"
    {
#line 3995 "tree_bitset.m"
      mercury__tree_bitset__fold_bits_7_p_7((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__TypeInfo_for_U_31, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__Dir_8, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__P_9, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__V_28_28, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__HighBits_18, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__HalfSize_15, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__STATE_VARIABLE_Acc_27_27, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__STATE_VARIABLE_Acc_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_7_env_0__cont_env_ptr);
#line 3995 "tree_bitset.m"
      return;
    }
#line 3993 "tree_bitset.m"
  }
#line 3993 "tree_bitset.m"
}

#line 3967 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__fold_bits_7_p_7(
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3967 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3967 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3967 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3967 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3967 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3967 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20,
#line 3967 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3967 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3967 "tree_bitset.m"
{
#line 3967 "tree_bitset.m"
  {
#line 3967 "tree_bitset.m"
    struct mercury__tree_bitset__fold_bits_7_p_7_env_0_s mercury__tree_bitset__env;

#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__TypeInfo_for_U_31 = mercury__tree_bitset__TypeInfo_for_U_31;
#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__TypeClassInfo_for_enum_30 = mercury__tree_bitset__TypeClassInfo_for_enum_30;
#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__Dir_8 = mercury__tree_bitset__Dir_8;
#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__P_9 = mercury__tree_bitset__P_9;
#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__Offset_10 = mercury__tree_bitset__Offset_10;
#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_20;
#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__cont = mercury__tree_bitset__cont;
#line 3967 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
      if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
        {
#line 3977 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__STATE_VARIABLE_Acc_20) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3977 "tree_bitset.m"
          {
#line 3977 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__cont)((mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__cont_env_ptr);
#line 3977 "tree_bitset.m"
            return;
          }
#line 3977 "tree_bitset.m"
        }
#line 3979 "tree_bitset.m"
      else
#line 3982 "tree_bitset.m"
        {
#line 3979 "tree_bitset.m"
          mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
          if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
            {
#line 3980 "tree_bitset.m"
              MR_Box mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
              MR_Box mercury__tree_bitset__Elem0_34;
#line 42343 "tree_bitset.c"
              MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 3981 "tree_bitset.m"
              void MR_CALL (* mercury__tree_bitset__func_1)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Cont, void *);

#line 42348 "tree_bitset.c"
              {
#line 42350 "tree_bitset.c"
                mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__TypeClassInfo_for_enum_30), ((MR_Box) ((mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__Offset_10)), &mercury__tree_bitset__Elem0_34);
              }
#line 565 "tree_bitset.m"
              if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_34;
#line 565 "tree_bitset.m"
              else
#line 568 "tree_bitset.m"
                {
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                    return;
                  }
#line 568 "tree_bitset.m"
                }
#line 3981 "tree_bitset.m"
              mercury__tree_bitset__func_1 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Cont, void *)) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
              {
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_1(((MR_Box) (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__P_9), mercury__tree_bitset__Elem_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__STATE_VARIABLE_Acc_20, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__cont, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__cont_env_ptr);
#line 3981 "tree_bitset.m"
                return;
              }
#line 3980 "tree_bitset.m"
            }
#line 3982 "tree_bitset.m"
          else
#line 3983 "tree_bitset.m"
            {
#line 3983 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_39_39;

#line 3983 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3645 "tree_bitset.m"
              mercury__tree_bitset__V_39_39 = ((MR_Integer) -1 << (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__HalfSize_15);
#line 3645 "tree_bitset.m"
              mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_39_39);
#line 3987 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
              mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__HalfSize_15);
#line 3990 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
              if (((mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                {
#line 3997 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__V_24_24 = ((mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__Offset_10 + (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__HalfSize_15);

#line 3998 "tree_bitset.m"
                  {
#line 3998 "tree_bitset.m"
                    mercury__tree_bitset__fold_bits_7_p_7((mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__TypeInfo_for_U_31, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__Dir_8, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__P_9, mercury__tree_bitset__V_24_24, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__HighBits_18, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &(mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__STATE_VARIABLE_Acc_25_25, mercury__tree_bitset__fold_bits_7_p_7_1, &mercury__tree_bitset__env);
                  }
#line 3997 "tree_bitset.m"
                }
#line 3996 "tree_bitset.m"
              else
#line 3993 "tree_bitset.m"
                {
#line 3994 "tree_bitset.m"
                  {
#line 3994 "tree_bitset.m"
                    mercury__tree_bitset__fold_bits_7_p_7((mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__TypeInfo_for_U_31, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__Dir_8, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__P_9, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__Offset_10, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__LowBits_17, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &(mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_7_env_0__STATE_VARIABLE_Acc_27_27, mercury__tree_bitset__fold_bits_7_p_7_2, &mercury__tree_bitset__env);
                  }
#line 3993 "tree_bitset.m"
                }
#line 3983 "tree_bitset.m"
            }
#line 3982 "tree_bitset.m"
        }
#line 3979 "tree_bitset.m"
    }
#line 3967 "tree_bitset.m"
  }
#line 3967 "tree_bitset.m"
}

#line 3997 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__fold_bits_7_p_6_1(
#line 3997 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3997 "tree_bitset.m"
{
#line 3997 "tree_bitset.m"
  {
#line 3997 "tree_bitset.m"
    struct mercury__tree_bitset__fold_bits_7_p_6_env_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__fold_bits_7_p_6_env_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3999 "tree_bitset.m"
    {
#line 3999 "tree_bitset.m"
      mercury__tree_bitset__fold_bits_7_p_6((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__TypeInfo_for_U_31, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__Dir_8, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__P_9, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__Offset_10, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__LowBits_17, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__HalfSize_15, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__STATE_VARIABLE_Acc_25_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__STATE_VARIABLE_Acc_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__cont_env_ptr);
#line 3999 "tree_bitset.m"
      return;
    }
#line 3997 "tree_bitset.m"
  }
#line 3997 "tree_bitset.m"
}

#line 3993 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__fold_bits_7_p_6_2(
#line 3993 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3993 "tree_bitset.m"
{
#line 3993 "tree_bitset.m"
  {
#line 3993 "tree_bitset.m"
    struct mercury__tree_bitset__fold_bits_7_p_6_env_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__fold_bits_7_p_6_env_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3995 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__V_28_28 = ((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__Offset_10 + (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__HalfSize_15);
#line 3995 "tree_bitset.m"
    {
#line 3995 "tree_bitset.m"
      mercury__tree_bitset__fold_bits_7_p_6((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__TypeInfo_for_U_31, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__Dir_8, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__P_9, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__V_28_28, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__HighBits_18, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__HalfSize_15, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__STATE_VARIABLE_Acc_27_27, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__STATE_VARIABLE_Acc_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__fold_bits_7_p_6_env_0__cont_env_ptr);
#line 3995 "tree_bitset.m"
      return;
    }
#line 3993 "tree_bitset.m"
  }
#line 3993 "tree_bitset.m"
}

#line 3965 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__fold_bits_7_p_6(
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3965 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3965 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3965 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3965 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3965 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3965 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20,
#line 3965 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3965 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3965 "tree_bitset.m"
{
#line 3965 "tree_bitset.m"
  {
#line 3965 "tree_bitset.m"
    struct mercury__tree_bitset__fold_bits_7_p_6_env_0_s mercury__tree_bitset__env;

#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__TypeInfo_for_U_31 = mercury__tree_bitset__TypeInfo_for_U_31;
#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__TypeClassInfo_for_enum_30 = mercury__tree_bitset__TypeClassInfo_for_enum_30;
#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__Dir_8 = mercury__tree_bitset__Dir_8;
#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__P_9 = mercury__tree_bitset__P_9;
#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__Offset_10 = mercury__tree_bitset__Offset_10;
#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_20;
#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__cont = mercury__tree_bitset__cont;
#line 3965 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
      if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
        {
#line 3977 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__STATE_VARIABLE_Acc_20) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3977 "tree_bitset.m"
          {
#line 3977 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__cont)((mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__cont_env_ptr);
#line 3977 "tree_bitset.m"
            return;
          }
#line 3977 "tree_bitset.m"
        }
#line 3979 "tree_bitset.m"
      else
#line 3982 "tree_bitset.m"
        {
#line 3979 "tree_bitset.m"
          mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
          if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
            {
#line 3980 "tree_bitset.m"
              MR_Box mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
              MR_Box mercury__tree_bitset__Elem0_34;
#line 42572 "tree_bitset.c"
              MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 3981 "tree_bitset.m"
              void MR_CALL (* mercury__tree_bitset__func_1)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Cont, void *);

#line 42577 "tree_bitset.c"
              {
#line 42579 "tree_bitset.c"
                mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__TypeClassInfo_for_enum_30), ((MR_Box) ((mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__Offset_10)), &mercury__tree_bitset__Elem0_34);
              }
#line 565 "tree_bitset.m"
              if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_34;
#line 565 "tree_bitset.m"
              else
#line 568 "tree_bitset.m"
                {
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                    return;
                  }
#line 568 "tree_bitset.m"
                }
#line 3981 "tree_bitset.m"
              mercury__tree_bitset__func_1 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *, MR_Cont, void *)) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
              {
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_1(((MR_Box) (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__P_9), mercury__tree_bitset__Elem_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__STATE_VARIABLE_Acc_20, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__cont, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__cont_env_ptr);
#line 3981 "tree_bitset.m"
                return;
              }
#line 3980 "tree_bitset.m"
            }
#line 3982 "tree_bitset.m"
          else
#line 3983 "tree_bitset.m"
            {
#line 3983 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_39_39;

#line 3983 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3645 "tree_bitset.m"
              mercury__tree_bitset__V_39_39 = ((MR_Integer) -1 << (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__HalfSize_15);
#line 3645 "tree_bitset.m"
              mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_39_39);
#line 3987 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
              mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__HalfSize_15);
#line 3990 "tree_bitset.m"
              (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
              if (((mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                {
#line 3997 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__V_24_24 = ((mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__Offset_10 + (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__HalfSize_15);

#line 3998 "tree_bitset.m"
                  {
#line 3998 "tree_bitset.m"
                    mercury__tree_bitset__fold_bits_7_p_6((mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__TypeInfo_for_U_31, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__Dir_8, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__P_9, mercury__tree_bitset__V_24_24, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__HighBits_18, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &(mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__STATE_VARIABLE_Acc_25_25, mercury__tree_bitset__fold_bits_7_p_6_1, &mercury__tree_bitset__env);
                  }
#line 3997 "tree_bitset.m"
                }
#line 3996 "tree_bitset.m"
              else
#line 3993 "tree_bitset.m"
                {
#line 3994 "tree_bitset.m"
                  {
#line 3994 "tree_bitset.m"
                    mercury__tree_bitset__fold_bits_7_p_6((mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__TypeInfo_for_U_31, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__TypeClassInfo_for_enum_30, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__Dir_8, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__P_9, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__Offset_10, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__LowBits_17, (mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &(mercury__tree_bitset__env).mercury__tree_bitset__fold_bits_7_p_6_env_0__STATE_VARIABLE_Acc_27_27, mercury__tree_bitset__fold_bits_7_p_6_2, &mercury__tree_bitset__env);
                  }
#line 3993 "tree_bitset.m"
                }
#line 3983 "tree_bitset.m"
            }
#line 3982 "tree_bitset.m"
        }
#line 3979 "tree_bitset.m"
    }
#line 3965 "tree_bitset.m"
  }
#line 3965 "tree_bitset.m"
}

#line 3963 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__fold_bits_7_p_5(
#line 3963 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3963 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3963 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3963 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3963 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3963 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3963 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3963 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3963 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3963 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          {
#line 3977 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3977 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3977 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem0_34;
#line 42727 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 3981 "tree_bitset.m"
                MR_bool MR_CALL (* mercury__tree_bitset__func_1)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 42732 "tree_bitset.c"
                {
#line 42734 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__Elem0_34);
                }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_34;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_1 = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  return mercury__tree_bitset__succeeded = mercury__tree_bitset__func_1(((MR_Box) mercury__tree_bitset__P_9), mercury__tree_bitset__Elem_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_39_39 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_39_39);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__fold_bits_7_p_5(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3997 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 3999 "tree_bitset.m"
                      {
#line 3999 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                        {
#line 3999 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                        }
#line 3999 "tree_bitset.m"
                        continue;
#line 3999 "tree_bitset.m"
                      }
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__fold_bits_7_p_5(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3993 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 3993 "tree_bitset.m"
                      {
#line 3995 "tree_bitset.m"
                        mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                        {
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                        }
#line 3995 "tree_bitset.m"
                        continue;
#line 3993 "tree_bitset.m"
                      }
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3963 "tree_bitset.m"
}

#line 3961 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__fold_bits_7_p_4(
#line 3961 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3961 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3961 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3961 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3961 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3961 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3961 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3961 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3961 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3961 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          {
#line 3977 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3977 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3977 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem0_34;
#line 42951 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 3981 "tree_bitset.m"
                MR_bool MR_CALL (* mercury__tree_bitset__func_1)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 42956 "tree_bitset.c"
                {
#line 42958 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__Elem0_34);
                }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_34;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_1 = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  return mercury__tree_bitset__succeeded = mercury__tree_bitset__func_1(((MR_Box) mercury__tree_bitset__P_9), mercury__tree_bitset__Elem_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_39_39 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_39_39);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__fold_bits_7_p_4(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3997 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 3999 "tree_bitset.m"
                      {
#line 3999 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                        {
#line 3999 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                        }
#line 3999 "tree_bitset.m"
                        continue;
#line 3999 "tree_bitset.m"
                      }
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__fold_bits_7_p_4(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3993 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 3993 "tree_bitset.m"
                      {
#line 3995 "tree_bitset.m"
                        mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                        {
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                        }
#line 3995 "tree_bitset.m"
                        continue;
#line 3993 "tree_bitset.m"
                      }
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3961 "tree_bitset.m"
}

#line 3959 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__fold_bits_7_p_3(
#line 3959 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3959 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3959 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3959 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3959 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3959 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3959 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3959 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3959 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3959 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          {
#line 3977 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3977 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3977 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem0_34;
#line 43175 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 3981 "tree_bitset.m"
                MR_bool MR_CALL (* mercury__tree_bitset__func_1)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 43180 "tree_bitset.c"
                {
#line 43182 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__Elem0_34);
                }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_34;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_1 = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  return mercury__tree_bitset__succeeded = mercury__tree_bitset__func_1(((MR_Box) mercury__tree_bitset__P_9), mercury__tree_bitset__Elem_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_39_39 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_39_39);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__fold_bits_7_p_3(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3997 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 3999 "tree_bitset.m"
                      {
#line 3999 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                        {
#line 3999 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                          mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                        }
#line 3999 "tree_bitset.m"
                        continue;
#line 3999 "tree_bitset.m"
                      }
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__fold_bits_7_p_3(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3993 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 3993 "tree_bitset.m"
                      {
#line 3995 "tree_bitset.m"
                        mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                        {
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                          MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                          mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                        }
#line 3995 "tree_bitset.m"
                        continue;
#line 3993 "tree_bitset.m"
                      }
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3959 "tree_bitset.m"
}

#line 3957 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__fold_bits_7_p_2(
#line 3957 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3957 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3957 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3957 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3957 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3957 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3957 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3957 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3957 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3957 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem0_34;
#line 43393 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 3981 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_1)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 43398 "tree_bitset.c"
                {
#line 43400 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__Elem0_34);
                }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_34;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_1 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  mercury__tree_bitset__func_1(((MR_Box) mercury__tree_bitset__P_9), mercury__tree_bitset__Elem_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
#line 3981 "tree_bitset.m"
                  return;
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_39_39 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_39_39);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__fold_bits_7_p_2(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3999 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                    {
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                    }
#line 3999 "tree_bitset.m"
                    continue;
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__fold_bits_7_p_2(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3995 "tree_bitset.m"
                    mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                    {
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                    }
#line 3995 "tree_bitset.m"
                    continue;
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3957 "tree_bitset.m"
}

#line 3955 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__fold_bits_7_p_1(
#line 3955 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3955 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3955 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3955 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3955 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3955 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3955 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3955 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3955 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3955 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem0_34;
#line 43601 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 3981 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_1)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 43606 "tree_bitset.c"
                {
#line 43608 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__Elem0_34);
                }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_34;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_1 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  mercury__tree_bitset__func_1(((MR_Box) mercury__tree_bitset__P_9), mercury__tree_bitset__Elem_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
#line 3981 "tree_bitset.m"
                  return;
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_39_39 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_39_39);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__fold_bits_7_p_1(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3999 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                    {
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                    }
#line 3999 "tree_bitset.m"
                    continue;
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__fold_bits_7_p_1(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3995 "tree_bitset.m"
                    mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                    {
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                    }
#line 3995 "tree_bitset.m"
                    continue;
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3955 "tree_bitset.m"
}

#line 3953 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__fold_bits_7_p_0(
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_31,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_30,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Dir_8,
#line 3953 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_9,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_11,
#line 3953 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_12,
#line 3953 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_19,
#line 3953 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_20)
#line 3953 "tree_bitset.m"
{
#line 3979 "tree_bitset.m"
  while (MR_TRUE)
#line 3979 "tree_bitset.m"
    {
#line 3979 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3979 "tree_bitset.m"
      {
#line 3979 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);

#line 3979 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3977 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_20 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_19;
#line 3979 "tree_bitset.m"
        else
#line 3982 "tree_bitset.m"
          {
#line 3979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_12 == (MR_Integer) 1);
#line 3982 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3980 "tree_bitset.m"
              {
#line 3980 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem_14;
#line 565 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem0_34;
#line 43809 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_30, (MR_Integer) 0)), (MR_Integer) 6)));
#line 3981 "tree_bitset.m"
                void MR_CALL (* mercury__tree_bitset__func_1)(MR_Box, MR_Box, MR_Box, MR_Box *);

#line 43814 "tree_bitset.c"
                {
#line 43816 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_30), ((MR_Box) (mercury__tree_bitset__Offset_10)), &mercury__tree_bitset__Elem0_34);
                }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_14 = mercury__tree_bitset__Elem0_34;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 3981 "tree_bitset.m"
                mercury__tree_bitset__func_1 = ((void MR_CALL (*)(MR_Box, MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__P_9, (MR_Integer) 1)));
#line 3981 "tree_bitset.m"
                {
#line 3981 "tree_bitset.m"
                  mercury__tree_bitset__func_1(((MR_Box) mercury__tree_bitset__P_9), mercury__tree_bitset__Elem_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, mercury__tree_bitset__STATE_VARIABLE_Acc_20);
#line 3981 "tree_bitset.m"
                  return;
                }
#line 3980 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
            else
#line 3983 "tree_bitset.m"
              {
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_15 = (mercury__tree_bitset__Size_12 >> (MR_Integer) 1);
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_16;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_17;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_18;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 3983 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_39_39 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_15);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_16 = ~(mercury__tree_bitset__V_39_39);
#line 3987 "tree_bitset.m"
                mercury__tree_bitset__LowBits_17 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__Bits_11);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits_11 >> mercury__tree_bitset__HalfSize_15);
#line 3990 "tree_bitset.m"
                mercury__tree_bitset__HighBits_18 = (mercury__tree_bitset__Mask_16 & mercury__tree_bitset__V_23_23);
#line 3996 "tree_bitset.m"
                if ((mercury__tree_bitset__Dir_8 == (MR_Integer) 1))
#line 3997 "tree_bitset.m"
                  {
#line 3997 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3997 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3998 "tree_bitset.m"
                    {
#line 3998 "tree_bitset.m"
                      mercury__tree_bitset__fold_bits_7_p_0(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__V_24_24, mercury__tree_bitset__HighBits_18, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_25_25);
                    }
#line 3999 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3999 "tree_bitset.m"
                    {
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__LowBits_17;
#line 3999 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3999 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_25_25;

#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3999 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3999 "tree_bitset.m"
                    }
#line 3999 "tree_bitset.m"
                    continue;
#line 3997 "tree_bitset.m"
                  }
#line 3996 "tree_bitset.m"
                else
#line 3993 "tree_bitset.m"
                  {
#line 3993 "tree_bitset.m"
                    MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;
#line 3993 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28;

#line 3994 "tree_bitset.m"
                    {
#line 3994 "tree_bitset.m"
                      mercury__tree_bitset__fold_bits_7_p_0(mercury__tree_bitset__TypeInfo_for_U_31, mercury__tree_bitset__TypeClassInfo_for_enum_30, mercury__tree_bitset__Dir_8, mercury__tree_bitset__P_9, mercury__tree_bitset__Offset_10, mercury__tree_bitset__LowBits_17, mercury__tree_bitset__HalfSize_15, mercury__tree_bitset__STATE_VARIABLE_Acc_0_19, &mercury__tree_bitset__STATE_VARIABLE_Acc_27_27);
                    }
#line 3995 "tree_bitset.m"
                    mercury__tree_bitset__V_28_28 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__HalfSize_15);
#line 3995 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3995 "tree_bitset.m"
                    {
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Offset__tmp_copy_10 = mercury__tree_bitset__V_28_28;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Bits__tmp_copy_11 = mercury__tree_bitset__HighBits_18;
#line 3995 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Size__tmp_copy_12 = mercury__tree_bitset__HalfSize_15;
#line 3995 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_27_27;

#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_19 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_19;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Size_12 = mercury__tree_bitset__Size__tmp_copy_12;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Bits_11 = mercury__tree_bitset__Bits__tmp_copy_11;
#line 3995 "tree_bitset.m"
                      mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Offset__tmp_copy_10;
#line 3995 "tree_bitset.m"
                    }
#line 3995 "tree_bitset.m"
                    continue;
#line 3993 "tree_bitset.m"
                  }
#line 3983 "tree_bitset.m"
              }
#line 3982 "tree_bitset.m"
          }
#line 3979 "tree_bitset.m"
      }
#line 3979 "tree_bitset.m"
      break;
#line 3979 "tree_bitset.m"
    }
#line 3953 "tree_bitset.m"
}

#line 3934 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldr2_pred_6_p_7(
#line 3934 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3934 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3934 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3934 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3934 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3934 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3934 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3934 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3934 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3934 "tree_bitset.m"
{
#line 3943 "tree_bitset.m"
  {
#line 3943 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
      {
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    else
#line 3944 "tree_bitset.m"
      {
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_26_26;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_31_31;

#line 3945 "tree_bitset.m"
        {
#line 3945 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldr2_pred_6_p_7(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_24_24);
        }
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldr2_pred_6_p_7

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 44042 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
        {
#line 3946 "tree_bitset.m"
          mercury__tree_bitset__fold2_bits_9_p_7(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_28_28, mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3946 "tree_bitset.m"
          return;
        }
#line 3944 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
  }
#line 3934 "tree_bitset.m"
}

#line 3932 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldr2_pred_6_p_6(
#line 3932 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3932 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3932 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3932 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3932 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3932 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3932 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3932 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3932 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3932 "tree_bitset.m"
{
#line 3943 "tree_bitset.m"
  {
#line 3943 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
      {
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    else
#line 3944 "tree_bitset.m"
      {
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_26_26;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_31_31;

#line 3945 "tree_bitset.m"
        {
#line 3945 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldr2_pred_6_p_6(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_24_24);
        }
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldr2_pred_6_p_6

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 44140 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
        {
#line 3946 "tree_bitset.m"
          mercury__tree_bitset__fold2_bits_9_p_6(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_28_28, mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3946 "tree_bitset.m"
          return;
        }
#line 3944 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
  }
#line 3932 "tree_bitset.m"
}

#line 3930 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldr2_pred_6_p_5(
#line 3930 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3930 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3930 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3930 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3930 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3930 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3930 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3930 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3930 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3930 "tree_bitset.m"
{
#line 3943 "tree_bitset.m"
  {
#line 3943 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
      {
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    else
#line 3944 "tree_bitset.m"
      {
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_26_26;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_31_31;

#line 3945 "tree_bitset.m"
        {
#line 3945 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldr2_pred_6_p_5(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_24_24);
        }
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldr2_pred_6_p_5

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 44238 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
        {
#line 3946 "tree_bitset.m"
          mercury__tree_bitset__fold2_bits_9_p_5(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_28_28, mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3946 "tree_bitset.m"
          return;
        }
#line 3944 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
  }
#line 3930 "tree_bitset.m"
}

#line 3944 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaf_foldr2_pred_6_p_4_1(
#line 3944 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3944 "tree_bitset.m"
{
#line 3944 "tree_bitset.m"
  {
#line 3944 "tree_bitset.m"
    struct mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3946 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__V_25_25 = (MR_Integer) 1;
#line 3946 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldr2_pred_6_p_4

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 44288 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
    {
#line 3946 "tree_bitset.m"
      mercury__tree_bitset__fold2_bits_9_p_4((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__TypeInfo_for_U_34, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__TypeInfo_for_V_35, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__TypeClassInfo_for_enum_33, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__V_25_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__V_26_26, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__V_31_31, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__V_28_28, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_23_23, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_24_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_6, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__cont_env_ptr);
#line 3946 "tree_bitset.m"
      return;
    }
#line 3944 "tree_bitset.m"
  }
#line 3944 "tree_bitset.m"
}

#line 3928 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldr2_pred_6_p_4(
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3928 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3928 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3928 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3928 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3928 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6,
#line 3928 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3928 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3928 "tree_bitset.m"
{
#line 3928 "tree_bitset.m"
  {
#line 3928 "tree_bitset.m"
    struct mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0_s mercury__tree_bitset__env;

#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__TypeInfo_for_U_34 = mercury__tree_bitset__TypeInfo_for_U_34;
#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__TypeInfo_for_V_35 = mercury__tree_bitset__TypeInfo_for_V_35;
#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__TypeClassInfo_for_enum_33 = mercury__tree_bitset__TypeClassInfo_for_enum_33;
#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__P_1 = mercury__tree_bitset__P_1;
#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_4;
#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_6;
#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__cont = mercury__tree_bitset__cont;
#line 3928 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3943 "tree_bitset.m"
    {
#line 3943 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
        {
#line 3943 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_6) = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_4) = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
          {
#line 3943 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__cont)((mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__cont_env_ptr);
#line 3943 "tree_bitset.m"
            return;
          }
#line 3943 "tree_bitset.m"
        }
#line 3943 "tree_bitset.m"
      else
#line 3944 "tree_bitset.m"
        {
#line 3944 "tree_bitset.m"
          MR_Word mercury__tree_bitset__T_16;

#line 3944 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
          mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3945 "tree_bitset.m"
          {
#line 3945 "tree_bitset.m"
            mercury__tree_bitset__leaf_foldr2_pred_6_p_4((mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__TypeInfo_for_U_34, (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__TypeInfo_for_V_35, (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__TypeClassInfo_for_enum_33, (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &(mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__leaf_foldr2_pred_6_p_4_1, &mercury__tree_bitset__env);
          }
#line 3944 "tree_bitset.m"
        }
#line 3943 "tree_bitset.m"
    }
#line 3928 "tree_bitset.m"
  }
#line 3928 "tree_bitset.m"
}

#line 3926 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__leaf_foldr2_pred_6_p_3(
#line 3926 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3926 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3926 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3926 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3926 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3926 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3926 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3926 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3926 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3926 "tree_bitset.m"
{
#line 3943 "tree_bitset.m"
  {
#line 3943 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
      {
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
        mercury__tree_bitset__succeeded = MR_TRUE;
#line 3943 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    else
#line 3944 "tree_bitset.m"
      {
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_25_25;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_26_26;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_31_31;

#line 3945 "tree_bitset.m"
        {
#line 3945 "tree_bitset.m"
          mercury__tree_bitset__succeeded = mercury__tree_bitset__leaf_foldr2_pred_6_p_3(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_24_24);
        }
#line 3944 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3944 "tree_bitset.m"
          {
#line 3946 "tree_bitset.m"
            mercury__tree_bitset__V_25_25 = (MR_Integer) 1;
#line 3946 "tree_bitset.m"
            mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
            mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldr2_pred_6_p_3

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 44489 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
            {
#line 3946 "tree_bitset.m"
              return mercury__tree_bitset__succeeded = mercury__tree_bitset__fold2_bits_9_p_3(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__V_25_25, mercury__tree_bitset__P_1, mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_28_28, mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
            }
#line 3944 "tree_bitset.m"
          }
#line 3944 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 3943 "tree_bitset.m"
  }
#line 3926 "tree_bitset.m"
}

#line 3924 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldr2_pred_6_p_2(
#line 3924 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3924 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3924 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3924 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3924 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3924 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3924 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3924 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3924 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3924 "tree_bitset.m"
{
#line 3943 "tree_bitset.m"
  {
#line 3943 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
      {
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    else
#line 3944 "tree_bitset.m"
      {
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_26_26;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_31_31;

#line 3945 "tree_bitset.m"
        {
#line 3945 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldr2_pred_6_p_2(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_24_24);
        }
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldr2_pred_6_p_2

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 44589 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
        {
#line 3946 "tree_bitset.m"
          mercury__tree_bitset__fold2_bits_9_p_2(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_28_28, mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3946 "tree_bitset.m"
          return;
        }
#line 3944 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
  }
#line 3924 "tree_bitset.m"
}

#line 3922 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldr2_pred_6_p_1(
#line 3922 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3922 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3922 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3922 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3922 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3922 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3922 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3922 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3922 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3922 "tree_bitset.m"
{
#line 3943 "tree_bitset.m"
  {
#line 3943 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
      {
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    else
#line 3944 "tree_bitset.m"
      {
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_26_26;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_31_31;

#line 3945 "tree_bitset.m"
        {
#line 3945 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldr2_pred_6_p_1(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_24_24);
        }
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldr2_pred_6_p_1

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 44687 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
        {
#line 3946 "tree_bitset.m"
          mercury__tree_bitset__fold2_bits_9_p_1(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_28_28, mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3946 "tree_bitset.m"
          return;
        }
#line 3944 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
  }
#line 3922 "tree_bitset.m"
}

#line 3920 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldr2_pred_6_p_0(
#line 3920 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3920 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3920 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3920 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3920 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3920 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3920 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3920 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3920 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3920 "tree_bitset.m"
{
#line 3943 "tree_bitset.m"
  {
#line 3943 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3943 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3943 "tree_bitset.m"
      {
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3943 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3943 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
    else
#line 3944 "tree_bitset.m"
      {
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3944 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_23_23;
#line 3944 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_24_24;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_26_26;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28;
#line 3944 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_31_31;

#line 3945 "tree_bitset.m"
        {
#line 3945 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldr2_pred_6_p_0(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_24_24);
        }
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3946 "tree_bitset.m"
        mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldr2_pred_6_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 44785 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_28_28  = Bits;
#line 171 "int.opt"
}
#line 3946 "tree_bitset.m"
        {
#line 3946 "tree_bitset.m"
          mercury__tree_bitset__fold2_bits_9_p_0(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_28_28, mercury__tree_bitset__STATE_VARIABLE_AccA_23_23, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_24_24, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3946 "tree_bitset.m"
          return;
        }
#line 3944 "tree_bitset.m"
      }
#line 3943 "tree_bitset.m"
  }
#line 3920 "tree_bitset.m"
}

#line 3897 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldr2_pred_6_p_7(
#line 3897 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3897 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3897 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3897 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3897 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3897 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3897 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3897 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3897 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3897 "tree_bitset.m"
{
#line 3906 "tree_bitset.m"
  while (MR_TRUE)
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3906 "tree_bitset.m"
      {
#line 3906 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        else
#line 3907 "tree_bitset.m"
          {
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34;

#line 3908 "tree_bitset.m"
            {
#line 3908 "tree_bitset.m"
              mercury__tree_bitset__do_foldr2_pred_6_p_7(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
              {
#line 3914 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3915 "tree_bitset.m"
                {
#line 3915 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_22;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3915 "tree_bitset.m"
                }
#line 3915 "tree_bitset.m"
                continue;
#line 3914 "tree_bitset.m"
              }
#line 3913 "tree_bitset.m"
            else
#line 3911 "tree_bitset.m"
              {
#line 3911 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
                {
#line 3912 "tree_bitset.m"
                  mercury__tree_bitset__leaf_foldr2_pred_6_p_7(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3912 "tree_bitset.m"
                  return;
                }
#line 3911 "tree_bitset.m"
              }
#line 3907 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
      }
#line 3906 "tree_bitset.m"
      break;
#line 3906 "tree_bitset.m"
    }
#line 3897 "tree_bitset.m"
}

#line 3895 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldr2_pred_6_p_6(
#line 3895 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3895 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3895 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3895 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3895 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3895 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3895 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3895 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3895 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3895 "tree_bitset.m"
{
#line 3906 "tree_bitset.m"
  while (MR_TRUE)
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3906 "tree_bitset.m"
      {
#line 3906 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        else
#line 3907 "tree_bitset.m"
          {
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34;

#line 3908 "tree_bitset.m"
            {
#line 3908 "tree_bitset.m"
              mercury__tree_bitset__do_foldr2_pred_6_p_6(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
              {
#line 3914 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3915 "tree_bitset.m"
                {
#line 3915 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_22;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3915 "tree_bitset.m"
                }
#line 3915 "tree_bitset.m"
                continue;
#line 3914 "tree_bitset.m"
              }
#line 3913 "tree_bitset.m"
            else
#line 3911 "tree_bitset.m"
              {
#line 3911 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
                {
#line 3912 "tree_bitset.m"
                  mercury__tree_bitset__leaf_foldr2_pred_6_p_6(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3912 "tree_bitset.m"
                  return;
                }
#line 3911 "tree_bitset.m"
              }
#line 3907 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
      }
#line 3906 "tree_bitset.m"
      break;
#line 3906 "tree_bitset.m"
    }
#line 3895 "tree_bitset.m"
}

#line 3893 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldr2_pred_6_p_5(
#line 3893 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3893 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3893 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3893 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3893 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3893 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3893 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3893 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3893 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3893 "tree_bitset.m"
{
#line 3906 "tree_bitset.m"
  while (MR_TRUE)
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3906 "tree_bitset.m"
      {
#line 3906 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        else
#line 3907 "tree_bitset.m"
          {
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34;

#line 3908 "tree_bitset.m"
            {
#line 3908 "tree_bitset.m"
              mercury__tree_bitset__do_foldr2_pred_6_p_5(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
              {
#line 3914 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3915 "tree_bitset.m"
                {
#line 3915 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_22;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3915 "tree_bitset.m"
                }
#line 3915 "tree_bitset.m"
                continue;
#line 3914 "tree_bitset.m"
              }
#line 3913 "tree_bitset.m"
            else
#line 3911 "tree_bitset.m"
              {
#line 3911 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
                {
#line 3912 "tree_bitset.m"
                  mercury__tree_bitset__leaf_foldr2_pred_6_p_5(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3912 "tree_bitset.m"
                  return;
                }
#line 3911 "tree_bitset.m"
              }
#line 3907 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
      }
#line 3906 "tree_bitset.m"
      break;
#line 3906 "tree_bitset.m"
    }
#line 3893 "tree_bitset.m"
}

#line 3907 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__do_foldr2_pred_6_p_4_1(
#line 3907 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3907 "tree_bitset.m"
{
#line 3907 "tree_bitset.m"
  {
#line 3907 "tree_bitset.m"
    struct mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3907 "tree_bitset.m"
    {
#line 3909 "tree_bitset.m"
      MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
      MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__H_15, (MR_Integer) 1)));

#line 3909 "tree_bitset.m"
      (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
      if (((MR_tag((MR_Word) (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
        {
#line 3914 "tree_bitset.m"
          MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
          {
#line 3915 "tree_bitset.m"
            mercury__tree_bitset__do_foldr2_pred_6_p_4((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__TypeInfo_for_U_36, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__TypeInfo_for_V_37, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__TypeClassInfo_for_enum_35, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__P_1, mercury__tree_bitset__InteriorNodes_22, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_27_27, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_28_28, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_6, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__cont_env_ptr);
#line 3915 "tree_bitset.m"
            return;
          }
#line 3914 "tree_bitset.m"
        }
#line 3913 "tree_bitset.m"
      else
#line 3911 "tree_bitset.m"
        {
#line 3911 "tree_bitset.m"
          MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
          {
#line 3912 "tree_bitset.m"
            mercury__tree_bitset__leaf_foldr2_pred_6_p_4((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__TypeInfo_for_U_36, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__TypeInfo_for_V_37, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__TypeClassInfo_for_enum_35, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__P_1, mercury__tree_bitset__LeafNodes_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_27_27, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_28_28, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_6, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__cont_env_ptr);
#line 3912 "tree_bitset.m"
            return;
          }
#line 3911 "tree_bitset.m"
        }
#line 3907 "tree_bitset.m"
    }
#line 3907 "tree_bitset.m"
  }
#line 3907 "tree_bitset.m"
}

#line 3891 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldr2_pred_6_p_4(
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3891 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3891 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3891 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3891 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3891 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6,
#line 3891 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3891 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3891 "tree_bitset.m"
{
#line 3891 "tree_bitset.m"
  {
#line 3891 "tree_bitset.m"
    struct mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0_s mercury__tree_bitset__env;

#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__TypeInfo_for_U_36 = mercury__tree_bitset__TypeInfo_for_U_36;
#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__TypeInfo_for_V_37 = mercury__tree_bitset__TypeInfo_for_V_37;
#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__TypeClassInfo_for_enum_35 = mercury__tree_bitset__TypeClassInfo_for_enum_35;
#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__P_1 = mercury__tree_bitset__P_1;
#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_4;
#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_6;
#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__cont = mercury__tree_bitset__cont;
#line 3891 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
        {
#line 3906 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_6) = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_4) = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__cont)((mercury__tree_bitset__env).mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__cont_env_ptr);
#line 3906 "tree_bitset.m"
            return;
          }
#line 3906 "tree_bitset.m"
        }
#line 3906 "tree_bitset.m"
      else
#line 3907 "tree_bitset.m"
        {
#line 3907 "tree_bitset.m"
          MR_Word mercury__tree_bitset__T_16;

#line 3907 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
          mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3908 "tree_bitset.m"
          {
#line 3908 "tree_bitset.m"
            mercury__tree_bitset__do_foldr2_pred_6_p_4((mercury__tree_bitset__env).mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__TypeInfo_for_U_36, (mercury__tree_bitset__env).mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__TypeInfo_for_V_37, (mercury__tree_bitset__env).mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__TypeClassInfo_for_enum_35, (mercury__tree_bitset__env).mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &(mercury__tree_bitset__env).mercury__tree_bitset__do_foldr2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__do_foldr2_pred_6_p_4_1, &mercury__tree_bitset__env);
          }
#line 3907 "tree_bitset.m"
        }
#line 3906 "tree_bitset.m"
    }
#line 3891 "tree_bitset.m"
  }
#line 3891 "tree_bitset.m"
}

#line 3889 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__do_foldr2_pred_6_p_3(
#line 3889 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3889 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3889 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3889 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3889 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3889 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3889 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3889 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3889 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3889 "tree_bitset.m"
{
#line 3906 "tree_bitset.m"
  while (MR_TRUE)
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3906 "tree_bitset.m"
      {
#line 3906 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3906 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        else
#line 3907 "tree_bitset.m"
          {
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34;

#line 3908 "tree_bitset.m"
            {
#line 3908 "tree_bitset.m"
              mercury__tree_bitset__succeeded = mercury__tree_bitset__do_foldr2_pred_6_p_3(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3907 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3907 "tree_bitset.m"
              {
#line 3909 "tree_bitset.m"
                mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
                mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3909 "tree_bitset.m"
                mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
                if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
                  {
#line 3914 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3915 "tree_bitset.m"
                    {
#line 3915 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_22;
#line 3915 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3915 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3915 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3915 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3915 "tree_bitset.m"
                      mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3915 "tree_bitset.m"
                    }
#line 3915 "tree_bitset.m"
                    continue;
#line 3914 "tree_bitset.m"
                  }
#line 3913 "tree_bitset.m"
                else
#line 3911 "tree_bitset.m"
                  {
#line 3911 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
                    {
#line 3912 "tree_bitset.m"
                      return mercury__tree_bitset__succeeded = mercury__tree_bitset__leaf_foldr2_pred_6_p_3(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
                    }
#line 3911 "tree_bitset.m"
                  }
#line 3907 "tree_bitset.m"
              }
#line 3907 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3906 "tree_bitset.m"
      }
#line 3906 "tree_bitset.m"
      break;
#line 3906 "tree_bitset.m"
    }
#line 3889 "tree_bitset.m"
}

#line 3887 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldr2_pred_6_p_2(
#line 3887 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3887 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3887 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3887 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3887 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3887 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3887 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3887 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3887 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3887 "tree_bitset.m"
{
#line 3906 "tree_bitset.m"
  while (MR_TRUE)
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3906 "tree_bitset.m"
      {
#line 3906 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        else
#line 3907 "tree_bitset.m"
          {
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34;

#line 3908 "tree_bitset.m"
            {
#line 3908 "tree_bitset.m"
              mercury__tree_bitset__do_foldr2_pred_6_p_2(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
              {
#line 3914 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3915 "tree_bitset.m"
                {
#line 3915 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_22;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3915 "tree_bitset.m"
                }
#line 3915 "tree_bitset.m"
                continue;
#line 3914 "tree_bitset.m"
              }
#line 3913 "tree_bitset.m"
            else
#line 3911 "tree_bitset.m"
              {
#line 3911 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
                {
#line 3912 "tree_bitset.m"
                  mercury__tree_bitset__leaf_foldr2_pred_6_p_2(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3912 "tree_bitset.m"
                  return;
                }
#line 3911 "tree_bitset.m"
              }
#line 3907 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
      }
#line 3906 "tree_bitset.m"
      break;
#line 3906 "tree_bitset.m"
    }
#line 3887 "tree_bitset.m"
}

#line 3885 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldr2_pred_6_p_1(
#line 3885 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3885 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3885 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3885 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3885 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3885 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3885 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3885 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3885 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3885 "tree_bitset.m"
{
#line 3906 "tree_bitset.m"
  while (MR_TRUE)
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3906 "tree_bitset.m"
      {
#line 3906 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        else
#line 3907 "tree_bitset.m"
          {
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34;

#line 3908 "tree_bitset.m"
            {
#line 3908 "tree_bitset.m"
              mercury__tree_bitset__do_foldr2_pred_6_p_1(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
              {
#line 3914 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3915 "tree_bitset.m"
                {
#line 3915 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_22;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3915 "tree_bitset.m"
                }
#line 3915 "tree_bitset.m"
                continue;
#line 3914 "tree_bitset.m"
              }
#line 3913 "tree_bitset.m"
            else
#line 3911 "tree_bitset.m"
              {
#line 3911 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
                {
#line 3912 "tree_bitset.m"
                  mercury__tree_bitset__leaf_foldr2_pred_6_p_1(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3912 "tree_bitset.m"
                  return;
                }
#line 3911 "tree_bitset.m"
              }
#line 3907 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
      }
#line 3906 "tree_bitset.m"
      break;
#line 3906 "tree_bitset.m"
    }
#line 3885 "tree_bitset.m"
}

#line 3883 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldr2_pred_6_p_0(
#line 3883 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3883 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3883 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3883 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3883 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3883 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3883 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3883 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3883 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3883 "tree_bitset.m"
{
#line 3906 "tree_bitset.m"
  while (MR_TRUE)
#line 3906 "tree_bitset.m"
    {
#line 3906 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3906 "tree_bitset.m"
      {
#line 3906 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3906 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3906 "tree_bitset.m"
          {
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3906 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3906 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
        else
#line 3907 "tree_bitset.m"
          {
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3907 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3907 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33;
#line 3909 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34;

#line 3908 "tree_bitset.m"
            {
#line 3908 "tree_bitset.m"
              mercury__tree_bitset__do_foldr2_pred_6_p_0(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__T_16, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3909 "tree_bitset.m"
            mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3913 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3914 "tree_bitset.m"
              {
#line 3914 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3914 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3915 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3915 "tree_bitset.m"
                {
#line 3915 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_22;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3915 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3915 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3915 "tree_bitset.m"
                }
#line 3915 "tree_bitset.m"
                continue;
#line 3914 "tree_bitset.m"
              }
#line 3913 "tree_bitset.m"
            else
#line 3911 "tree_bitset.m"
              {
#line 3911 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3912 "tree_bitset.m"
                {
#line 3912 "tree_bitset.m"
                  mercury__tree_bitset__leaf_foldr2_pred_6_p_0(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccA_4, mercury__tree_bitset__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__STATE_VARIABLE_AccB_6);
#line 3912 "tree_bitset.m"
                  return;
                }
#line 3911 "tree_bitset.m"
              }
#line 3907 "tree_bitset.m"
          }
#line 3906 "tree_bitset.m"
      }
#line 3906 "tree_bitset.m"
      break;
#line 3906 "tree_bitset.m"
    }
#line 3883 "tree_bitset.m"
}

#line 3867 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldr_pred_4_p_5(
#line 3867 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3867 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3867 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3867 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3867 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3867 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3867 "tree_bitset.m"
{
#line 3875 "tree_bitset.m"
  {
#line 3875 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3875 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3875 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3875 "tree_bitset.m"
    else
#line 3876 "tree_bitset.m"
      {
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3876 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_15_15;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_17_17;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_19_19;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_21_21;

#line 3877 "tree_bitset.m"
        {
#line 3877 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldr_pred_4_p_5(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_15_15);
        }
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldr_pred_4_p_5

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 45965 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_19_19  = Bits;
#line 171 "int.opt"
}
#line 3878 "tree_bitset.m"
        {
#line 3878 "tree_bitset.m"
          mercury__tree_bitset__fold_bits_7_p_8(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_17_17, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_15_15, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3878 "tree_bitset.m"
          return;
        }
#line 3876 "tree_bitset.m"
      }
#line 3875 "tree_bitset.m"
  }
#line 3867 "tree_bitset.m"
}

#line 3866 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldr_pred_4_p_4(
#line 3866 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3866 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3866 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3866 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3866 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3866 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3866 "tree_bitset.m"
{
#line 3875 "tree_bitset.m"
  {
#line 3875 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3875 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3875 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3875 "tree_bitset.m"
    else
#line 3876 "tree_bitset.m"
      {
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3876 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_15_15;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_17_17;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_19_19;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_21_21;

#line 3877 "tree_bitset.m"
        {
#line 3877 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldr_pred_4_p_4(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_15_15);
        }
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldr_pred_4_p_4

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 46049 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_19_19  = Bits;
#line 171 "int.opt"
}
#line 3878 "tree_bitset.m"
        {
#line 3878 "tree_bitset.m"
          mercury__tree_bitset__fold_bits_7_p_9(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_17_17, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_15_15, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3878 "tree_bitset.m"
          return;
        }
#line 3876 "tree_bitset.m"
      }
#line 3875 "tree_bitset.m"
  }
#line 3866 "tree_bitset.m"
}

#line 3876 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaf_foldr_pred_4_p_3_1(
#line 3876 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3876 "tree_bitset.m"
{
#line 3876 "tree_bitset.m"
  {
#line 3876 "tree_bitset.m"
    struct mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3878 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__V_16_16 = (MR_Integer) 1;
#line 3878 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__H_10, (MR_Integer) 0)));
#line 3878 "tree_bitset.m"
    (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldr_pred_4_p_3

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 46099 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__V_19_19  = Bits;
#line 171 "int.opt"
}
#line 3878 "tree_bitset.m"
    {
#line 3878 "tree_bitset.m"
      mercury__tree_bitset__fold_bits_7_p_6((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__TypeInfo_for_U_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__TypeClassInfo_for_enum_23, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__V_16_16, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__V_17_17, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__V_21_21, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__V_19_19, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__STATE_VARIABLE_Acc_15_15, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__STATE_VARIABLE_Acc_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__cont_env_ptr);
#line 3878 "tree_bitset.m"
      return;
    }
#line 3876 "tree_bitset.m"
  }
#line 3876 "tree_bitset.m"
}

#line 3865 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldr_pred_4_p_3(
#line 3865 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3865 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3865 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3865 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3865 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3865 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4,
#line 3865 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3865 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3865 "tree_bitset.m"
{
#line 3865 "tree_bitset.m"
  {
#line 3865 "tree_bitset.m"
    struct mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0_s mercury__tree_bitset__env;

#line 3865 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__TypeInfo_for_U_24 = mercury__tree_bitset__TypeInfo_for_U_24;
#line 3865 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__TypeClassInfo_for_enum_23 = mercury__tree_bitset__TypeClassInfo_for_enum_23;
#line 3865 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__P_1 = mercury__tree_bitset__P_1;
#line 3865 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_4;
#line 3865 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__cont = mercury__tree_bitset__cont;
#line 3865 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3875 "tree_bitset.m"
    {
#line 3875 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3875 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3875 "tree_bitset.m"
        {
#line 3875 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__STATE_VARIABLE_Acc_4) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3875 "tree_bitset.m"
          {
#line 3875 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__cont)((mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__cont_env_ptr);
#line 3875 "tree_bitset.m"
            return;
          }
#line 3875 "tree_bitset.m"
        }
#line 3875 "tree_bitset.m"
      else
#line 3876 "tree_bitset.m"
        {
#line 3876 "tree_bitset.m"
          MR_Word mercury__tree_bitset__T_11;

#line 3876 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3876 "tree_bitset.m"
          mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3877 "tree_bitset.m"
          {
#line 3877 "tree_bitset.m"
            mercury__tree_bitset__leaf_foldr_pred_4_p_3((mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__TypeInfo_for_U_24, (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__TypeClassInfo_for_enum_23, (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldr_pred_4_p_3_env_0__STATE_VARIABLE_Acc_15_15, mercury__tree_bitset__leaf_foldr_pred_4_p_3_1, &mercury__tree_bitset__env);
          }
#line 3876 "tree_bitset.m"
        }
#line 3875 "tree_bitset.m"
    }
#line 3865 "tree_bitset.m"
  }
#line 3865 "tree_bitset.m"
}

#line 3864 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__leaf_foldr_pred_4_p_2(
#line 3864 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3864 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3864 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3864 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3864 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3864 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3864 "tree_bitset.m"
{
#line 3875 "tree_bitset.m"
  {
#line 3875 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3875 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3875 "tree_bitset.m"
      {
#line 3875 "tree_bitset.m"
        *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3875 "tree_bitset.m"
        mercury__tree_bitset__succeeded = MR_TRUE;
#line 3875 "tree_bitset.m"
      }
#line 3875 "tree_bitset.m"
    else
#line 3876 "tree_bitset.m"
      {
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3876 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_15_15;
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_16_16;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_17_17;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_19_19;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_21_21;

#line 3877 "tree_bitset.m"
        {
#line 3877 "tree_bitset.m"
          mercury__tree_bitset__succeeded = mercury__tree_bitset__leaf_foldr_pred_4_p_2(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_15_15);
        }
#line 3876 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 3876 "tree_bitset.m"
          {
#line 3878 "tree_bitset.m"
            mercury__tree_bitset__V_16_16 = (MR_Integer) 1;
#line 3878 "tree_bitset.m"
            mercury__tree_bitset__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3878 "tree_bitset.m"
            mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldr_pred_4_p_2

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 46278 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_19_19  = Bits;
#line 171 "int.opt"
}
#line 3878 "tree_bitset.m"
            {
#line 3878 "tree_bitset.m"
              return mercury__tree_bitset__succeeded = mercury__tree_bitset__fold_bits_7_p_3(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__V_16_16, mercury__tree_bitset__P_1, mercury__tree_bitset__V_17_17, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_15_15, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
            }
#line 3876 "tree_bitset.m"
          }
#line 3876 "tree_bitset.m"
      }
#line 3875 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 3875 "tree_bitset.m"
  }
#line 3864 "tree_bitset.m"
}

#line 3863 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldr_pred_4_p_1(
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3863 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3863 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3863 "tree_bitset.m"
{
#line 3875 "tree_bitset.m"
  {
#line 3875 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3875 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3875 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3875 "tree_bitset.m"
    else
#line 3876 "tree_bitset.m"
      {
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3876 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_15_15;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_17_17;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_19_19;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_21_21;

#line 3877 "tree_bitset.m"
        {
#line 3877 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldr_pred_4_p_1(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_15_15);
        }
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldr_pred_4_p_1

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 46364 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_19_19  = Bits;
#line 171 "int.opt"
}
#line 3878 "tree_bitset.m"
        {
#line 3878 "tree_bitset.m"
          mercury__tree_bitset__fold_bits_7_p_0(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_17_17, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_15_15, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3878 "tree_bitset.m"
          return;
        }
#line 3876 "tree_bitset.m"
      }
#line 3875 "tree_bitset.m"
  }
#line 3863 "tree_bitset.m"
}

#line 3862 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldr_pred_4_p_0(
#line 3862 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3862 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3862 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3862 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3862 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3862 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3862 "tree_bitset.m"
{
#line 3875 "tree_bitset.m"
  {
#line 3875 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3875 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3875 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3875 "tree_bitset.m"
    else
#line 3876 "tree_bitset.m"
      {
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3876 "tree_bitset.m"
        MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3876 "tree_bitset.m"
        MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_15_15;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_17_17;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_19_19;
#line 3876 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_21_21;

#line 3877 "tree_bitset.m"
        {
#line 3877 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldr_pred_4_p_0(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_15_15);
        }
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3878 "tree_bitset.m"
        mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldr_pred_4_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 46448 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_19_19  = Bits;
#line 171 "int.opt"
}
#line 3878 "tree_bitset.m"
        {
#line 3878 "tree_bitset.m"
          mercury__tree_bitset__fold_bits_7_p_2(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 1, mercury__tree_bitset__P_1, mercury__tree_bitset__V_17_17, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_15_15, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3878 "tree_bitset.m"
          return;
        }
#line 3876 "tree_bitset.m"
      }
#line 3875 "tree_bitset.m"
  }
#line 3862 "tree_bitset.m"
}

#line 3841 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldr_pred_4_p_5(
#line 3841 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3841 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3841 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3841 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3841 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3841 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3841 "tree_bitset.m"
{
#line 3849 "tree_bitset.m"
  while (MR_TRUE)
#line 3849 "tree_bitset.m"
    {
#line 3849 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3849 "tree_bitset.m"
      {
#line 3849 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3849 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3849 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3849 "tree_bitset.m"
        else
#line 3850 "tree_bitset.m"
          {
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13;
#line 3850 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23;

#line 3851 "tree_bitset.m"
            {
#line 3851 "tree_bitset.m"
              mercury__tree_bitset__do_foldr_pred_4_p_5(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3856 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3857 "tree_bitset.m"
              {
#line 3857 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3857 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3858 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3858 "tree_bitset.m"
                {
#line 3858 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_16;
#line 3858 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3858 "tree_bitset.m"
                }
#line 3858 "tree_bitset.m"
                continue;
#line 3857 "tree_bitset.m"
              }
#line 3856 "tree_bitset.m"
            else
#line 3854 "tree_bitset.m"
              {
#line 3854 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3855 "tree_bitset.m"
                {
#line 3855 "tree_bitset.m"
                  mercury__tree_bitset__leaf_foldr_pred_4_p_5(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3855 "tree_bitset.m"
                  return;
                }
#line 3854 "tree_bitset.m"
              }
#line 3850 "tree_bitset.m"
          }
#line 3849 "tree_bitset.m"
      }
#line 3849 "tree_bitset.m"
      break;
#line 3849 "tree_bitset.m"
    }
#line 3841 "tree_bitset.m"
}

#line 3840 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldr_pred_4_p_4(
#line 3840 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3840 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3840 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3840 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3840 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3840 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3840 "tree_bitset.m"
{
#line 3849 "tree_bitset.m"
  while (MR_TRUE)
#line 3849 "tree_bitset.m"
    {
#line 3849 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3849 "tree_bitset.m"
      {
#line 3849 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3849 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3849 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3849 "tree_bitset.m"
        else
#line 3850 "tree_bitset.m"
          {
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13;
#line 3850 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23;

#line 3851 "tree_bitset.m"
            {
#line 3851 "tree_bitset.m"
              mercury__tree_bitset__do_foldr_pred_4_p_4(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3856 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3857 "tree_bitset.m"
              {
#line 3857 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3857 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3858 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3858 "tree_bitset.m"
                {
#line 3858 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_16;
#line 3858 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3858 "tree_bitset.m"
                }
#line 3858 "tree_bitset.m"
                continue;
#line 3857 "tree_bitset.m"
              }
#line 3856 "tree_bitset.m"
            else
#line 3854 "tree_bitset.m"
              {
#line 3854 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3855 "tree_bitset.m"
                {
#line 3855 "tree_bitset.m"
                  mercury__tree_bitset__leaf_foldr_pred_4_p_4(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3855 "tree_bitset.m"
                  return;
                }
#line 3854 "tree_bitset.m"
              }
#line 3850 "tree_bitset.m"
          }
#line 3849 "tree_bitset.m"
      }
#line 3849 "tree_bitset.m"
      break;
#line 3849 "tree_bitset.m"
    }
#line 3840 "tree_bitset.m"
}

#line 3850 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__do_foldr_pred_4_p_3_1(
#line 3850 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3850 "tree_bitset.m"
{
#line 3850 "tree_bitset.m"
  {
#line 3850 "tree_bitset.m"
    struct mercury__tree_bitset__do_foldr_pred_4_p_3_env_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__do_foldr_pred_4_p_3_env_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3850 "tree_bitset.m"
    {
#line 3852 "tree_bitset.m"
      MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__H_10, (MR_Integer) 0)));
#line 3852 "tree_bitset.m"
      MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__H_10, (MR_Integer) 1)));

#line 3852 "tree_bitset.m"
      (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__H_10, (MR_Integer) 2)));
#line 3856 "tree_bitset.m"
      if (((MR_tag((MR_Word) (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3857 "tree_bitset.m"
        {
#line 3857 "tree_bitset.m"
          MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__Components_13, (MR_Integer) 1)));
#line 3857 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__Components_13, (MR_Integer) 0)));

#line 3858 "tree_bitset.m"
          {
#line 3858 "tree_bitset.m"
            mercury__tree_bitset__do_foldr_pred_4_p_3((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__TypeInfo_for_U_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__P_1, mercury__tree_bitset__InteriorNodes_16, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__STATE_VARIABLE_Acc_19_19, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__STATE_VARIABLE_Acc_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__cont_env_ptr);
#line 3858 "tree_bitset.m"
            return;
          }
#line 3857 "tree_bitset.m"
        }
#line 3856 "tree_bitset.m"
      else
#line 3854 "tree_bitset.m"
        {
#line 3854 "tree_bitset.m"
          MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__Components_13, (MR_Integer) 0)));

#line 3855 "tree_bitset.m"
          {
#line 3855 "tree_bitset.m"
            mercury__tree_bitset__leaf_foldr_pred_4_p_3((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__TypeInfo_for_U_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__P_1, mercury__tree_bitset__LeafNodes_14, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__STATE_VARIABLE_Acc_19_19, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__STATE_VARIABLE_Acc_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__cont_env_ptr);
#line 3855 "tree_bitset.m"
            return;
          }
#line 3854 "tree_bitset.m"
        }
#line 3850 "tree_bitset.m"
    }
#line 3850 "tree_bitset.m"
  }
#line 3850 "tree_bitset.m"
}

#line 3839 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldr_pred_4_p_3(
#line 3839 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3839 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3839 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3839 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3839 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3839 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4,
#line 3839 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3839 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3839 "tree_bitset.m"
{
#line 3839 "tree_bitset.m"
  {
#line 3839 "tree_bitset.m"
    struct mercury__tree_bitset__do_foldr_pred_4_p_3_env_0_s mercury__tree_bitset__env;

#line 3839 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__TypeInfo_for_U_25 = mercury__tree_bitset__TypeInfo_for_U_25;
#line 3839 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__TypeClassInfo_for_enum_24 = mercury__tree_bitset__TypeClassInfo_for_enum_24;
#line 3839 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__P_1 = mercury__tree_bitset__P_1;
#line 3839 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_4;
#line 3839 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__cont = mercury__tree_bitset__cont;
#line 3839 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3849 "tree_bitset.m"
    {
#line 3849 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3849 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3849 "tree_bitset.m"
        {
#line 3849 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__STATE_VARIABLE_Acc_4) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3849 "tree_bitset.m"
          {
#line 3849 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__cont)((mercury__tree_bitset__env).mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__cont_env_ptr);
#line 3849 "tree_bitset.m"
            return;
          }
#line 3849 "tree_bitset.m"
        }
#line 3849 "tree_bitset.m"
      else
#line 3850 "tree_bitset.m"
        {
#line 3850 "tree_bitset.m"
          MR_Word mercury__tree_bitset__T_11;

#line 3850 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3850 "tree_bitset.m"
          mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3851 "tree_bitset.m"
          {
#line 3851 "tree_bitset.m"
            mercury__tree_bitset__do_foldr_pred_4_p_3((mercury__tree_bitset__env).mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__TypeInfo_for_U_25, (mercury__tree_bitset__env).mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env).mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__do_foldr_pred_4_p_3_env_0__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__do_foldr_pred_4_p_3_1, &mercury__tree_bitset__env);
          }
#line 3850 "tree_bitset.m"
        }
#line 3849 "tree_bitset.m"
    }
#line 3839 "tree_bitset.m"
  }
#line 3839 "tree_bitset.m"
}

#line 3838 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__do_foldr_pred_4_p_2(
#line 3838 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3838 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3838 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3838 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3838 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3838 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3838 "tree_bitset.m"
{
#line 3849 "tree_bitset.m"
  while (MR_TRUE)
#line 3849 "tree_bitset.m"
    {
#line 3849 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3849 "tree_bitset.m"
      {
#line 3849 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3849 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3849 "tree_bitset.m"
          {
#line 3849 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3849 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3849 "tree_bitset.m"
          }
#line 3849 "tree_bitset.m"
        else
#line 3850 "tree_bitset.m"
          {
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13;
#line 3850 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23;

#line 3851 "tree_bitset.m"
            {
#line 3851 "tree_bitset.m"
              mercury__tree_bitset__succeeded = mercury__tree_bitset__do_foldr_pred_4_p_2(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3850 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3850 "tree_bitset.m"
              {
#line 3852 "tree_bitset.m"
                mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3852 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 3852 "tree_bitset.m"
                mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3856 "tree_bitset.m"
                if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3857 "tree_bitset.m"
                  {
#line 3857 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3857 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3858 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 3858 "tree_bitset.m"
                    {
#line 3858 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_16;
#line 3858 "tree_bitset.m"
                      MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3858 "tree_bitset.m"
                      mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3858 "tree_bitset.m"
                      mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3858 "tree_bitset.m"
                    }
#line 3858 "tree_bitset.m"
                    continue;
#line 3857 "tree_bitset.m"
                  }
#line 3856 "tree_bitset.m"
                else
#line 3854 "tree_bitset.m"
                  {
#line 3854 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3855 "tree_bitset.m"
                    {
#line 3855 "tree_bitset.m"
                      return mercury__tree_bitset__succeeded = mercury__tree_bitset__leaf_foldr_pred_4_p_2(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
                    }
#line 3854 "tree_bitset.m"
                  }
#line 3850 "tree_bitset.m"
              }
#line 3850 "tree_bitset.m"
          }
#line 3849 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3849 "tree_bitset.m"
      }
#line 3849 "tree_bitset.m"
      break;
#line 3849 "tree_bitset.m"
    }
#line 3838 "tree_bitset.m"
}

#line 3837 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldr_pred_4_p_1(
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3837 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3837 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3837 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3837 "tree_bitset.m"
{
#line 3849 "tree_bitset.m"
  while (MR_TRUE)
#line 3849 "tree_bitset.m"
    {
#line 3849 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3849 "tree_bitset.m"
      {
#line 3849 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3849 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3849 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3849 "tree_bitset.m"
        else
#line 3850 "tree_bitset.m"
          {
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13;
#line 3850 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23;

#line 3851 "tree_bitset.m"
            {
#line 3851 "tree_bitset.m"
              mercury__tree_bitset__do_foldr_pred_4_p_1(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3856 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3857 "tree_bitset.m"
              {
#line 3857 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3857 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3858 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3858 "tree_bitset.m"
                {
#line 3858 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_16;
#line 3858 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3858 "tree_bitset.m"
                }
#line 3858 "tree_bitset.m"
                continue;
#line 3857 "tree_bitset.m"
              }
#line 3856 "tree_bitset.m"
            else
#line 3854 "tree_bitset.m"
              {
#line 3854 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3855 "tree_bitset.m"
                {
#line 3855 "tree_bitset.m"
                  mercury__tree_bitset__leaf_foldr_pred_4_p_1(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3855 "tree_bitset.m"
                  return;
                }
#line 3854 "tree_bitset.m"
              }
#line 3850 "tree_bitset.m"
          }
#line 3849 "tree_bitset.m"
      }
#line 3849 "tree_bitset.m"
      break;
#line 3849 "tree_bitset.m"
    }
#line 3837 "tree_bitset.m"
}

#line 3836 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldr_pred_4_p_0(
#line 3836 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3836 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3836 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3836 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3836 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3836 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3836 "tree_bitset.m"
{
#line 3849 "tree_bitset.m"
  while (MR_TRUE)
#line 3849 "tree_bitset.m"
    {
#line 3849 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3849 "tree_bitset.m"
      {
#line 3849 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3849 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3849 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3849 "tree_bitset.m"
        else
#line 3850 "tree_bitset.m"
          {
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3850 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13;
#line 3850 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22;
#line 3852 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23;

#line 3851 "tree_bitset.m"
            {
#line 3851 "tree_bitset.m"
              mercury__tree_bitset__do_foldr_pred_4_p_0(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__T_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 3852 "tree_bitset.m"
            mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3856 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3857 "tree_bitset.m"
              {
#line 3857 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3857 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3858 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3858 "tree_bitset.m"
                {
#line 3858 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__InteriorNodes_16;
#line 3858 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3858 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3858 "tree_bitset.m"
                }
#line 3858 "tree_bitset.m"
                continue;
#line 3857 "tree_bitset.m"
              }
#line 3856 "tree_bitset.m"
            else
#line 3854 "tree_bitset.m"
              {
#line 3854 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3855 "tree_bitset.m"
                {
#line 3855 "tree_bitset.m"
                  mercury__tree_bitset__leaf_foldr_pred_4_p_0(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__STATE_VARIABLE_Acc_4);
#line 3855 "tree_bitset.m"
                  return;
                }
#line 3854 "tree_bitset.m"
              }
#line 3850 "tree_bitset.m"
          }
#line 3849 "tree_bitset.m"
      }
#line 3849 "tree_bitset.m"
      break;
#line 3849 "tree_bitset.m"
    }
#line 3836 "tree_bitset.m"
}

#line 3797 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldl2_pred_6_p_7(
#line 3797 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3797 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3797 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3797 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3797 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3797 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3797 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3797 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3797 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3797 "tree_bitset.m"
{
#line 3803 "tree_bitset.m"
  while (MR_TRUE)
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3803 "tree_bitset.m"
      {
#line 3803 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        else
#line 3804 "tree_bitset.m"
          {
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldl2_pred_6_p_7

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 47275 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
            {
#line 3805 "tree_bitset.m"
              mercury__tree_bitset__fold2_bits_9_p_7(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3807 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3807 "tree_bitset.m"
            {
#line 3807 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3807 "tree_bitset.m"
            }
#line 3807 "tree_bitset.m"
            continue;
#line 3804 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
      }
#line 3803 "tree_bitset.m"
      break;
#line 3803 "tree_bitset.m"
    }
#line 3797 "tree_bitset.m"
}

#line 3795 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldl2_pred_6_p_6(
#line 3795 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3795 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3795 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3795 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3795 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3795 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3795 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3795 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3795 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3795 "tree_bitset.m"
{
#line 3803 "tree_bitset.m"
  while (MR_TRUE)
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3803 "tree_bitset.m"
      {
#line 3803 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        else
#line 3804 "tree_bitset.m"
          {
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldl2_pred_6_p_6

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 47393 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
            {
#line 3805 "tree_bitset.m"
              mercury__tree_bitset__fold2_bits_9_p_6(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3807 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3807 "tree_bitset.m"
            {
#line 3807 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3807 "tree_bitset.m"
            }
#line 3807 "tree_bitset.m"
            continue;
#line 3804 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
      }
#line 3803 "tree_bitset.m"
      break;
#line 3803 "tree_bitset.m"
    }
#line 3795 "tree_bitset.m"
}

#line 3793 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldl2_pred_6_p_5(
#line 3793 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3793 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3793 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3793 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3793 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3793 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3793 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3793 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3793 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3793 "tree_bitset.m"
{
#line 3803 "tree_bitset.m"
  while (MR_TRUE)
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3803 "tree_bitset.m"
      {
#line 3803 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        else
#line 3804 "tree_bitset.m"
          {
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldl2_pred_6_p_5

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 47511 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
            {
#line 3805 "tree_bitset.m"
              mercury__tree_bitset__fold2_bits_9_p_5(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3807 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3807 "tree_bitset.m"
            {
#line 3807 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3807 "tree_bitset.m"
            }
#line 3807 "tree_bitset.m"
            continue;
#line 3804 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
      }
#line 3803 "tree_bitset.m"
      break;
#line 3803 "tree_bitset.m"
    }
#line 3793 "tree_bitset.m"
}

#line 3804 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaf_foldl2_pred_6_p_4_1(
#line 3804 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3804 "tree_bitset.m"
{
#line 3804 "tree_bitset.m"
  {
#line 3804 "tree_bitset.m"
    struct mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3807 "tree_bitset.m"
    {
#line 3807 "tree_bitset.m"
      mercury__tree_bitset__leaf_foldl2_pred_6_p_4((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__TypeInfo_for_U_34, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__TypeInfo_for_V_35, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__TypeClassInfo_for_enum_33, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__T_16, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_27_27, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_28_28, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_6, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__cont_env_ptr);
#line 3807 "tree_bitset.m"
      return;
    }
#line 3804 "tree_bitset.m"
  }
#line 3804 "tree_bitset.m"
}

#line 3791 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldl2_pred_6_p_4(
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3791 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3791 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3791 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3791 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3791 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6,
#line 3791 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3791 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3791 "tree_bitset.m"
{
#line 3791 "tree_bitset.m"
  {
#line 3791 "tree_bitset.m"
    struct mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0_s mercury__tree_bitset__env;

#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__TypeInfo_for_U_34 = mercury__tree_bitset__TypeInfo_for_U_34;
#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__TypeInfo_for_V_35 = mercury__tree_bitset__TypeInfo_for_V_35;
#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__TypeClassInfo_for_enum_33 = mercury__tree_bitset__TypeClassInfo_for_enum_33;
#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__P_1 = mercury__tree_bitset__P_1;
#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_4;
#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_6;
#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__cont = mercury__tree_bitset__cont;
#line 3791 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
        {
#line 3803 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_6) = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_4) = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__cont)((mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__cont_env_ptr);
#line 3803 "tree_bitset.m"
            return;
          }
#line 3803 "tree_bitset.m"
        }
#line 3803 "tree_bitset.m"
      else
#line 3804 "tree_bitset.m"
        {
#line 3804 "tree_bitset.m"
          MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_24_24;
#line 3804 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_31_31;

#line 3804 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3805 "tree_bitset.m"
          mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3805 "tree_bitset.m"
          mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldl2_pred_6_p_4

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 47679 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
          {
#line 3805 "tree_bitset.m"
            mercury__tree_bitset__fold2_bits_9_p_4((mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__TypeInfo_for_U_34, (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__TypeInfo_for_V_35, (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__TypeClassInfo_for_enum_33, (MR_Integer) 0, (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &(mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_28_28, mercury__tree_bitset__leaf_foldl2_pred_6_p_4_1, &mercury__tree_bitset__env);
          }
#line 3804 "tree_bitset.m"
        }
#line 3803 "tree_bitset.m"
    }
#line 3791 "tree_bitset.m"
  }
#line 3791 "tree_bitset.m"
}

#line 3789 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__leaf_foldl2_pred_6_p_3(
#line 3789 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3789 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3789 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3789 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3789 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3789 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3789 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3789 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3789 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3789 "tree_bitset.m"
{
#line 3803 "tree_bitset.m"
  while (MR_TRUE)
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3803 "tree_bitset.m"
      {
#line 3803 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3803 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        else
#line 3804 "tree_bitset.m"
          {
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldl2_pred_6_p_3

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 47776 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
            {
#line 3805 "tree_bitset.m"
              mercury__tree_bitset__succeeded = mercury__tree_bitset__fold2_bits_9_p_3(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3804 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3807 "tree_bitset.m"
              {
#line 3807 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3807 "tree_bitset.m"
                {
#line 3807 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3807 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3807 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3807 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3807 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3807 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3807 "tree_bitset.m"
                }
#line 3807 "tree_bitset.m"
                continue;
#line 3807 "tree_bitset.m"
              }
#line 3804 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3803 "tree_bitset.m"
      }
#line 3803 "tree_bitset.m"
      break;
#line 3803 "tree_bitset.m"
    }
#line 3789 "tree_bitset.m"
}

#line 3787 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldl2_pred_6_p_2(
#line 3787 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3787 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3787 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3787 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3787 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3787 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3787 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3787 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3787 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3787 "tree_bitset.m"
{
#line 3803 "tree_bitset.m"
  while (MR_TRUE)
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3803 "tree_bitset.m"
      {
#line 3803 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        else
#line 3804 "tree_bitset.m"
          {
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldl2_pred_6_p_2

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 47902 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
            {
#line 3805 "tree_bitset.m"
              mercury__tree_bitset__fold2_bits_9_p_2(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3807 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3807 "tree_bitset.m"
            {
#line 3807 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3807 "tree_bitset.m"
            }
#line 3807 "tree_bitset.m"
            continue;
#line 3804 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
      }
#line 3803 "tree_bitset.m"
      break;
#line 3803 "tree_bitset.m"
    }
#line 3787 "tree_bitset.m"
}

#line 3785 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldl2_pred_6_p_1(
#line 3785 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3785 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3785 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3785 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3785 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3785 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3785 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3785 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3785 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3785 "tree_bitset.m"
{
#line 3803 "tree_bitset.m"
  while (MR_TRUE)
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3803 "tree_bitset.m"
      {
#line 3803 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        else
#line 3804 "tree_bitset.m"
          {
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldl2_pred_6_p_1

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 48020 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
            {
#line 3805 "tree_bitset.m"
              mercury__tree_bitset__fold2_bits_9_p_1(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3807 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3807 "tree_bitset.m"
            {
#line 3807 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3807 "tree_bitset.m"
            }
#line 3807 "tree_bitset.m"
            continue;
#line 3804 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
      }
#line 3803 "tree_bitset.m"
      break;
#line 3803 "tree_bitset.m"
    }
#line 3785 "tree_bitset.m"
}

#line 3783 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldl2_pred_6_p_0(
#line 3783 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_34,
#line 3783 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_35,
#line 3783 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_33,
#line 3783 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3783 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3783 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3783 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3783 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3783 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3783 "tree_bitset.m"
{
#line 3803 "tree_bitset.m"
  while (MR_TRUE)
#line 3803 "tree_bitset.m"
    {
#line 3803 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3803 "tree_bitset.m"
      {
#line 3803 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3803 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3803 "tree_bitset.m"
          {
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3803 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3803 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
        else
#line 3804 "tree_bitset.m"
          {
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_26_26;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3804 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;
#line 3804 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldl2_pred_6_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 48138 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_26_26  = Bits;
#line 171 "int.opt"
}
#line 3805 "tree_bitset.m"
            {
#line 3805 "tree_bitset.m"
              mercury__tree_bitset__fold2_bits_9_p_0(mercury__tree_bitset__TypeInfo_for_U_34, mercury__tree_bitset__TypeInfo_for_V_35, mercury__tree_bitset__TypeClassInfo_for_enum_33, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_24_24, mercury__tree_bitset__V_31_31, mercury__tree_bitset__V_26_26, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_27_27, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_28_28);
            }
#line 3807 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3807 "tree_bitset.m"
            {
#line 3807 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_27_27;
#line 3807 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_28_28;

#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3807 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3807 "tree_bitset.m"
            }
#line 3807 "tree_bitset.m"
            continue;
#line 3804 "tree_bitset.m"
          }
#line 3803 "tree_bitset.m"
      }
#line 3803 "tree_bitset.m"
      break;
#line 3803 "tree_bitset.m"
    }
#line 3783 "tree_bitset.m"
}

#line 3763 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldl2_pred_6_p_7(
#line 3763 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3763 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3763 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3763 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3763 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3763 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3763 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3763 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3763 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3763 "tree_bitset.m"
{
#line 3769 "tree_bitset.m"
  while (MR_TRUE)
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3769 "tree_bitset.m"
      {
#line 3769 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        else
#line 3770 "tree_bitset.m"
          {
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 3775 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
              {
#line 3776 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
                {
#line 3777 "tree_bitset.m"
                  mercury__tree_bitset__do_foldl2_pred_6_p_7(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3776 "tree_bitset.m"
              }
#line 3775 "tree_bitset.m"
            else
#line 3773 "tree_bitset.m"
              {
#line 3773 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
                {
#line 3774 "tree_bitset.m"
                  mercury__tree_bitset__leaf_foldl2_pred_6_p_7(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3773 "tree_bitset.m"
              }
#line 3779 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3779 "tree_bitset.m"
            {
#line 3779 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;

#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3779 "tree_bitset.m"
            }
#line 3779 "tree_bitset.m"
            continue;
#line 3770 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
      }
#line 3769 "tree_bitset.m"
      break;
#line 3769 "tree_bitset.m"
    }
#line 3763 "tree_bitset.m"
}

#line 3761 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldl2_pred_6_p_6(
#line 3761 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3761 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3761 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3761 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3761 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3761 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3761 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3761 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3761 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3761 "tree_bitset.m"
{
#line 3769 "tree_bitset.m"
  while (MR_TRUE)
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3769 "tree_bitset.m"
      {
#line 3769 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        else
#line 3770 "tree_bitset.m"
          {
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 3775 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
              {
#line 3776 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
                {
#line 3777 "tree_bitset.m"
                  mercury__tree_bitset__do_foldl2_pred_6_p_6(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3776 "tree_bitset.m"
              }
#line 3775 "tree_bitset.m"
            else
#line 3773 "tree_bitset.m"
              {
#line 3773 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
                {
#line 3774 "tree_bitset.m"
                  mercury__tree_bitset__leaf_foldl2_pred_6_p_6(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3773 "tree_bitset.m"
              }
#line 3779 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3779 "tree_bitset.m"
            {
#line 3779 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;

#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3779 "tree_bitset.m"
            }
#line 3779 "tree_bitset.m"
            continue;
#line 3770 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
      }
#line 3769 "tree_bitset.m"
      break;
#line 3769 "tree_bitset.m"
    }
#line 3761 "tree_bitset.m"
}

#line 3759 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldl2_pred_6_p_5(
#line 3759 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3759 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3759 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3759 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3759 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3759 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3759 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3759 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3759 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3759 "tree_bitset.m"
{
#line 3769 "tree_bitset.m"
  while (MR_TRUE)
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3769 "tree_bitset.m"
      {
#line 3769 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        else
#line 3770 "tree_bitset.m"
          {
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 3775 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
              {
#line 3776 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
                {
#line 3777 "tree_bitset.m"
                  mercury__tree_bitset__do_foldl2_pred_6_p_5(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3776 "tree_bitset.m"
              }
#line 3775 "tree_bitset.m"
            else
#line 3773 "tree_bitset.m"
              {
#line 3773 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
                {
#line 3774 "tree_bitset.m"
                  mercury__tree_bitset__leaf_foldl2_pred_6_p_5(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3773 "tree_bitset.m"
              }
#line 3779 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3779 "tree_bitset.m"
            {
#line 3779 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;

#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3779 "tree_bitset.m"
            }
#line 3779 "tree_bitset.m"
            continue;
#line 3770 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
      }
#line 3769 "tree_bitset.m"
      break;
#line 3769 "tree_bitset.m"
    }
#line 3759 "tree_bitset.m"
}

#line 3770 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__do_foldl2_pred_6_p_4_1(
#line 3770 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3770 "tree_bitset.m"
{
#line 3770 "tree_bitset.m"
  {
#line 3770 "tree_bitset.m"
    struct mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3779 "tree_bitset.m"
    {
#line 3779 "tree_bitset.m"
      mercury__tree_bitset__do_foldl2_pred_6_p_4((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__TypeInfo_for_U_36, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__TypeInfo_for_V_37, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__TypeClassInfo_for_enum_35, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__T_16, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_29_29, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_30_30, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_6, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__cont_env_ptr);
#line 3779 "tree_bitset.m"
      return;
    }
#line 3770 "tree_bitset.m"
  }
#line 3770 "tree_bitset.m"
}

#line 3757 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldl2_pred_6_p_4(
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3757 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3757 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3757 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3757 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6,
#line 3757 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3757 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3757 "tree_bitset.m"
{
#line 3757 "tree_bitset.m"
  {
#line 3757 "tree_bitset.m"
    struct mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0_s mercury__tree_bitset__env;

#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__TypeInfo_for_U_36 = mercury__tree_bitset__TypeInfo_for_U_36;
#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__TypeInfo_for_V_37 = mercury__tree_bitset__TypeInfo_for_V_37;
#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__TypeClassInfo_for_enum_35 = mercury__tree_bitset__TypeClassInfo_for_enum_35;
#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__P_1 = mercury__tree_bitset__P_1;
#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_4;
#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_6;
#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__cont = mercury__tree_bitset__cont;
#line 3757 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
        {
#line 3769 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_6) = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_4) = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__cont)((mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__cont_env_ptr);
#line 3769 "tree_bitset.m"
            return;
          }
#line 3769 "tree_bitset.m"
        }
#line 3769 "tree_bitset.m"
      else
#line 3770 "tree_bitset.m"
        {
#line 3770 "tree_bitset.m"
          MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
          MR_Word mercury__tree_bitset__Components_19;
#line 3771 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_33_33;
#line 3771 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_34_34;

#line 3770 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3771 "tree_bitset.m"
          mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
          mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));
#line 3771 "tree_bitset.m"
          mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3775 "tree_bitset.m"
          if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
            {
#line 3776 "tree_bitset.m"
              MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
              {
#line 3777 "tree_bitset.m"
                mercury__tree_bitset__do_foldl2_pred_6_p_4((mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__TypeInfo_for_U_36, (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__TypeInfo_for_V_37, (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__TypeClassInfo_for_enum_35, (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &(mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_30_30, mercury__tree_bitset__do_foldl2_pred_6_p_4_1, &mercury__tree_bitset__env);
              }
#line 3776 "tree_bitset.m"
            }
#line 3775 "tree_bitset.m"
          else
#line 3773 "tree_bitset.m"
            {
#line 3773 "tree_bitset.m"
              MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
              {
#line 3774 "tree_bitset.m"
                mercury__tree_bitset__leaf_foldl2_pred_6_p_4((mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__TypeInfo_for_U_36, (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__TypeInfo_for_V_37, (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__TypeClassInfo_for_enum_35, (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &(mercury__tree_bitset__env).mercury__tree_bitset__do_foldl2_pred_6_p_4_env_0__STATE_VARIABLE_AccB_30_30, mercury__tree_bitset__do_foldl2_pred_6_p_4_1, &mercury__tree_bitset__env);
              }
#line 3773 "tree_bitset.m"
            }
#line 3770 "tree_bitset.m"
        }
#line 3769 "tree_bitset.m"
    }
#line 3757 "tree_bitset.m"
  }
#line 3757 "tree_bitset.m"
}

#line 3755 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__do_foldl2_pred_6_p_3(
#line 3755 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3755 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3755 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3755 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3755 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3755 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3755 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3755 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3755 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3755 "tree_bitset.m"
{
#line 3769 "tree_bitset.m"
  while (MR_TRUE)
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3769 "tree_bitset.m"
      {
#line 3769 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3769 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        else
#line 3770 "tree_bitset.m"
          {
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 3775 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
              {
#line 3776 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
                {
#line 3777 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__do_foldl2_pred_6_p_3(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3776 "tree_bitset.m"
              }
#line 3775 "tree_bitset.m"
            else
#line 3773 "tree_bitset.m"
              {
#line 3773 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
                {
#line 3774 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__leaf_foldl2_pred_6_p_3(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3773 "tree_bitset.m"
              }
#line 3770 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3779 "tree_bitset.m"
              {
#line 3779 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3779 "tree_bitset.m"
                {
#line 3779 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3779 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3779 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;

#line 3779 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3779 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3779 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3779 "tree_bitset.m"
                }
#line 3779 "tree_bitset.m"
                continue;
#line 3779 "tree_bitset.m"
              }
#line 3770 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3769 "tree_bitset.m"
      }
#line 3769 "tree_bitset.m"
      break;
#line 3769 "tree_bitset.m"
    }
#line 3755 "tree_bitset.m"
}

#line 3753 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldl2_pred_6_p_2(
#line 3753 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3753 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3753 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3753 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3753 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3753 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3753 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3753 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3753 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3753 "tree_bitset.m"
{
#line 3769 "tree_bitset.m"
  while (MR_TRUE)
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3769 "tree_bitset.m"
      {
#line 3769 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        else
#line 3770 "tree_bitset.m"
          {
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 3775 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
              {
#line 3776 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
                {
#line 3777 "tree_bitset.m"
                  mercury__tree_bitset__do_foldl2_pred_6_p_2(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3776 "tree_bitset.m"
              }
#line 3775 "tree_bitset.m"
            else
#line 3773 "tree_bitset.m"
              {
#line 3773 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
                {
#line 3774 "tree_bitset.m"
                  mercury__tree_bitset__leaf_foldl2_pred_6_p_2(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3773 "tree_bitset.m"
              }
#line 3779 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3779 "tree_bitset.m"
            {
#line 3779 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;

#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3779 "tree_bitset.m"
            }
#line 3779 "tree_bitset.m"
            continue;
#line 3770 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
      }
#line 3769 "tree_bitset.m"
      break;
#line 3769 "tree_bitset.m"
    }
#line 3753 "tree_bitset.m"
}

#line 3751 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldl2_pred_6_p_1(
#line 3751 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3751 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3751 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3751 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3751 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3751 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3751 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3751 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3751 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3751 "tree_bitset.m"
{
#line 3769 "tree_bitset.m"
  while (MR_TRUE)
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3769 "tree_bitset.m"
      {
#line 3769 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        else
#line 3770 "tree_bitset.m"
          {
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 3775 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
              {
#line 3776 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
                {
#line 3777 "tree_bitset.m"
                  mercury__tree_bitset__do_foldl2_pred_6_p_1(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3776 "tree_bitset.m"
              }
#line 3775 "tree_bitset.m"
            else
#line 3773 "tree_bitset.m"
              {
#line 3773 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
                {
#line 3774 "tree_bitset.m"
                  mercury__tree_bitset__leaf_foldl2_pred_6_p_1(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3773 "tree_bitset.m"
              }
#line 3779 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3779 "tree_bitset.m"
            {
#line 3779 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;

#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3779 "tree_bitset.m"
            }
#line 3779 "tree_bitset.m"
            continue;
#line 3770 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
      }
#line 3769 "tree_bitset.m"
      break;
#line 3769 "tree_bitset.m"
    }
#line 3751 "tree_bitset.m"
}

#line 3749 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldl2_pred_6_p_0(
#line 3749 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_36,
#line 3749 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_37,
#line 3749 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_35,
#line 3749 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3749 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3749 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_3,
#line 3749 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_4,
#line 3749 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_5,
#line 3749 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_6)
#line 3749 "tree_bitset.m"
{
#line 3769 "tree_bitset.m"
  while (MR_TRUE)
#line 3769 "tree_bitset.m"
    {
#line 3769 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3769 "tree_bitset.m"
      {
#line 3769 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3769 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3769 "tree_bitset.m"
          {
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccB_6 = mercury__tree_bitset__STATE_VARIABLE_AccB_0_5;
#line 3769 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_AccA_4 = mercury__tree_bitset__STATE_VARIABLE_AccA_0_3;
#line 3769 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
        else
#line 3770 "tree_bitset.m"
          {
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3770 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 2)));
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3770 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 0)));
#line 3771 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_15, (MR_Integer) 1)));

#line 3775 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_19)) == (MR_mktag((MR_Integer) 1))))
#line 3776 "tree_bitset.m"
              {
#line 3776 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 1)));
#line 3776 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3777 "tree_bitset.m"
                {
#line 3777 "tree_bitset.m"
                  mercury__tree_bitset__do_foldl2_pred_6_p_0(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3776 "tree_bitset.m"
              }
#line 3775 "tree_bitset.m"
            else
#line 3773 "tree_bitset.m"
              {
#line 3773 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_19, (MR_Integer) 0)));

#line 3774 "tree_bitset.m"
                {
#line 3774 "tree_bitset.m"
                  mercury__tree_bitset__leaf_foldl2_pred_6_p_0(mercury__tree_bitset__TypeInfo_for_U_36, mercury__tree_bitset__TypeInfo_for_V_37, mercury__tree_bitset__TypeClassInfo_for_enum_35, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_20, mercury__tree_bitset__STATE_VARIABLE_AccA_0_3, &mercury__tree_bitset__STATE_VARIABLE_AccA_29_29, mercury__tree_bitset__STATE_VARIABLE_AccB_0_5, &mercury__tree_bitset__STATE_VARIABLE_AccB_30_30);
                }
#line 3773 "tree_bitset.m"
              }
#line 3779 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3779 "tree_bitset.m"
            {
#line 3779 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_16;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_29_29;
#line 3779 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_30_30;

#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccB_0_5 = mercury__tree_bitset__STATE_VARIABLE_AccB_0__tmp_copy_5;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_AccA_0_3 = mercury__tree_bitset__STATE_VARIABLE_AccA_0__tmp_copy_3;
#line 3779 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3779 "tree_bitset.m"
            }
#line 3779 "tree_bitset.m"
            continue;
#line 3770 "tree_bitset.m"
          }
#line 3769 "tree_bitset.m"
      }
#line 3769 "tree_bitset.m"
      break;
#line 3769 "tree_bitset.m"
    }
#line 3749 "tree_bitset.m"
}

#line 3736 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldl_pred_4_p_9(
#line 3736 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3736 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3736 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3736 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3736 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3736 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3736 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldl_pred_4_p_9

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 49281 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__fold_bits_7_p_9(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3745 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
            {
#line 3745 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
            }
#line 3745 "tree_bitset.m"
            continue;
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3736 "tree_bitset.m"
}

#line 3735 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldl_pred_4_p_8(
#line 3735 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3735 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3735 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3735 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3735 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3735 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3735 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldl_pred_4_p_8

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 49381 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__fold_bits_7_p_8(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3745 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
            {
#line 3745 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
            }
#line 3745 "tree_bitset.m"
            continue;
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3735 "tree_bitset.m"
}

#line 3742 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaf_foldl_pred_4_p_7_1(
#line 3742 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3742 "tree_bitset.m"
{
#line 3742 "tree_bitset.m"
  {
#line 3742 "tree_bitset.m"
    struct mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3745 "tree_bitset.m"
    {
#line 3745 "tree_bitset.m"
      mercury__tree_bitset__leaf_foldl_pred_4_p_7((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__TypeInfo_for_U_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__TypeClassInfo_for_enum_23, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__T_11, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__STATE_VARIABLE_Acc_19_19, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__STATE_VARIABLE_Acc_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__cont_env_ptr);
#line 3745 "tree_bitset.m"
      return;
    }
#line 3742 "tree_bitset.m"
  }
#line 3742 "tree_bitset.m"
}

#line 3734 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldl_pred_4_p_7(
#line 3734 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3734 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3734 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3734 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3734 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3734 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4,
#line 3734 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3734 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3734 "tree_bitset.m"
{
#line 3734 "tree_bitset.m"
  {
#line 3734 "tree_bitset.m"
    struct mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0_s mercury__tree_bitset__env;

#line 3734 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__TypeInfo_for_U_24 = mercury__tree_bitset__TypeInfo_for_U_24;
#line 3734 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__TypeClassInfo_for_enum_23 = mercury__tree_bitset__TypeClassInfo_for_enum_23;
#line 3734 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__P_1 = mercury__tree_bitset__P_1;
#line 3734 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_4;
#line 3734 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__cont = mercury__tree_bitset__cont;
#line 3734 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
        {
#line 3741 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__STATE_VARIABLE_Acc_4) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
          {
#line 3741 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__cont)((mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__cont_env_ptr);
#line 3741 "tree_bitset.m"
            return;
          }
#line 3741 "tree_bitset.m"
        }
#line 3741 "tree_bitset.m"
      else
#line 3742 "tree_bitset.m"
        {
#line 3742 "tree_bitset.m"
          MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_16_16;
#line 3742 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_21_21;

#line 3742 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3743 "tree_bitset.m"
          mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3743 "tree_bitset.m"
          mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldl_pred_4_p_7

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 49533 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
          {
#line 3743 "tree_bitset.m"
            mercury__tree_bitset__fold_bits_7_p_7((mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__TypeInfo_for_U_24, (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__TypeClassInfo_for_enum_23, (MR_Integer) 0, (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_7_env_0__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__leaf_foldl_pred_4_p_7_1, &mercury__tree_bitset__env);
          }
#line 3742 "tree_bitset.m"
        }
#line 3741 "tree_bitset.m"
    }
#line 3734 "tree_bitset.m"
  }
#line 3734 "tree_bitset.m"
}

#line 3742 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaf_foldl_pred_4_p_6_1(
#line 3742 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3742 "tree_bitset.m"
{
#line 3742 "tree_bitset.m"
  {
#line 3742 "tree_bitset.m"
    struct mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3745 "tree_bitset.m"
    {
#line 3745 "tree_bitset.m"
      mercury__tree_bitset__leaf_foldl_pred_4_p_6((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__TypeInfo_for_U_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__TypeClassInfo_for_enum_23, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__T_11, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__STATE_VARIABLE_Acc_19_19, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__STATE_VARIABLE_Acc_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__cont_env_ptr);
#line 3745 "tree_bitset.m"
      return;
    }
#line 3742 "tree_bitset.m"
  }
#line 3742 "tree_bitset.m"
}

#line 3733 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldl_pred_4_p_6(
#line 3733 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3733 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3733 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3733 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3733 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3733 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4,
#line 3733 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3733 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3733 "tree_bitset.m"
{
#line 3733 "tree_bitset.m"
  {
#line 3733 "tree_bitset.m"
    struct mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0_s mercury__tree_bitset__env;

#line 3733 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__TypeInfo_for_U_24 = mercury__tree_bitset__TypeInfo_for_U_24;
#line 3733 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__TypeClassInfo_for_enum_23 = mercury__tree_bitset__TypeClassInfo_for_enum_23;
#line 3733 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__P_1 = mercury__tree_bitset__P_1;
#line 3733 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_4;
#line 3733 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__cont = mercury__tree_bitset__cont;
#line 3733 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
        {
#line 3741 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__STATE_VARIABLE_Acc_4) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
          {
#line 3741 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__cont)((mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__cont_env_ptr);
#line 3741 "tree_bitset.m"
            return;
          }
#line 3741 "tree_bitset.m"
        }
#line 3741 "tree_bitset.m"
      else
#line 3742 "tree_bitset.m"
        {
#line 3742 "tree_bitset.m"
          MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_16_16;
#line 3742 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_21_21;

#line 3742 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3743 "tree_bitset.m"
          mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3743 "tree_bitset.m"
          mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldl_pred_4_p_6

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 49666 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
          {
#line 3743 "tree_bitset.m"
            mercury__tree_bitset__fold_bits_7_p_6((mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__TypeInfo_for_U_24, (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__TypeClassInfo_for_enum_23, (MR_Integer) 0, (mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__leaf_foldl_pred_4_p_6_env_0__STATE_VARIABLE_Acc_19_19, mercury__tree_bitset__leaf_foldl_pred_4_p_6_1, &mercury__tree_bitset__env);
          }
#line 3742 "tree_bitset.m"
        }
#line 3741 "tree_bitset.m"
    }
#line 3733 "tree_bitset.m"
  }
#line 3733 "tree_bitset.m"
}

#line 3732 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__leaf_foldl_pred_4_p_5(
#line 3732 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3732 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3732 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3732 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3732 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3732 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3732 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          {
#line 3741 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3741 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldl_pred_4_p_5

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 49753 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__succeeded = mercury__tree_bitset__fold_bits_7_p_5(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3742 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3745 "tree_bitset.m"
              {
#line 3745 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
                {
#line 3745 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
                }
#line 3745 "tree_bitset.m"
                continue;
#line 3745 "tree_bitset.m"
              }
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3732 "tree_bitset.m"
}

#line 3731 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__leaf_foldl_pred_4_p_4(
#line 3731 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3731 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3731 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3731 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3731 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3731 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3731 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          {
#line 3741 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3741 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldl_pred_4_p_4

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 49867 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__succeeded = mercury__tree_bitset__fold_bits_7_p_4(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3742 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3745 "tree_bitset.m"
              {
#line 3745 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
                {
#line 3745 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
                }
#line 3745 "tree_bitset.m"
                continue;
#line 3745 "tree_bitset.m"
              }
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3731 "tree_bitset.m"
}

#line 3730 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__leaf_foldl_pred_4_p_3(
#line 3730 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3730 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3730 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3730 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3730 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3730 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3730 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          {
#line 3741 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3741 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldl_pred_4_p_3

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 49981 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__succeeded = mercury__tree_bitset__fold_bits_7_p_3(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3742 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3745 "tree_bitset.m"
              {
#line 3745 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
                {
#line 3745 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
                }
#line 3745 "tree_bitset.m"
                continue;
#line 3745 "tree_bitset.m"
              }
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3730 "tree_bitset.m"
}

#line 3729 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldl_pred_4_p_2(
#line 3729 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3729 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3729 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3729 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3729 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3729 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3729 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldl_pred_4_p_2

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 50089 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__fold_bits_7_p_2(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3745 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
            {
#line 3745 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
            }
#line 3745 "tree_bitset.m"
            continue;
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3729 "tree_bitset.m"
}

#line 3728 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldl_pred_4_p_1(
#line 3728 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3728 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3728 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3728 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3728 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3728 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3728 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldl_pred_4_p_1

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 50189 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__fold_bits_7_p_1(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3745 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
            {
#line 3745 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
            }
#line 3745 "tree_bitset.m"
            continue;
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3728 "tree_bitset.m"
}

#line 3727 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaf_foldl_pred_4_p_0(
#line 3727 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 3727 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 3727 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3727 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3727 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3727 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3727 "tree_bitset.m"
{
#line 3741 "tree_bitset.m"
  while (MR_TRUE)
#line 3741 "tree_bitset.m"
    {
#line 3741 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3741 "tree_bitset.m"
      {
#line 3741 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3741 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3741 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3741 "tree_bitset.m"
        else
#line 3742 "tree_bitset.m"
          {
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18;
#line 3742 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;
#line 3742 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaf_foldl_pred_4_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 50289 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 3743 "tree_bitset.m"
            {
#line 3743 "tree_bitset.m"
              mercury__tree_bitset__fold_bits_7_p_0(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0, mercury__tree_bitset__P_1, mercury__tree_bitset__V_16_16, mercury__tree_bitset__V_21_21, mercury__tree_bitset__V_18_18, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_19_19);
            }
#line 3745 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3745 "tree_bitset.m"
            {
#line 3745 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3745 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_19_19;

#line 3745 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3745 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3745 "tree_bitset.m"
            }
#line 3745 "tree_bitset.m"
            continue;
#line 3742 "tree_bitset.m"
          }
#line 3741 "tree_bitset.m"
      }
#line 3741 "tree_bitset.m"
      break;
#line 3741 "tree_bitset.m"
    }
#line 3727 "tree_bitset.m"
}

#line 3709 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldl_pred_4_p_9(
#line 3709 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3709 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3709 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3709 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3709 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3709 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3709 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__do_foldl_pred_4_p_9(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__leaf_foldl_pred_4_p_9(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3724 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
            {
#line 3724 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
            }
#line 3724 "tree_bitset.m"
            continue;
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3709 "tree_bitset.m"
}

#line 3708 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldl_pred_4_p_8(
#line 3708 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3708 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3708 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3708 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3708 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3708 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3708 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__do_foldl_pred_4_p_8(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__leaf_foldl_pred_4_p_8(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3724 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
            {
#line 3724 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
            }
#line 3724 "tree_bitset.m"
            continue;
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3708 "tree_bitset.m"
}

#line 3715 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__do_foldl_pred_4_p_7_1(
#line 3715 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3715 "tree_bitset.m"
{
#line 3715 "tree_bitset.m"
  {
#line 3715 "tree_bitset.m"
    struct mercury__tree_bitset__do_foldl_pred_4_p_7_env_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__do_foldl_pred_4_p_7_env_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3724 "tree_bitset.m"
    {
#line 3724 "tree_bitset.m"
      mercury__tree_bitset__do_foldl_pred_4_p_7((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__TypeInfo_for_U_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__T_11, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__STATE_VARIABLE_Acc_20_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__STATE_VARIABLE_Acc_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__cont_env_ptr);
#line 3724 "tree_bitset.m"
      return;
    }
#line 3715 "tree_bitset.m"
  }
#line 3715 "tree_bitset.m"
}

#line 3707 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldl_pred_4_p_7(
#line 3707 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3707 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3707 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3707 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3707 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3707 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4,
#line 3707 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3707 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3707 "tree_bitset.m"
{
#line 3707 "tree_bitset.m"
  {
#line 3707 "tree_bitset.m"
    struct mercury__tree_bitset__do_foldl_pred_4_p_7_env_0_s mercury__tree_bitset__env;

#line 3707 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__TypeInfo_for_U_25 = mercury__tree_bitset__TypeInfo_for_U_25;
#line 3707 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__TypeClassInfo_for_enum_24 = mercury__tree_bitset__TypeClassInfo_for_enum_24;
#line 3707 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__P_1 = mercury__tree_bitset__P_1;
#line 3707 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_4;
#line 3707 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__cont = mercury__tree_bitset__cont;
#line 3707 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
        {
#line 3714 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__STATE_VARIABLE_Acc_4) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
          {
#line 3714 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__cont)((mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__cont_env_ptr);
#line 3714 "tree_bitset.m"
            return;
          }
#line 3714 "tree_bitset.m"
        }
#line 3714 "tree_bitset.m"
      else
#line 3715 "tree_bitset.m"
        {
#line 3715 "tree_bitset.m"
          MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
          MR_Word mercury__tree_bitset__Components_13;
#line 3716 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_22_22;
#line 3716 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_23_23;

#line 3715 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3716 "tree_bitset.m"
          mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
          mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 3716 "tree_bitset.m"
          mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3720 "tree_bitset.m"
          if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
            {
#line 3721 "tree_bitset.m"
              MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
              {
#line 3722 "tree_bitset.m"
                mercury__tree_bitset__do_foldl_pred_4_p_7((mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__TypeInfo_for_U_25, (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__STATE_VARIABLE_Acc_20_20, mercury__tree_bitset__do_foldl_pred_4_p_7_1, &mercury__tree_bitset__env);
              }
#line 3721 "tree_bitset.m"
            }
#line 3720 "tree_bitset.m"
          else
#line 3718 "tree_bitset.m"
            {
#line 3718 "tree_bitset.m"
              MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
              {
#line 3719 "tree_bitset.m"
                mercury__tree_bitset__leaf_foldl_pred_4_p_7((mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__TypeInfo_for_U_25, (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_7_env_0__STATE_VARIABLE_Acc_20_20, mercury__tree_bitset__do_foldl_pred_4_p_7_1, &mercury__tree_bitset__env);
              }
#line 3718 "tree_bitset.m"
            }
#line 3715 "tree_bitset.m"
        }
#line 3714 "tree_bitset.m"
    }
#line 3707 "tree_bitset.m"
  }
#line 3707 "tree_bitset.m"
}

#line 3715 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__do_foldl_pred_4_p_6_1(
#line 3715 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 3715 "tree_bitset.m"
{
#line 3715 "tree_bitset.m"
  {
#line 3715 "tree_bitset.m"
    struct mercury__tree_bitset__do_foldl_pred_4_p_6_env_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__do_foldl_pred_4_p_6_env_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 3724 "tree_bitset.m"
    {
#line 3724 "tree_bitset.m"
      mercury__tree_bitset__do_foldl_pred_4_p_6((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__TypeInfo_for_U_25, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__P_1, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__T_11, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__STATE_VARIABLE_Acc_20_20, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__STATE_VARIABLE_Acc_4, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__cont, (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__cont_env_ptr);
#line 3724 "tree_bitset.m"
      return;
    }
#line 3715 "tree_bitset.m"
  }
#line 3715 "tree_bitset.m"
}

#line 3706 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldl_pred_4_p_6(
#line 3706 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3706 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3706 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3706 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3706 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3706 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4,
#line 3706 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 3706 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 3706 "tree_bitset.m"
{
#line 3706 "tree_bitset.m"
  {
#line 3706 "tree_bitset.m"
    struct mercury__tree_bitset__do_foldl_pred_4_p_6_env_0_s mercury__tree_bitset__env;

#line 3706 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__TypeInfo_for_U_25 = mercury__tree_bitset__TypeInfo_for_U_25;
#line 3706 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__TypeClassInfo_for_enum_24 = mercury__tree_bitset__TypeClassInfo_for_enum_24;
#line 3706 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__P_1 = mercury__tree_bitset__P_1;
#line 3706 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_4;
#line 3706 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__cont = mercury__tree_bitset__cont;
#line 3706 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
        {
#line 3714 "tree_bitset.m"
          *((mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__STATE_VARIABLE_Acc_4) = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
          {
#line 3714 "tree_bitset.m"
            ((mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__cont)((mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__cont_env_ptr);
#line 3714 "tree_bitset.m"
            return;
          }
#line 3714 "tree_bitset.m"
        }
#line 3714 "tree_bitset.m"
      else
#line 3715 "tree_bitset.m"
        {
#line 3715 "tree_bitset.m"
          MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
          MR_Word mercury__tree_bitset__Components_13;
#line 3716 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_22_22;
#line 3716 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_23_23;

#line 3715 "tree_bitset.m"
          (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3716 "tree_bitset.m"
          mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
          mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));
#line 3716 "tree_bitset.m"
          mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3720 "tree_bitset.m"
          if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
            {
#line 3721 "tree_bitset.m"
              MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
              {
#line 3722 "tree_bitset.m"
                mercury__tree_bitset__do_foldl_pred_4_p_6((mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__TypeInfo_for_U_25, (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__STATE_VARIABLE_Acc_20_20, mercury__tree_bitset__do_foldl_pred_4_p_6_1, &mercury__tree_bitset__env);
              }
#line 3721 "tree_bitset.m"
            }
#line 3720 "tree_bitset.m"
          else
#line 3718 "tree_bitset.m"
            {
#line 3718 "tree_bitset.m"
              MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
              {
#line 3719 "tree_bitset.m"
                mercury__tree_bitset__leaf_foldl_pred_4_p_6((mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__TypeInfo_for_U_25, (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__TypeClassInfo_for_enum_24, (mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &(mercury__tree_bitset__env).mercury__tree_bitset__do_foldl_pred_4_p_6_env_0__STATE_VARIABLE_Acc_20_20, mercury__tree_bitset__do_foldl_pred_4_p_6_1, &mercury__tree_bitset__env);
              }
#line 3718 "tree_bitset.m"
            }
#line 3715 "tree_bitset.m"
        }
#line 3714 "tree_bitset.m"
    }
#line 3706 "tree_bitset.m"
  }
#line 3706 "tree_bitset.m"
}

#line 3705 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__do_foldl_pred_4_p_5(
#line 3705 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3705 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3705 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3705 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3705 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3705 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3705 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          {
#line 3714 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3714 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__do_foldl_pred_4_p_5(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__leaf_foldl_pred_4_p_5(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3715 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3724 "tree_bitset.m"
              {
#line 3724 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
                {
#line 3724 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
                }
#line 3724 "tree_bitset.m"
                continue;
#line 3724 "tree_bitset.m"
              }
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3705 "tree_bitset.m"
}

#line 3704 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__do_foldl_pred_4_p_4(
#line 3704 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3704 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3704 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3704 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3704 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3704 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3704 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          {
#line 3714 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3714 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__do_foldl_pred_4_p_4(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__leaf_foldl_pred_4_p_4(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3715 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3724 "tree_bitset.m"
              {
#line 3724 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
                {
#line 3724 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
                }
#line 3724 "tree_bitset.m"
                continue;
#line 3724 "tree_bitset.m"
              }
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3704 "tree_bitset.m"
}

#line 3703 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__do_foldl_pred_4_p_3(
#line 3703 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3703 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3703 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3703 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3703 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3703 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3703 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          {
#line 3714 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 3714 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__do_foldl_pred_4_p_3(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__leaf_foldl_pred_4_p_3(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3715 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3724 "tree_bitset.m"
              {
#line 3724 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
                {
#line 3724 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
                  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
                }
#line 3724 "tree_bitset.m"
                continue;
#line 3724 "tree_bitset.m"
              }
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3703 "tree_bitset.m"
}

#line 3702 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldl_pred_4_p_2(
#line 3702 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3702 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3702 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3702 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3702 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3702 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3702 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__do_foldl_pred_4_p_2(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__leaf_foldl_pred_4_p_2(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3724 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
            {
#line 3724 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
            }
#line 3724 "tree_bitset.m"
            continue;
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3702 "tree_bitset.m"
}

#line 3701 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldl_pred_4_p_1(
#line 3701 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3701 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3701 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3701 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3701 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3701 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3701 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__do_foldl_pred_4_p_1(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__leaf_foldl_pred_4_p_1(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3724 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
            {
#line 3724 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
            }
#line 3724 "tree_bitset.m"
            continue;
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3701 "tree_bitset.m"
}

#line 3700 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__do_foldl_pred_4_p_0(
#line 3700 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_25,
#line 3700 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_24,
#line 3700 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_1,
#line 3700 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3700 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_3,
#line 3700 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_4)
#line 3700 "tree_bitset.m"
{
#line 3714 "tree_bitset.m"
  while (MR_TRUE)
#line 3714 "tree_bitset.m"
    {
#line 3714 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3714 "tree_bitset.m"
      {
#line 3714 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3714 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3714 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Acc_4 = mercury__tree_bitset__STATE_VARIABLE_Acc_0_3;
#line 3714 "tree_bitset.m"
        else
#line 3715 "tree_bitset.m"
          {
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__H_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__T_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3715 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 2)));
#line 3715 "tree_bitset.m"
            MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 0)));
#line 3716 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__H_10, (MR_Integer) 1)));

#line 3720 "tree_bitset.m"
            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_13)) == (MR_mktag((MR_Integer) 1))))
#line 3721 "tree_bitset.m"
              {
#line 3721 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 1)));
#line 3721 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3722 "tree_bitset.m"
                {
#line 3722 "tree_bitset.m"
                  mercury__tree_bitset__do_foldl_pred_4_p_0(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3721 "tree_bitset.m"
              }
#line 3720 "tree_bitset.m"
            else
#line 3718 "tree_bitset.m"
              {
#line 3718 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_13, (MR_Integer) 0)));

#line 3719 "tree_bitset.m"
                {
#line 3719 "tree_bitset.m"
                  mercury__tree_bitset__leaf_foldl_pred_4_p_0(mercury__tree_bitset__TypeInfo_for_U_25, mercury__tree_bitset__TypeClassInfo_for_enum_24, mercury__tree_bitset__P_1, mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__STATE_VARIABLE_Acc_0_3, &mercury__tree_bitset__STATE_VARIABLE_Acc_20_20);
                }
#line 3718 "tree_bitset.m"
              }
#line 3724 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 3724 "tree_bitset.m"
            {
#line 3724 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__T_11;
#line 3724 "tree_bitset.m"
              MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_20_20;

#line 3724 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_Acc_0_3 = mercury__tree_bitset__STATE_VARIABLE_Acc_0__tmp_copy_3;
#line 3724 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3724 "tree_bitset.m"
            }
#line 3724 "tree_bitset.m"
            continue;
#line 3715 "tree_bitset.m"
          }
#line 3714 "tree_bitset.m"
      }
#line 3714 "tree_bitset.m"
      break;
#line 3714 "tree_bitset.m"
    }
#line 3700 "tree_bitset.m"
}

#line 3642 "tree_bitset.m"
MR_Integer MR_CALL 
mercury__tree_bitset__mask_1_f_0(
#line 3642 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__N_3)
#line 3642 "tree_bitset.m"
{
#line 3645 "tree_bitset.m"
  {
#line 3645 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3645 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__HeadVar__2_2;
#line 3645 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_4_4 = ((MR_Integer) -1 << mercury__tree_bitset__N_3);

#line 3645 "tree_bitset.m"
    mercury__tree_bitset__HeadVar__2_2 = ~(mercury__tree_bitset__V_4_4);
#line 3645 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__2_2;
#line 3645 "tree_bitset.m"
  }
#line 3642 "tree_bitset.m"
}

#line 3629 "tree_bitset.m"
MR_Integer MR_CALL 
mercury__tree_bitset__set_bit_2_f_0(
#line 3629 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Int0_4,
#line 3629 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bit_5)
#line 3629 "tree_bitset.m"
{
#line 3632 "tree_bitset.m"
  {
#line 3632 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3632 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__HeadVar__3_3;
#line 3632 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_6_6 = ((MR_Integer) 1 << mercury__tree_bitset__Bit_5);

#line 3632 "tree_bitset.m"
    mercury__tree_bitset__HeadVar__3_3 = (mercury__tree_bitset__Int0_4 | mercury__tree_bitset__V_6_6);
#line 3632 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__3_3;
#line 3632 "tree_bitset.m"
  }
#line 3629 "tree_bitset.m"
}

#line 3624 "tree_bitset.m"
MR_Integer MR_CALL 
mercury__tree_bitset__get_bit_2_f_0(
#line 3624 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Int_4,
#line 3624 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bit_5)
#line 3624 "tree_bitset.m"
{
#line 3627 "tree_bitset.m"
  {
#line 3627 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3627 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__HeadVar__3_3;
#line 3627 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_6_6 = ((MR_Integer) 1 << mercury__tree_bitset__Bit_5);

#line 3627 "tree_bitset.m"
    mercury__tree_bitset__HeadVar__3_3 = (mercury__tree_bitset__Int_4 & mercury__tree_bitset__V_6_6);
#line 3627 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__3_3;
#line 3627 "tree_bitset.m"
  }
#line 3624 "tree_bitset.m"
}

#line 3333 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaflist_divide_by_set_4_p_0(
#line 3333 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 3333 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3333 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3,
#line 3333 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__4_4)
#line 3333 "tree_bitset.m"
{
#line 3336 "tree_bitset.m"
  while (MR_TRUE)
#line 3336 "tree_bitset.m"
    {
#line 3336 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3336 "tree_bitset.m"
      {
#line 3336 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3336 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3336 "tree_bitset.m"
          {
#line 3336 "tree_bitset.m"
            *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 3336 "tree_bitset.m"
            *mercury__tree_bitset__HeadVar__4_4 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 3336 "tree_bitset.m"
          }
#line 3336 "tree_bitset.m"
        else
#line 3336 "tree_bitset.m"
          {
#line 3336 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_41_41 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3336 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_42_42 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));

#line 3336 "tree_bitset.m"
            if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3337 "tree_bitset.m"
              {
#line 3337 "tree_bitset.m"
                *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 3337 "tree_bitset.m"
                *mercury__tree_bitset__HeadVar__4_4 = mercury__tree_bitset__HeadVar__2_2;
#line 3337 "tree_bitset.m"
              }
#line 3336 "tree_bitset.m"
            else
#line 3339 "tree_bitset.m"
              {
#line 3339 "tree_bitset.m"
                MR_Word mercury__tree_bitset__DivideByHead_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));
#line 3339 "tree_bitset.m"
                MR_Word mercury__tree_bitset__DivideByTail_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 3339 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__DivideByOffset_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__DivideByHead_10, (MR_Integer) 0)));
#line 3339 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__ListOffset_18 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_42_42, (MR_Integer) 0)));
#line 3340 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_37_37 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__DivideByHead_10, (MR_Integer) 1)));
#line 3341 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_38_38 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_42_42, (MR_Integer) 1)));

#line 3342 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__DivideByOffset_17 == mercury__tree_bitset__ListOffset_18);
#line 3370 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 3343 "tree_bitset.m"
                  {
#line 3343 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__ListHeadBits_19 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_42_42, (MR_Integer) 1)));
#line 3343 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__DivideByHeadBits_20 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__DivideByHead_10, (MR_Integer) 1)));
#line 3343 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__InBits_21 = (mercury__tree_bitset__ListHeadBits_19 & mercury__tree_bitset__DivideByHeadBits_20);
#line 3343 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__OutBits_22;
#line 3343 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_27_27 = ~(mercury__tree_bitset__DivideByHeadBits_20);
#line 3343 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_39_39 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_42_42, (MR_Integer) 0)));
#line 3344 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_40_40 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__DivideByHead_10, (MR_Integer) 0)));

#line 3346 "tree_bitset.m"
                    mercury__tree_bitset__OutBits_22 = (mercury__tree_bitset__ListHeadBits_19 & mercury__tree_bitset__V_27_27);
#line 3347 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = (mercury__tree_bitset__InBits_21 == (MR_Integer) 0);
#line 3356 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 3350 "tree_bitset.m"
                      {
#line 3348 "tree_bitset.m"
                        mercury__tree_bitset__succeeded = (mercury__tree_bitset__OutBits_22 == (MR_Integer) 0);
#line 3350 "tree_bitset.m"
                        if (mercury__tree_bitset__succeeded)
#line 3349 "tree_bitset.m"
                          {
#line 3349 "tree_bitset.m"
                            /* direct tailcall eliminated */
#line 3349 "tree_bitset.m"
                            {
#line 3349 "tree_bitset.m"
                              MR_Word mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__DivideByTail_11;
#line 3349 "tree_bitset.m"
                              MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__V_41_41;

#line 3349 "tree_bitset.m"
                              mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3349 "tree_bitset.m"
                              mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 3349 "tree_bitset.m"
                            }
#line 3349 "tree_bitset.m"
                            continue;
#line 3349 "tree_bitset.m"
                          }
#line 3350 "tree_bitset.m"
                        else
#line 3351 "tree_bitset.m"
                          {
#line 3351 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__NewOutNode_23;
#line 3351 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__OutTail_24;

#line 547 "tree_bitset.m"
                            {
#line 547 "tree_bitset.m"
                              mercury__tree_bitset__NewOutNode_23 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
                              MR_hl_field(MR_mktag(0), mercury__tree_bitset__NewOutNode_23, 0) = ((MR_Box) (mercury__tree_bitset__ListOffset_18));
#line 547 "tree_bitset.m"
                              MR_hl_field(MR_mktag(0), mercury__tree_bitset__NewOutNode_23, 1) = ((MR_Box) (mercury__tree_bitset__OutBits_22));
#line 547 "tree_bitset.m"
                            }
#line 3352 "tree_bitset.m"
                            {
#line 3352 "tree_bitset.m"
                              mercury__tree_bitset__leaflist_divide_by_set_4_p_0(mercury__tree_bitset__DivideByTail_11, mercury__tree_bitset__V_41_41, mercury__tree_bitset__HeadVar__3_3, &mercury__tree_bitset__OutTail_24);
                            }
#line 3354 "tree_bitset.m"
                            {
#line 3354 "tree_bitset.m"
                              MR_Word base;
#line 3354 "tree_bitset.m"
                              base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 3354 "tree_bitset.m"
                              *mercury__tree_bitset__HeadVar__4_4 = base;
#line 3354 "tree_bitset.m"
                              MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__NewOutNode_23));
#line 3354 "tree_bitset.m"
                              MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__OutTail_24));
#line 3354 "tree_bitset.m"
                            }
#line 3351 "tree_bitset.m"
                          }
#line 3350 "tree_bitset.m"
                      }
#line 3356 "tree_bitset.m"
                    else
#line 3357 "tree_bitset.m"
                      {
#line 3357 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__NewInNode_25;

#line 547 "tree_bitset.m"
                        {
#line 547 "tree_bitset.m"
                          mercury__tree_bitset__NewInNode_25 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__NewInNode_25, 0) = ((MR_Box) (mercury__tree_bitset__ListOffset_18));
#line 547 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__NewInNode_25, 1) = ((MR_Box) (mercury__tree_bitset__InBits_21));
#line 547 "tree_bitset.m"
                        }
#line 3358 "tree_bitset.m"
                        mercury__tree_bitset__succeeded = (mercury__tree_bitset__OutBits_22 == (MR_Integer) 0);
#line 3362 "tree_bitset.m"
                        if (mercury__tree_bitset__succeeded)
#line 3360 "tree_bitset.m"
                          {
#line 3360 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__InTail_26;

#line 3359 "tree_bitset.m"
                            {
#line 3359 "tree_bitset.m"
                              mercury__tree_bitset__leaflist_divide_by_set_4_p_0(mercury__tree_bitset__DivideByTail_11, mercury__tree_bitset__V_41_41, &mercury__tree_bitset__InTail_26, mercury__tree_bitset__HeadVar__4_4);
                            }
#line 3361 "tree_bitset.m"
                            {
#line 3361 "tree_bitset.m"
                              MR_Word base;
#line 3361 "tree_bitset.m"
                              base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 3361 "tree_bitset.m"
                              *mercury__tree_bitset__HeadVar__3_3 = base;
#line 3361 "tree_bitset.m"
                              MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__NewInNode_25));
#line 3361 "tree_bitset.m"
                              MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__InTail_26));
#line 3361 "tree_bitset.m"
                            }
#line 3360 "tree_bitset.m"
                          }
#line 3362 "tree_bitset.m"
                        else
#line 3363 "tree_bitset.m"
                          {
#line 3363 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__NewOutNode_28;
#line 3363 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__OutTail_29;
#line 3363 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__InTail_30;

#line 547 "tree_bitset.m"
                            {
#line 547 "tree_bitset.m"
                              mercury__tree_bitset__NewOutNode_28 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
                              MR_hl_field(MR_mktag(0), mercury__tree_bitset__NewOutNode_28, 0) = ((MR_Box) (mercury__tree_bitset__ListOffset_18));
#line 547 "tree_bitset.m"
                              MR_hl_field(MR_mktag(0), mercury__tree_bitset__NewOutNode_28, 1) = ((MR_Box) (mercury__tree_bitset__OutBits_22));
#line 547 "tree_bitset.m"
                            }
#line 3364 "tree_bitset.m"
                            {
#line 3364 "tree_bitset.m"
                              mercury__tree_bitset__leaflist_divide_by_set_4_p_0(mercury__tree_bitset__DivideByTail_11, mercury__tree_bitset__V_41_41, &mercury__tree_bitset__InTail_30, &mercury__tree_bitset__OutTail_29);
                            }
#line 3366 "tree_bitset.m"
                            {
#line 3366 "tree_bitset.m"
                              MR_Word base;
#line 3366 "tree_bitset.m"
                              base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 3366 "tree_bitset.m"
                              *mercury__tree_bitset__HeadVar__3_3 = base;
#line 3366 "tree_bitset.m"
                              MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__NewInNode_25));
#line 3366 "tree_bitset.m"
                              MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__InTail_30));
#line 3366 "tree_bitset.m"
                            }
#line 3367 "tree_bitset.m"
                            {
#line 3367 "tree_bitset.m"
                              MR_Word base;
#line 3367 "tree_bitset.m"
                              base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 3367 "tree_bitset.m"
                              *mercury__tree_bitset__HeadVar__4_4 = base;
#line 3367 "tree_bitset.m"
                              MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__NewOutNode_28));
#line 3367 "tree_bitset.m"
                              MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__OutTail_29));
#line 3367 "tree_bitset.m"
                            }
#line 3363 "tree_bitset.m"
                          }
#line 3357 "tree_bitset.m"
                      }
#line 3343 "tree_bitset.m"
                  }
#line 3370 "tree_bitset.m"
                else
#line 3372 "tree_bitset.m"
                  {
#line 3370 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = (mercury__tree_bitset__DivideByOffset_17 < mercury__tree_bitset__ListOffset_18);
#line 3372 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 3371 "tree_bitset.m"
                      {
#line 3371 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 3371 "tree_bitset.m"
                        {
#line 3371 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__DivideByTail_11;

#line 3371 "tree_bitset.m"
                          mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 3371 "tree_bitset.m"
                        }
#line 3371 "tree_bitset.m"
                        continue;
#line 3371 "tree_bitset.m"
                      }
#line 3372 "tree_bitset.m"
                    else
#line 3373 "tree_bitset.m"
                      {
#line 3373 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__OutTail_35;

#line 3373 "tree_bitset.m"
                        {
#line 3373 "tree_bitset.m"
                          mercury__tree_bitset__leaflist_divide_by_set_4_p_0(mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__V_41_41, mercury__tree_bitset__HeadVar__3_3, &mercury__tree_bitset__OutTail_35);
                        }
#line 3374 "tree_bitset.m"
                        {
#line 3374 "tree_bitset.m"
                          MR_Word base;
#line 3374 "tree_bitset.m"
                          base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 3374 "tree_bitset.m"
                          *mercury__tree_bitset__HeadVar__4_4 = base;
#line 3374 "tree_bitset.m"
                          MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__V_42_42));
#line 3374 "tree_bitset.m"
                          MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__OutTail_35));
#line 3374 "tree_bitset.m"
                        }
#line 3373 "tree_bitset.m"
                      }
#line 3372 "tree_bitset.m"
                  }
#line 3339 "tree_bitset.m"
              }
#line 3336 "tree_bitset.m"
          }
#line 3336 "tree_bitset.m"
      }
#line 3336 "tree_bitset.m"
      break;
#line 3336 "tree_bitset.m"
    }
#line 3333 "tree_bitset.m"
}

#line 3242 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__interiorlist_divide_by_set_5_p_0(
#line 3242 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__1_1,
#line 3242 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 3242 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__3_3,
#line 3242 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__4_4,
#line 3242 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__5_5)
#line 3242 "tree_bitset.m"
{
#line 3246 "tree_bitset.m"
  while (MR_TRUE)
#line 3246 "tree_bitset.m"
    {
#line 3246 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3246 "tree_bitset.m"
      {
#line 3246 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 3246 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__3_3 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3246 "tree_bitset.m"
          {
#line 3246 "tree_bitset.m"
            *mercury__tree_bitset__HeadVar__4_4 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 3246 "tree_bitset.m"
            *mercury__tree_bitset__HeadVar__5_5 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 3246 "tree_bitset.m"
          }
#line 3246 "tree_bitset.m"
        else
#line 3246 "tree_bitset.m"
          {
#line 3246 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_90_90 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__3_3, (MR_Integer) 1)));
#line 3246 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_91_91 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__3_3, (MR_Integer) 0)));

#line 3246 "tree_bitset.m"
            if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3247 "tree_bitset.m"
              {
#line 3247 "tree_bitset.m"
                *mercury__tree_bitset__HeadVar__4_4 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 3247 "tree_bitset.m"
                *mercury__tree_bitset__HeadVar__5_5 = mercury__tree_bitset__HeadVar__3_3;
#line 3247 "tree_bitset.m"
              }
#line 3246 "tree_bitset.m"
            else
#line 3249 "tree_bitset.m"
              {
#line 3249 "tree_bitset.m"
                MR_Word mercury__tree_bitset__DBNodesHead_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 3249 "tree_bitset.m"
                MR_Word mercury__tree_bitset__DBNodesTail_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 3249 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__DBInitOffset_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__DBNodesHead_14, (MR_Integer) 0)));
#line 3249 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__DBLimitOffset_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__DBNodesHead_14, (MR_Integer) 1)));
#line 3249 "tree_bitset.m"
                MR_Word mercury__tree_bitset__DBComponents_23 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__DBNodesHead_14, (MR_Integer) 2)));
#line 3249 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__InitOffset_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_91_91, (MR_Integer) 0)));
#line 3249 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LimitOffset_25 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_91_91, (MR_Integer) 1)));
#line 3249 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Components_26 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_91_91, (MR_Integer) 2)));

#line 3255 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__DBInitOffset_21 == mercury__tree_bitset__InitOffset_24);
#line 3319 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 3257 "tree_bitset.m"
                  {
#line 3257 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__InNodesTail_27;
#line 3257 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__OutNodesTail_28;

#line 3256 "tree_bitset.m"
                    {
#line 3256 "tree_bitset.m"
                      mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_49_55_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__DBLimitOffset_22, mercury__tree_bitset__LimitOffset_25, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.interiorlist_divide_by_set\'/5", (MR_String) "DBLimitOffset != LimitOffset");
                    }
#line 3258 "tree_bitset.m"
                    {
#line 3258 "tree_bitset.m"
                      mercury__tree_bitset__interiorlist_divide_by_set_5_p_0(mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__DBNodesTail_15, mercury__tree_bitset__V_90_90, &mercury__tree_bitset__InNodesTail_27, &mercury__tree_bitset__OutNodesTail_28);
                    }
#line 3283 "tree_bitset.m"
                    if (((MR_tag((MR_Word) mercury__tree_bitset__DBComponents_23)) == (MR_mktag((MR_Integer) 1))))
#line 3283 "tree_bitset.m"
                      {
#line 3283 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__V_92_92 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__DBComponents_23, (MR_Integer) 1)));
#line 3283 "tree_bitset.m"
                        MR_Integer mercury__tree_bitset__V_93_93 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__DBComponents_23, (MR_Integer) 0)));

#line 3283 "tree_bitset.m"
                        if (((MR_tag((MR_Word) mercury__tree_bitset__Components_26)) == (MR_mktag((MR_Integer) 1))))
#line 3292 "tree_bitset.m"
                          {
#line 3292 "tree_bitset.m"
                            MR_Integer mercury__tree_bitset__SubLevel_47 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_26, (MR_Integer) 0)));
#line 3292 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__SubNodes_48 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_26, (MR_Integer) 1)));
#line 3292 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__SubInNodes_49;
#line 3292 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__SubOutNodes_50;
#line 3292 "tree_bitset.m"
                            MR_Integer mercury__tree_bitset__V_67_67;

#line 3294 "tree_bitset.m"
                            {
#line 3294 "tree_bitset.m"
                              mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_49_54_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__SubLevel_47, mercury__tree_bitset__V_93_93, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.interiorlist_divide_by_set\'/5", (MR_String) "DBSubLevel != SubLevel");
                            }
#line 3296 "tree_bitset.m"
                            mercury__tree_bitset__V_67_67 = (mercury__tree_bitset__HeadVar__1_1 - (MR_Integer) 1);
#line 3296 "tree_bitset.m"
                            {
#line 3296 "tree_bitset.m"
                              mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_49_53_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__SubLevel_47, mercury__tree_bitset__V_67_67, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.interiorlist_divide_by_set\'/5", (MR_String) "DBSubLevel != SubLevel");
                            }
#line 3298 "tree_bitset.m"
                            {
#line 3298 "tree_bitset.m"
                              mercury__tree_bitset__interiorlist_divide_by_set_5_p_0(mercury__tree_bitset__SubLevel_47, mercury__tree_bitset__V_92_92, mercury__tree_bitset__SubNodes_48, &mercury__tree_bitset__SubInNodes_49, &mercury__tree_bitset__SubOutNodes_50);
                            }
#line 3303 "tree_bitset.m"
                            if ((mercury__tree_bitset__SubInNodes_49 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3301 "tree_bitset.m"
                              *mercury__tree_bitset__HeadVar__4_4 = mercury__tree_bitset__InNodesTail_27;
#line 3303 "tree_bitset.m"
                            else
#line 3304 "tree_bitset.m"
                              {
#line 3304 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__V_69_69;
#line 3304 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__InNodesHead_79;

#line 3305 "tree_bitset.m"
                                {
#line 3305 "tree_bitset.m"
                                  mercury__tree_bitset__V_69_69 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 3305 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_69_69, 0) = ((MR_Box) (mercury__tree_bitset__SubLevel_47));
#line 3305 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_69_69, 1) = ((MR_Box) (mercury__tree_bitset__SubInNodes_49));
#line 3305 "tree_bitset.m"
                                }
#line 3305 "tree_bitset.m"
                                {
#line 3305 "tree_bitset.m"
                                  mercury__tree_bitset__InNodesHead_79 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 3305 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InNodesHead_79, 0) = ((MR_Box) (mercury__tree_bitset__InitOffset_24));
#line 3305 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InNodesHead_79, 1) = ((MR_Box) (mercury__tree_bitset__LimitOffset_25));
#line 3305 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InNodesHead_79, 2) = ((MR_Box) (mercury__tree_bitset__V_69_69));
#line 3305 "tree_bitset.m"
                                }
#line 3307 "tree_bitset.m"
                                {
#line 3307 "tree_bitset.m"
                                  MR_Word base;
#line 3307 "tree_bitset.m"
                                  base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 3307 "tree_bitset.m"
                                  *mercury__tree_bitset__HeadVar__4_4 = base;
#line 3307 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__InNodesHead_79));
#line 3307 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__InNodesTail_27));
#line 3307 "tree_bitset.m"
                                }
#line 3304 "tree_bitset.m"
                              }
#line 3312 "tree_bitset.m"
                            if ((mercury__tree_bitset__SubOutNodes_50 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3310 "tree_bitset.m"
                              *mercury__tree_bitset__HeadVar__5_5 = mercury__tree_bitset__OutNodesTail_28;
#line 3312 "tree_bitset.m"
                            else
#line 3313 "tree_bitset.m"
                              {
#line 3313 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__V_70_70;
#line 3313 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__OutNodesHead_81;

#line 3314 "tree_bitset.m"
                                {
#line 3314 "tree_bitset.m"
                                  mercury__tree_bitset__V_70_70 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 3314 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_70_70, 0) = ((MR_Box) (mercury__tree_bitset__SubLevel_47));
#line 3314 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_70_70, 1) = ((MR_Box) (mercury__tree_bitset__SubOutNodes_50));
#line 3314 "tree_bitset.m"
                                }
#line 3314 "tree_bitset.m"
                                {
#line 3314 "tree_bitset.m"
                                  mercury__tree_bitset__OutNodesHead_81 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 3314 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__OutNodesHead_81, 0) = ((MR_Box) (mercury__tree_bitset__InitOffset_24));
#line 3314 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__OutNodesHead_81, 1) = ((MR_Box) (mercury__tree_bitset__LimitOffset_25));
#line 3314 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__OutNodesHead_81, 2) = ((MR_Box) (mercury__tree_bitset__V_70_70));
#line 3314 "tree_bitset.m"
                                }
#line 3316 "tree_bitset.m"
                                {
#line 3316 "tree_bitset.m"
                                  MR_Word base;
#line 3316 "tree_bitset.m"
                                  base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 3316 "tree_bitset.m"
                                  *mercury__tree_bitset__HeadVar__5_5 = base;
#line 3316 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__OutNodesHead_81));
#line 3316 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__OutNodesTail_28));
#line 3316 "tree_bitset.m"
                                }
#line 3313 "tree_bitset.m"
                              }
#line 3292 "tree_bitset.m"
                          }
#line 3283 "tree_bitset.m"
                        else
#line 3284 "tree_bitset.m"
                          {
#line 3286 "tree_bitset.m"
                            {
#line 3286 "tree_bitset.m"
                              mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.interiorlist_divide_by_set\'/5", (MR_String) "DB interior vs leaf");
#line 3286 "tree_bitset.m"
                              return;
                            }
#line 3284 "tree_bitset.m"
                          }
#line 3283 "tree_bitset.m"
                      }
#line 3283 "tree_bitset.m"
                    else
#line 3283 "tree_bitset.m"
                      {
#line 3283 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__V_94_94 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__DBComponents_23, (MR_Integer) 0)));

#line 3283 "tree_bitset.m"
                        if (((MR_tag((MR_Word) mercury__tree_bitset__Components_26)) == (MR_mktag((MR_Integer) 1))))
#line 3288 "tree_bitset.m"
                          {
#line 3290 "tree_bitset.m"
                            {
#line 3290 "tree_bitset.m"
                              mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.interiorlist_divide_by_set\'/5", (MR_String) "DB leaf vs interior");
#line 3290 "tree_bitset.m"
                              return;
                            }
#line 3288 "tree_bitset.m"
                          }
#line 3283 "tree_bitset.m"
                        else
#line 3261 "tree_bitset.m"
                          {
#line 3261 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__LeafNodes_30 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_26, (MR_Integer) 0)));
#line 3261 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__InLeafNodes_31;
#line 3261 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__OutLeafNodes_32;

#line 3263 "tree_bitset.m"
                            {
#line 3263 "tree_bitset.m"
                              mercury__tree_bitset__leaflist_divide_by_set_4_p_0(mercury__tree_bitset__V_94_94, mercury__tree_bitset__LeafNodes_30, &mercury__tree_bitset__InLeafNodes_31, &mercury__tree_bitset__OutLeafNodes_32);
                            }
#line 3268 "tree_bitset.m"
                            if ((mercury__tree_bitset__InLeafNodes_31 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3266 "tree_bitset.m"
                              *mercury__tree_bitset__HeadVar__4_4 = mercury__tree_bitset__InNodesTail_27;
#line 3268 "tree_bitset.m"
                            else
#line 3269 "tree_bitset.m"
                              {
#line 3269 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__InNodesHead_35;
#line 3269 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__V_77_77;

#line 3270 "tree_bitset.m"
                                {
#line 3270 "tree_bitset.m"
                                  mercury__tree_bitset__V_77_77 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 3270 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_77_77, 0) = ((MR_Box) (mercury__tree_bitset__InLeafNodes_31));
#line 3270 "tree_bitset.m"
                                }
#line 3270 "tree_bitset.m"
                                {
#line 3270 "tree_bitset.m"
                                  mercury__tree_bitset__InNodesHead_35 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 3270 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InNodesHead_35, 0) = ((MR_Box) (mercury__tree_bitset__InitOffset_24));
#line 3270 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InNodesHead_35, 1) = ((MR_Box) (mercury__tree_bitset__LimitOffset_25));
#line 3270 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InNodesHead_35, 2) = ((MR_Box) (mercury__tree_bitset__V_77_77));
#line 3270 "tree_bitset.m"
                                }
#line 3272 "tree_bitset.m"
                                {
#line 3272 "tree_bitset.m"
                                  MR_Word base;
#line 3272 "tree_bitset.m"
                                  base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 3272 "tree_bitset.m"
                                  *mercury__tree_bitset__HeadVar__4_4 = base;
#line 3272 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__InNodesHead_35));
#line 3272 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__InNodesTail_27));
#line 3272 "tree_bitset.m"
                                }
#line 3269 "tree_bitset.m"
                              }
#line 3277 "tree_bitset.m"
                            if ((mercury__tree_bitset__OutLeafNodes_32 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3275 "tree_bitset.m"
                              *mercury__tree_bitset__HeadVar__5_5 = mercury__tree_bitset__OutNodesTail_28;
#line 3277 "tree_bitset.m"
                            else
#line 3278 "tree_bitset.m"
                              {
#line 3278 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__OutNodesHead_38;
#line 3278 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__V_78_78;

#line 3279 "tree_bitset.m"
                                {
#line 3279 "tree_bitset.m"
                                  mercury__tree_bitset__V_78_78 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 3279 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_78_78, 0) = ((MR_Box) (mercury__tree_bitset__OutLeafNodes_32));
#line 3279 "tree_bitset.m"
                                }
#line 3279 "tree_bitset.m"
                                {
#line 3279 "tree_bitset.m"
                                  mercury__tree_bitset__OutNodesHead_38 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 3279 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__OutNodesHead_38, 0) = ((MR_Box) (mercury__tree_bitset__InitOffset_24));
#line 3279 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__OutNodesHead_38, 1) = ((MR_Box) (mercury__tree_bitset__LimitOffset_25));
#line 3279 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__OutNodesHead_38, 2) = ((MR_Box) (mercury__tree_bitset__V_78_78));
#line 3279 "tree_bitset.m"
                                }
#line 3281 "tree_bitset.m"
                                {
#line 3281 "tree_bitset.m"
                                  MR_Word base;
#line 3281 "tree_bitset.m"
                                  base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 3281 "tree_bitset.m"
                                  *mercury__tree_bitset__HeadVar__5_5 = base;
#line 3281 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__OutNodesHead_38));
#line 3281 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__OutNodesTail_28));
#line 3281 "tree_bitset.m"
                                }
#line 3278 "tree_bitset.m"
                              }
#line 3261 "tree_bitset.m"
                          }
#line 3283 "tree_bitset.m"
                      }
#line 3257 "tree_bitset.m"
                  }
#line 3319 "tree_bitset.m"
                else
#line 3324 "tree_bitset.m"
                  {
#line 3319 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = (mercury__tree_bitset__DBInitOffset_21 < mercury__tree_bitset__InitOffset_24);
#line 3324 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 3322 "tree_bitset.m"
                      {
#line 3322 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 3322 "tree_bitset.m"
                        {
#line 3322 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__DBNodesTail_15;

#line 3322 "tree_bitset.m"
                          mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 3322 "tree_bitset.m"
                        }
#line 3322 "tree_bitset.m"
                        continue;
#line 3322 "tree_bitset.m"
                      }
#line 3324 "tree_bitset.m"
                    else
#line 3329 "tree_bitset.m"
                      {
#line 3329 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__OutNodesTail_85;

#line 3328 "tree_bitset.m"
                        {
#line 3328 "tree_bitset.m"
                          mercury__tree_bitset__interiorlist_divide_by_set_5_p_0(mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__HeadVar__2_2, mercury__tree_bitset__V_90_90, mercury__tree_bitset__HeadVar__4_4, &mercury__tree_bitset__OutNodesTail_85);
                        }
#line 3330 "tree_bitset.m"
                        {
#line 3330 "tree_bitset.m"
                          MR_Word base;
#line 3330 "tree_bitset.m"
                          base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 3330 "tree_bitset.m"
                          *mercury__tree_bitset__HeadVar__5_5 = base;
#line 3330 "tree_bitset.m"
                          MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__V_91_91));
#line 3330 "tree_bitset.m"
                          MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__OutNodesTail_85));
#line 3330 "tree_bitset.m"
                        }
#line 3329 "tree_bitset.m"
                      }
#line 3324 "tree_bitset.m"
                  }
#line 3249 "tree_bitset.m"
              }
#line 3246 "tree_bitset.m"
          }
#line 3246 "tree_bitset.m"
      }
#line 3246 "tree_bitset.m"
      break;
#line 3246 "tree_bitset.m"
    }
#line 3242 "tree_bitset.m"
}

#line 3155 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__divide_by_set_descend_divide_by_8_p_0(
#line 3155 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__DBLevel_9,
#line 3155 "tree_bitset.m"
  MR_Word mercury__tree_bitset__DBNodes_10,
#line 3155 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Level_11,
#line 3155 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__InitOffset_12,
#line 3155 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LimitOffset_13,
#line 3155 "tree_bitset.m"
  MR_Word mercury__tree_bitset__List_14,
#line 3155 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__InList_15,
#line 3155 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__OutList_16)
#line 3155 "tree_bitset.m"
{
#line 3160 "tree_bitset.m"
  while (MR_TRUE)
#line 3160 "tree_bitset.m"
    {
#line 3160 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 3160 "tree_bitset.m"
      {
#line 3160 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__DBLevel_9 > mercury__tree_bitset__Level_11);

#line 32 "require.opt"
        if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
          {
#line 31 "require.opt"
          }
#line 32 "require.opt"
        else
#line 33 "require.opt"
          {
#line 33 "require.opt"
            mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.divide_by_set_descend_divide_by\'/8", (MR_String) "not DBLevel > Level");
#line 33 "require.opt"
            return;
          }
#line 3167 "tree_bitset.m"
        if ((mercury__tree_bitset__DBNodes_10 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3163 "tree_bitset.m"
          {
#line 3163 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_68_68 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));

#line 3165 "tree_bitset.m"
            *mercury__tree_bitset__InList_15 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 3166 "tree_bitset.m"
            *mercury__tree_bitset__OutList_16 = mercury__tree_bitset__List_14;
#line 3163 "tree_bitset.m"
          }
#line 3167 "tree_bitset.m"
        else
#line 3168 "tree_bitset.m"
          {
#line 3168 "tree_bitset.m"
            MR_Word mercury__tree_bitset__DBNodesHead_17 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__DBNodes_10, (MR_Integer) 0)));
#line 3168 "tree_bitset.m"
            MR_Word mercury__tree_bitset__DBNodesTail_18 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__DBNodes_10, (MR_Integer) 1)));
#line 3168 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__DBHeadInitOffset_19 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__DBNodesHead_17, (MR_Integer) 0)));
#line 3168 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__DBHeadLimitOffset_20 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__DBNodesHead_17, (MR_Integer) 1)));
#line 3168 "tree_bitset.m"
            MR_Word mercury__tree_bitset__DBHeadComponents_21 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__DBNodesHead_17, (MR_Integer) 2)));

#line 3171 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__DBHeadLimitOffset_20 <= mercury__tree_bitset__InitOffset_12);
#line 3175 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3173 "tree_bitset.m"
              {
#line 3173 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 3173 "tree_bitset.m"
                {
#line 3173 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__DBNodes__tmp_copy_10 = mercury__tree_bitset__DBNodesTail_18;

#line 3173 "tree_bitset.m"
                  mercury__tree_bitset__DBNodes_10 = mercury__tree_bitset__DBNodes__tmp_copy_10;
#line 3173 "tree_bitset.m"
                }
#line 3173 "tree_bitset.m"
                continue;
#line 3173 "tree_bitset.m"
              }
#line 3175 "tree_bitset.m"
            else
#line 3180 "tree_bitset.m"
              {
#line 3175 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__LimitOffset_13 <= mercury__tree_bitset__DBHeadInitOffset_19);
#line 3180 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 3178 "tree_bitset.m"
                  {
#line 3178 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_40_40 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));

#line 3178 "tree_bitset.m"
                    *mercury__tree_bitset__InList_15 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 3179 "tree_bitset.m"
                    *mercury__tree_bitset__OutList_16 = mercury__tree_bitset__List_14;
#line 3178 "tree_bitset.m"
                  }
#line 3180 "tree_bitset.m"
                else
#line 3202 "tree_bitset.m"
                  if (((MR_tag((MR_Word) mercury__tree_bitset__DBHeadComponents_21)) == (MR_mktag((MR_Integer) 1))))
#line 3203 "tree_bitset.m"
                    {
#line 3203 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__DBSubLevel_28 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__DBHeadComponents_21, (MR_Integer) 0)));
#line 3203 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__DBSubNodes_29 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__DBHeadComponents_21, (MR_Integer) 1)));
#line 3203 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__V_45_45 = (mercury__tree_bitset__DBSubLevel_28 + (MR_Integer) 1);

#line 3204 "tree_bitset.m"
                      {
#line 3204 "tree_bitset.m"
                        mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_48_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__DBLevel_9, mercury__tree_bitset__V_45_45, (MR_String) "predicate \140tree_bitset.divide_by_set_descend_divide_by\'/8", (MR_String) "tree_bitset", (MR_String) "DBLevel != SubLevel + 1");
                      }
#line 3206 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = (mercury__tree_bitset__DBSubLevel_28 > mercury__tree_bitset__Level_11);
#line 3209 "tree_bitset.m"
                      if (mercury__tree_bitset__succeeded)
#line 3207 "tree_bitset.m"
                        {
#line 3207 "tree_bitset.m"
                          /* direct tailcall eliminated */
#line 3207 "tree_bitset.m"
                          {
#line 3207 "tree_bitset.m"
                            MR_Integer mercury__tree_bitset__DBLevel__tmp_copy_9 = mercury__tree_bitset__DBSubLevel_28;
#line 3207 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__DBNodes__tmp_copy_10 = mercury__tree_bitset__DBSubNodes_29;

#line 3207 "tree_bitset.m"
                            mercury__tree_bitset__DBNodes_10 = mercury__tree_bitset__DBNodes__tmp_copy_10;
#line 3207 "tree_bitset.m"
                            mercury__tree_bitset__DBLevel_9 = mercury__tree_bitset__DBLevel__tmp_copy_9;
#line 3207 "tree_bitset.m"
                          }
#line 3207 "tree_bitset.m"
                          continue;
#line 3207 "tree_bitset.m"
                        }
#line 3209 "tree_bitset.m"
                      else
#line 3235 "tree_bitset.m"
                        {
#line 3209 "tree_bitset.m"
                          mercury__tree_bitset__succeeded = (mercury__tree_bitset__DBSubLevel_28 == mercury__tree_bitset__Level_11);
#line 3235 "tree_bitset.m"
                          if (mercury__tree_bitset__succeeded)
#line 3216 "tree_bitset.m"
                            if (((MR_tag((MR_Word) mercury__tree_bitset__List_14)) == (MR_mktag((MR_Integer) 1))))
#line 3217 "tree_bitset.m"
                              {
#line 3217 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__Nodes_69 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_14, (MR_Integer) 1)));
#line 3217 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__InNodes_70;
#line 3217 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__OutNodes_71;
#line 3217 "tree_bitset.m"
                                MR_Integer mercury__tree_bitset__V_31_31 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_14, (MR_Integer) 0)));

#line 3218 "tree_bitset.m"
                                {
#line 3218 "tree_bitset.m"
                                  mercury__tree_bitset__interiorlist_divide_by_set_5_p_0(mercury__tree_bitset__Level_11, mercury__tree_bitset__DBSubNodes_29, mercury__tree_bitset__Nodes_69, &mercury__tree_bitset__InNodes_70, &mercury__tree_bitset__OutNodes_71);
                                }
#line 3223 "tree_bitset.m"
                                if ((mercury__tree_bitset__InNodes_70 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3221 "tree_bitset.m"
                                  {
#line 3221 "tree_bitset.m"
                                    MR_Word mercury__tree_bitset__V_47_47 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));

#line 3222 "tree_bitset.m"
                                    *mercury__tree_bitset__InList_15 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 3221 "tree_bitset.m"
                                  }
#line 3223 "tree_bitset.m"
                                else
#line 3225 "tree_bitset.m"
                                  {
#line 3225 "tree_bitset.m"
                                    MR_Word base;
#line 3225 "tree_bitset.m"
                                    base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 3225 "tree_bitset.m"
                                    *mercury__tree_bitset__InList_15 = base;
#line 3225 "tree_bitset.m"
                                    MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Level_11));
#line 3225 "tree_bitset.m"
                                    MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__InNodes_70));
#line 3225 "tree_bitset.m"
                                  }
#line 3230 "tree_bitset.m"
                                if ((mercury__tree_bitset__OutNodes_71 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3228 "tree_bitset.m"
                                  {
#line 3228 "tree_bitset.m"
                                    MR_Word mercury__tree_bitset__V_48_48 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));

#line 3229 "tree_bitset.m"
                                    *mercury__tree_bitset__OutList_16 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 3228 "tree_bitset.m"
                                  }
#line 3230 "tree_bitset.m"
                                else
#line 3232 "tree_bitset.m"
                                  {
#line 3232 "tree_bitset.m"
                                    MR_Word base;
#line 3232 "tree_bitset.m"
                                    base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 3232 "tree_bitset.m"
                                    *mercury__tree_bitset__OutList_16 = base;
#line 3232 "tree_bitset.m"
                                    MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Level_11));
#line 3232 "tree_bitset.m"
                                    MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__OutNodes_71));
#line 3232 "tree_bitset.m"
                                  }
#line 3217 "tree_bitset.m"
                              }
#line 3216 "tree_bitset.m"
                            else
#line 3211 "tree_bitset.m"
                              {
#line 3215 "tree_bitset.m"
                                {
#line 3215 "tree_bitset.m"
                                  mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.divide_by_set_descend_divide_by\'/8", (MR_String) "List is leaf_list");
#line 3215 "tree_bitset.m"
                                  return;
                                }
#line 3211 "tree_bitset.m"
                              }
#line 3235 "tree_bitset.m"
                          else
#line 3236 "tree_bitset.m"
                            {
#line 3236 "tree_bitset.m"
                              {
#line 3236 "tree_bitset.m"
                                mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.divide_by_set_descend_divide_by\'/8", (MR_String) "DBSubLevel > Level");
#line 3236 "tree_bitset.m"
                                return;
                              }
#line 3236 "tree_bitset.m"
                            }
#line 3235 "tree_bitset.m"
                        }
#line 3203 "tree_bitset.m"
                    }
#line 3202 "tree_bitset.m"
                  else
#line 3185 "tree_bitset.m"
                    {
#line 3185 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__DBHeadLeafNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__DBHeadComponents_21, (MR_Integer) 0)));

#line 3186 "tree_bitset.m"
                      {
#line 3186 "tree_bitset.m"
                        mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_49_57_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__DBLevel_9, (MR_Integer) 1, (MR_String) "predicate \140tree_bitset.divide_by_set_descend_divide_by\'/8", (MR_String) "tree_bitset", (MR_String) "DBLevel != 1");
                      }
#line 3187 "tree_bitset.m"
                      {
#line 3187 "tree_bitset.m"
                        mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_49_56_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__Level_11, (MR_Integer) 0, (MR_String) "predicate \140tree_bitset.divide_by_set_descend_divide_by\'/8", (MR_String) "tree_bitset", (MR_String) "Level != 0");
                      }
#line 3196 "tree_bitset.m"
                      if (((MR_tag((MR_Word) mercury__tree_bitset__List_14)) == (MR_mktag((MR_Integer) 1))))
#line 3197 "tree_bitset.m"
                        {
#line 3200 "tree_bitset.m"
                          {
#line 3200 "tree_bitset.m"
                            mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.divide_by_set_descend_divide_by\'/8", (MR_String) "List is not leaf_list");
#line 3200 "tree_bitset.m"
                            return;
                          }
#line 3197 "tree_bitset.m"
                        }
#line 3196 "tree_bitset.m"
                      else
#line 3191 "tree_bitset.m"
                        {
#line 3191 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__Nodes_23 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_14, (MR_Integer) 0)));
#line 3191 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__InNodes_24;
#line 3191 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__OutNodes_25;

#line 3192 "tree_bitset.m"
                          {
#line 3192 "tree_bitset.m"
                            mercury__tree_bitset__leaflist_divide_by_set_4_p_0(mercury__tree_bitset__DBHeadLeafNodes_22, mercury__tree_bitset__Nodes_23, &mercury__tree_bitset__InNodes_24, &mercury__tree_bitset__OutNodes_25);
                          }
#line 3194 "tree_bitset.m"
                          {
#line 3194 "tree_bitset.m"
                            MR_Word base;
#line 3194 "tree_bitset.m"
                            base = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 3194 "tree_bitset.m"
                            *mercury__tree_bitset__InList_15 = base;
#line 3194 "tree_bitset.m"
                            MR_hl_field(MR_mktag(0), base, 0) = ((MR_Box) (mercury__tree_bitset__InNodes_24));
#line 3194 "tree_bitset.m"
                          }
#line 3195 "tree_bitset.m"
                          {
#line 3195 "tree_bitset.m"
                            MR_Word base;
#line 3195 "tree_bitset.m"
                            base = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 3195 "tree_bitset.m"
                            *mercury__tree_bitset__OutList_16 = base;
#line 3195 "tree_bitset.m"
                            MR_hl_field(MR_mktag(0), base, 0) = ((MR_Box) (mercury__tree_bitset__OutNodes_25));
#line 3195 "tree_bitset.m"
                          }
#line 3191 "tree_bitset.m"
                        }
#line 3185 "tree_bitset.m"
                    }
#line 3180 "tree_bitset.m"
              }
#line 3168 "tree_bitset.m"
          }
#line 3160 "tree_bitset.m"
      }
#line 3160 "tree_bitset.m"
      break;
#line 3160 "tree_bitset.m"
    }
#line 3155 "tree_bitset.m"
}

#line 2994 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__interiornode_divide_4_p_0(
#line 2994 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_43,
#line 2994 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 2994 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 2994 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3,
#line 2994 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__4_4)
#line 2994 "tree_bitset.m"
{
#line 2998 "tree_bitset.m"
  {
#line 2998 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 2998 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2998 "tree_bitset.m"
      {
#line 2998 "tree_bitset.m"
        *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2998 "tree_bitset.m"
        *mercury__tree_bitset__HeadVar__4_4 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2998 "tree_bitset.m"
      }
#line 2998 "tree_bitset.m"
    else
#line 2999 "tree_bitset.m"
      {
#line 2999 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Head_7 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 2999 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Tail_8 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 2999 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InTail_11;
#line 2999 "tree_bitset.m"
        MR_Word mercury__tree_bitset__OutTail_12;
#line 2999 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__InitOffset_13;
#line 2999 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__LimitOffset_14;
#line 2999 "tree_bitset.m"
        MR_Word mercury__tree_bitset__SubNodes_15;

#line 3000 "tree_bitset.m"
        {
#line 3000 "tree_bitset.m"
          mercury__tree_bitset__interiornode_divide_4_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_43, mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__Tail_8, &mercury__tree_bitset__InTail_11, &mercury__tree_bitset__OutTail_12);
        }
#line 3001 "tree_bitset.m"
        mercury__tree_bitset__InitOffset_13 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_7, (MR_Integer) 0)));
#line 3001 "tree_bitset.m"
        mercury__tree_bitset__LimitOffset_14 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_7, (MR_Integer) 1)));
#line 3001 "tree_bitset.m"
        mercury__tree_bitset__SubNodes_15 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_7, (MR_Integer) 2)));
#line 3023 "tree_bitset.m"
        if (((MR_tag((MR_Word) mercury__tree_bitset__SubNodes_15)) == (MR_mktag((MR_Integer) 1))))
#line 3024 "tree_bitset.m"
          {
#line 3024 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Level_25 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__SubNodes_15, (MR_Integer) 0)));
#line 3024 "tree_bitset.m"
            MR_Word mercury__tree_bitset__SubInteriorNodes_26 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__SubNodes_15, (MR_Integer) 1)));
#line 3024 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InSubInteriorNodes_27;
#line 3024 "tree_bitset.m"
            MR_Word mercury__tree_bitset__OutSubInteriorNodes_28;

#line 3025 "tree_bitset.m"
            {
#line 3025 "tree_bitset.m"
              mercury__tree_bitset__interiornode_divide_4_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_43, mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__SubInteriorNodes_26, &mercury__tree_bitset__InSubInteriorNodes_27, &mercury__tree_bitset__OutSubInteriorNodes_28);
            }
#line 3030 "tree_bitset.m"
            if ((mercury__tree_bitset__InSubInteriorNodes_27 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3029 "tree_bitset.m"
              *mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__InTail_11;
#line 3030 "tree_bitset.m"
            else
#line 3031 "tree_bitset.m"
              {
#line 3031 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_33_33;
#line 3031 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InHead_37;

#line 3032 "tree_bitset.m"
                {
#line 3032 "tree_bitset.m"
                  mercury__tree_bitset__V_33_33 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 3032 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_33_33, 0) = ((MR_Box) (mercury__tree_bitset__Level_25));
#line 3032 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_33_33, 1) = ((MR_Box) (mercury__tree_bitset__InSubInteriorNodes_27));
#line 3032 "tree_bitset.m"
                }
#line 3032 "tree_bitset.m"
                {
#line 3032 "tree_bitset.m"
                  mercury__tree_bitset__InHead_37 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 3032 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InHead_37, 0) = ((MR_Box) (mercury__tree_bitset__InitOffset_13));
#line 3032 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InHead_37, 1) = ((MR_Box) (mercury__tree_bitset__LimitOffset_14));
#line 3032 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InHead_37, 2) = ((MR_Box) (mercury__tree_bitset__V_33_33));
#line 3032 "tree_bitset.m"
                }
#line 3034 "tree_bitset.m"
                {
#line 3034 "tree_bitset.m"
                  MR_Word base;
#line 3034 "tree_bitset.m"
                  base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 3034 "tree_bitset.m"
                  *mercury__tree_bitset__HeadVar__3_3 = base;
#line 3034 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__InHead_37));
#line 3034 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__InTail_11));
#line 3034 "tree_bitset.m"
                }
#line 3031 "tree_bitset.m"
              }
#line 3039 "tree_bitset.m"
            if ((mercury__tree_bitset__OutSubInteriorNodes_28 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3038 "tree_bitset.m"
              *mercury__tree_bitset__HeadVar__4_4 = mercury__tree_bitset__OutTail_12;
#line 3039 "tree_bitset.m"
            else
#line 3040 "tree_bitset.m"
              {
#line 3040 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_34_34;
#line 3040 "tree_bitset.m"
                MR_Word mercury__tree_bitset__OutHead_39;

#line 3041 "tree_bitset.m"
                {
#line 3041 "tree_bitset.m"
                  mercury__tree_bitset__V_34_34 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 3041 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_34_34, 0) = ((MR_Box) (mercury__tree_bitset__Level_25));
#line 3041 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_34_34, 1) = ((MR_Box) (mercury__tree_bitset__OutSubInteriorNodes_28));
#line 3041 "tree_bitset.m"
                }
#line 3041 "tree_bitset.m"
                {
#line 3041 "tree_bitset.m"
                  mercury__tree_bitset__OutHead_39 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 3041 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__OutHead_39, 0) = ((MR_Box) (mercury__tree_bitset__InitOffset_13));
#line 3041 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__OutHead_39, 1) = ((MR_Box) (mercury__tree_bitset__LimitOffset_14));
#line 3041 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__OutHead_39, 2) = ((MR_Box) (mercury__tree_bitset__V_34_34));
#line 3041 "tree_bitset.m"
                }
#line 3043 "tree_bitset.m"
                {
#line 3043 "tree_bitset.m"
                  MR_Word base;
#line 3043 "tree_bitset.m"
                  base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 3043 "tree_bitset.m"
                  *mercury__tree_bitset__HeadVar__4_4 = base;
#line 3043 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__OutHead_39));
#line 3043 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__OutTail_12));
#line 3043 "tree_bitset.m"
                }
#line 3040 "tree_bitset.m"
              }
#line 3024 "tree_bitset.m"
          }
#line 3023 "tree_bitset.m"
        else
#line 3003 "tree_bitset.m"
          {
#line 3003 "tree_bitset.m"
            MR_Word mercury__tree_bitset__SubLeafNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__SubNodes_15, (MR_Integer) 0)));
#line 3003 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InLeafNodes_17;
#line 3003 "tree_bitset.m"
            MR_Word mercury__tree_bitset__OutLeafNodes_18;

#line 3004 "tree_bitset.m"
            {
#line 3004 "tree_bitset.m"
              mercury__tree_bitset__leaflist_divide_4_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_43, mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__SubLeafNodes_16, &mercury__tree_bitset__InLeafNodes_17, &mercury__tree_bitset__OutLeafNodes_18);
            }
#line 3008 "tree_bitset.m"
            if ((mercury__tree_bitset__InLeafNodes_17 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3007 "tree_bitset.m"
              *mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__InTail_11;
#line 3008 "tree_bitset.m"
            else
#line 3009 "tree_bitset.m"
              {
#line 3009 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InHead_21;
#line 3009 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_35_35;

#line 3010 "tree_bitset.m"
                {
#line 3010 "tree_bitset.m"
                  mercury__tree_bitset__V_35_35 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 3010 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_35_35, 0) = ((MR_Box) (mercury__tree_bitset__InLeafNodes_17));
#line 3010 "tree_bitset.m"
                }
#line 3010 "tree_bitset.m"
                {
#line 3010 "tree_bitset.m"
                  mercury__tree_bitset__InHead_21 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 3010 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InHead_21, 0) = ((MR_Box) (mercury__tree_bitset__InitOffset_13));
#line 3010 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InHead_21, 1) = ((MR_Box) (mercury__tree_bitset__LimitOffset_14));
#line 3010 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InHead_21, 2) = ((MR_Box) (mercury__tree_bitset__V_35_35));
#line 3010 "tree_bitset.m"
                }
#line 3012 "tree_bitset.m"
                {
#line 3012 "tree_bitset.m"
                  MR_Word base;
#line 3012 "tree_bitset.m"
                  base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 3012 "tree_bitset.m"
                  *mercury__tree_bitset__HeadVar__3_3 = base;
#line 3012 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__InHead_21));
#line 3012 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__InTail_11));
#line 3012 "tree_bitset.m"
                }
#line 3009 "tree_bitset.m"
              }
#line 3017 "tree_bitset.m"
            if ((mercury__tree_bitset__OutLeafNodes_18 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3016 "tree_bitset.m"
              *mercury__tree_bitset__HeadVar__4_4 = mercury__tree_bitset__OutTail_12;
#line 3017 "tree_bitset.m"
            else
#line 3018 "tree_bitset.m"
              {
#line 3018 "tree_bitset.m"
                MR_Word mercury__tree_bitset__OutHead_24;
#line 3018 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_36_36;

#line 3019 "tree_bitset.m"
                {
#line 3019 "tree_bitset.m"
                  mercury__tree_bitset__V_36_36 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 3019 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_36_36, 0) = ((MR_Box) (mercury__tree_bitset__OutLeafNodes_18));
#line 3019 "tree_bitset.m"
                }
#line 3019 "tree_bitset.m"
                {
#line 3019 "tree_bitset.m"
                  mercury__tree_bitset__OutHead_24 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 3019 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__OutHead_24, 0) = ((MR_Box) (mercury__tree_bitset__InitOffset_13));
#line 3019 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__OutHead_24, 1) = ((MR_Box) (mercury__tree_bitset__LimitOffset_14));
#line 3019 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__OutHead_24, 2) = ((MR_Box) (mercury__tree_bitset__V_36_36));
#line 3019 "tree_bitset.m"
                }
#line 3021 "tree_bitset.m"
                {
#line 3021 "tree_bitset.m"
                  MR_Word base;
#line 3021 "tree_bitset.m"
                  base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 3021 "tree_bitset.m"
                  *mercury__tree_bitset__HeadVar__4_4 = base;
#line 3021 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__OutHead_24));
#line 3021 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__OutTail_12));
#line 3021 "tree_bitset.m"
                }
#line 3018 "tree_bitset.m"
              }
#line 3003 "tree_bitset.m"
          }
#line 2999 "tree_bitset.m"
      }
#line 2998 "tree_bitset.m"
  }
#line 2994 "tree_bitset.m"
}

#line 2973 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leafnode_divide_8_p_0(
#line 2973 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_29,
#line 2973 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Pred_9,
#line 2973 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_10,
#line 2973 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__WhichBit_11,
#line 2973 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_12,
#line 2973 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__STATE_VARIABLE_InBits_0_17,
#line 2973 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__STATE_VARIABLE_InBits_18,
#line 2973 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__STATE_VARIABLE_OutBits_0_19,
#line 2973 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__STATE_VARIABLE_OutBits_20)
#line 2973 "tree_bitset.m"
{
#line 2990 "tree_bitset.m"
  while (MR_TRUE)
#line 2990 "tree_bitset.m"
    {
#line 2990 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 2990 "tree_bitset.m"
      {
#line 2990 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;
#line 2977 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_21_21;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leafnode_divide_8_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 53105 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_21_21  = Bits;
#line 171 "int.opt"
}
#line 2977 "tree_bitset.m"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__WhichBit_11 < mercury__tree_bitset__V_21_21);
#line 2990 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 2978 "tree_bitset.m"
          {
#line 2978 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__SelectedBit_15;
#line 2978 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__STATE_VARIABLE_InBits_23_23;
#line 2978 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__STATE_VARIABLE_OutBits_24_24;
#line 2978 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_25_25;
#line 2978 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) 1 << mercury__tree_bitset__WhichBit_11);

#line 3627 "tree_bitset.m"
            mercury__tree_bitset__SelectedBit_15 = (mercury__tree_bitset__Bits_12 & mercury__tree_bitset__V_33_33);
#line 2979 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__SelectedBit_15 == (MR_Integer) 0);
#line 2981 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 2980 "tree_bitset.m"
              {
#line 2980 "tree_bitset.m"
                mercury__tree_bitset__STATE_VARIABLE_OutBits_24_24 = mercury__tree_bitset__STATE_VARIABLE_OutBits_0_19;
#line 2980 "tree_bitset.m"
                mercury__tree_bitset__STATE_VARIABLE_InBits_23_23 = mercury__tree_bitset__STATE_VARIABLE_InBits_0_17;
#line 2980 "tree_bitset.m"
              }
#line 2981 "tree_bitset.m"
            else
#line 2982 "tree_bitset.m"
              {
#line 2982 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem_16;
#line 2982 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_22_22 = (mercury__tree_bitset__Offset_10 + mercury__tree_bitset__WhichBit_11);
#line 565 "tree_bitset.m"
                MR_Box mercury__tree_bitset__Elem0_37;
#line 53153 "tree_bitset.c"
                MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_29, (MR_Integer) 0)), (MR_Integer) 6)));
#line 2983 "tree_bitset.m"
                MR_bool MR_CALL (* mercury__tree_bitset__func_1)(MR_Box, MR_Box);

#line 53158 "tree_bitset.c"
                {
#line 53160 "tree_bitset.c"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_29), ((MR_Box) (mercury__tree_bitset__V_22_22)), &mercury__tree_bitset__Elem0_37);
                }
#line 565 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
                  mercury__tree_bitset__Elem_16 = mercury__tree_bitset__Elem0_37;
#line 565 "tree_bitset.m"
                else
#line 568 "tree_bitset.m"
                  {
#line 568 "tree_bitset.m"
                    {
#line 568 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
                      return;
                    }
#line 568 "tree_bitset.m"
                  }
#line 2983 "tree_bitset.m"
                mercury__tree_bitset__func_1 = ((MR_bool MR_CALL (*)(MR_Box, MR_Box)) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Pred_9, (MR_Integer) 1)));
#line 2983 "tree_bitset.m"
                {
#line 2983 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__func_1(((MR_Box) mercury__tree_bitset__Pred_9), mercury__tree_bitset__Elem_16);
                }
#line 2985 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 2984 "tree_bitset.m"
                  {
#line 2984 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_43_43 = ((MR_Integer) 1 << mercury__tree_bitset__WhichBit_11);

#line 3632 "tree_bitset.m"
                    mercury__tree_bitset__STATE_VARIABLE_InBits_23_23 = (mercury__tree_bitset__STATE_VARIABLE_InBits_0_17 | mercury__tree_bitset__V_43_43);
#line 2984 "tree_bitset.m"
                    mercury__tree_bitset__STATE_VARIABLE_OutBits_24_24 = mercury__tree_bitset__STATE_VARIABLE_OutBits_0_19;
#line 2984 "tree_bitset.m"
                  }
#line 2985 "tree_bitset.m"
                else
#line 2986 "tree_bitset.m"
                  {
#line 2986 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_47_47 = ((MR_Integer) 1 << mercury__tree_bitset__WhichBit_11);

#line 3632 "tree_bitset.m"
                    mercury__tree_bitset__STATE_VARIABLE_OutBits_24_24 = (mercury__tree_bitset__STATE_VARIABLE_OutBits_0_19 | mercury__tree_bitset__V_47_47);
#line 2986 "tree_bitset.m"
                    mercury__tree_bitset__STATE_VARIABLE_InBits_23_23 = mercury__tree_bitset__STATE_VARIABLE_InBits_0_17;
#line 2986 "tree_bitset.m"
                  }
#line 2982 "tree_bitset.m"
              }
#line 2989 "tree_bitset.m"
            mercury__tree_bitset__V_25_25 = (mercury__tree_bitset__WhichBit_11 + (MR_Integer) 1);
#line 2989 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 2989 "tree_bitset.m"
            {
#line 2989 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__WhichBit__tmp_copy_11 = mercury__tree_bitset__V_25_25;
#line 2989 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__STATE_VARIABLE_InBits_0__tmp_copy_17 = mercury__tree_bitset__STATE_VARIABLE_InBits_23_23;
#line 2989 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__STATE_VARIABLE_OutBits_0__tmp_copy_19 = mercury__tree_bitset__STATE_VARIABLE_OutBits_24_24;

#line 2989 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_OutBits_0_19 = mercury__tree_bitset__STATE_VARIABLE_OutBits_0__tmp_copy_19;
#line 2989 "tree_bitset.m"
              mercury__tree_bitset__STATE_VARIABLE_InBits_0_17 = mercury__tree_bitset__STATE_VARIABLE_InBits_0__tmp_copy_17;
#line 2989 "tree_bitset.m"
              mercury__tree_bitset__WhichBit_11 = mercury__tree_bitset__WhichBit__tmp_copy_11;
#line 2989 "tree_bitset.m"
            }
#line 2989 "tree_bitset.m"
            continue;
#line 2978 "tree_bitset.m"
          }
#line 2990 "tree_bitset.m"
        else
#line 2991 "tree_bitset.m"
          {
#line 2991 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_OutBits_20 = mercury__tree_bitset__STATE_VARIABLE_OutBits_0_19;
#line 2991 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_InBits_18 = mercury__tree_bitset__STATE_VARIABLE_InBits_0_17;
#line 2991 "tree_bitset.m"
          }
#line 2990 "tree_bitset.m"
      }
#line 2990 "tree_bitset.m"
      break;
#line 2990 "tree_bitset.m"
    }
#line 2973 "tree_bitset.m"
}

#line 2952 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__leaflist_divide_4_p_0(
#line 2952 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_22,
#line 2952 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 2952 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 2952 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3,
#line 2952 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__4_4)
#line 2952 "tree_bitset.m"
{
#line 2955 "tree_bitset.m"
  {
#line 2955 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 2955 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2955 "tree_bitset.m"
      {
#line 2955 "tree_bitset.m"
        *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2955 "tree_bitset.m"
        *mercury__tree_bitset__HeadVar__4_4 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2955 "tree_bitset.m"
      }
#line 2955 "tree_bitset.m"
    else
#line 2956 "tree_bitset.m"
      {
#line 2956 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Head_7 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 2956 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Tail_8 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 2956 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InTail_11;
#line 2956 "tree_bitset.m"
        MR_Word mercury__tree_bitset__OutTail_12;
#line 2956 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Offset_13;
#line 2956 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Bits_14;
#line 2956 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__InBits_15;
#line 2956 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__OutBits_16;

#line 2957 "tree_bitset.m"
        {
#line 2957 "tree_bitset.m"
          mercury__tree_bitset__leaflist_divide_4_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_22, mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__Tail_8, &mercury__tree_bitset__InTail_11, &mercury__tree_bitset__OutTail_12);
        }
#line 2958 "tree_bitset.m"
        mercury__tree_bitset__Offset_13 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_7, (MR_Integer) 0)));
#line 2958 "tree_bitset.m"
        mercury__tree_bitset__Bits_14 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_7, (MR_Integer) 1)));
#line 2959 "tree_bitset.m"
        {
#line 2959 "tree_bitset.m"
          mercury__tree_bitset__leafnode_divide_8_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_22, mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__Offset_13, (MR_Integer) 0, mercury__tree_bitset__Bits_14, (MR_Integer) 0, &mercury__tree_bitset__InBits_15, (MR_Integer) 0, &mercury__tree_bitset__OutBits_16);
        }
#line 2960 "tree_bitset.m"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__InBits_15 == (MR_Integer) 0);
#line 2962 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 2961 "tree_bitset.m"
          *mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__InTail_11;
#line 2962 "tree_bitset.m"
        else
#line 2963 "tree_bitset.m"
          {
#line 2963 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InHead_17;

#line 547 "tree_bitset.m"
            {
#line 547 "tree_bitset.m"
              mercury__tree_bitset__InHead_17 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__InHead_17, 0) = ((MR_Box) (mercury__tree_bitset__Offset_13));
#line 547 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__InHead_17, 1) = ((MR_Box) (mercury__tree_bitset__InBits_15));
#line 547 "tree_bitset.m"
            }
#line 2964 "tree_bitset.m"
            {
#line 2964 "tree_bitset.m"
              MR_Word base;
#line 2964 "tree_bitset.m"
              base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2964 "tree_bitset.m"
              *mercury__tree_bitset__HeadVar__3_3 = base;
#line 2964 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__InHead_17));
#line 2964 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__InTail_11));
#line 2964 "tree_bitset.m"
            }
#line 2963 "tree_bitset.m"
          }
#line 2966 "tree_bitset.m"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__OutBits_16 == (MR_Integer) 0);
#line 2968 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 2967 "tree_bitset.m"
          *mercury__tree_bitset__HeadVar__4_4 = mercury__tree_bitset__OutTail_12;
#line 2968 "tree_bitset.m"
        else
#line 2969 "tree_bitset.m"
          {
#line 2969 "tree_bitset.m"
            MR_Word mercury__tree_bitset__OutHead_18;

#line 547 "tree_bitset.m"
            {
#line 547 "tree_bitset.m"
              mercury__tree_bitset__OutHead_18 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__OutHead_18, 0) = ((MR_Box) (mercury__tree_bitset__Offset_13));
#line 547 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__OutHead_18, 1) = ((MR_Box) (mercury__tree_bitset__OutBits_16));
#line 547 "tree_bitset.m"
            }
#line 2970 "tree_bitset.m"
            {
#line 2970 "tree_bitset.m"
              MR_Word base;
#line 2970 "tree_bitset.m"
              base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2970 "tree_bitset.m"
              *mercury__tree_bitset__HeadVar__4_4 = base;
#line 2970 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__OutHead_18));
#line 2970 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__OutTail_12));
#line 2970 "tree_bitset.m"
            }
#line 2969 "tree_bitset.m"
          }
#line 2956 "tree_bitset.m"
      }
#line 2955 "tree_bitset.m"
  }
#line 2952 "tree_bitset.m"
}

#line 2918 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__intersect_list_pass_3_p_0(
#line 2918 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_23,
#line 2918 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 2918 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_MergedSets_0_2,
#line 2918 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_MergedSets_3)
#line 2918 "tree_bitset.m"
{
#line 2921 "tree_bitset.m"
  while (MR_TRUE)
#line 2921 "tree_bitset.m"
    {
#line 2921 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 2921 "tree_bitset.m"
      {
#line 2921 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 2921 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2921 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_MergedSets_3 = mercury__tree_bitset__STATE_VARIABLE_MergedSets_0_2;
#line 2921 "tree_bitset.m"
        else
#line 2921 "tree_bitset.m"
          {
#line 2921 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_24_24 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 2921 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_25_25 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));

#line 2921 "tree_bitset.m"
            if ((mercury__tree_bitset__V_24_24 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2923 "tree_bitset.m"
              {
#line 2923 "tree_bitset.m"
                MR_Word base;
#line 2923 "tree_bitset.m"
                base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2923 "tree_bitset.m"
                *mercury__tree_bitset__STATE_VARIABLE_MergedSets_3 = base;
#line 2923 "tree_bitset.m"
                MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__V_25_25));
#line 2923 "tree_bitset.m"
                MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__STATE_VARIABLE_MergedSets_0_2));
#line 2923 "tree_bitset.m"
              }
#line 2921 "tree_bitset.m"
            else
#line 2924 "tree_bitset.m"
              {
#line 2924 "tree_bitset.m"
                MR_Word mercury__tree_bitset__SetB_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_24_24, (MR_Integer) 0)));
#line 2924 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Sets0_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_24_24, (MR_Integer) 1)));
#line 2924 "tree_bitset.m"
                MR_Word mercury__tree_bitset__SetAB_17;
#line 2924 "tree_bitset.m"
                MR_Word mercury__tree_bitset__STATE_VARIABLE_MergedSets_21_21;

#line 3663 "tree_bitset.m"
                {
#line 3663 "tree_bitset.m"
                  mercury__tree_bitset__SetAB_17 = mercury__tree_bitset__intersect_2_f_0(mercury__tree_bitset__TypeInfo_for_T_23, mercury__tree_bitset__V_25_25, mercury__tree_bitset__SetB_14);
                }
#line 2926 "tree_bitset.m"
                {
#line 2926 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_MergedSets_21_21 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2926 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__STATE_VARIABLE_MergedSets_21_21, 0) = ((MR_Box) (mercury__tree_bitset__SetAB_17));
#line 2926 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__STATE_VARIABLE_MergedSets_21_21, 1) = ((MR_Box) (mercury__tree_bitset__STATE_VARIABLE_MergedSets_0_2));
#line 2926 "tree_bitset.m"
                }
#line 2927 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 2927 "tree_bitset.m"
                {
#line 2927 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__Sets0_15;
#line 2927 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__STATE_VARIABLE_MergedSets_0__tmp_copy_2 = mercury__tree_bitset__STATE_VARIABLE_MergedSets_21_21;

#line 2927 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_MergedSets_0_2 = mercury__tree_bitset__STATE_VARIABLE_MergedSets_0__tmp_copy_2;
#line 2927 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 2927 "tree_bitset.m"
                }
#line 2927 "tree_bitset.m"
                continue;
#line 2924 "tree_bitset.m"
              }
#line 2921 "tree_bitset.m"
          }
#line 2921 "tree_bitset.m"
      }
#line 2921 "tree_bitset.m"
      break;
#line 2921 "tree_bitset.m"
    }
#line 2918 "tree_bitset.m"
}

#line 2880 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__union_list_pass_3_p_0(
#line 2880 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_23,
#line 2880 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 2880 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_MergedSets_0_2,
#line 2880 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_MergedSets_3)
#line 2880 "tree_bitset.m"
{
#line 2884 "tree_bitset.m"
  while (MR_TRUE)
#line 2884 "tree_bitset.m"
    {
#line 2884 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 2884 "tree_bitset.m"
      {
#line 2884 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 2884 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2884 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_MergedSets_3 = mercury__tree_bitset__STATE_VARIABLE_MergedSets_0_2;
#line 2884 "tree_bitset.m"
        else
#line 2884 "tree_bitset.m"
          {
#line 2884 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_24_24 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 2884 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_25_25 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));

#line 2884 "tree_bitset.m"
            if ((mercury__tree_bitset__V_24_24 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2886 "tree_bitset.m"
              {
#line 2886 "tree_bitset.m"
                MR_Word base;
#line 2886 "tree_bitset.m"
                base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2886 "tree_bitset.m"
                *mercury__tree_bitset__STATE_VARIABLE_MergedSets_3 = base;
#line 2886 "tree_bitset.m"
                MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__V_25_25));
#line 2886 "tree_bitset.m"
                MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__STATE_VARIABLE_MergedSets_0_2));
#line 2886 "tree_bitset.m"
              }
#line 2884 "tree_bitset.m"
            else
#line 2887 "tree_bitset.m"
              {
#line 2887 "tree_bitset.m"
                MR_Word mercury__tree_bitset__SetB_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_24_24, (MR_Integer) 0)));
#line 2887 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Sets0_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_24_24, (MR_Integer) 1)));
#line 2887 "tree_bitset.m"
                MR_Word mercury__tree_bitset__SetAB_17;
#line 2887 "tree_bitset.m"
                MR_Word mercury__tree_bitset__STATE_VARIABLE_MergedSets_21_21;

#line 3661 "tree_bitset.m"
                {
#line 3661 "tree_bitset.m"
                  mercury__tree_bitset__SetAB_17 = mercury__tree_bitset__union_2_f_0(mercury__tree_bitset__TypeInfo_for_T_23, mercury__tree_bitset__V_25_25, mercury__tree_bitset__SetB_14);
                }
#line 2889 "tree_bitset.m"
                {
#line 2889 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_MergedSets_21_21 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2889 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__STATE_VARIABLE_MergedSets_21_21, 0) = ((MR_Box) (mercury__tree_bitset__SetAB_17));
#line 2889 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__STATE_VARIABLE_MergedSets_21_21, 1) = ((MR_Box) (mercury__tree_bitset__STATE_VARIABLE_MergedSets_0_2));
#line 2889 "tree_bitset.m"
                }
#line 2890 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 2890 "tree_bitset.m"
                {
#line 2890 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__Sets0_15;
#line 2890 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__STATE_VARIABLE_MergedSets_0__tmp_copy_2 = mercury__tree_bitset__STATE_VARIABLE_MergedSets_21_21;

#line 2890 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_MergedSets_0_2 = mercury__tree_bitset__STATE_VARIABLE_MergedSets_0__tmp_copy_2;
#line 2890 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 2890 "tree_bitset.m"
                }
#line 2890 "tree_bitset.m"
                continue;
#line 2887 "tree_bitset.m"
              }
#line 2884 "tree_bitset.m"
          }
#line 2884 "tree_bitset.m"
      }
#line 2884 "tree_bitset.m"
      break;
#line 2884 "tree_bitset.m"
    }
#line 2880 "tree_bitset.m"
}

#line 2790 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__interiorlist_difference_3_p_0(
#line 2790 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 2790 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 2790 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3)
#line 2790 "tree_bitset.m"
{
#line 2794 "tree_bitset.m"
  while (MR_TRUE)
#line 2794 "tree_bitset.m"
    {
#line 2794 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 2794 "tree_bitset.m"
      {
#line 2794 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 2794 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2794 "tree_bitset.m"
          if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2794 "tree_bitset.m"
            *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2794 "tree_bitset.m"
          else
#line 2795 "tree_bitset.m"
            *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2794 "tree_bitset.m"
        else
#line 2794 "tree_bitset.m"
          {
#line 2794 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_83_83 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 2794 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_84_84 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));

#line 2794 "tree_bitset.m"
            if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2796 "tree_bitset.m"
              *mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__HeadVar__1_1;
#line 2794 "tree_bitset.m"
            else
#line 2798 "tree_bitset.m"
              {
#line 2798 "tree_bitset.m"
                MR_Word mercury__tree_bitset__HeadB_13 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 2798 "tree_bitset.m"
                MR_Word mercury__tree_bitset__TailB_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 2798 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__OffsetA_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_84_84, (MR_Integer) 0)));
#line 2798 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__OffsetB_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_13, (MR_Integer) 0)));
#line 2799 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_66_66 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_84_84, (MR_Integer) 1)));
#line 2799 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_67_67 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_84_84, (MR_Integer) 2)));
#line 2800 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_68_68 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_13, (MR_Integer) 1)));
#line 2800 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_69_69 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_13, (MR_Integer) 2)));

#line 2801 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__OffsetA_16 == mercury__tree_bitset__OffsetB_17);
#line 2848 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 2802 "tree_bitset.m"
                  {
#line 2802 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__ComponentsA_18 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_84_84, (MR_Integer) 2)));
#line 2802 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__ComponentsB_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_13, (MR_Integer) 2)));
#line 2802 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_70_70 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_84_84, (MR_Integer) 0)));
#line 2802 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_71_71 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_84_84, (MR_Integer) 1)));
#line 2803 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_72_72 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_13, (MR_Integer) 0)));
#line 2803 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_73_73 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_13, (MR_Integer) 1)));

#line 2819 "tree_bitset.m"
                    if (((MR_tag((MR_Word) mercury__tree_bitset__ComponentsA_18)) == (MR_mktag((MR_Integer) 1))))
#line 2819 "tree_bitset.m"
                      {
#line 2819 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__V_85_85 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ComponentsA_18, (MR_Integer) 1)));
#line 2819 "tree_bitset.m"
                        MR_Integer mercury__tree_bitset__V_86_86 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ComponentsA_18, (MR_Integer) 0)));

#line 2819 "tree_bitset.m"
                        if (((MR_tag((MR_Word) mercury__tree_bitset__ComponentsB_19)) == (MR_mktag((MR_Integer) 1))))
#line 2828 "tree_bitset.m"
                          {
#line 2828 "tree_bitset.m"
                            MR_Integer mercury__tree_bitset__LevelB_36 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ComponentsB_19, (MR_Integer) 0)));
#line 2828 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__InteriorNodesB_37 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ComponentsB_19, (MR_Integer) 1)));
#line 2828 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__InteriorNodes_38;

#line 2831 "tree_bitset.m"
                            {
#line 2831 "tree_bitset.m"
                              mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_50_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__LevelB_36, mercury__tree_bitset__V_86_86, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.interiorlist_difference\'/3", (MR_String) "inconsistent levels");
                            }
#line 2834 "tree_bitset.m"
                            {
#line 2834 "tree_bitset.m"
                              mercury__tree_bitset__interiorlist_difference_3_p_0(mercury__tree_bitset__V_85_85, mercury__tree_bitset__InteriorNodesB_37, &mercury__tree_bitset__InteriorNodes_38);
                            }
#line 2839 "tree_bitset.m"
                            if ((mercury__tree_bitset__InteriorNodes_38 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2837 "tree_bitset.m"
                              {
#line 2837 "tree_bitset.m"
                                /* direct tailcall eliminated */
#line 2837 "tree_bitset.m"
                                {
#line 2837 "tree_bitset.m"
                                  MR_Word mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__V_83_83;
#line 2837 "tree_bitset.m"
                                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__TailB_14;

#line 2837 "tree_bitset.m"
                                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 2837 "tree_bitset.m"
                                  mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 2837 "tree_bitset.m"
                                }
#line 2837 "tree_bitset.m"
                                continue;
#line 2837 "tree_bitset.m"
                              }
#line 2839 "tree_bitset.m"
                            else
#line 2840 "tree_bitset.m"
                              {
#line 2840 "tree_bitset.m"
                                MR_Integer mercury__tree_bitset__V_45_45;
#line 2840 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__Components_55;
#line 2840 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__Tail_56;
#line 2840 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__Head_57;
#line 2840 "tree_bitset.m"
                                MR_Integer mercury__tree_bitset__V_78_78;
#line 2843 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__V_79_79;

#line 2841 "tree_bitset.m"
                                {
#line 2841 "tree_bitset.m"
                                  mercury__tree_bitset__Components_55 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2841 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_55, 0) = ((MR_Box) (mercury__tree_bitset__V_86_86));
#line 2841 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_55, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodes_38));
#line 2841 "tree_bitset.m"
                                }
#line 2842 "tree_bitset.m"
                                {
#line 2842 "tree_bitset.m"
                                  mercury__tree_bitset__interiorlist_difference_3_p_0(mercury__tree_bitset__V_83_83, mercury__tree_bitset__TailB_14, &mercury__tree_bitset__Tail_56);
                                }
#line 2843 "tree_bitset.m"
                                mercury__tree_bitset__V_45_45 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_84_84, (MR_Integer) 0)));
#line 2843 "tree_bitset.m"
                                mercury__tree_bitset__V_78_78 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_84_84, (MR_Integer) 1)));
#line 2843 "tree_bitset.m"
                                mercury__tree_bitset__V_79_79 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_84_84, (MR_Integer) 2)));
#line 2843 "tree_bitset.m"
                                {
#line 2843 "tree_bitset.m"
                                  mercury__tree_bitset__Head_57 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 2843 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_57, 0) = ((MR_Box) (mercury__tree_bitset__V_45_45));
#line 2843 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_57, 1) = ((MR_Box) (mercury__tree_bitset__V_78_78));
#line 2843 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_57, 2) = ((MR_Box) (mercury__tree_bitset__Components_55));
#line 2843 "tree_bitset.m"
                                }
#line 2845 "tree_bitset.m"
                                {
#line 2845 "tree_bitset.m"
                                  MR_Word base;
#line 2845 "tree_bitset.m"
                                  base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2845 "tree_bitset.m"
                                  *mercury__tree_bitset__HeadVar__3_3 = base;
#line 2845 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head_57));
#line 2845 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail_56));
#line 2845 "tree_bitset.m"
                                }
#line 2840 "tree_bitset.m"
                              }
#line 2828 "tree_bitset.m"
                          }
#line 2819 "tree_bitset.m"
                        else
#line 2820 "tree_bitset.m"
                          {
#line 2822 "tree_bitset.m"
                            {
#line 2822 "tree_bitset.m"
                              mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.interiorlist_difference\'/3", (MR_String) "inconsistent components");
#line 2822 "tree_bitset.m"
                              return;
                            }
#line 2820 "tree_bitset.m"
                          }
#line 2819 "tree_bitset.m"
                      }
#line 2819 "tree_bitset.m"
                    else
#line 2819 "tree_bitset.m"
                      {
#line 2819 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__V_87_87 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__ComponentsA_18, (MR_Integer) 0)));

#line 2819 "tree_bitset.m"
                        if (((MR_tag((MR_Word) mercury__tree_bitset__ComponentsB_19)) == (MR_mktag((MR_Integer) 1))))
#line 2824 "tree_bitset.m"
                          {
#line 2826 "tree_bitset.m"
                            {
#line 2826 "tree_bitset.m"
                              mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.interiorlist_difference\'/3", (MR_String) "inconsistent components");
#line 2826 "tree_bitset.m"
                              return;
                            }
#line 2824 "tree_bitset.m"
                          }
#line 2819 "tree_bitset.m"
                        else
#line 2805 "tree_bitset.m"
                          {
#line 2805 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__LeafNodesB_21 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__ComponentsB_19, (MR_Integer) 0)));
#line 2805 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__LeafNodes_22;

#line 2807 "tree_bitset.m"
                            {
#line 2807 "tree_bitset.m"
                              mercury__tree_bitset__leaflist_difference_3_p_0(mercury__tree_bitset__V_87_87, mercury__tree_bitset__LeafNodesB_21, &mercury__tree_bitset__LeafNodes_22);
                            }
#line 2811 "tree_bitset.m"
                            if ((mercury__tree_bitset__LeafNodes_22 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2809 "tree_bitset.m"
                              {
#line 2809 "tree_bitset.m"
                                /* direct tailcall eliminated */
#line 2809 "tree_bitset.m"
                                {
#line 2809 "tree_bitset.m"
                                  MR_Word mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__V_83_83;
#line 2809 "tree_bitset.m"
                                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__TailB_14;

#line 2809 "tree_bitset.m"
                                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 2809 "tree_bitset.m"
                                  mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 2809 "tree_bitset.m"
                                }
#line 2809 "tree_bitset.m"
                                continue;
#line 2809 "tree_bitset.m"
                              }
#line 2811 "tree_bitset.m"
                            else
#line 2812 "tree_bitset.m"
                              {
#line 2812 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__Components_25;
#line 2812 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__Tail_26;
#line 2812 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__Head_27;
#line 2812 "tree_bitset.m"
                                MR_Integer mercury__tree_bitset__V_53_53;
#line 2812 "tree_bitset.m"
                                MR_Integer mercury__tree_bitset__V_74_74;
#line 2815 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__V_75_75;

#line 2813 "tree_bitset.m"
                                {
#line 2813 "tree_bitset.m"
                                  mercury__tree_bitset__Components_25 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 2813 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_25, 0) = ((MR_Box) (mercury__tree_bitset__LeafNodes_22));
#line 2813 "tree_bitset.m"
                                }
#line 2814 "tree_bitset.m"
                                {
#line 2814 "tree_bitset.m"
                                  mercury__tree_bitset__interiorlist_difference_3_p_0(mercury__tree_bitset__V_83_83, mercury__tree_bitset__TailB_14, &mercury__tree_bitset__Tail_26);
                                }
#line 2815 "tree_bitset.m"
                                mercury__tree_bitset__V_53_53 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_84_84, (MR_Integer) 0)));
#line 2815 "tree_bitset.m"
                                mercury__tree_bitset__V_74_74 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_84_84, (MR_Integer) 1)));
#line 2815 "tree_bitset.m"
                                mercury__tree_bitset__V_75_75 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_84_84, (MR_Integer) 2)));
#line 2815 "tree_bitset.m"
                                {
#line 2815 "tree_bitset.m"
                                  mercury__tree_bitset__Head_27 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 2815 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_27, 0) = ((MR_Box) (mercury__tree_bitset__V_53_53));
#line 2815 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_27, 1) = ((MR_Box) (mercury__tree_bitset__V_74_74));
#line 2815 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_27, 2) = ((MR_Box) (mercury__tree_bitset__Components_25));
#line 2815 "tree_bitset.m"
                                }
#line 2817 "tree_bitset.m"
                                {
#line 2817 "tree_bitset.m"
                                  MR_Word base;
#line 2817 "tree_bitset.m"
                                  base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2817 "tree_bitset.m"
                                  *mercury__tree_bitset__HeadVar__3_3 = base;
#line 2817 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head_27));
#line 2817 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail_26));
#line 2817 "tree_bitset.m"
                                }
#line 2812 "tree_bitset.m"
                              }
#line 2805 "tree_bitset.m"
                          }
#line 2819 "tree_bitset.m"
                      }
#line 2802 "tree_bitset.m"
                  }
#line 2848 "tree_bitset.m"
                else
#line 2851 "tree_bitset.m"
                  {
#line 2848 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = (mercury__tree_bitset__OffsetA_16 < mercury__tree_bitset__OffsetB_17);
#line 2851 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 2849 "tree_bitset.m"
                      {
#line 2849 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__Tail_64;

#line 2849 "tree_bitset.m"
                        {
#line 2849 "tree_bitset.m"
                          mercury__tree_bitset__interiorlist_difference_3_p_0(mercury__tree_bitset__V_83_83, mercury__tree_bitset__HeadVar__2_2, &mercury__tree_bitset__Tail_64);
                        }
#line 2850 "tree_bitset.m"
                        {
#line 2850 "tree_bitset.m"
                          MR_Word base;
#line 2850 "tree_bitset.m"
                          base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2850 "tree_bitset.m"
                          *mercury__tree_bitset__HeadVar__3_3 = base;
#line 2850 "tree_bitset.m"
                          MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__V_84_84));
#line 2850 "tree_bitset.m"
                          MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail_64));
#line 2850 "tree_bitset.m"
                        }
#line 2849 "tree_bitset.m"
                      }
#line 2851 "tree_bitset.m"
                    else
#line 2852 "tree_bitset.m"
                      {
#line 2852 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 2852 "tree_bitset.m"
                        {
#line 2852 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__TailB_14;

#line 2852 "tree_bitset.m"
                          mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 2852 "tree_bitset.m"
                        }
#line 2852 "tree_bitset.m"
                        continue;
#line 2852 "tree_bitset.m"
                      }
#line 2851 "tree_bitset.m"
                  }
#line 2798 "tree_bitset.m"
              }
#line 2794 "tree_bitset.m"
          }
#line 2794 "tree_bitset.m"
      }
#line 2794 "tree_bitset.m"
      break;
#line 2794 "tree_bitset.m"
    }
#line 2790 "tree_bitset.m"
}

#line 2765 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaflist_difference_3_p_0(
#line 2765 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 2765 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 2765 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3)
#line 2765 "tree_bitset.m"
{
#line 2768 "tree_bitset.m"
  while (MR_TRUE)
#line 2768 "tree_bitset.m"
    {
#line 2768 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 2768 "tree_bitset.m"
      {
#line 2768 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 2768 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2768 "tree_bitset.m"
          if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2768 "tree_bitset.m"
            *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2768 "tree_bitset.m"
          else
#line 2769 "tree_bitset.m"
            *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2768 "tree_bitset.m"
        else
#line 2768 "tree_bitset.m"
          {
#line 2768 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_30_30 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 2768 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_31_31 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));

#line 2768 "tree_bitset.m"
            if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2770 "tree_bitset.m"
              *mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__HeadVar__1_1;
#line 2768 "tree_bitset.m"
            else
#line 2771 "tree_bitset.m"
              {
#line 2771 "tree_bitset.m"
                MR_Word mercury__tree_bitset__HeadB_13 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 2771 "tree_bitset.m"
                MR_Word mercury__tree_bitset__TailB_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 2771 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__OffsetA_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_31_31, (MR_Integer) 0)));
#line 2771 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__OffsetB_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_13, (MR_Integer) 0)));
#line 2772 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_31_31, (MR_Integer) 1)));
#line 2773 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_27_27 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_13, (MR_Integer) 1)));

#line 2774 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__OffsetA_16 == mercury__tree_bitset__OffsetB_17);
#line 2783 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 2775 "tree_bitset.m"
                  {
#line 2775 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__Bits_18;
#line 2775 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_31_31, (MR_Integer) 1)));
#line 2775 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_22_22;
#line 2775 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_13, (MR_Integer) 1)));
#line 2775 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_28_28 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_31_31, (MR_Integer) 0)));
#line 2775 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_29_29 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_13, (MR_Integer) 0)));

#line 2775 "tree_bitset.m"
                    mercury__tree_bitset__V_22_22 = ~(mercury__tree_bitset__V_23_23);
#line 2775 "tree_bitset.m"
                    mercury__tree_bitset__Bits_18 = (mercury__tree_bitset__V_21_21 & mercury__tree_bitset__V_22_22);
#line 2776 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_18 == (MR_Integer) 0);
#line 2778 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 2777 "tree_bitset.m"
                      {
#line 2777 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 2777 "tree_bitset.m"
                        {
#line 2777 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__V_30_30;
#line 2777 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__TailB_14;

#line 2777 "tree_bitset.m"
                          mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 2777 "tree_bitset.m"
                          mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 2777 "tree_bitset.m"
                        }
#line 2777 "tree_bitset.m"
                        continue;
#line 2777 "tree_bitset.m"
                      }
#line 2778 "tree_bitset.m"
                    else
#line 2779 "tree_bitset.m"
                      {
#line 2779 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__Head_19;
#line 2779 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__Tail_20;

#line 547 "tree_bitset.m"
                        {
#line 547 "tree_bitset.m"
                          mercury__tree_bitset__Head_19 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_19, 0) = ((MR_Box) (mercury__tree_bitset__OffsetA_16));
#line 547 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_19, 1) = ((MR_Box) (mercury__tree_bitset__Bits_18));
#line 547 "tree_bitset.m"
                        }
#line 2780 "tree_bitset.m"
                        {
#line 2780 "tree_bitset.m"
                          mercury__tree_bitset__leaflist_difference_3_p_0(mercury__tree_bitset__V_30_30, mercury__tree_bitset__TailB_14, &mercury__tree_bitset__Tail_20);
                        }
#line 2781 "tree_bitset.m"
                        {
#line 2781 "tree_bitset.m"
                          MR_Word base;
#line 2781 "tree_bitset.m"
                          base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2781 "tree_bitset.m"
                          *mercury__tree_bitset__HeadVar__3_3 = base;
#line 2781 "tree_bitset.m"
                          MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head_19));
#line 2781 "tree_bitset.m"
                          MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail_20));
#line 2781 "tree_bitset.m"
                        }
#line 2779 "tree_bitset.m"
                      }
#line 2775 "tree_bitset.m"
                  }
#line 2783 "tree_bitset.m"
                else
#line 2786 "tree_bitset.m"
                  {
#line 2783 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = (mercury__tree_bitset__OffsetA_16 < mercury__tree_bitset__OffsetB_17);
#line 2786 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 2784 "tree_bitset.m"
                      {
#line 2784 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__Tail_24;

#line 2784 "tree_bitset.m"
                        {
#line 2784 "tree_bitset.m"
                          mercury__tree_bitset__leaflist_difference_3_p_0(mercury__tree_bitset__V_30_30, mercury__tree_bitset__HeadVar__2_2, &mercury__tree_bitset__Tail_24);
                        }
#line 2785 "tree_bitset.m"
                        {
#line 2785 "tree_bitset.m"
                          MR_Word base;
#line 2785 "tree_bitset.m"
                          base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2785 "tree_bitset.m"
                          *mercury__tree_bitset__HeadVar__3_3 = base;
#line 2785 "tree_bitset.m"
                          MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__V_31_31));
#line 2785 "tree_bitset.m"
                          MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail_24));
#line 2785 "tree_bitset.m"
                        }
#line 2784 "tree_bitset.m"
                      }
#line 2786 "tree_bitset.m"
                    else
#line 2787 "tree_bitset.m"
                      {
#line 2787 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 2787 "tree_bitset.m"
                        {
#line 2787 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__TailB_14;

#line 2787 "tree_bitset.m"
                          mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 2787 "tree_bitset.m"
                        }
#line 2787 "tree_bitset.m"
                        continue;
#line 2787 "tree_bitset.m"
                      }
#line 2786 "tree_bitset.m"
                  }
#line 2771 "tree_bitset.m"
              }
#line 2768 "tree_bitset.m"
          }
#line 2768 "tree_bitset.m"
      }
#line 2768 "tree_bitset.m"
      break;
#line 2768 "tree_bitset.m"
    }
#line 2765 "tree_bitset.m"
}

#line 2726 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__interiornode_difference_8_p_0(
#line 2726 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LevelA_9,
#line 2726 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadA_10,
#line 2726 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TailA_11,
#line 2726 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LevelB_12,
#line 2726 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadB_13,
#line 2726 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TailB_14,
#line 2726 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__Level_15,
#line 2726 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__List_16)
#line 2726 "tree_bitset.m"
{
#line 2732 "tree_bitset.m"
  {
#line 2732 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 2732 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__ParentInitOffsetA_17;
#line 2732 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__ParentLimitOffsetA_18;
#line 2732 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__ParentInitOffsetB_19;
#line 2732 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__ParentLimitOffsetB_20;
#line 2732 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_28_28;
#line 2732 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_29_29;
#line 2737 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_42_42;
#line 2737 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_43_43;
#line 2739 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_44_44;
#line 2739 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_45_45;

#line 2734 "tree_bitset.m"
    {
#line 2734 "tree_bitset.m"
      mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_53_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__LevelA_9, mercury__tree_bitset__LevelB_12, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.interiornode_difference\'/8", (MR_String) "level mismatch");
    }
#line 2737 "tree_bitset.m"
    mercury__tree_bitset__V_28_28 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_10, (MR_Integer) 0)));
#line 2737 "tree_bitset.m"
    mercury__tree_bitset__V_42_42 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_10, (MR_Integer) 1)));
#line 2737 "tree_bitset.m"
    mercury__tree_bitset__V_43_43 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_10, (MR_Integer) 2)));
#line 2737 "tree_bitset.m"
    {
#line 2737 "tree_bitset.m"
      mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_28_28, mercury__tree_bitset__LevelA_9, &mercury__tree_bitset__ParentInitOffsetA_17, &mercury__tree_bitset__ParentLimitOffsetA_18);
    }
#line 2739 "tree_bitset.m"
    mercury__tree_bitset__V_29_29 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_13, (MR_Integer) 0)));
#line 2739 "tree_bitset.m"
    mercury__tree_bitset__V_44_44 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_13, (MR_Integer) 1)));
#line 2739 "tree_bitset.m"
    mercury__tree_bitset__V_45_45 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_13, (MR_Integer) 2)));
#line 2739 "tree_bitset.m"
    {
#line 2739 "tree_bitset.m"
      mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_29_29, mercury__tree_bitset__LevelB_12, &mercury__tree_bitset__ParentInitOffsetB_19, &mercury__tree_bitset__ParentLimitOffsetB_20);
    }
#line 2741 "tree_bitset.m"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__ParentInitOffsetA_17 == mercury__tree_bitset__ParentInitOffsetB_19);
#line 2748 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 2745 "tree_bitset.m"
      {
#line 2745 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_34_34;
#line 2745 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_35_35;

#line 2743 "tree_bitset.m"
        {
#line 2743 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_52_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__ParentLimitOffsetA_18, mercury__tree_bitset__ParentLimitOffsetB_20, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.interiornode_difference\'/8", (MR_String) "limit mismatch");
        }
#line 2746 "tree_bitset.m"
        {
#line 2746 "tree_bitset.m"
          mercury__tree_bitset__V_34_34 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2746 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_34_34, 0) = ((MR_Box) (mercury__tree_bitset__HeadA_10));
#line 2746 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_34_34, 1) = ((MR_Box) (mercury__tree_bitset__TailA_11));
#line 2746 "tree_bitset.m"
        }
#line 2746 "tree_bitset.m"
        {
#line 2746 "tree_bitset.m"
          mercury__tree_bitset__V_35_35 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2746 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_35_35, 0) = ((MR_Box) (mercury__tree_bitset__HeadB_13));
#line 2746 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_35_35, 1) = ((MR_Box) (mercury__tree_bitset__TailB_14));
#line 2746 "tree_bitset.m"
        }
#line 2746 "tree_bitset.m"
        {
#line 2746 "tree_bitset.m"
          mercury__tree_bitset__interiorlist_difference_3_p_0(mercury__tree_bitset__V_34_34, mercury__tree_bitset__V_35_35, mercury__tree_bitset__List_16);
        }
#line 2747 "tree_bitset.m"
        *mercury__tree_bitset__Level_15 = mercury__tree_bitset__LevelA_9;
#line 2745 "tree_bitset.m"
      }
#line 2748 "tree_bitset.m"
    else
#line 2753 "tree_bitset.m"
      if ((mercury__tree_bitset__TailA_11 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2750 "tree_bitset.m"
        {
#line 2750 "tree_bitset.m"
          MR_Word mercury__tree_bitset__V_41_41 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));

#line 2751 "tree_bitset.m"
          {
#line 2751 "tree_bitset.m"
            MR_Word base;
#line 2751 "tree_bitset.m"
            base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2751 "tree_bitset.m"
            *mercury__tree_bitset__List_16 = base;
#line 2751 "tree_bitset.m"
            MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__HeadA_10));
#line 2751 "tree_bitset.m"
            MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__V_41_41));
#line 2751 "tree_bitset.m"
          }
#line 2752 "tree_bitset.m"
          *mercury__tree_bitset__Level_15 = mercury__tree_bitset__LevelA_9;
#line 2750 "tree_bitset.m"
        }
#line 2753 "tree_bitset.m"
      else
#line 2754 "tree_bitset.m"
        {
#line 2754 "tree_bitset.m"
          MR_Word mercury__tree_bitset__HeadTailA_21 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__TailA_11, (MR_Integer) 0)));
#line 2754 "tree_bitset.m"
          MR_Word mercury__tree_bitset__TailTailA_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__TailA_11, (MR_Integer) 1)));
#line 2754 "tree_bitset.m"
          MR_Word mercury__tree_bitset__Tail_23;

#line 2755 "tree_bitset.m"
          {
#line 2755 "tree_bitset.m"
            mercury__tree_bitset__interiornode_difference_8_p_0(mercury__tree_bitset__LevelA_9, mercury__tree_bitset__HeadTailA_21, mercury__tree_bitset__TailTailA_22, mercury__tree_bitset__LevelA_9, mercury__tree_bitset__HeadB_13, mercury__tree_bitset__TailB_14, mercury__tree_bitset__Level_15, &mercury__tree_bitset__Tail_23);
          }
#line 2758 "tree_bitset.m"
          {
#line 2758 "tree_bitset.m"
            mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_51_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__LevelA_9, *mercury__tree_bitset__Level_15, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.interiornode_difference\'/8", (MR_String) "final level mismatch");
          }
#line 2761 "tree_bitset.m"
          {
#line 2761 "tree_bitset.m"
            MR_Word base;
#line 2761 "tree_bitset.m"
            base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2761 "tree_bitset.m"
            *mercury__tree_bitset__List_16 = base;
#line 2761 "tree_bitset.m"
            MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__HeadA_10));
#line 2761 "tree_bitset.m"
            MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail_23));
#line 2761 "tree_bitset.m"
          }
#line 2754 "tree_bitset.m"
        }
#line 2732 "tree_bitset.m"
  }
#line 2726 "tree_bitset.m"
}

#line 2636 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__descend_and_difference_list_7_p_0(
#line 2636 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LevelA_8,
#line 2636 "tree_bitset.m"
  MR_Word mercury__tree_bitset__InteriorNodesA_9,
#line 2636 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LevelB_10,
#line 2636 "tree_bitset.m"
  MR_Word mercury__tree_bitset__InteriorNodeB_11,
#line 2636 "tree_bitset.m"
  MR_Word mercury__tree_bitset__InteriorNodesB_12,
#line 2636 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__Level_13,
#line 2636 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__List_14)
#line 2636 "tree_bitset.m"
{
#line 2718 "tree_bitset.m"
  {
#line 2718 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__LevelA_8 > mercury__tree_bitset__LevelB_10);

#line 2718 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 2647 "tree_bitset.m"
      if ((mercury__tree_bitset__InteriorNodesA_9 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2644 "tree_bitset.m"
        {
#line 2645 "tree_bitset.m"
          *mercury__tree_bitset__Level_13 = mercury__tree_bitset__LevelA_8;
#line 2646 "tree_bitset.m"
          *mercury__tree_bitset__List_14 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2644 "tree_bitset.m"
        }
#line 2647 "tree_bitset.m"
      else
#line 2648 "tree_bitset.m"
        {
#line 2648 "tree_bitset.m"
          MR_Word mercury__tree_bitset__HeadA_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorNodesA_9, (MR_Integer) 0)));
#line 2648 "tree_bitset.m"
          MR_Word mercury__tree_bitset__TailA_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorNodesA_9, (MR_Integer) 1)));
#line 2649 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_29_29 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_15, (MR_Integer) 1)));
#line 2649 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_30_30 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_11, (MR_Integer) 0)));
#line 2649 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_63_63 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_15, (MR_Integer) 0)));
#line 2649 "tree_bitset.m"
          MR_Word mercury__tree_bitset__V_64_64 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_15, (MR_Integer) 2)));
#line 2649 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_65_65 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_11, (MR_Integer) 1)));
#line 2649 "tree_bitset.m"
          MR_Word mercury__tree_bitset__V_66_66 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_11, (MR_Integer) 2)));

#line 2649 "tree_bitset.m"
          mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_29_29 <= mercury__tree_bitset__V_30_30);
#line 2667 "tree_bitset.m"
          if (mercury__tree_bitset__succeeded)
#line 2657 "tree_bitset.m"
            {
#line 2657 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__LevelTail_18;
#line 2657 "tree_bitset.m"
              MR_Word mercury__tree_bitset__ListTail_19;
#line 2653 "tree_bitset.m"
              MR_Word mercury__tree_bitset__TypeCtorInfo_83_83;
#line 2653 "tree_bitset.m"
              MR_Word mercury__tree_bitset__LastB_17;
#line 2653 "tree_bitset.m"
              MR_Word mercury__tree_bitset__V_31_31;
#line 2653 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_36_36;
#line 2653 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_37_37;
#line 2653 "tree_bitset.m"
              MR_Box mercury__tree_bitset__conv0_LastB_17;
#line 2654 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_67_67;
#line 2654 "tree_bitset.m"
              MR_Word mercury__tree_bitset__V_68_68;
#line 2654 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_69_69;
#line 2654 "tree_bitset.m"
              MR_Word mercury__tree_bitset__V_70_70;

#line 2653 "tree_bitset.m"
              {
#line 2653 "tree_bitset.m"
                mercury__tree_bitset__V_31_31 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2653 "tree_bitset.m"
                MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_31_31, 0) = ((MR_Box) (mercury__tree_bitset__InteriorNodeB_11));
#line 2653 "tree_bitset.m"
                MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_31_31, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodesB_12));
#line 2653 "tree_bitset.m"
              }
#line 54552 "tree_bitset.c"
              mercury__tree_bitset__TypeCtorInfo_83_83 = (MR_Word) &mercury__tree_bitset__tree_bitset__type_ctor_info_interior_node_0;
#line 2653 "tree_bitset.m"
              {
#line 2653 "tree_bitset.m"
                mercury__list__det_last_2_p_0(mercury__tree_bitset__TypeCtorInfo_83_83, mercury__tree_bitset__V_31_31, &mercury__tree_bitset__conv0_LastB_17);
              }
#line 2653 "tree_bitset.m"
              mercury__tree_bitset__LastB_17 = ((MR_Word) mercury__tree_bitset__conv0_LastB_17);
#line 2654 "tree_bitset.m"
              mercury__tree_bitset__V_67_67 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_15, (MR_Integer) 0)));
#line 2654 "tree_bitset.m"
              mercury__tree_bitset__V_36_36 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_15, (MR_Integer) 1)));
#line 2654 "tree_bitset.m"
              mercury__tree_bitset__V_68_68 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_15, (MR_Integer) 2)));
#line 2654 "tree_bitset.m"
              mercury__tree_bitset__V_37_37 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__LastB_17, (MR_Integer) 0)));
#line 2654 "tree_bitset.m"
              mercury__tree_bitset__V_69_69 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__LastB_17, (MR_Integer) 1)));
#line 2654 "tree_bitset.m"
              mercury__tree_bitset__V_70_70 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__LastB_17, (MR_Integer) 2)));
#line 29 "require.opt"
              mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_36_36 <= mercury__tree_bitset__V_37_37);
#line 32 "require.opt"
              if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
                {
#line 31 "require.opt"
                }
#line 32 "require.opt"
              else
#line 33 "require.opt"
                {
#line 33 "require.opt"
                  mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.descend_and_difference_list\'/7", (MR_String) "HeadA ^ limit_offset > LastB ^ init_offset");
#line 33 "require.opt"
                  return;
                }
#line 2658 "tree_bitset.m"
              {
#line 2658 "tree_bitset.m"
                mercury__tree_bitset__descend_and_difference_list_7_p_0(mercury__tree_bitset__LevelA_8, mercury__tree_bitset__TailA_16, mercury__tree_bitset__LevelB_10, mercury__tree_bitset__InteriorNodeB_11, mercury__tree_bitset__InteriorNodesB_12, &mercury__tree_bitset__LevelTail_18, &mercury__tree_bitset__ListTail_19);
              }
#line 2662 "tree_bitset.m"
              {
#line 2662 "tree_bitset.m"
                mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_55_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__LevelA_8, mercury__tree_bitset__LevelTail_18, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.descend_and_difference_list\'/7", (MR_String) "LevelTail != LevelA");
              }
#line 2665 "tree_bitset.m"
              *mercury__tree_bitset__Level_13 = mercury__tree_bitset__LevelA_8;
#line 2666 "tree_bitset.m"
              {
#line 2666 "tree_bitset.m"
                MR_Word base;
#line 2666 "tree_bitset.m"
                base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2666 "tree_bitset.m"
                *mercury__tree_bitset__List_14 = base;
#line 2666 "tree_bitset.m"
                MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__HeadA_15));
#line 2666 "tree_bitset.m"
                MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__ListTail_19));
#line 2666 "tree_bitset.m"
              }
#line 2657 "tree_bitset.m"
            }
#line 2667 "tree_bitset.m"
          else
#line 2710 "tree_bitset.m"
            {
#line 2710 "tree_bitset.m"
              MR_Word mercury__tree_bitset__V_72_72 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_15, (MR_Integer) 2)));
#line 2667 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_42_42 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_15, (MR_Integer) 0)));
#line 2667 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_43_43 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_11, (MR_Integer) 0)));
#line 2667 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_71_71 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_15, (MR_Integer) 1)));
#line 2667 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_73_73 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_11, (MR_Integer) 1)));
#line 2667 "tree_bitset.m"
              MR_Word mercury__tree_bitset__V_74_74 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_11, (MR_Integer) 2)));

#line 2667 "tree_bitset.m"
              mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_42_42 <= mercury__tree_bitset__V_43_43);
#line 2710 "tree_bitset.m"
              if (mercury__tree_bitset__succeeded)
#line 2676 "tree_bitset.m"
                {
#line 2676 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__HeadASubLevel_21;
#line 2676 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadASubNodes_22;
#line 2676 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__LevelSub_23;
#line 2676 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__ListSub_24;
#line 2671 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__V_44_44 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_11, (MR_Integer) 1)));
#line 2671 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__V_45_45 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_15, (MR_Integer) 1)));
#line 2671 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__V_75_75 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_11, (MR_Integer) 0)));
#line 2671 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__V_76_76 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_11, (MR_Integer) 2)));
#line 2671 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__V_77_77 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_15, (MR_Integer) 0)));
#line 2671 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__V_78_78 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_15, (MR_Integer) 2)));

#line 2671 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_44_44 <= mercury__tree_bitset__V_45_45);
#line 2673 "tree_bitset.m"
                  if (mercury__tree_bitset__succeeded)
#line 2672 "tree_bitset.m"
                    {
#line 2672 "tree_bitset.m"
                    }
#line 2673 "tree_bitset.m"
                  else
#line 2674 "tree_bitset.m"
                    {
#line 2674 "tree_bitset.m"
                      {
#line 2674 "tree_bitset.m"
                        mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.descend_and_difference_list\'/7", (MR_String) "weird region relationship");
#line 2674 "tree_bitset.m"
                        return;
                      }
#line 2674 "tree_bitset.m"
                    }
#line 2684 "tree_bitset.m"
                  if (((MR_tag((MR_Word) mercury__tree_bitset__V_72_72)) == (MR_mktag((MR_Integer) 1))))
#line 2685 "tree_bitset.m"
                    {
#line 2685 "tree_bitset.m"
                      mercury__tree_bitset__HeadASubLevel_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_72_72, (MR_Integer) 0)));
#line 2685 "tree_bitset.m"
                      mercury__tree_bitset__HeadASubNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_72_72, (MR_Integer) 1)));
#line 2685 "tree_bitset.m"
                    }
#line 2684 "tree_bitset.m"
                  else
#line 2678 "tree_bitset.m"
                    {
#line 2682 "tree_bitset.m"
                      {
#line 2682 "tree_bitset.m"
                        mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.descend_and_difference_list\'/7", (MR_String) "HeadA ^ components is leaf_list");
#line 2682 "tree_bitset.m"
                        return;
                      }
#line 2678 "tree_bitset.m"
                    }
#line 2688 "tree_bitset.m"
                  {
#line 2688 "tree_bitset.m"
                    mercury__tree_bitset__descend_and_difference_list_7_p_0(mercury__tree_bitset__HeadASubLevel_21, mercury__tree_bitset__HeadASubNodes_22, mercury__tree_bitset__LevelB_10, mercury__tree_bitset__InteriorNodeB_11, mercury__tree_bitset__InteriorNodesB_12, &mercury__tree_bitset__LevelSub_23, &mercury__tree_bitset__ListSub_24);
                  }
#line 2694 "tree_bitset.m"
                  if ((mercury__tree_bitset__ListSub_24 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2691 "tree_bitset.m"
                    {
#line 2692 "tree_bitset.m"
                      *mercury__tree_bitset__Level_13 = mercury__tree_bitset__LevelA_8;
#line 2693 "tree_bitset.m"
                      *mercury__tree_bitset__List_14 = mercury__tree_bitset__TailA_16;
#line 2691 "tree_bitset.m"
                    }
#line 2694 "tree_bitset.m"
                  else
#line 2695 "tree_bitset.m"
                    {
#line 2695 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__ListSubHead_25 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListSub_24, (MR_Integer) 0)));
#line 2695 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__ListSubTail_26 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListSub_24, (MR_Integer) 1)));
#line 2695 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__RaisedHead_27;
#line 2695 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__RaisedTail_28;
#line 2704 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__V_58_58;

#line 2696 "tree_bitset.m"
                      {
#line 2696 "tree_bitset.m"
                        mercury__tree_bitset__raise_interiors_to_level_6_p_0(mercury__tree_bitset__LevelA_8, mercury__tree_bitset__LevelSub_23, mercury__tree_bitset__ListSubHead_25, mercury__tree_bitset__ListSubTail_26, &mercury__tree_bitset__RaisedHead_27, &mercury__tree_bitset__RaisedTail_28);
                      }
#line 2704 "tree_bitset.m"
                      mercury__tree_bitset__V_58_58 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2704 "tree_bitset.m"
                      {
#line 2704 "tree_bitset.m"
                        mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_54_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__RaisedTail_28, mercury__tree_bitset__V_58_58, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.descend_and_difference_list\'/7", (MR_String) "RaisedTail != []");
                      }
#line 2707 "tree_bitset.m"
                      *mercury__tree_bitset__Level_13 = mercury__tree_bitset__LevelA_8;
#line 2708 "tree_bitset.m"
                      {
#line 2708 "tree_bitset.m"
                        MR_Word base;
#line 2708 "tree_bitset.m"
                        base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2708 "tree_bitset.m"
                        *mercury__tree_bitset__List_14 = base;
#line 2708 "tree_bitset.m"
                        MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__RaisedHead_27));
#line 2708 "tree_bitset.m"
                        MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__TailA_16));
#line 2708 "tree_bitset.m"
                      }
#line 2695 "tree_bitset.m"
                    }
#line 2676 "tree_bitset.m"
                }
#line 2710 "tree_bitset.m"
              else
#line 2714 "tree_bitset.m"
                {
#line 2714 "tree_bitset.m"
                  *mercury__tree_bitset__Level_13 = mercury__tree_bitset__LevelA_8;
#line 2715 "tree_bitset.m"
                  *mercury__tree_bitset__List_14 = mercury__tree_bitset__InteriorNodesA_9;
#line 2714 "tree_bitset.m"
                }
#line 2710 "tree_bitset.m"
            }
#line 2648 "tree_bitset.m"
        }
#line 2718 "tree_bitset.m"
    else
#line 2722 "tree_bitset.m"
      {
#line 2718 "tree_bitset.m"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__LevelA_8 == mercury__tree_bitset__LevelB_10);
#line 2722 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 2720 "tree_bitset.m"
          {
#line 2720 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_59_59;

#line 2719 "tree_bitset.m"
            {
#line 2719 "tree_bitset.m"
              mercury__tree_bitset__V_59_59 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2719 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_59_59, 0) = ((MR_Box) (mercury__tree_bitset__InteriorNodeB_11));
#line 2719 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_59_59, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodesB_12));
#line 2719 "tree_bitset.m"
            }
#line 2719 "tree_bitset.m"
            {
#line 2719 "tree_bitset.m"
              mercury__tree_bitset__interiorlist_difference_3_p_0(mercury__tree_bitset__InteriorNodesA_9, mercury__tree_bitset__V_59_59, mercury__tree_bitset__List_14);
            }
#line 2721 "tree_bitset.m"
            *mercury__tree_bitset__Level_13 = mercury__tree_bitset__LevelA_8;
#line 2720 "tree_bitset.m"
          }
#line 2722 "tree_bitset.m"
        else
#line 2723 "tree_bitset.m"
          {
#line 2723 "tree_bitset.m"
            {
#line 2723 "tree_bitset.m"
              mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.descend_and_difference_list\'/7", (MR_String) "LevelA < LevelB");
#line 2723 "tree_bitset.m"
              return;
            }
#line 2723 "tree_bitset.m"
          }
#line 2722 "tree_bitset.m"
      }
#line 2718 "tree_bitset.m"
  }
#line 2636 "tree_bitset.m"
}

#line 2555 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__descend_and_difference_one_6_p_0(
#line 2555 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LevelA_7,
#line 2555 "tree_bitset.m"
  MR_Word mercury__tree_bitset__InteriorNodesA_8,
#line 2555 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LevelB_9,
#line 2555 "tree_bitset.m"
  MR_Word mercury__tree_bitset__InteriorNodeB_10,
#line 2555 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__Level_11,
#line 2555 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__List_12)
#line 2555 "tree_bitset.m"
{
#line 2629 "tree_bitset.m"
  {
#line 2629 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__LevelA_7 > mercury__tree_bitset__LevelB_9);

#line 2629 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 2565 "tree_bitset.m"
      if ((mercury__tree_bitset__InteriorNodesA_8 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2562 "tree_bitset.m"
        {
#line 2563 "tree_bitset.m"
          *mercury__tree_bitset__Level_11 = mercury__tree_bitset__LevelA_7;
#line 2564 "tree_bitset.m"
          *mercury__tree_bitset__List_12 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2562 "tree_bitset.m"
        }
#line 2565 "tree_bitset.m"
      else
#line 2566 "tree_bitset.m"
        {
#line 2566 "tree_bitset.m"
          MR_Word mercury__tree_bitset__HeadA_13 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorNodesA_8, (MR_Integer) 0)));
#line 2566 "tree_bitset.m"
          MR_Word mercury__tree_bitset__TailA_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorNodesA_8, (MR_Integer) 1)));
#line 2567 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_13, (MR_Integer) 1)));
#line 2567 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_27_27 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_10, (MR_Integer) 0)));
#line 2567 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_54_54 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_13, (MR_Integer) 0)));
#line 2567 "tree_bitset.m"
          MR_Word mercury__tree_bitset__V_55_55 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_13, (MR_Integer) 2)));
#line 2567 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_56_56 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_10, (MR_Integer) 1)));
#line 2567 "tree_bitset.m"
          MR_Word mercury__tree_bitset__V_57_57 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_10, (MR_Integer) 2)));

#line 2567 "tree_bitset.m"
          mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_26_26 <= mercury__tree_bitset__V_27_27);
#line 2578 "tree_bitset.m"
          if (mercury__tree_bitset__succeeded)
#line 2571 "tree_bitset.m"
            {
#line 2571 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__LevelTail_15;
#line 2571 "tree_bitset.m"
              MR_Word mercury__tree_bitset__ListTail_16;

#line 2570 "tree_bitset.m"
              {
#line 2570 "tree_bitset.m"
                mercury__tree_bitset__descend_and_difference_one_6_p_0(mercury__tree_bitset__LevelA_7, mercury__tree_bitset__TailA_14, mercury__tree_bitset__LevelB_9, mercury__tree_bitset__InteriorNodeB_10, &mercury__tree_bitset__LevelTail_15, &mercury__tree_bitset__ListTail_16);
              }
#line 2573 "tree_bitset.m"
              {
#line 2573 "tree_bitset.m"
                mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_48_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__LevelA_7, mercury__tree_bitset__LevelTail_15, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.descend_and_difference_one\'/6", (MR_String) "LevelTail != LevelA");
              }
#line 2576 "tree_bitset.m"
              *mercury__tree_bitset__Level_11 = mercury__tree_bitset__LevelA_7;
#line 2577 "tree_bitset.m"
              {
#line 2577 "tree_bitset.m"
                MR_Word base;
#line 2577 "tree_bitset.m"
                base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2577 "tree_bitset.m"
                *mercury__tree_bitset__List_12 = base;
#line 2577 "tree_bitset.m"
                MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__HeadA_13));
#line 2577 "tree_bitset.m"
                MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__ListTail_16));
#line 2577 "tree_bitset.m"
              }
#line 2571 "tree_bitset.m"
            }
#line 2578 "tree_bitset.m"
          else
#line 2621 "tree_bitset.m"
            {
#line 2621 "tree_bitset.m"
              MR_Word mercury__tree_bitset__V_59_59 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_13, (MR_Integer) 2)));
#line 2578 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_32_32 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_13, (MR_Integer) 0)));
#line 2578 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_10, (MR_Integer) 0)));
#line 2578 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_58_58 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_13, (MR_Integer) 1)));
#line 2578 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_60_60 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_10, (MR_Integer) 1)));
#line 2578 "tree_bitset.m"
              MR_Word mercury__tree_bitset__V_61_61 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_10, (MR_Integer) 2)));

#line 2578 "tree_bitset.m"
              mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_32_32 <= mercury__tree_bitset__V_33_33);
#line 2621 "tree_bitset.m"
              if (mercury__tree_bitset__succeeded)
#line 2587 "tree_bitset.m"
                {
#line 2587 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__HeadASubLevel_18;
#line 2587 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadASubNodes_19;
#line 2587 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__LevelSub_20;
#line 2587 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__ListSub_21;
#line 2582 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_10, (MR_Integer) 1)));
#line 2582 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__V_35_35 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_13, (MR_Integer) 1)));
#line 2582 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__V_62_62 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_10, (MR_Integer) 0)));
#line 2582 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__V_63_63 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_10, (MR_Integer) 2)));
#line 2582 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__V_64_64 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_13, (MR_Integer) 0)));
#line 2582 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__V_65_65 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_13, (MR_Integer) 2)));

#line 2582 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_34_34 <= mercury__tree_bitset__V_35_35);
#line 2584 "tree_bitset.m"
                  if (mercury__tree_bitset__succeeded)
#line 2583 "tree_bitset.m"
                    {
#line 2583 "tree_bitset.m"
                    }
#line 2584 "tree_bitset.m"
                  else
#line 2585 "tree_bitset.m"
                    {
#line 2585 "tree_bitset.m"
                      {
#line 2585 "tree_bitset.m"
                        mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.descend_and_difference_one\'/6", (MR_String) "weird region relationship");
#line 2585 "tree_bitset.m"
                        return;
                      }
#line 2585 "tree_bitset.m"
                    }
#line 2595 "tree_bitset.m"
                  if (((MR_tag((MR_Word) mercury__tree_bitset__V_59_59)) == (MR_mktag((MR_Integer) 1))))
#line 2596 "tree_bitset.m"
                    {
#line 2596 "tree_bitset.m"
                      mercury__tree_bitset__HeadASubLevel_18 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_59_59, (MR_Integer) 0)));
#line 2596 "tree_bitset.m"
                      mercury__tree_bitset__HeadASubNodes_19 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_59_59, (MR_Integer) 1)));
#line 2596 "tree_bitset.m"
                    }
#line 2595 "tree_bitset.m"
                  else
#line 2589 "tree_bitset.m"
                    {
#line 2593 "tree_bitset.m"
                      {
#line 2593 "tree_bitset.m"
                        mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.descend_and_difference_one\'/6", (MR_String) "HeadA ^ components is leaf_list");
#line 2593 "tree_bitset.m"
                        return;
                      }
#line 2589 "tree_bitset.m"
                    }
#line 2599 "tree_bitset.m"
                  {
#line 2599 "tree_bitset.m"
                    mercury__tree_bitset__descend_and_difference_one_6_p_0(mercury__tree_bitset__HeadASubLevel_18, mercury__tree_bitset__HeadASubNodes_19, mercury__tree_bitset__LevelB_9, mercury__tree_bitset__InteriorNodeB_10, &mercury__tree_bitset__LevelSub_20, &mercury__tree_bitset__ListSub_21);
                  }
#line 2605 "tree_bitset.m"
                  if ((mercury__tree_bitset__ListSub_21 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2602 "tree_bitset.m"
                    {
#line 2603 "tree_bitset.m"
                      *mercury__tree_bitset__Level_11 = mercury__tree_bitset__LevelA_7;
#line 2604 "tree_bitset.m"
                      *mercury__tree_bitset__List_12 = mercury__tree_bitset__TailA_14;
#line 2602 "tree_bitset.m"
                    }
#line 2605 "tree_bitset.m"
                  else
#line 2606 "tree_bitset.m"
                    {
#line 2606 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__ListSubHead_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListSub_21, (MR_Integer) 0)));
#line 2606 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__ListSubTail_23 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListSub_21, (MR_Integer) 1)));
#line 2606 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__RaisedHead_24;
#line 2606 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__RaisedTail_25;
#line 2615 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__V_48_48;

#line 837 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = (mercury__tree_bitset__LevelSub_20 == mercury__tree_bitset__LevelA_7);
#line 840 "tree_bitset.m"
                      if (mercury__tree_bitset__succeeded)
#line 838 "tree_bitset.m"
                        {
#line 838 "tree_bitset.m"
                          mercury__tree_bitset__RaisedHead_24 = mercury__tree_bitset__ListSubHead_22;
#line 839 "tree_bitset.m"
                          mercury__tree_bitset__RaisedTail_25 = mercury__tree_bitset__ListSubTail_23;
#line 838 "tree_bitset.m"
                        }
#line 840 "tree_bitset.m"
                      else
#line 842 "tree_bitset.m"
                        {
#line 842 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__ParentInitOffset_81;
#line 842 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__ParentLimitOffset_82;
#line 842 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__NodeList_83;
#line 842 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__ParentNode_84;
#line 842 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__V_85_85 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__ListSubHead_22, (MR_Integer) 0)));
#line 842 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__V_87_87;
#line 841 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__V_89_89 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__ListSubHead_22, (MR_Integer) 1)));
#line 841 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__V_90_90 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__ListSubHead_22, (MR_Integer) 2)));

#line 841 "tree_bitset.m"
                          {
#line 841 "tree_bitset.m"
                            mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_85_85, mercury__tree_bitset__LevelSub_20, &mercury__tree_bitset__ParentInitOffset_81, &mercury__tree_bitset__ParentLimitOffset_82);
                          }
#line 843 "tree_bitset.m"
                          {
#line 843 "tree_bitset.m"
                            mercury__tree_bitset__NodeList_83 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 843 "tree_bitset.m"
                            MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_83, 0) = ((MR_Box) (mercury__tree_bitset__LevelSub_20));
#line 843 "tree_bitset.m"
                            MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_83, 1) = ((MR_Box) (mercury__tree_bitset__ListSub_21));
#line 843 "tree_bitset.m"
                          }
#line 844 "tree_bitset.m"
                          {
#line 844 "tree_bitset.m"
                            mercury__tree_bitset__ParentNode_84 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 844 "tree_bitset.m"
                            MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_84, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffset_81));
#line 844 "tree_bitset.m"
                            MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_84, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffset_82));
#line 844 "tree_bitset.m"
                            MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_84, 2) = ((MR_Box) (mercury__tree_bitset__NodeList_83));
#line 844 "tree_bitset.m"
                          }
#line 846 "tree_bitset.m"
                          mercury__tree_bitset__V_87_87 = (mercury__tree_bitset__LevelSub_20 + (MR_Integer) 1);
#line 846 "tree_bitset.m"
                          {
#line 846 "tree_bitset.m"
                            mercury__tree_bitset__raise_one_interior_to_level_4_p_0(mercury__tree_bitset__LevelA_7, mercury__tree_bitset__V_87_87, mercury__tree_bitset__ParentNode_84, &mercury__tree_bitset__RaisedHead_24);
                          }
#line 848 "tree_bitset.m"
                          mercury__tree_bitset__RaisedTail_25 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 842 "tree_bitset.m"
                        }
#line 2615 "tree_bitset.m"
                      mercury__tree_bitset__V_48_48 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2615 "tree_bitset.m"
                      {
#line 2615 "tree_bitset.m"
                        mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_50_57_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__RaisedTail_25, mercury__tree_bitset__V_48_48, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.descend_and_difference_one\'/6", (MR_String) "RaisedTail != []");
                      }
#line 2618 "tree_bitset.m"
                      *mercury__tree_bitset__Level_11 = mercury__tree_bitset__LevelA_7;
#line 2619 "tree_bitset.m"
                      {
#line 2619 "tree_bitset.m"
                        MR_Word base;
#line 2619 "tree_bitset.m"
                        base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2619 "tree_bitset.m"
                        *mercury__tree_bitset__List_12 = base;
#line 2619 "tree_bitset.m"
                        MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__RaisedHead_24));
#line 2619 "tree_bitset.m"
                        MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__TailA_14));
#line 2619 "tree_bitset.m"
                      }
#line 2606 "tree_bitset.m"
                    }
#line 2587 "tree_bitset.m"
                }
#line 2621 "tree_bitset.m"
              else
#line 2625 "tree_bitset.m"
                {
#line 2625 "tree_bitset.m"
                  *mercury__tree_bitset__Level_11 = mercury__tree_bitset__LevelA_7;
#line 2626 "tree_bitset.m"
                  *mercury__tree_bitset__List_12 = mercury__tree_bitset__InteriorNodesA_8;
#line 2625 "tree_bitset.m"
                }
#line 2621 "tree_bitset.m"
            }
#line 2566 "tree_bitset.m"
        }
#line 2629 "tree_bitset.m"
    else
#line 2632 "tree_bitset.m"
      {
#line 2629 "tree_bitset.m"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__LevelA_7 == mercury__tree_bitset__LevelB_9);
#line 2632 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 2630 "tree_bitset.m"
          {
#line 2630 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_49_49;
#line 2630 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_50_50 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));

#line 2630 "tree_bitset.m"
            {
#line 2630 "tree_bitset.m"
              mercury__tree_bitset__V_49_49 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2630 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_49_49, 0) = ((MR_Box) (mercury__tree_bitset__InteriorNodeB_10));
#line 2630 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_49_49, 1) = ((MR_Box) (mercury__tree_bitset__V_50_50));
#line 2630 "tree_bitset.m"
            }
#line 2630 "tree_bitset.m"
            {
#line 2630 "tree_bitset.m"
              mercury__tree_bitset__interiorlist_difference_3_p_0(mercury__tree_bitset__InteriorNodesA_8, mercury__tree_bitset__V_49_49, mercury__tree_bitset__List_12);
            }
#line 2631 "tree_bitset.m"
            *mercury__tree_bitset__Level_11 = mercury__tree_bitset__LevelA_7;
#line 2630 "tree_bitset.m"
          }
#line 2632 "tree_bitset.m"
        else
#line 2633 "tree_bitset.m"
          {
#line 2633 "tree_bitset.m"
            {
#line 2633 "tree_bitset.m"
              mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.descend_and_difference_one\'/6", (MR_String) "LevelA < LevelB");
#line 2633 "tree_bitset.m"
              return;
            }
#line 2633 "tree_bitset.m"
          }
#line 2632 "tree_bitset.m"
      }
#line 2629 "tree_bitset.m"
  }
#line 2555 "tree_bitset.m"
}

#line 2471 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__find_interior_nodes_at_parent_offset_6_p_0(
#line 2471 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__1_1,
#line 2471 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 2471 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__3_3,
#line 2471 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__4_4,
#line 2471 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__5_5,
#line 2471 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__6_6)
#line 2471 "tree_bitset.m"
{
#line 2474 "tree_bitset.m"
  while (MR_TRUE)
#line 2474 "tree_bitset.m"
    {
#line 2474 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 2474 "tree_bitset.m"
      {
#line 2474 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 2474 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2474 "tree_bitset.m"
          *mercury__tree_bitset__HeadVar__6_6 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2474 "tree_bitset.m"
        else
#line 2477 "tree_bitset.m"
          {
#line 2477 "tree_bitset.m"
            MR_Word mercury__tree_bitset__HeadB_12 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 2477 "tree_bitset.m"
            MR_Word mercury__tree_bitset__TailB_13 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));

#line 2478 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__HeadVar__1_1 > mercury__tree_bitset__HeadVar__3_3);
#line 2519 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 2496 "tree_bitset.m"
              {
#line 2479 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_25_25 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 0)));
#line 2479 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_57_57 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 1)));
#line 2479 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_58_58 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 2)));

#line 2479 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_25_25 > mercury__tree_bitset__HeadVar__4_4);
#line 2496 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 2494 "tree_bitset.m"
                  {
#line 2489 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 0)));
#line 2489 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_59_59 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 1)));
#line 2489 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_60_60 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 2)));

#line 2489 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_26_26 >= mercury__tree_bitset__HeadVar__5_5);
#line 2491 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 2490 "tree_bitset.m"
                      {
#line 2490 "tree_bitset.m"
                      }
#line 2491 "tree_bitset.m"
                    else
#line 2492 "tree_bitset.m"
                      {
#line 2492 "tree_bitset.m"
                        {
#line 2492 "tree_bitset.m"
                          mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.find_interior_nodes_at_parent_offset\'/6", (MR_String) "screwed-up offsets");
#line 2492 "tree_bitset.m"
                          return;
                        }
#line 2492 "tree_bitset.m"
                      }
#line 2495 "tree_bitset.m"
                    *mercury__tree_bitset__HeadVar__6_6 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2494 "tree_bitset.m"
                  }
#line 2496 "tree_bitset.m"
                else
#line 2514 "tree_bitset.m"
                  {
#line 2514 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_62_62 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 2)));
#line 2496 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_30_30 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 1)));
#line 2496 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_61_61 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 0)));

#line 2496 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = (mercury__tree_bitset__HeadVar__4_4 < mercury__tree_bitset__V_30_30);
#line 2514 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 2502 "tree_bitset.m"
                      if (((MR_tag((MR_Word) mercury__tree_bitset__V_62_62)) == (MR_mktag((MR_Integer) 1))))
#line 2504 "tree_bitset.m"
                        {
#line 2504 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__HeadSubLevelB_20 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_62_62, (MR_Integer) 0)));
#line 2504 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__HeadInteriorNodesB_21 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_62_62, (MR_Integer) 1)));
#line 2506 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__V_40_40;

#line 2506 "tree_bitset.m"
                          {
#line 2506 "tree_bitset.m"
                            mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_110_111_116_95_95_104_111_51_49_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.find_interior_nodes_at_parent_offset\'/6", (MR_String) "LevelB = 1");
                          }
#line 2507 "tree_bitset.m"
                          mercury__tree_bitset__V_40_40 = (mercury__tree_bitset__HeadVar__1_1 - (MR_Integer) 1);
#line 2507 "tree_bitset.m"
                          {
#line 2507 "tree_bitset.m"
                            mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_51_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__HeadSubLevelB_20, mercury__tree_bitset__V_40_40, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.find_interior_nodes_at_parent_offset\'/6", (MR_String) "HeadSubLevelB != LevelB - 1");
                          }
#line 2510 "tree_bitset.m"
                          /* direct tailcall eliminated */
#line 2510 "tree_bitset.m"
                          {
#line 2510 "tree_bitset.m"
                            MR_Integer mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__HeadSubLevelB_20;
#line 2510 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__HeadInteriorNodesB_21;

#line 2510 "tree_bitset.m"
                            mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 2510 "tree_bitset.m"
                            mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 2510 "tree_bitset.m"
                          }
#line 2510 "tree_bitset.m"
                          continue;
#line 2504 "tree_bitset.m"
                        }
#line 2502 "tree_bitset.m"
                      else
#line 2500 "tree_bitset.m"
                        {
#line 2501 "tree_bitset.m"
                          {
#line 2501 "tree_bitset.m"
                            mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.find_interior_nodes_at_parent_offset\'/6", (MR_String) "HeadNodeListB is a leaf list");
#line 2501 "tree_bitset.m"
                            return;
                          }
#line 2500 "tree_bitset.m"
                        }
#line 2514 "tree_bitset.m"
                    else
#line 2516 "tree_bitset.m"
                      {
#line 2516 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 2516 "tree_bitset.m"
                        {
#line 2516 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__TailB_13;

#line 2516 "tree_bitset.m"
                          mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 2516 "tree_bitset.m"
                        }
#line 2516 "tree_bitset.m"
                        continue;
#line 2516 "tree_bitset.m"
                      }
#line 2514 "tree_bitset.m"
                  }
#line 2496 "tree_bitset.m"
              }
#line 2519 "tree_bitset.m"
            else
#line 2523 "tree_bitset.m"
              {
#line 2524 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_49_49;
#line 2524 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_65_65;
#line 2524 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_66_66;

#line 2521 "tree_bitset.m"
                {
#line 2521 "tree_bitset.m"
                  mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_50_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__HeadVar__3_3, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.find_interior_nodes_at_parent_offset\'/6", (MR_String) "ParentLevelA != LevelB");
                }
#line 2524 "tree_bitset.m"
                mercury__tree_bitset__V_49_49 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 0)));
#line 2524 "tree_bitset.m"
                mercury__tree_bitset__V_65_65 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 1)));
#line 2524 "tree_bitset.m"
                mercury__tree_bitset__V_66_66 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 2)));
#line 2524 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_49_49 > mercury__tree_bitset__HeadVar__4_4);
#line 2541 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 2539 "tree_bitset.m"
                  {
#line 2534 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_50_50 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 0)));
#line 2534 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_67_67 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 1)));
#line 2534 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_68_68 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 2)));

#line 2534 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_50_50 >= mercury__tree_bitset__HeadVar__5_5);
#line 2536 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 2535 "tree_bitset.m"
                      {
#line 2535 "tree_bitset.m"
                      }
#line 2536 "tree_bitset.m"
                    else
#line 2537 "tree_bitset.m"
                      {
#line 2537 "tree_bitset.m"
                        {
#line 2537 "tree_bitset.m"
                          mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.find_interior_nodes_at_parent_offset\'/6", (MR_String) "screwed-up offsets");
#line 2537 "tree_bitset.m"
                          return;
                        }
#line 2537 "tree_bitset.m"
                      }
#line 2540 "tree_bitset.m"
                    *mercury__tree_bitset__HeadVar__6_6 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2539 "tree_bitset.m"
                  }
#line 2541 "tree_bitset.m"
                else
#line 2549 "tree_bitset.m"
                  {
#line 2549 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_70_70 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 2)));
#line 2541 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_76_76 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 0)));
#line 2541 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_69_69 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 1)));

#line 2541 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = (mercury__tree_bitset__HeadVar__4_4 == mercury__tree_bitset__V_76_76);
#line 2549 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 2546 "tree_bitset.m"
                      if (((MR_tag((MR_Word) mercury__tree_bitset__V_70_70)) == (MR_mktag((MR_Integer) 1))))
#line 2547 "tree_bitset.m"
                        {
#line 2547 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_70_70, (MR_Integer) 0)));

#line 2547 "tree_bitset.m"
                          *mercury__tree_bitset__HeadVar__6_6 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_70_70, (MR_Integer) 1)));
#line 2547 "tree_bitset.m"
                        }
#line 2546 "tree_bitset.m"
                      else
#line 2544 "tree_bitset.m"
                        {
#line 2545 "tree_bitset.m"
                          {
#line 2545 "tree_bitset.m"
                            mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.find_interior_nodes_at_parent_offset\'/6", (MR_String) "leaf_list");
#line 2545 "tree_bitset.m"
                            return;
                          }
#line 2544 "tree_bitset.m"
                        }
#line 2549 "tree_bitset.m"
                    else
#line 2550 "tree_bitset.m"
                      {
#line 2550 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 2550 "tree_bitset.m"
                        {
#line 2550 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__TailB_13;

#line 2550 "tree_bitset.m"
                          mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 2550 "tree_bitset.m"
                        }
#line 2550 "tree_bitset.m"
                        continue;
#line 2550 "tree_bitset.m"
                      }
#line 2549 "tree_bitset.m"
                  }
#line 2523 "tree_bitset.m"
              }
#line 2477 "tree_bitset.m"
          }
#line 2474 "tree_bitset.m"
      }
#line 2474 "tree_bitset.m"
      break;
#line 2474 "tree_bitset.m"
    }
#line 2471 "tree_bitset.m"
}

#line 2424 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__find_leaf_nodes_at_parent_offset_5_p_0(
#line 2424 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__1_1,
#line 2424 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 2424 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__3_3,
#line 2424 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__4_4,
#line 2424 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__5_5)
#line 2424 "tree_bitset.m"
{
#line 2427 "tree_bitset.m"
  while (MR_TRUE)
#line 2427 "tree_bitset.m"
    {
#line 2427 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 2427 "tree_bitset.m"
      {
#line 2427 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 2427 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2427 "tree_bitset.m"
          *mercury__tree_bitset__HeadVar__5_5 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2427 "tree_bitset.m"
        else
#line 2430 "tree_bitset.m"
          {
#line 2430 "tree_bitset.m"
            MR_Word mercury__tree_bitset__HeadB_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 2430 "tree_bitset.m"
            MR_Word mercury__tree_bitset__TailB_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 2431 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_19_19 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_10, (MR_Integer) 0)));
#line 2431 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_41_41 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_10, (MR_Integer) 1)));
#line 2431 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_42_42 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_10, (MR_Integer) 2)));

#line 2431 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_19_19 > mercury__tree_bitset__HeadVar__3_3);
#line 2447 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 2445 "tree_bitset.m"
              {
#line 2440 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_20_20 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_10, (MR_Integer) 0)));
#line 2440 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_43_43 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_10, (MR_Integer) 1)));
#line 2440 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_44_44 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_10, (MR_Integer) 2)));

#line 2440 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_20_20 >= mercury__tree_bitset__HeadVar__4_4);
#line 2442 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 2441 "tree_bitset.m"
                  {
#line 2441 "tree_bitset.m"
                  }
#line 2442 "tree_bitset.m"
                else
#line 2443 "tree_bitset.m"
                  {
#line 2443 "tree_bitset.m"
                    {
#line 2443 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.find_leaf_nodes_at_parent_offset\'/5", (MR_String) "screwed-up offsets");
#line 2443 "tree_bitset.m"
                      return;
                    }
#line 2443 "tree_bitset.m"
                  }
#line 2446 "tree_bitset.m"
                *mercury__tree_bitset__HeadVar__5_5 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2445 "tree_bitset.m"
              }
#line 2447 "tree_bitset.m"
            else
#line 2466 "tree_bitset.m"
              {
#line 2466 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_46_46 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_10, (MR_Integer) 2)));
#line 2447 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_10, (MR_Integer) 1)));
#line 2447 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_45_45 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_10, (MR_Integer) 0)));

#line 2447 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__HeadVar__3_3 < mercury__tree_bitset__V_24_24);
#line 2466 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 2456 "tree_bitset.m"
                  if (((MR_tag((MR_Word) mercury__tree_bitset__V_46_46)) == (MR_mktag((MR_Integer) 1))))
#line 2457 "tree_bitset.m"
                    {
#line 2457 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__HeadSubLevelB_17 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_46_46, (MR_Integer) 0)));
#line 2457 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__HeadInteriorNodesB_18 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_46_46, (MR_Integer) 1)));
#line 2459 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__V_34_34;

#line 2459 "tree_bitset.m"
                      {
#line 2459 "tree_bitset.m"
                        mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_110_111_116_95_95_104_111_51_52_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.find_leaf_nodes_at_parent_offset\'/5", (MR_String) "LevelB = 1");
                      }
#line 2460 "tree_bitset.m"
                      mercury__tree_bitset__V_34_34 = (mercury__tree_bitset__HeadVar__1_1 - (MR_Integer) 1);
#line 2460 "tree_bitset.m"
                      {
#line 2460 "tree_bitset.m"
                        mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_54_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__HeadSubLevelB_17, mercury__tree_bitset__V_34_34, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.find_leaf_nodes_at_parent_offset\'/5", (MR_String) "HeadSubLevelB != LevelB - 1");
                      }
#line 2463 "tree_bitset.m"
                      /* direct tailcall eliminated */
#line 2463 "tree_bitset.m"
                      {
#line 2463 "tree_bitset.m"
                        MR_Integer mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__HeadSubLevelB_17;
#line 2463 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__HeadInteriorNodesB_18;

#line 2463 "tree_bitset.m"
                        mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 2463 "tree_bitset.m"
                        mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 2463 "tree_bitset.m"
                      }
#line 2463 "tree_bitset.m"
                      continue;
#line 2457 "tree_bitset.m"
                    }
#line 2456 "tree_bitset.m"
                  else
#line 2451 "tree_bitset.m"
                    {
#line 2451 "tree_bitset.m"
                      *mercury__tree_bitset__HeadVar__5_5 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_46_46, (MR_Integer) 0)));
#line 2453 "tree_bitset.m"
                      {
#line 2453 "tree_bitset.m"
                        mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_53_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.find_leaf_nodes_at_parent_offset\'/5", (MR_String) "LevelB != 1");
#line 2453 "tree_bitset.m"
                        return;
                      }
#line 2451 "tree_bitset.m"
                    }
#line 2466 "tree_bitset.m"
                else
#line 2467 "tree_bitset.m"
                  {
#line 2467 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 2467 "tree_bitset.m"
                    {
#line 2467 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__TailB_11;

#line 2467 "tree_bitset.m"
                      mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 2467 "tree_bitset.m"
                    }
#line 2467 "tree_bitset.m"
                    continue;
#line 2467 "tree_bitset.m"
                  }
#line 2466 "tree_bitset.m"
              }
#line 2430 "tree_bitset.m"
          }
#line 2427 "tree_bitset.m"
      }
#line 2427 "tree_bitset.m"
      break;
#line 2427 "tree_bitset.m"
    }
#line 2424 "tree_bitset.m"
}

#line 2251 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__interiorlist_intersect_3_p_0(
#line 2251 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 2251 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 2251 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3)
#line 2251 "tree_bitset.m"
{
#line 2255 "tree_bitset.m"
  while (MR_TRUE)
#line 2255 "tree_bitset.m"
    {
#line 2255 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 2255 "tree_bitset.m"
      {
#line 2255 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 2255 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2255 "tree_bitset.m"
          if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2255 "tree_bitset.m"
            *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2255 "tree_bitset.m"
          else
#line 2256 "tree_bitset.m"
            *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2255 "tree_bitset.m"
        else
#line 2255 "tree_bitset.m"
          {
#line 2255 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_80_80 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 2255 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_81_81 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));

#line 2255 "tree_bitset.m"
            if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2257 "tree_bitset.m"
              *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2255 "tree_bitset.m"
            else
#line 2259 "tree_bitset.m"
              {
#line 2259 "tree_bitset.m"
                MR_Word mercury__tree_bitset__HeadB_12 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 2259 "tree_bitset.m"
                MR_Word mercury__tree_bitset__TailB_13 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 2259 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__OffsetA_15 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_81_81, (MR_Integer) 0)));
#line 2259 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__OffsetB_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 0)));
#line 2260 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_63_63 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_81_81, (MR_Integer) 1)));
#line 2260 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_64_64 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_81_81, (MR_Integer) 2)));
#line 2261 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_65_65 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 1)));
#line 2261 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_66_66 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 2)));

#line 2262 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__OffsetA_15 == mercury__tree_bitset__OffsetB_16);
#line 2309 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 2263 "tree_bitset.m"
                  {
#line 2263 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__ComponentsA_17 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_81_81, (MR_Integer) 2)));
#line 2263 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__ComponentsB_18 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 2)));
#line 2263 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_67_67 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_81_81, (MR_Integer) 0)));
#line 2263 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_68_68 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_81_81, (MR_Integer) 1)));
#line 2264 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_69_69 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 0)));
#line 2264 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_70_70 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 1)));

#line 2280 "tree_bitset.m"
                    if (((MR_tag((MR_Word) mercury__tree_bitset__ComponentsA_17)) == (MR_mktag((MR_Integer) 1))))
#line 2280 "tree_bitset.m"
                      {
#line 2280 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__V_82_82 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ComponentsA_17, (MR_Integer) 1)));
#line 2280 "tree_bitset.m"
                        MR_Integer mercury__tree_bitset__V_83_83 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ComponentsA_17, (MR_Integer) 0)));

#line 2280 "tree_bitset.m"
                        if (((MR_tag((MR_Word) mercury__tree_bitset__ComponentsB_18)) == (MR_mktag((MR_Integer) 1))))
#line 2289 "tree_bitset.m"
                          {
#line 2289 "tree_bitset.m"
                            MR_Integer mercury__tree_bitset__LevelB_35 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ComponentsB_18, (MR_Integer) 0)));
#line 2289 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__InteriorNodesB_36 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ComponentsB_18, (MR_Integer) 1)));
#line 2289 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__InteriorNodes_37;

#line 2292 "tree_bitset.m"
                            {
#line 2292 "tree_bitset.m"
                              mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_55_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__LevelB_35, mercury__tree_bitset__V_83_83, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.interiorlist_intersect\'/3", (MR_String) "inconsistent levels");
                            }
#line 2295 "tree_bitset.m"
                            {
#line 2295 "tree_bitset.m"
                              mercury__tree_bitset__interiorlist_intersect_3_p_0(mercury__tree_bitset__V_82_82, mercury__tree_bitset__InteriorNodesB_36, &mercury__tree_bitset__InteriorNodes_37);
                            }
#line 2300 "tree_bitset.m"
                            if ((mercury__tree_bitset__InteriorNodes_37 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2298 "tree_bitset.m"
                              {
#line 2298 "tree_bitset.m"
                                /* direct tailcall eliminated */
#line 2298 "tree_bitset.m"
                                {
#line 2298 "tree_bitset.m"
                                  MR_Word mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__V_80_80;
#line 2298 "tree_bitset.m"
                                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__TailB_13;

#line 2298 "tree_bitset.m"
                                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 2298 "tree_bitset.m"
                                  mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 2298 "tree_bitset.m"
                                }
#line 2298 "tree_bitset.m"
                                continue;
#line 2298 "tree_bitset.m"
                              }
#line 2300 "tree_bitset.m"
                            else
#line 2301 "tree_bitset.m"
                              {
#line 2301 "tree_bitset.m"
                                MR_Integer mercury__tree_bitset__V_44_44;
#line 2301 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__Components_54;
#line 2301 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__Tail_55;
#line 2301 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__Head_56;
#line 2301 "tree_bitset.m"
                                MR_Integer mercury__tree_bitset__V_75_75;
#line 2304 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__V_76_76;

#line 2302 "tree_bitset.m"
                                {
#line 2302 "tree_bitset.m"
                                  mercury__tree_bitset__Components_54 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2302 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_54, 0) = ((MR_Box) (mercury__tree_bitset__V_83_83));
#line 2302 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_54, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodes_37));
#line 2302 "tree_bitset.m"
                                }
#line 2303 "tree_bitset.m"
                                {
#line 2303 "tree_bitset.m"
                                  mercury__tree_bitset__interiorlist_intersect_3_p_0(mercury__tree_bitset__V_80_80, mercury__tree_bitset__TailB_13, &mercury__tree_bitset__Tail_55);
                                }
#line 2304 "tree_bitset.m"
                                mercury__tree_bitset__V_44_44 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_81_81, (MR_Integer) 0)));
#line 2304 "tree_bitset.m"
                                mercury__tree_bitset__V_75_75 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_81_81, (MR_Integer) 1)));
#line 2304 "tree_bitset.m"
                                mercury__tree_bitset__V_76_76 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_81_81, (MR_Integer) 2)));
#line 2304 "tree_bitset.m"
                                {
#line 2304 "tree_bitset.m"
                                  mercury__tree_bitset__Head_56 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 2304 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_56, 0) = ((MR_Box) (mercury__tree_bitset__V_44_44));
#line 2304 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_56, 1) = ((MR_Box) (mercury__tree_bitset__V_75_75));
#line 2304 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_56, 2) = ((MR_Box) (mercury__tree_bitset__Components_54));
#line 2304 "tree_bitset.m"
                                }
#line 2306 "tree_bitset.m"
                                {
#line 2306 "tree_bitset.m"
                                  MR_Word base;
#line 2306 "tree_bitset.m"
                                  base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2306 "tree_bitset.m"
                                  *mercury__tree_bitset__HeadVar__3_3 = base;
#line 2306 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head_56));
#line 2306 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail_55));
#line 2306 "tree_bitset.m"
                                }
#line 2301 "tree_bitset.m"
                              }
#line 2289 "tree_bitset.m"
                          }
#line 2280 "tree_bitset.m"
                        else
#line 2281 "tree_bitset.m"
                          {
#line 2283 "tree_bitset.m"
                            {
#line 2283 "tree_bitset.m"
                              mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.interiorlist_intersect\'/3", (MR_String) "inconsistent components");
#line 2283 "tree_bitset.m"
                              return;
                            }
#line 2281 "tree_bitset.m"
                          }
#line 2280 "tree_bitset.m"
                      }
#line 2280 "tree_bitset.m"
                    else
#line 2280 "tree_bitset.m"
                      {
#line 2280 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__V_84_84 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__ComponentsA_17, (MR_Integer) 0)));

#line 2280 "tree_bitset.m"
                        if (((MR_tag((MR_Word) mercury__tree_bitset__ComponentsB_18)) == (MR_mktag((MR_Integer) 1))))
#line 2285 "tree_bitset.m"
                          {
#line 2287 "tree_bitset.m"
                            {
#line 2287 "tree_bitset.m"
                              mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.interiorlist_intersect\'/3", (MR_String) "inconsistent components");
#line 2287 "tree_bitset.m"
                              return;
                            }
#line 2285 "tree_bitset.m"
                          }
#line 2280 "tree_bitset.m"
                        else
#line 2266 "tree_bitset.m"
                          {
#line 2266 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__LeafNodesB_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__ComponentsB_18, (MR_Integer) 0)));
#line 2266 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__LeafNodes_21;

#line 2268 "tree_bitset.m"
                            {
#line 2268 "tree_bitset.m"
                              mercury__tree_bitset__leaflist_intersect_3_p_0(mercury__tree_bitset__V_84_84, mercury__tree_bitset__LeafNodesB_20, &mercury__tree_bitset__LeafNodes_21);
                            }
#line 2272 "tree_bitset.m"
                            if ((mercury__tree_bitset__LeafNodes_21 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2270 "tree_bitset.m"
                              {
#line 2270 "tree_bitset.m"
                                /* direct tailcall eliminated */
#line 2270 "tree_bitset.m"
                                {
#line 2270 "tree_bitset.m"
                                  MR_Word mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__V_80_80;
#line 2270 "tree_bitset.m"
                                  MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__TailB_13;

#line 2270 "tree_bitset.m"
                                  mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 2270 "tree_bitset.m"
                                  mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 2270 "tree_bitset.m"
                                }
#line 2270 "tree_bitset.m"
                                continue;
#line 2270 "tree_bitset.m"
                              }
#line 2272 "tree_bitset.m"
                            else
#line 2273 "tree_bitset.m"
                              {
#line 2273 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__Components_24;
#line 2273 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__Tail_25;
#line 2273 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__Head_26;
#line 2273 "tree_bitset.m"
                                MR_Integer mercury__tree_bitset__V_52_52;
#line 2273 "tree_bitset.m"
                                MR_Integer mercury__tree_bitset__V_71_71;
#line 2276 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__V_72_72;

#line 2274 "tree_bitset.m"
                                {
#line 2274 "tree_bitset.m"
                                  mercury__tree_bitset__Components_24 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 2274 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_24, 0) = ((MR_Box) (mercury__tree_bitset__LeafNodes_21));
#line 2274 "tree_bitset.m"
                                }
#line 2275 "tree_bitset.m"
                                {
#line 2275 "tree_bitset.m"
                                  mercury__tree_bitset__interiorlist_intersect_3_p_0(mercury__tree_bitset__V_80_80, mercury__tree_bitset__TailB_13, &mercury__tree_bitset__Tail_25);
                                }
#line 2276 "tree_bitset.m"
                                mercury__tree_bitset__V_52_52 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_81_81, (MR_Integer) 0)));
#line 2276 "tree_bitset.m"
                                mercury__tree_bitset__V_71_71 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_81_81, (MR_Integer) 1)));
#line 2276 "tree_bitset.m"
                                mercury__tree_bitset__V_72_72 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_81_81, (MR_Integer) 2)));
#line 2276 "tree_bitset.m"
                                {
#line 2276 "tree_bitset.m"
                                  mercury__tree_bitset__Head_26 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 2276 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_26, 0) = ((MR_Box) (mercury__tree_bitset__V_52_52));
#line 2276 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_26, 1) = ((MR_Box) (mercury__tree_bitset__V_71_71));
#line 2276 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_26, 2) = ((MR_Box) (mercury__tree_bitset__Components_24));
#line 2276 "tree_bitset.m"
                                }
#line 2278 "tree_bitset.m"
                                {
#line 2278 "tree_bitset.m"
                                  MR_Word base;
#line 2278 "tree_bitset.m"
                                  base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2278 "tree_bitset.m"
                                  *mercury__tree_bitset__HeadVar__3_3 = base;
#line 2278 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head_26));
#line 2278 "tree_bitset.m"
                                  MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail_25));
#line 2278 "tree_bitset.m"
                                }
#line 2273 "tree_bitset.m"
                              }
#line 2266 "tree_bitset.m"
                          }
#line 2280 "tree_bitset.m"
                      }
#line 2263 "tree_bitset.m"
                  }
#line 2309 "tree_bitset.m"
                else
#line 2311 "tree_bitset.m"
                  {
#line 2309 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = (mercury__tree_bitset__OffsetA_15 < mercury__tree_bitset__OffsetB_16);
#line 2311 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 2310 "tree_bitset.m"
                      {
#line 2310 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 2310 "tree_bitset.m"
                        {
#line 2310 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__V_80_80;

#line 2310 "tree_bitset.m"
                          mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 2310 "tree_bitset.m"
                        }
#line 2310 "tree_bitset.m"
                        continue;
#line 2310 "tree_bitset.m"
                      }
#line 2311 "tree_bitset.m"
                    else
#line 2312 "tree_bitset.m"
                      {
#line 2312 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 2312 "tree_bitset.m"
                        {
#line 2312 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__TailB_13;

#line 2312 "tree_bitset.m"
                          mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 2312 "tree_bitset.m"
                        }
#line 2312 "tree_bitset.m"
                        continue;
#line 2312 "tree_bitset.m"
                      }
#line 2311 "tree_bitset.m"
                  }
#line 2259 "tree_bitset.m"
              }
#line 2255 "tree_bitset.m"
          }
#line 2255 "tree_bitset.m"
      }
#line 2255 "tree_bitset.m"
      break;
#line 2255 "tree_bitset.m"
    }
#line 2251 "tree_bitset.m"
}

#line 2234 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__interiornode_intersect_8_p_0(
#line 2234 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LevelA_9,
#line 2234 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadA_10,
#line 2234 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TailA_11,
#line 2234 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LevelB_12,
#line 2234 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadB_13,
#line 2234 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TailB_14,
#line 2234 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__Level_15,
#line 2234 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__List_16)
#line 2234 "tree_bitset.m"
{
#line 2240 "tree_bitset.m"
  {
#line 2240 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__LevelA_9 > mercury__tree_bitset__LevelB_12);
#line 2240 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__LevelAB_17;
#line 2240 "tree_bitset.m"
    MR_Word mercury__tree_bitset__RaisedHeadA_18;
#line 2240 "tree_bitset.m"
    MR_Word mercury__tree_bitset__RaisedTailA_19;
#line 2240 "tree_bitset.m"
    MR_Word mercury__tree_bitset__RaisedHeadB_20;
#line 2240 "tree_bitset.m"
    MR_Word mercury__tree_bitset__RaisedTailB_21;
#line 2240 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TopHeadA_22;
#line 2240 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TopTailA_23;
#line 2240 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TopHeadB_24;
#line 2240 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TopTailB_25;
#line 2240 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_26_26;
#line 2240 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_27_27;

#line 78 "int.opt"
    if (mercury__tree_bitset__succeeded)
#line 77 "int.opt"
      mercury__tree_bitset__LevelAB_17 = mercury__tree_bitset__LevelA_9;
#line 78 "int.opt"
    else
#line 79 "int.opt"
      mercury__tree_bitset__LevelAB_17 = mercury__tree_bitset__LevelB_12;
#line 837 "tree_bitset.m"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__LevelA_9 == mercury__tree_bitset__LevelAB_17);
#line 840 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 838 "tree_bitset.m"
      {
#line 838 "tree_bitset.m"
        mercury__tree_bitset__RaisedHeadA_18 = mercury__tree_bitset__HeadA_10;
#line 839 "tree_bitset.m"
        mercury__tree_bitset__RaisedTailA_19 = mercury__tree_bitset__TailA_11;
#line 838 "tree_bitset.m"
      }
#line 840 "tree_bitset.m"
    else
#line 842 "tree_bitset.m"
      {
#line 842 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__ParentInitOffset_37;
#line 842 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__ParentLimitOffset_38;
#line 842 "tree_bitset.m"
        MR_Word mercury__tree_bitset__NodeList_39;
#line 842 "tree_bitset.m"
        MR_Word mercury__tree_bitset__ParentNode_40;
#line 842 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_41_41 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_10, (MR_Integer) 0)));
#line 842 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_42_42;
#line 842 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_43_43;
#line 841 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_45_45 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_10, (MR_Integer) 1)));
#line 841 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_46_46 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_10, (MR_Integer) 2)));

#line 841 "tree_bitset.m"
        {
#line 841 "tree_bitset.m"
          mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_41_41, mercury__tree_bitset__LevelA_9, &mercury__tree_bitset__ParentInitOffset_37, &mercury__tree_bitset__ParentLimitOffset_38);
        }
#line 843 "tree_bitset.m"
        {
#line 843 "tree_bitset.m"
          mercury__tree_bitset__V_42_42 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 843 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_42_42, 0) = ((MR_Box) (mercury__tree_bitset__HeadA_10));
#line 843 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_42_42, 1) = ((MR_Box) (mercury__tree_bitset__TailA_11));
#line 843 "tree_bitset.m"
        }
#line 843 "tree_bitset.m"
        {
#line 843 "tree_bitset.m"
          mercury__tree_bitset__NodeList_39 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 843 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_39, 0) = ((MR_Box) (mercury__tree_bitset__LevelA_9));
#line 843 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_39, 1) = ((MR_Box) (mercury__tree_bitset__V_42_42));
#line 843 "tree_bitset.m"
        }
#line 844 "tree_bitset.m"
        {
#line 844 "tree_bitset.m"
          mercury__tree_bitset__ParentNode_40 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 844 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_40, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffset_37));
#line 844 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_40, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffset_38));
#line 844 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_40, 2) = ((MR_Box) (mercury__tree_bitset__NodeList_39));
#line 844 "tree_bitset.m"
        }
#line 846 "tree_bitset.m"
        mercury__tree_bitset__V_43_43 = (mercury__tree_bitset__LevelA_9 + (MR_Integer) 1);
#line 846 "tree_bitset.m"
        {
#line 846 "tree_bitset.m"
          mercury__tree_bitset__raise_one_interior_to_level_4_p_0(mercury__tree_bitset__LevelAB_17, mercury__tree_bitset__V_43_43, mercury__tree_bitset__ParentNode_40, &mercury__tree_bitset__RaisedHeadA_18);
        }
#line 848 "tree_bitset.m"
        mercury__tree_bitset__RaisedTailA_19 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 842 "tree_bitset.m"
      }
#line 837 "tree_bitset.m"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__LevelB_12 == mercury__tree_bitset__LevelAB_17);
#line 840 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 838 "tree_bitset.m"
      {
#line 838 "tree_bitset.m"
        mercury__tree_bitset__RaisedHeadB_20 = mercury__tree_bitset__HeadB_13;
#line 839 "tree_bitset.m"
        mercury__tree_bitset__RaisedTailB_21 = mercury__tree_bitset__TailB_14;
#line 838 "tree_bitset.m"
      }
#line 840 "tree_bitset.m"
    else
#line 842 "tree_bitset.m"
      {
#line 842 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__ParentInitOffset_53;
#line 842 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__ParentLimitOffset_54;
#line 842 "tree_bitset.m"
        MR_Word mercury__tree_bitset__NodeList_55;
#line 842 "tree_bitset.m"
        MR_Word mercury__tree_bitset__ParentNode_56;
#line 842 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_57_57 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_13, (MR_Integer) 0)));
#line 842 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_58_58;
#line 842 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_59_59;
#line 841 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_61_61 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_13, (MR_Integer) 1)));
#line 841 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_62_62 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_13, (MR_Integer) 2)));

#line 841 "tree_bitset.m"
        {
#line 841 "tree_bitset.m"
          mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_57_57, mercury__tree_bitset__LevelB_12, &mercury__tree_bitset__ParentInitOffset_53, &mercury__tree_bitset__ParentLimitOffset_54);
        }
#line 843 "tree_bitset.m"
        {
#line 843 "tree_bitset.m"
          mercury__tree_bitset__V_58_58 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 843 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_58_58, 0) = ((MR_Box) (mercury__tree_bitset__HeadB_13));
#line 843 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_58_58, 1) = ((MR_Box) (mercury__tree_bitset__TailB_14));
#line 843 "tree_bitset.m"
        }
#line 843 "tree_bitset.m"
        {
#line 843 "tree_bitset.m"
          mercury__tree_bitset__NodeList_55 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 843 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_55, 0) = ((MR_Box) (mercury__tree_bitset__LevelB_12));
#line 843 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_55, 1) = ((MR_Box) (mercury__tree_bitset__V_58_58));
#line 843 "tree_bitset.m"
        }
#line 844 "tree_bitset.m"
        {
#line 844 "tree_bitset.m"
          mercury__tree_bitset__ParentNode_56 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 844 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_56, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffset_53));
#line 844 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_56, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffset_54));
#line 844 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_56, 2) = ((MR_Box) (mercury__tree_bitset__NodeList_55));
#line 844 "tree_bitset.m"
        }
#line 846 "tree_bitset.m"
        mercury__tree_bitset__V_59_59 = (mercury__tree_bitset__LevelB_12 + (MR_Integer) 1);
#line 846 "tree_bitset.m"
        {
#line 846 "tree_bitset.m"
          mercury__tree_bitset__raise_one_interior_to_level_4_p_0(mercury__tree_bitset__LevelAB_17, mercury__tree_bitset__V_59_59, mercury__tree_bitset__ParentNode_56, &mercury__tree_bitset__RaisedHeadB_20);
        }
#line 848 "tree_bitset.m"
        mercury__tree_bitset__RaisedTailB_21 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 842 "tree_bitset.m"
      }
#line 2246 "tree_bitset.m"
    {
#line 2246 "tree_bitset.m"
      mercury__tree_bitset__raise_to_common_level_10_p_0(mercury__tree_bitset__LevelAB_17, mercury__tree_bitset__RaisedHeadA_18, mercury__tree_bitset__RaisedTailA_19, mercury__tree_bitset__RaisedHeadB_20, mercury__tree_bitset__RaisedTailB_21, &mercury__tree_bitset__TopHeadA_22, &mercury__tree_bitset__TopTailA_23, &mercury__tree_bitset__TopHeadB_24, &mercury__tree_bitset__TopTailB_25, mercury__tree_bitset__Level_15);
    }
#line 2249 "tree_bitset.m"
    {
#line 2249 "tree_bitset.m"
      mercury__tree_bitset__V_26_26 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2249 "tree_bitset.m"
      MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_26_26, 0) = ((MR_Box) (mercury__tree_bitset__TopHeadA_22));
#line 2249 "tree_bitset.m"
      MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_26_26, 1) = ((MR_Box) (mercury__tree_bitset__TopTailA_23));
#line 2249 "tree_bitset.m"
    }
#line 2249 "tree_bitset.m"
    {
#line 2249 "tree_bitset.m"
      mercury__tree_bitset__V_27_27 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2249 "tree_bitset.m"
      MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_27_27, 0) = ((MR_Box) (mercury__tree_bitset__TopHeadB_24));
#line 2249 "tree_bitset.m"
      MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_27_27, 1) = ((MR_Box) (mercury__tree_bitset__TopTailB_25));
#line 2249 "tree_bitset.m"
    }
#line 2249 "tree_bitset.m"
    {
#line 2249 "tree_bitset.m"
      mercury__tree_bitset__interiorlist_intersect_3_p_0(mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_27_27, mercury__tree_bitset__List_16);
#line 2249 "tree_bitset.m"
      return;
    }
#line 2240 "tree_bitset.m"
  }
#line 2234 "tree_bitset.m"
}

#line 2175 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__descend_and_intersect_5_p_0(
#line 2175 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__1_1,
#line 2175 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 2175 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__3_3,
#line 2175 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__4_4,
#line 2175 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__List_5)
#line 2175 "tree_bitset.m"
{
#line 2178 "tree_bitset.m"
  while (MR_TRUE)
#line 2178 "tree_bitset.m"
    {
#line 2178 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 2178 "tree_bitset.m"
      {
#line 2178 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 2178 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__4_4 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2178 "tree_bitset.m"
          {
#line 2178 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_10_10 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));

#line 2179 "tree_bitset.m"
            *mercury__tree_bitset__List_5 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 2178 "tree_bitset.m"
          }
#line 2178 "tree_bitset.m"
        else
#line 2180 "tree_bitset.m"
          {
#line 2180 "tree_bitset.m"
            MR_Word mercury__tree_bitset__HeadB_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__4_4, (MR_Integer) 0)));
#line 2180 "tree_bitset.m"
            MR_Word mercury__tree_bitset__TailB_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__4_4, (MR_Integer) 1)));
#line 2182 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_35_35 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 0)));
#line 2182 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_36_36 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 2182 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_68_68 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 1)));
#line 2182 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_70_70 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 2182 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_69_69 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 2)));
#line 2182 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_71_71 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 2)));

#line 2182 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_35_35 <= mercury__tree_bitset__V_36_36);
#line 2182 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 2183 "tree_bitset.m"
              mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_70_70 <= mercury__tree_bitset__V_68_68);
#line 2230 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 2216 "tree_bitset.m"
              {
#line 2185 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__HeadVar__1_1 == mercury__tree_bitset__HeadVar__3_3);
#line 2216 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 2193 "tree_bitset.m"
                  {
#line 2193 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__ComponentsA_17;
#line 2193 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__ComponentsB_18;
#line 2189 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_43_43 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 2189 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_44_44 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 0)));
#line 2189 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_49_49;
#line 2189 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_50_50;
#line 2188 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_76_76 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 2188 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_77_77 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 2)));
#line 2188 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_78_78 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 1)));
#line 2188 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_79_79 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 2)));
#line 2191 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_80_80;
#line 2191 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_81_81;
#line 2191 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_82_82;
#line 2191 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_83_83;
#line 2194 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_84_84;
#line 2194 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_85_85;
#line 2195 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_86_86;
#line 2195 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_87_87;

#line 2187 "tree_bitset.m"
                    {
#line 2187 "tree_bitset.m"
                      mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_52_48_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__V_43_43, mercury__tree_bitset__V_44_44, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.descend_and_intersect\'/5", (MR_String) "inconsistent inits");
                    }
#line 2191 "tree_bitset.m"
                    mercury__tree_bitset__V_80_80 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 2191 "tree_bitset.m"
                    mercury__tree_bitset__V_49_49 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 2191 "tree_bitset.m"
                    mercury__tree_bitset__V_81_81 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 2)));
#line 2191 "tree_bitset.m"
                    mercury__tree_bitset__V_82_82 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 0)));
#line 2191 "tree_bitset.m"
                    mercury__tree_bitset__V_50_50 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 1)));
#line 2191 "tree_bitset.m"
                    mercury__tree_bitset__V_83_83 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 2)));
#line 2190 "tree_bitset.m"
                    {
#line 2190 "tree_bitset.m"
                      mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_57_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__V_49_49, mercury__tree_bitset__V_50_50, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.descend_and_intersect\'/5", (MR_String) "inconsistent limits");
                    }
#line 2194 "tree_bitset.m"
                    mercury__tree_bitset__V_84_84 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 2194 "tree_bitset.m"
                    mercury__tree_bitset__V_85_85 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 2194 "tree_bitset.m"
                    mercury__tree_bitset__ComponentsA_17 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 2)));
#line 2195 "tree_bitset.m"
                    mercury__tree_bitset__V_86_86 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 0)));
#line 2195 "tree_bitset.m"
                    mercury__tree_bitset__V_87_87 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 1)));
#line 2195 "tree_bitset.m"
                    mercury__tree_bitset__ComponentsB_18 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 2)));
#line 2201 "tree_bitset.m"
                    if (((MR_tag((MR_Word) mercury__tree_bitset__ComponentsA_17)) == (MR_mktag((MR_Integer) 1))))
#line 2201 "tree_bitset.m"
                      {
#line 2201 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__V_92_92 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ComponentsA_17, (MR_Integer) 1)));
#line 2206 "tree_bitset.m"
                        MR_Integer mercury__tree_bitset__V_93_93 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ComponentsA_17, (MR_Integer) 0)));

#line 2201 "tree_bitset.m"
                        if (((MR_tag((MR_Word) mercury__tree_bitset__ComponentsB_18)) == (MR_mktag((MR_Integer) 1))))
#line 2210 "tree_bitset.m"
                          {
#line 2210 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__InteriorNodesB_31 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ComponentsB_18, (MR_Integer) 1)));
#line 2210 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__InteriorNodes_32;
#line 2211 "tree_bitset.m"
                            MR_Integer mercury__tree_bitset___SubLevelB_30 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ComponentsB_18, (MR_Integer) 0)));

#line 2212 "tree_bitset.m"
                            {
#line 2212 "tree_bitset.m"
                              mercury__tree_bitset__interiorlist_intersect_3_p_0(mercury__tree_bitset__V_92_92, mercury__tree_bitset__InteriorNodesB_31, &mercury__tree_bitset__InteriorNodes_32);
                            }
#line 2214 "tree_bitset.m"
                            {
#line 2214 "tree_bitset.m"
                              MR_Word base;
#line 2214 "tree_bitset.m"
                              base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2214 "tree_bitset.m"
                              *mercury__tree_bitset__List_5 = base;
#line 2214 "tree_bitset.m"
                              MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__HeadVar__1_1));
#line 2214 "tree_bitset.m"
                              MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodes_32));
#line 2214 "tree_bitset.m"
                            }
#line 2210 "tree_bitset.m"
                          }
#line 2201 "tree_bitset.m"
                        else
#line 2206 "tree_bitset.m"
                          {
#line 2208 "tree_bitset.m"
                            {
#line 2208 "tree_bitset.m"
                              mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.descend_and_intersect\'/5", (MR_String) "inconsistent levels");
#line 2208 "tree_bitset.m"
                              return;
                            }
#line 2206 "tree_bitset.m"
                          }
#line 2201 "tree_bitset.m"
                      }
#line 2201 "tree_bitset.m"
                    else
#line 2201 "tree_bitset.m"
                      {
#line 2201 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__V_94_94 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__ComponentsA_17, (MR_Integer) 0)));

#line 2201 "tree_bitset.m"
                        if (((MR_tag((MR_Word) mercury__tree_bitset__ComponentsB_18)) == (MR_mktag((MR_Integer) 1))))
#line 2202 "tree_bitset.m"
                          {
#line 2204 "tree_bitset.m"
                            {
#line 2204 "tree_bitset.m"
                              mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.descend_and_intersect\'/5", (MR_String) "inconsistent levels");
#line 2204 "tree_bitset.m"
                              return;
                            }
#line 2202 "tree_bitset.m"
                          }
#line 2201 "tree_bitset.m"
                        else
#line 2197 "tree_bitset.m"
                          {
#line 2197 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__LeafNodesB_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__ComponentsB_18, (MR_Integer) 0)));
#line 2197 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__LeafNodes_21;

#line 2199 "tree_bitset.m"
                            {
#line 2199 "tree_bitset.m"
                              mercury__tree_bitset__leaflist_intersect_3_p_0(mercury__tree_bitset__V_94_94, mercury__tree_bitset__LeafNodesB_20, &mercury__tree_bitset__LeafNodes_21);
                            }
#line 2200 "tree_bitset.m"
                            {
#line 2200 "tree_bitset.m"
                              MR_Word base;
#line 2200 "tree_bitset.m"
                              base = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 2200 "tree_bitset.m"
                              *mercury__tree_bitset__List_5 = base;
#line 2200 "tree_bitset.m"
                              MR_hl_field(MR_mktag(0), base, 0) = ((MR_Box) (mercury__tree_bitset__LeafNodes_21));
#line 2200 "tree_bitset.m"
                            }
#line 2197 "tree_bitset.m"
                          }
#line 2201 "tree_bitset.m"
                      }
#line 2193 "tree_bitset.m"
                  }
#line 2216 "tree_bitset.m"
                else
#line 2219 "tree_bitset.m"
                  {
#line 2219 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__ComponentsB_66;
#line 2220 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_88_88;
#line 2220 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_89_89;

#line 2218 "tree_bitset.m"
                    {
#line 2218 "tree_bitset.m"
                      mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_51_56_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__HeadVar__3_3, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.descend_and_intersect\'/5", (MR_String) "LevelA > LevelB");
                    }
#line 2220 "tree_bitset.m"
                    mercury__tree_bitset__V_88_88 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 0)));
#line 2220 "tree_bitset.m"
                    mercury__tree_bitset__V_89_89 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 1)));
#line 2220 "tree_bitset.m"
                    mercury__tree_bitset__ComponentsB_66 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 2)));
#line 2224 "tree_bitset.m"
                    if (((MR_tag((MR_Word) mercury__tree_bitset__ComponentsB_66)) == (MR_mktag((MR_Integer) 1))))
#line 2225 "tree_bitset.m"
                      {
#line 2225 "tree_bitset.m"
                        MR_Integer mercury__tree_bitset__SubLevelB_34 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ComponentsB_66, (MR_Integer) 0)));
#line 2225 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__InteriorNodesB_64 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ComponentsB_66, (MR_Integer) 1)));

#line 2226 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 2226 "tree_bitset.m"
                        {
#line 2226 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__HeadVar__3__tmp_copy_3 = mercury__tree_bitset__SubLevelB_34;
#line 2226 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__HeadVar__4__tmp_copy_4 = mercury__tree_bitset__InteriorNodesB_64;

#line 2226 "tree_bitset.m"
                          mercury__tree_bitset__HeadVar__4_4 = mercury__tree_bitset__HeadVar__4__tmp_copy_4;
#line 2226 "tree_bitset.m"
                          mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__HeadVar__3__tmp_copy_3;
#line 2226 "tree_bitset.m"
                        }
#line 2226 "tree_bitset.m"
                        continue;
#line 2225 "tree_bitset.m"
                      }
#line 2224 "tree_bitset.m"
                    else
#line 2222 "tree_bitset.m"
                      {
#line 2223 "tree_bitset.m"
                        {
#line 2223 "tree_bitset.m"
                          mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.descend_and_intersect\'/5", (MR_String) "bad ComponentsB");
#line 2223 "tree_bitset.m"
                          return;
                        }
#line 2222 "tree_bitset.m"
                      }
#line 2219 "tree_bitset.m"
                  }
#line 2216 "tree_bitset.m"
              }
#line 2230 "tree_bitset.m"
            else
#line 2231 "tree_bitset.m"
              {
#line 2231 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 2231 "tree_bitset.m"
                {
#line 2231 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__4__tmp_copy_4 = mercury__tree_bitset__TailB_15;

#line 2231 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__4_4 = mercury__tree_bitset__HeadVar__4__tmp_copy_4;
#line 2231 "tree_bitset.m"
                }
#line 2231 "tree_bitset.m"
                continue;
#line 2231 "tree_bitset.m"
              }
#line 2180 "tree_bitset.m"
          }
#line 2178 "tree_bitset.m"
      }
#line 2178 "tree_bitset.m"
      break;
#line 2178 "tree_bitset.m"
    }
#line 2175 "tree_bitset.m"
}

#line 2151 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaflist_intersect_3_p_0(
#line 2151 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 2151 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 2151 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3)
#line 2151 "tree_bitset.m"
{
#line 2154 "tree_bitset.m"
  while (MR_TRUE)
#line 2154 "tree_bitset.m"
    {
#line 2154 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 2154 "tree_bitset.m"
      {
#line 2154 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 2154 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2154 "tree_bitset.m"
          if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2154 "tree_bitset.m"
            *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2154 "tree_bitset.m"
          else
#line 2155 "tree_bitset.m"
            *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2154 "tree_bitset.m"
        else
#line 2154 "tree_bitset.m"
          {
#line 2154 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_26_26 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 2154 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_27_27 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));

#line 2154 "tree_bitset.m"
            if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2156 "tree_bitset.m"
              *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2154 "tree_bitset.m"
            else
#line 2157 "tree_bitset.m"
              {
#line 2157 "tree_bitset.m"
                MR_Word mercury__tree_bitset__HeadB_12 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 2157 "tree_bitset.m"
                MR_Word mercury__tree_bitset__TailB_13 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 2157 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__OffsetA_15 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_27_27, (MR_Integer) 0)));
#line 2157 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__OffsetB_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 0)));
#line 2158 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_27_27, (MR_Integer) 1)));
#line 2159 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 1)));

#line 2160 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__OffsetA_15 == mercury__tree_bitset__OffsetB_16);
#line 2169 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 2161 "tree_bitset.m"
                  {
#line 2161 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__Bits_17;
#line 2161 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_20_20 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_27_27, (MR_Integer) 1)));
#line 2161 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 1)));
#line 2161 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_27_27, (MR_Integer) 0)));
#line 2161 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_25_25 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_12, (MR_Integer) 0)));

#line 2161 "tree_bitset.m"
                    mercury__tree_bitset__Bits_17 = (mercury__tree_bitset__V_20_20 & mercury__tree_bitset__V_21_21);
#line 2162 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_17 == (MR_Integer) 0);
#line 2164 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 2163 "tree_bitset.m"
                      {
#line 2163 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 2163 "tree_bitset.m"
                        {
#line 2163 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__V_26_26;
#line 2163 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__TailB_13;

#line 2163 "tree_bitset.m"
                          mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 2163 "tree_bitset.m"
                          mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 2163 "tree_bitset.m"
                        }
#line 2163 "tree_bitset.m"
                        continue;
#line 2163 "tree_bitset.m"
                      }
#line 2164 "tree_bitset.m"
                    else
#line 2165 "tree_bitset.m"
                      {
#line 2165 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__Head_18;
#line 2165 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__Tail_19;

#line 547 "tree_bitset.m"
                        {
#line 547 "tree_bitset.m"
                          mercury__tree_bitset__Head_18 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_18, 0) = ((MR_Box) (mercury__tree_bitset__OffsetA_15));
#line 547 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_18, 1) = ((MR_Box) (mercury__tree_bitset__Bits_17));
#line 547 "tree_bitset.m"
                        }
#line 2166 "tree_bitset.m"
                        {
#line 2166 "tree_bitset.m"
                          mercury__tree_bitset__leaflist_intersect_3_p_0(mercury__tree_bitset__V_26_26, mercury__tree_bitset__TailB_13, &mercury__tree_bitset__Tail_19);
                        }
#line 2167 "tree_bitset.m"
                        {
#line 2167 "tree_bitset.m"
                          MR_Word base;
#line 2167 "tree_bitset.m"
                          base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2167 "tree_bitset.m"
                          *mercury__tree_bitset__HeadVar__3_3 = base;
#line 2167 "tree_bitset.m"
                          MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head_18));
#line 2167 "tree_bitset.m"
                          MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail_19));
#line 2167 "tree_bitset.m"
                        }
#line 2165 "tree_bitset.m"
                      }
#line 2161 "tree_bitset.m"
                  }
#line 2169 "tree_bitset.m"
                else
#line 2171 "tree_bitset.m"
                  {
#line 2169 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = (mercury__tree_bitset__OffsetA_15 < mercury__tree_bitset__OffsetB_16);
#line 2171 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 2170 "tree_bitset.m"
                      {
#line 2170 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 2170 "tree_bitset.m"
                        {
#line 2170 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__V_26_26;

#line 2170 "tree_bitset.m"
                          mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 2170 "tree_bitset.m"
                        }
#line 2170 "tree_bitset.m"
                        continue;
#line 2170 "tree_bitset.m"
                      }
#line 2171 "tree_bitset.m"
                    else
#line 2172 "tree_bitset.m"
                      {
#line 2172 "tree_bitset.m"
                        /* direct tailcall eliminated */
#line 2172 "tree_bitset.m"
                        {
#line 2172 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__TailB_13;

#line 2172 "tree_bitset.m"
                          mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 2172 "tree_bitset.m"
                        }
#line 2172 "tree_bitset.m"
                        continue;
#line 2172 "tree_bitset.m"
                      }
#line 2171 "tree_bitset.m"
                  }
#line 2157 "tree_bitset.m"
              }
#line 2154 "tree_bitset.m"
          }
#line 2154 "tree_bitset.m"
      }
#line 2154 "tree_bitset.m"
      break;
#line 2154 "tree_bitset.m"
    }
#line 2151 "tree_bitset.m"
}

#line 2017 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__interiorlist_union_3_p_0(
#line 2017 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 2017 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 2017 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3)
#line 2017 "tree_bitset.m"
{
#line 2020 "tree_bitset.m"
  {
#line 2020 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 2020 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2020 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2020 "tree_bitset.m"
        *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 2020 "tree_bitset.m"
      else
#line 2021 "tree_bitset.m"
        *mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__HeadVar__2_2;
#line 2020 "tree_bitset.m"
    else
#line 2020 "tree_bitset.m"
      {
#line 2020 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_73_73 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 2020 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_74_74 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));

#line 2020 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2022 "tree_bitset.m"
          *mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__HeadVar__1_1;
#line 2020 "tree_bitset.m"
        else
#line 2023 "tree_bitset.m"
          {
#line 2023 "tree_bitset.m"
            MR_Word mercury__tree_bitset__HeadB_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 2023 "tree_bitset.m"
            MR_Word mercury__tree_bitset__TailB_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 2023 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__OffsetA_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_74_74, (MR_Integer) 0)));
#line 2023 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__OffsetB_18 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 0)));
#line 2024 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_56_56 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_74_74, (MR_Integer) 1)));
#line 2024 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_57_57 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_74_74, (MR_Integer) 2)));
#line 2025 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_58_58 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 1)));
#line 2025 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_59_59 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 2)));

#line 2026 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__OffsetA_17 == mercury__tree_bitset__OffsetB_18);
#line 2058 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 2027 "tree_bitset.m"
              {
#line 2027 "tree_bitset.m"
                MR_Word mercury__tree_bitset__ComponentsA_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_74_74, (MR_Integer) 2)));
#line 2027 "tree_bitset.m"
                MR_Word mercury__tree_bitset__ComponentsB_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 2)));
#line 2027 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Head_25;
#line 2027 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Tail_37;
#line 2027 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_60_60 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_74_74, (MR_Integer) 0)));
#line 2027 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_61_61 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_74_74, (MR_Integer) 1)));
#line 2028 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_62_62 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 0)));
#line 2028 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_63_63 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 1)));

#line 2036 "tree_bitset.m"
                if (((MR_tag((MR_Word) mercury__tree_bitset__ComponentsA_19)) == (MR_mktag((MR_Integer) 1))))
#line 2036 "tree_bitset.m"
                  {
#line 2036 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_75_75 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ComponentsA_19, (MR_Integer) 1)));
#line 2036 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_76_76 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ComponentsA_19, (MR_Integer) 0)));

#line 2036 "tree_bitset.m"
                    if (((MR_tag((MR_Word) mercury__tree_bitset__ComponentsB_20)) == (MR_mktag((MR_Integer) 1))))
#line 2045 "tree_bitset.m"
                      {
#line 2045 "tree_bitset.m"
                        MR_Integer mercury__tree_bitset__LevelB_34 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ComponentsB_20, (MR_Integer) 0)));
#line 2045 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__InteriorListB_35 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ComponentsB_20, (MR_Integer) 1)));
#line 2045 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__InteriorList_36;
#line 2045 "tree_bitset.m"
                        MR_Integer mercury__tree_bitset__V_42_42;
#line 2045 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__Components_52;
#line 2045 "tree_bitset.m"
                        MR_Integer mercury__tree_bitset__V_68_68;
#line 2053 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__V_69_69;

#line 2048 "tree_bitset.m"
                        {
#line 2048 "tree_bitset.m"
                          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_52_49_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__LevelB_34, mercury__tree_bitset__V_76_76, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.interiorlist_union\'/3", (MR_String) "inconsistent levels");
                        }
#line 2051 "tree_bitset.m"
                        {
#line 2051 "tree_bitset.m"
                          mercury__tree_bitset__interiorlist_union_3_p_0(mercury__tree_bitset__V_75_75, mercury__tree_bitset__InteriorListB_35, &mercury__tree_bitset__InteriorList_36);
                        }
#line 2052 "tree_bitset.m"
                        {
#line 2052 "tree_bitset.m"
                          mercury__tree_bitset__Components_52 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2052 "tree_bitset.m"
                          MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_52, 0) = ((MR_Box) (mercury__tree_bitset__V_76_76));
#line 2052 "tree_bitset.m"
                          MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_52, 1) = ((MR_Box) (mercury__tree_bitset__InteriorList_36));
#line 2052 "tree_bitset.m"
                        }
#line 2053 "tree_bitset.m"
                        mercury__tree_bitset__V_42_42 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_74_74, (MR_Integer) 0)));
#line 2053 "tree_bitset.m"
                        mercury__tree_bitset__V_68_68 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_74_74, (MR_Integer) 1)));
#line 2053 "tree_bitset.m"
                        mercury__tree_bitset__V_69_69 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_74_74, (MR_Integer) 2)));
#line 2053 "tree_bitset.m"
                        {
#line 2053 "tree_bitset.m"
                          mercury__tree_bitset__Head_25 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 2053 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_25, 0) = ((MR_Box) (mercury__tree_bitset__V_42_42));
#line 2053 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_25, 1) = ((MR_Box) (mercury__tree_bitset__V_68_68));
#line 2053 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_25, 2) = ((MR_Box) (mercury__tree_bitset__Components_52));
#line 2053 "tree_bitset.m"
                        }
#line 2045 "tree_bitset.m"
                      }
#line 2036 "tree_bitset.m"
                    else
#line 2041 "tree_bitset.m"
                      {
#line 2043 "tree_bitset.m"
                        {
#line 2043 "tree_bitset.m"
                          mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.interiorlist_union\'/3", (MR_String) "inconsistent components");
#line 2043 "tree_bitset.m"
                          return;
                        }
#line 2041 "tree_bitset.m"
                      }
#line 2036 "tree_bitset.m"
                  }
#line 2036 "tree_bitset.m"
                else
#line 2036 "tree_bitset.m"
                  {
#line 2036 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_77_77 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__ComponentsA_19, (MR_Integer) 0)));

#line 2036 "tree_bitset.m"
                    if (((MR_tag((MR_Word) mercury__tree_bitset__ComponentsB_20)) == (MR_mktag((MR_Integer) 1))))
#line 2037 "tree_bitset.m"
                      {
#line 2039 "tree_bitset.m"
                        {
#line 2039 "tree_bitset.m"
                          mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.interiorlist_union\'/3", (MR_String) "inconsistent components");
#line 2039 "tree_bitset.m"
                          return;
                        }
#line 2037 "tree_bitset.m"
                      }
#line 2036 "tree_bitset.m"
                    else
#line 2030 "tree_bitset.m"
                      {
#line 2030 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__LeafListB_22 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__ComponentsB_20, (MR_Integer) 0)));
#line 2030 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__LeafList_23;
#line 2030 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__Components_24;
#line 2030 "tree_bitset.m"
                        MR_Integer mercury__tree_bitset__V_50_50;
#line 2030 "tree_bitset.m"
                        MR_Integer mercury__tree_bitset__V_64_64;
#line 2034 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__V_65_65;

#line 2032 "tree_bitset.m"
                        {
#line 2032 "tree_bitset.m"
                          mercury__tree_bitset__leaflist_union_3_p_0(mercury__tree_bitset__V_77_77, mercury__tree_bitset__LeafListB_22, &mercury__tree_bitset__LeafList_23);
                        }
#line 2033 "tree_bitset.m"
                        {
#line 2033 "tree_bitset.m"
                          mercury__tree_bitset__Components_24 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 2033 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_24, 0) = ((MR_Box) (mercury__tree_bitset__LeafList_23));
#line 2033 "tree_bitset.m"
                        }
#line 2034 "tree_bitset.m"
                        mercury__tree_bitset__V_50_50 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_74_74, (MR_Integer) 0)));
#line 2034 "tree_bitset.m"
                        mercury__tree_bitset__V_64_64 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_74_74, (MR_Integer) 1)));
#line 2034 "tree_bitset.m"
                        mercury__tree_bitset__V_65_65 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_74_74, (MR_Integer) 2)));
#line 2034 "tree_bitset.m"
                        {
#line 2034 "tree_bitset.m"
                          mercury__tree_bitset__Head_25 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 2034 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_25, 0) = ((MR_Box) (mercury__tree_bitset__V_50_50));
#line 2034 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_25, 1) = ((MR_Box) (mercury__tree_bitset__V_64_64));
#line 2034 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_25, 2) = ((MR_Box) (mercury__tree_bitset__Components_24));
#line 2034 "tree_bitset.m"
                        }
#line 2030 "tree_bitset.m"
                      }
#line 2036 "tree_bitset.m"
                  }
#line 2056 "tree_bitset.m"
                {
#line 2056 "tree_bitset.m"
                  mercury__tree_bitset__interiorlist_union_3_p_0(mercury__tree_bitset__V_73_73, mercury__tree_bitset__TailB_15, &mercury__tree_bitset__Tail_37);
                }
#line 2057 "tree_bitset.m"
                {
#line 2057 "tree_bitset.m"
                  MR_Word base;
#line 2057 "tree_bitset.m"
                  base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2057 "tree_bitset.m"
                  *mercury__tree_bitset__HeadVar__3_3 = base;
#line 2057 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head_25));
#line 2057 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail_37));
#line 2057 "tree_bitset.m"
                }
#line 2027 "tree_bitset.m"
              }
#line 2058 "tree_bitset.m"
            else
#line 2061 "tree_bitset.m"
              {
#line 2058 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__OffsetA_17 < mercury__tree_bitset__OffsetB_18);
#line 2061 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 2059 "tree_bitset.m"
                  {
#line 2059 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__Tail_53;

#line 2059 "tree_bitset.m"
                    {
#line 2059 "tree_bitset.m"
                      mercury__tree_bitset__interiorlist_union_3_p_0(mercury__tree_bitset__V_73_73, mercury__tree_bitset__HeadVar__2_2, &mercury__tree_bitset__Tail_53);
                    }
#line 2060 "tree_bitset.m"
                    {
#line 2060 "tree_bitset.m"
                      MR_Word base;
#line 2060 "tree_bitset.m"
                      base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2060 "tree_bitset.m"
                      *mercury__tree_bitset__HeadVar__3_3 = base;
#line 2060 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__V_74_74));
#line 2060 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail_53));
#line 2060 "tree_bitset.m"
                    }
#line 2059 "tree_bitset.m"
                  }
#line 2061 "tree_bitset.m"
                else
#line 2062 "tree_bitset.m"
                  {
#line 2062 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__Tail_54;

#line 2062 "tree_bitset.m"
                    {
#line 2062 "tree_bitset.m"
                      mercury__tree_bitset__interiorlist_union_3_p_0(mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__TailB_15, &mercury__tree_bitset__Tail_54);
                    }
#line 2063 "tree_bitset.m"
                    {
#line 2063 "tree_bitset.m"
                      MR_Word base;
#line 2063 "tree_bitset.m"
                      base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2063 "tree_bitset.m"
                      *mercury__tree_bitset__HeadVar__3_3 = base;
#line 2063 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__HeadB_14));
#line 2063 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail_54));
#line 2063 "tree_bitset.m"
                    }
#line 2062 "tree_bitset.m"
                  }
#line 2061 "tree_bitset.m"
              }
#line 2023 "tree_bitset.m"
          }
#line 2020 "tree_bitset.m"
      }
#line 2020 "tree_bitset.m"
  }
#line 2017 "tree_bitset.m"
}

#line 1995 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaflist_union_3_p_0(
#line 1995 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1995 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 1995 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3)
#line 1995 "tree_bitset.m"
{
#line 1998 "tree_bitset.m"
  {
#line 1998 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 1998 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1998 "tree_bitset.m"
      if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1998 "tree_bitset.m"
        *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1998 "tree_bitset.m"
      else
#line 1999 "tree_bitset.m"
        *mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__HeadVar__2_2;
#line 1998 "tree_bitset.m"
    else
#line 1998 "tree_bitset.m"
      {
#line 1998 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_31_31 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 1998 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_32_32 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));

#line 1998 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2000 "tree_bitset.m"
          *mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__HeadVar__1_1;
#line 1998 "tree_bitset.m"
        else
#line 2001 "tree_bitset.m"
          {
#line 2001 "tree_bitset.m"
            MR_Word mercury__tree_bitset__HeadB_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 2001 "tree_bitset.m"
            MR_Word mercury__tree_bitset__TailB_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 2001 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__OffsetA_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_32_32, (MR_Integer) 0)));
#line 2001 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__OffsetB_18 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 0)));
#line 2002 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_27_27 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_32_32, (MR_Integer) 1)));
#line 2003 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_28_28 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 1)));

#line 2004 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__OffsetA_17 == mercury__tree_bitset__OffsetB_18);
#line 2009 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 2006 "tree_bitset.m"
              {
#line 2006 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Head_19;
#line 2006 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Tail_20;
#line 2006 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21;
#line 2006 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_32_32, (MR_Integer) 1)));
#line 2006 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 1)));
#line 2006 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_29_29 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_32_32, (MR_Integer) 0)));
#line 2006 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_30_30 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 0)));

#line 2005 "tree_bitset.m"
                mercury__tree_bitset__V_21_21 = (mercury__tree_bitset__V_22_22 | mercury__tree_bitset__V_23_23);
#line 547 "tree_bitset.m"
                {
#line 547 "tree_bitset.m"
                  mercury__tree_bitset__Head_19 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_19, 0) = ((MR_Box) (mercury__tree_bitset__OffsetA_17));
#line 547 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_19, 1) = ((MR_Box) (mercury__tree_bitset__V_21_21));
#line 547 "tree_bitset.m"
                }
#line 2007 "tree_bitset.m"
                {
#line 2007 "tree_bitset.m"
                  mercury__tree_bitset__leaflist_union_3_p_0(mercury__tree_bitset__V_31_31, mercury__tree_bitset__TailB_15, &mercury__tree_bitset__Tail_20);
                }
#line 2008 "tree_bitset.m"
                {
#line 2008 "tree_bitset.m"
                  MR_Word base;
#line 2008 "tree_bitset.m"
                  base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2008 "tree_bitset.m"
                  *mercury__tree_bitset__HeadVar__3_3 = base;
#line 2008 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head_19));
#line 2008 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail_20));
#line 2008 "tree_bitset.m"
                }
#line 2006 "tree_bitset.m"
              }
#line 2009 "tree_bitset.m"
            else
#line 2012 "tree_bitset.m"
              {
#line 2009 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__OffsetA_17 < mercury__tree_bitset__OffsetB_18);
#line 2012 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 2010 "tree_bitset.m"
                  {
#line 2010 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__Tail_24;

#line 2010 "tree_bitset.m"
                    {
#line 2010 "tree_bitset.m"
                      mercury__tree_bitset__leaflist_union_3_p_0(mercury__tree_bitset__V_31_31, mercury__tree_bitset__HeadVar__2_2, &mercury__tree_bitset__Tail_24);
                    }
#line 2011 "tree_bitset.m"
                    {
#line 2011 "tree_bitset.m"
                      MR_Word base;
#line 2011 "tree_bitset.m"
                      base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2011 "tree_bitset.m"
                      *mercury__tree_bitset__HeadVar__3_3 = base;
#line 2011 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__V_32_32));
#line 2011 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail_24));
#line 2011 "tree_bitset.m"
                    }
#line 2010 "tree_bitset.m"
                  }
#line 2012 "tree_bitset.m"
                else
#line 2013 "tree_bitset.m"
                  {
#line 2013 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__Tail_25;

#line 2013 "tree_bitset.m"
                    {
#line 2013 "tree_bitset.m"
                      mercury__tree_bitset__leaflist_union_3_p_0(mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__TailB_15, &mercury__tree_bitset__Tail_25);
                    }
#line 2014 "tree_bitset.m"
                    {
#line 2014 "tree_bitset.m"
                      MR_Word base;
#line 2014 "tree_bitset.m"
                      base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2014 "tree_bitset.m"
                      *mercury__tree_bitset__HeadVar__3_3 = base;
#line 2014 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__HeadB_14));
#line 2014 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail_25));
#line 2014 "tree_bitset.m"
                    }
#line 2013 "tree_bitset.m"
                  }
#line 2012 "tree_bitset.m"
              }
#line 2001 "tree_bitset.m"
          }
#line 1998 "tree_bitset.m"
      }
#line 1998 "tree_bitset.m"
  }
#line 1995 "tree_bitset.m"
}

#line 1979 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__interiornode_union_8_p_0(
#line 1979 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LevelA_9,
#line 1979 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadA_10,
#line 1979 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TailA_11,
#line 1979 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__LevelB_12,
#line 1979 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadB_13,
#line 1979 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TailB_14,
#line 1979 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__Level_15,
#line 1979 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__List_16)
#line 1979 "tree_bitset.m"
{
#line 1984 "tree_bitset.m"
  {
#line 1984 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__LevelA_9 > mercury__tree_bitset__LevelB_12);
#line 1984 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__LevelAB_17;
#line 1984 "tree_bitset.m"
    MR_Word mercury__tree_bitset__RaisedHeadA_18;
#line 1984 "tree_bitset.m"
    MR_Word mercury__tree_bitset__RaisedTailA_19;
#line 1984 "tree_bitset.m"
    MR_Word mercury__tree_bitset__RaisedHeadB_20;
#line 1984 "tree_bitset.m"
    MR_Word mercury__tree_bitset__RaisedTailB_21;
#line 1984 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TopHeadA_22;
#line 1984 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TopTailA_23;
#line 1984 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TopHeadB_24;
#line 1984 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TopTailB_25;
#line 1984 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_26_26;
#line 1984 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_27_27;

#line 78 "int.opt"
    if (mercury__tree_bitset__succeeded)
#line 77 "int.opt"
      mercury__tree_bitset__LevelAB_17 = mercury__tree_bitset__LevelA_9;
#line 78 "int.opt"
    else
#line 79 "int.opt"
      mercury__tree_bitset__LevelAB_17 = mercury__tree_bitset__LevelB_12;
#line 837 "tree_bitset.m"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__LevelA_9 == mercury__tree_bitset__LevelAB_17);
#line 840 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 838 "tree_bitset.m"
      {
#line 838 "tree_bitset.m"
        mercury__tree_bitset__RaisedHeadA_18 = mercury__tree_bitset__HeadA_10;
#line 839 "tree_bitset.m"
        mercury__tree_bitset__RaisedTailA_19 = mercury__tree_bitset__TailA_11;
#line 838 "tree_bitset.m"
      }
#line 840 "tree_bitset.m"
    else
#line 842 "tree_bitset.m"
      {
#line 842 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__ParentInitOffset_37;
#line 842 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__ParentLimitOffset_38;
#line 842 "tree_bitset.m"
        MR_Word mercury__tree_bitset__NodeList_39;
#line 842 "tree_bitset.m"
        MR_Word mercury__tree_bitset__ParentNode_40;
#line 842 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_41_41 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_10, (MR_Integer) 0)));
#line 842 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_42_42;
#line 842 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_43_43;
#line 841 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_45_45 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_10, (MR_Integer) 1)));
#line 841 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_46_46 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_10, (MR_Integer) 2)));

#line 841 "tree_bitset.m"
        {
#line 841 "tree_bitset.m"
          mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_41_41, mercury__tree_bitset__LevelA_9, &mercury__tree_bitset__ParentInitOffset_37, &mercury__tree_bitset__ParentLimitOffset_38);
        }
#line 843 "tree_bitset.m"
        {
#line 843 "tree_bitset.m"
          mercury__tree_bitset__V_42_42 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 843 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_42_42, 0) = ((MR_Box) (mercury__tree_bitset__HeadA_10));
#line 843 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_42_42, 1) = ((MR_Box) (mercury__tree_bitset__TailA_11));
#line 843 "tree_bitset.m"
        }
#line 843 "tree_bitset.m"
        {
#line 843 "tree_bitset.m"
          mercury__tree_bitset__NodeList_39 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 843 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_39, 0) = ((MR_Box) (mercury__tree_bitset__LevelA_9));
#line 843 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_39, 1) = ((MR_Box) (mercury__tree_bitset__V_42_42));
#line 843 "tree_bitset.m"
        }
#line 844 "tree_bitset.m"
        {
#line 844 "tree_bitset.m"
          mercury__tree_bitset__ParentNode_40 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 844 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_40, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffset_37));
#line 844 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_40, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffset_38));
#line 844 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_40, 2) = ((MR_Box) (mercury__tree_bitset__NodeList_39));
#line 844 "tree_bitset.m"
        }
#line 846 "tree_bitset.m"
        mercury__tree_bitset__V_43_43 = (mercury__tree_bitset__LevelA_9 + (MR_Integer) 1);
#line 846 "tree_bitset.m"
        {
#line 846 "tree_bitset.m"
          mercury__tree_bitset__raise_one_interior_to_level_4_p_0(mercury__tree_bitset__LevelAB_17, mercury__tree_bitset__V_43_43, mercury__tree_bitset__ParentNode_40, &mercury__tree_bitset__RaisedHeadA_18);
        }
#line 848 "tree_bitset.m"
        mercury__tree_bitset__RaisedTailA_19 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 842 "tree_bitset.m"
      }
#line 837 "tree_bitset.m"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__LevelB_12 == mercury__tree_bitset__LevelAB_17);
#line 840 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 838 "tree_bitset.m"
      {
#line 838 "tree_bitset.m"
        mercury__tree_bitset__RaisedHeadB_20 = mercury__tree_bitset__HeadB_13;
#line 839 "tree_bitset.m"
        mercury__tree_bitset__RaisedTailB_21 = mercury__tree_bitset__TailB_14;
#line 838 "tree_bitset.m"
      }
#line 840 "tree_bitset.m"
    else
#line 842 "tree_bitset.m"
      {
#line 842 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__ParentInitOffset_53;
#line 842 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__ParentLimitOffset_54;
#line 842 "tree_bitset.m"
        MR_Word mercury__tree_bitset__NodeList_55;
#line 842 "tree_bitset.m"
        MR_Word mercury__tree_bitset__ParentNode_56;
#line 842 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_57_57 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_13, (MR_Integer) 0)));
#line 842 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_58_58;
#line 842 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_59_59;
#line 841 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_61_61 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_13, (MR_Integer) 1)));
#line 841 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_62_62 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_13, (MR_Integer) 2)));

#line 841 "tree_bitset.m"
        {
#line 841 "tree_bitset.m"
          mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_57_57, mercury__tree_bitset__LevelB_12, &mercury__tree_bitset__ParentInitOffset_53, &mercury__tree_bitset__ParentLimitOffset_54);
        }
#line 843 "tree_bitset.m"
        {
#line 843 "tree_bitset.m"
          mercury__tree_bitset__V_58_58 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 843 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_58_58, 0) = ((MR_Box) (mercury__tree_bitset__HeadB_13));
#line 843 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_58_58, 1) = ((MR_Box) (mercury__tree_bitset__TailB_14));
#line 843 "tree_bitset.m"
        }
#line 843 "tree_bitset.m"
        {
#line 843 "tree_bitset.m"
          mercury__tree_bitset__NodeList_55 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 843 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_55, 0) = ((MR_Box) (mercury__tree_bitset__LevelB_12));
#line 843 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_55, 1) = ((MR_Box) (mercury__tree_bitset__V_58_58));
#line 843 "tree_bitset.m"
        }
#line 844 "tree_bitset.m"
        {
#line 844 "tree_bitset.m"
          mercury__tree_bitset__ParentNode_56 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 844 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_56, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffset_53));
#line 844 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_56, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffset_54));
#line 844 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_56, 2) = ((MR_Box) (mercury__tree_bitset__NodeList_55));
#line 844 "tree_bitset.m"
        }
#line 846 "tree_bitset.m"
        mercury__tree_bitset__V_59_59 = (mercury__tree_bitset__LevelB_12 + (MR_Integer) 1);
#line 846 "tree_bitset.m"
        {
#line 846 "tree_bitset.m"
          mercury__tree_bitset__raise_one_interior_to_level_4_p_0(mercury__tree_bitset__LevelAB_17, mercury__tree_bitset__V_59_59, mercury__tree_bitset__ParentNode_56, &mercury__tree_bitset__RaisedHeadB_20);
        }
#line 848 "tree_bitset.m"
        mercury__tree_bitset__RaisedTailB_21 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 842 "tree_bitset.m"
      }
#line 1990 "tree_bitset.m"
    {
#line 1990 "tree_bitset.m"
      mercury__tree_bitset__raise_to_common_level_10_p_0(mercury__tree_bitset__LevelAB_17, mercury__tree_bitset__RaisedHeadA_18, mercury__tree_bitset__RaisedTailA_19, mercury__tree_bitset__RaisedHeadB_20, mercury__tree_bitset__RaisedTailB_21, &mercury__tree_bitset__TopHeadA_22, &mercury__tree_bitset__TopTailA_23, &mercury__tree_bitset__TopHeadB_24, &mercury__tree_bitset__TopTailB_25, mercury__tree_bitset__Level_15);
    }
#line 1993 "tree_bitset.m"
    {
#line 1993 "tree_bitset.m"
      mercury__tree_bitset__V_26_26 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1993 "tree_bitset.m"
      MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_26_26, 0) = ((MR_Box) (mercury__tree_bitset__TopHeadA_22));
#line 1993 "tree_bitset.m"
      MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_26_26, 1) = ((MR_Box) (mercury__tree_bitset__TopTailA_23));
#line 1993 "tree_bitset.m"
    }
#line 1993 "tree_bitset.m"
    {
#line 1993 "tree_bitset.m"
      mercury__tree_bitset__V_27_27 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1993 "tree_bitset.m"
      MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_27_27, 0) = ((MR_Box) (mercury__tree_bitset__TopHeadB_24));
#line 1993 "tree_bitset.m"
      MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_27_27, 1) = ((MR_Box) (mercury__tree_bitset__TopTailB_25));
#line 1993 "tree_bitset.m"
    }
#line 1993 "tree_bitset.m"
    {
#line 1993 "tree_bitset.m"
      mercury__tree_bitset__interiorlist_union_3_p_0(mercury__tree_bitset__V_26_26, mercury__tree_bitset__V_27_27, mercury__tree_bitset__List_16);
#line 1993 "tree_bitset.m"
      return;
    }
#line 1984 "tree_bitset.m"
  }
#line 1979 "tree_bitset.m"
}

#line 1873 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leafnode_member_4_p_0(
#line 1873 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__Index_5,
#line 1873 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_6,
#line 1873 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_7,
#line 1873 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_8,
#line 1873 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 1873 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 1873 "tree_bitset.m"
{
#line 1878 "tree_bitset.m"
  while (MR_TRUE)
#line 1878 "tree_bitset.m"
    {
#line 1878 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 1878 "tree_bitset.m"
      {
#line 1878 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_8 == (MR_Integer) 0);

#line 1878 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 1877 "tree_bitset.m"
          {
#line 1877 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_FALSE;
#line 1877 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1877 "tree_bitset.m"
              {
#line 1877 "tree_bitset.m"
                mercury__tree_bitset__cont(mercury__tree_bitset__cont_env_ptr);
#line 1877 "tree_bitset.m"
                return;
              }
#line 1877 "tree_bitset.m"
          }
#line 1878 "tree_bitset.m"
        else
#line 1880 "tree_bitset.m"
          {
#line 1878 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_7 == (MR_Integer) 1);
#line 1880 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1879 "tree_bitset.m"
              {
#line 1879 "tree_bitset.m"
                *mercury__tree_bitset__Index_5 = mercury__tree_bitset__Offset_6;
#line 1879 "tree_bitset.m"
                {
#line 1879 "tree_bitset.m"
                  mercury__tree_bitset__cont(mercury__tree_bitset__cont_env_ptr);
#line 1879 "tree_bitset.m"
                  return;
                }
#line 1879 "tree_bitset.m"
              }
#line 1880 "tree_bitset.m"
            else
#line 1881 "tree_bitset.m"
              {
#line 1881 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HalfSize_9 = (mercury__tree_bitset__Size_7 >> (MR_Integer) 1);
#line 1881 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Mask_10;
#line 1881 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LowBits_11;
#line 1881 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_12;
#line 1881 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_14_14;
#line 1881 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_17_17 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_9);

#line 3645 "tree_bitset.m"
                mercury__tree_bitset__Mask_10 = ~(mercury__tree_bitset__V_17_17);
#line 1885 "tree_bitset.m"
                mercury__tree_bitset__LowBits_11 = (mercury__tree_bitset__Mask_10 & mercury__tree_bitset__Bits_8);
#line 1888 "tree_bitset.m"
                mercury__tree_bitset__V_14_14 = (mercury__tree_bitset__Bits_8 >> mercury__tree_bitset__HalfSize_9);
#line 1888 "tree_bitset.m"
                mercury__tree_bitset__HighBits_12 = (mercury__tree_bitset__Mask_10 & mercury__tree_bitset__V_14_14);
#line 1890 "tree_bitset.m"
                {
#line 1890 "tree_bitset.m"
                  mercury__tree_bitset__leafnode_member_4_p_0(mercury__tree_bitset__Index_5, mercury__tree_bitset__Offset_6, mercury__tree_bitset__HalfSize_9, mercury__tree_bitset__LowBits_11, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
                }
#line 1891 "tree_bitset.m"
                {
#line 1891 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__V_15_15 = (mercury__tree_bitset__Offset_6 + mercury__tree_bitset__HalfSize_9);

#line 1891 "tree_bitset.m"
                  /* direct tailcall eliminated */
#line 1891 "tree_bitset.m"
                  {
#line 1891 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__Offset__tmp_copy_6 = mercury__tree_bitset__V_15_15;
#line 1891 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__Size__tmp_copy_7 = mercury__tree_bitset__HalfSize_9;
#line 1891 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__Bits__tmp_copy_8 = mercury__tree_bitset__HighBits_12;

#line 1891 "tree_bitset.m"
                    mercury__tree_bitset__Bits_8 = mercury__tree_bitset__Bits__tmp_copy_8;
#line 1891 "tree_bitset.m"
                    mercury__tree_bitset__Size_7 = mercury__tree_bitset__Size__tmp_copy_7;
#line 1891 "tree_bitset.m"
                    mercury__tree_bitset__Offset_6 = mercury__tree_bitset__Offset__tmp_copy_6;
#line 1891 "tree_bitset.m"
                  }
#line 1891 "tree_bitset.m"
                  continue;
#line 1891 "tree_bitset.m"
                }
#line 1881 "tree_bitset.m"
              }
#line 1880 "tree_bitset.m"
          }
#line 1878 "tree_bitset.m"
      }
#line 1878 "tree_bitset.m"
      break;
#line 1878 "tree_bitset.m"
    }
#line 1873 "tree_bitset.m"
}

#line 1863 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaflist_member_2_p_0(
#line 1863 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__Index_3,
#line 1863 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 1863 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 1863 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 1863 "tree_bitset.m"
{
#line 1865 "tree_bitset.m"
  while (MR_TRUE)
#line 1865 "tree_bitset.m"
    {
#line 1865 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 1865 "tree_bitset.m"
      {
#line 1865 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = ((MR_tag((MR_Word) mercury__tree_bitset__HeadVar__2_2)) == (MR_mktag((MR_Integer) 1)));
#line 1865 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Elem_4;
#line 1865 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Elems_5;

#line 1865 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 1865 "tree_bitset.m"
          {
#line 1865 "tree_bitset.m"
            mercury__tree_bitset__Elem_4 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 1865 "tree_bitset.m"
            mercury__tree_bitset__Elems_5 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 1867 "tree_bitset.m"
            {
#line 1867 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_6_6 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Elem_4, (MR_Integer) 0)));
#line 1867 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_7_7;
#line 1867 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_8_8;
#line 1867 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_9_9 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Elem_4, (MR_Integer) 1)));
#line 1867 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_10_10;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaflist_member_2_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 57911 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_7_7  = Bits;
#line 171 "int.opt"
}
#line 1867 "tree_bitset.m"
              mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Elem_4, (MR_Integer) 0)));
#line 1867 "tree_bitset.m"
              mercury__tree_bitset__V_8_8 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Elem_4, (MR_Integer) 1)));
#line 1867 "tree_bitset.m"
              {
#line 1867 "tree_bitset.m"
                mercury__tree_bitset__leafnode_member_4_p_0(mercury__tree_bitset__Index_3, mercury__tree_bitset__V_6_6, mercury__tree_bitset__V_7_7, mercury__tree_bitset__V_8_8, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
              }
#line 1867 "tree_bitset.m"
            }
#line 1870 "tree_bitset.m"
            {
#line 1870 "tree_bitset.m"
              /* direct tailcall eliminated */
#line 1870 "tree_bitset.m"
              {
#line 1870 "tree_bitset.m"
                MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__Elems_5;

#line 1870 "tree_bitset.m"
                mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 1870 "tree_bitset.m"
              }
#line 1870 "tree_bitset.m"
              continue;
#line 1870 "tree_bitset.m"
            }
#line 1865 "tree_bitset.m"
          }
#line 1865 "tree_bitset.m"
      }
#line 1865 "tree_bitset.m"
      break;
#line 1865 "tree_bitset.m"
    }
#line 1863 "tree_bitset.m"
}

#line 1847 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__interiorlist_member_2_p_0(
#line 1847 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__Index_3,
#line 1847 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 1847 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 1847 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 1847 "tree_bitset.m"
{
#line 1849 "tree_bitset.m"
  while (MR_TRUE)
#line 1849 "tree_bitset.m"
    {
#line 1849 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 1849 "tree_bitset.m"
      {
#line 1849 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = ((MR_tag((MR_Word) mercury__tree_bitset__HeadVar__2_2)) == (MR_mktag((MR_Integer) 1)));
#line 1849 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Elem_4;
#line 1849 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Elems_5;

#line 1849 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 1849 "tree_bitset.m"
          {
#line 1849 "tree_bitset.m"
            mercury__tree_bitset__Elem_4 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 1849 "tree_bitset.m"
            mercury__tree_bitset__Elems_5 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 1851 "tree_bitset.m"
            {
#line 1851 "tree_bitset.m"
              MR_Word mercury__tree_bitset__Components_6 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Elem_4, (MR_Integer) 2)));
#line 1851 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Elem_4, (MR_Integer) 0)));
#line 1851 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__V_11_11 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Elem_4, (MR_Integer) 1)));

#line 1855 "tree_bitset.m"
              if (((MR_tag((MR_Word) mercury__tree_bitset__Components_6)) == (MR_mktag((MR_Integer) 1))))
#line 1856 "tree_bitset.m"
                {
#line 1856 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__InteriorNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_6, (MR_Integer) 1)));
#line 1856 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__V_8_8 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_6, (MR_Integer) 0)));

#line 1857 "tree_bitset.m"
                  {
#line 1857 "tree_bitset.m"
                    mercury__tree_bitset__interiorlist_member_2_p_0(mercury__tree_bitset__Index_3, mercury__tree_bitset__InteriorNodes_9, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
                  }
#line 1856 "tree_bitset.m"
                }
#line 1855 "tree_bitset.m"
              else
#line 1853 "tree_bitset.m"
                {
#line 1853 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__LeafNodes_7 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_6, (MR_Integer) 0)));

#line 1854 "tree_bitset.m"
                  {
#line 1854 "tree_bitset.m"
                    mercury__tree_bitset__leaflist_member_2_p_0(mercury__tree_bitset__Index_3, mercury__tree_bitset__LeafNodes_7, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
                  }
#line 1853 "tree_bitset.m"
                }
#line 1851 "tree_bitset.m"
            }
#line 1860 "tree_bitset.m"
            {
#line 1860 "tree_bitset.m"
              /* direct tailcall eliminated */
#line 1860 "tree_bitset.m"
              {
#line 1860 "tree_bitset.m"
                MR_Word mercury__tree_bitset__HeadVar__2__tmp_copy_2 = mercury__tree_bitset__Elems_5;

#line 1860 "tree_bitset.m"
                mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__HeadVar__2__tmp_copy_2;
#line 1860 "tree_bitset.m"
              }
#line 1860 "tree_bitset.m"
              continue;
#line 1860 "tree_bitset.m"
            }
#line 1849 "tree_bitset.m"
          }
#line 1849 "tree_bitset.m"
      }
#line 1849 "tree_bitset.m"
      break;
#line 1849 "tree_bitset.m"
    }
#line 1847 "tree_bitset.m"
}

#line 1813 "tree_bitset.m"
static MR_bool MR_CALL 
mercury__tree_bitset__interiorlist_contains_2_p_0(
#line 1813 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1813 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_5)
#line 1813 "tree_bitset.m"
{
#line 1815 "tree_bitset.m"
  while (MR_TRUE)
#line 1815 "tree_bitset.m"
    {
#line 1815 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 1815 "tree_bitset.m"
      {
#line 1815 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = ((MR_tag((MR_Word) mercury__tree_bitset__HeadVar__1_1)) == (MR_mktag((MR_Integer) 1)));
#line 1815 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Head_3;
#line 1815 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Tail_4;
#line 1815 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10;
#line 1816 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_12_12;
#line 1816 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_13_13;
#line 1826 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_15_15;
#line 1817 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_11_11;
#line 1817 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_14_14;

#line 1815 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 1815 "tree_bitset.m"
          {
#line 1815 "tree_bitset.m"
            mercury__tree_bitset__Head_3 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));
#line 1815 "tree_bitset.m"
            mercury__tree_bitset__Tail_4 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 1816 "tree_bitset.m"
            mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_3, (MR_Integer) 0)));
#line 1816 "tree_bitset.m"
            mercury__tree_bitset__V_12_12 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_3, (MR_Integer) 1)));
#line 1816 "tree_bitset.m"
            mercury__tree_bitset__V_13_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_3, (MR_Integer) 2)));
#line 1816 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Index_5 >= mercury__tree_bitset__V_10_10);
#line 1815 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1815 "tree_bitset.m"
              {
#line 1817 "tree_bitset.m"
                mercury__tree_bitset__V_14_14 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_3, (MR_Integer) 0)));
#line 1817 "tree_bitset.m"
                mercury__tree_bitset__V_11_11 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_3, (MR_Integer) 1)));
#line 1817 "tree_bitset.m"
                mercury__tree_bitset__V_15_15 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_3, (MR_Integer) 2)));
#line 1817 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__Index_5 < mercury__tree_bitset__V_11_11);
#line 1826 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 1822 "tree_bitset.m"
                  if (((MR_tag((MR_Word) mercury__tree_bitset__V_15_15)) == (MR_mktag((MR_Integer) 1))))
#line 1823 "tree_bitset.m"
                    {
#line 1823 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__InteriorNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_15_15, (MR_Integer) 1)));
#line 1823 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__V_8_8 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_15_15, (MR_Integer) 0)));

#line 1824 "tree_bitset.m"
                      /* direct tailcall eliminated */
#line 1824 "tree_bitset.m"
                      {
#line 1824 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__InteriorNodes_9;

#line 1824 "tree_bitset.m"
                        mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 1824 "tree_bitset.m"
                      }
#line 1824 "tree_bitset.m"
                      continue;
#line 1823 "tree_bitset.m"
                    }
#line 1822 "tree_bitset.m"
                  else
#line 1820 "tree_bitset.m"
                    {
#line 1820 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__LeafNodes_7 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_15_15, (MR_Integer) 0)));

#line 1821 "tree_bitset.m"
                      {
#line 1821 "tree_bitset.m"
                        return mercury__tree_bitset__succeeded = mercury__tree_bitset__leaflist_contains_2_p_0(mercury__tree_bitset__LeafNodes_7, mercury__tree_bitset__Index_5);
                      }
#line 1820 "tree_bitset.m"
                    }
#line 1826 "tree_bitset.m"
                else
#line 1827 "tree_bitset.m"
                  {
#line 1827 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 1827 "tree_bitset.m"
                    {
#line 1827 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__Tail_4;

#line 1827 "tree_bitset.m"
                      mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 1827 "tree_bitset.m"
                    }
#line 1827 "tree_bitset.m"
                    continue;
#line 1827 "tree_bitset.m"
                  }
#line 1815 "tree_bitset.m"
              }
#line 1815 "tree_bitset.m"
          }
#line 1815 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 1815 "tree_bitset.m"
      }
#line 1815 "tree_bitset.m"
      break;
#line 1815 "tree_bitset.m"
    }
#line 1813 "tree_bitset.m"
}

#line 1802 "tree_bitset.m"
static MR_bool MR_CALL 
mercury__tree_bitset__leaflist_contains_2_p_0(
#line 1802 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1802 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_5)
#line 1802 "tree_bitset.m"
{
#line 1804 "tree_bitset.m"
  while (MR_TRUE)
#line 1804 "tree_bitset.m"
    {
#line 1804 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 1804 "tree_bitset.m"
      {
#line 1804 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = ((MR_tag((MR_Word) mercury__tree_bitset__HeadVar__1_1)) == (MR_mktag((MR_Integer) 1)));
#line 1804 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Head_3;
#line 1804 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Tail_4;
#line 1804 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Offset_6;
#line 1805 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_12_12;
#line 1807 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_7_7;
#line 1807 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_8_8;

#line 1804 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 1804 "tree_bitset.m"
          {
#line 1804 "tree_bitset.m"
            mercury__tree_bitset__Head_3 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));
#line 1804 "tree_bitset.m"
            mercury__tree_bitset__Tail_4 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 1805 "tree_bitset.m"
            mercury__tree_bitset__Offset_6 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_3, (MR_Integer) 0)));
#line 1805 "tree_bitset.m"
            mercury__tree_bitset__V_12_12 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_3, (MR_Integer) 1)));
#line 1806 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Index_5 >= mercury__tree_bitset__Offset_6);
#line 1804 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1804 "tree_bitset.m"
              {
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaflist_contains_2_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 58261 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_8_8  = Bits;
#line 171 "int.opt"
}
#line 1807 "tree_bitset.m"
                mercury__tree_bitset__V_7_7 = (mercury__tree_bitset__Offset_6 + mercury__tree_bitset__V_8_8);
#line 1807 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__Index_5 < mercury__tree_bitset__V_7_7);
#line 1809 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 1808 "tree_bitset.m"
                  {
#line 1808 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_9_9;
#line 1808 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_3, (MR_Integer) 1)));
#line 1808 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_11_11 = (mercury__tree_bitset__Index_5 - mercury__tree_bitset__Offset_6);
#line 1808 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_17_17 = ((MR_Integer) 1 << mercury__tree_bitset__V_11_11);
#line 1808 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_13_13 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_3, (MR_Integer) 0)));

#line 3627 "tree_bitset.m"
                    mercury__tree_bitset__V_9_9 = (mercury__tree_bitset__V_10_10 & mercury__tree_bitset__V_17_17);
#line 1808 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_9_9 == (MR_Integer) 0);
#line 1808 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = !(mercury__tree_bitset__succeeded);
#line 1808 "tree_bitset.m"
                  }
#line 1809 "tree_bitset.m"
                else
#line 1810 "tree_bitset.m"
                  {
#line 1810 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 1810 "tree_bitset.m"
                    {
#line 1810 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__Tail_4;

#line 1810 "tree_bitset.m"
                      mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 1810 "tree_bitset.m"
                    }
#line 1810 "tree_bitset.m"
                    continue;
#line 1810 "tree_bitset.m"
                  }
#line 1804 "tree_bitset.m"
              }
#line 1804 "tree_bitset.m"
          }
#line 1804 "tree_bitset.m"
        return mercury__tree_bitset__succeeded;
#line 1804 "tree_bitset.m"
      }
#line 1804 "tree_bitset.m"
      break;
#line 1804 "tree_bitset.m"
    }
#line 1802 "tree_bitset.m"
}

#line 1754 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__group_interior_nodes_in_range_7_p_0(
#line 1754 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Level_1,
#line 1754 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__ParentInitOffset_2,
#line 1754 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__ParentLimitOffset_3,
#line 1754 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_RevAcc_0_4,
#line 1754 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__5_5,
#line 1754 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__ParentNode_6,
#line 1754 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__7_7)
#line 1754 "tree_bitset.m"
{
#line 1759 "tree_bitset.m"
  while (MR_TRUE)
#line 1759 "tree_bitset.m"
    {
#line 1759 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 1759 "tree_bitset.m"
      {
#line 1759 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 1759 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__5_5 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1759 "tree_bitset.m"
          {
#line 1759 "tree_bitset.m"
            MR_Word mercury__tree_bitset__TypeCtorInfo_39_39;
#line 1759 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_14_14;
#line 1759 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_15_15;

#line 1759 "tree_bitset.m"
            *mercury__tree_bitset__HeadVar__7_7 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 58372 "tree_bitset.c"
            mercury__tree_bitset__TypeCtorInfo_39_39 = (MR_Word) &mercury__tree_bitset__tree_bitset__type_ctor_info_interior_node_0;
#line 118 "list.opt"
            {
#line 118 "list.opt"
              mercury__list__reverse_2_p_0(mercury__tree_bitset__TypeCtorInfo_39_39, mercury__tree_bitset__STATE_VARIABLE_RevAcc_0_4, &mercury__tree_bitset__V_15_15);
            }
#line 1760 "tree_bitset.m"
            {
#line 1760 "tree_bitset.m"
              mercury__tree_bitset__V_14_14 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1760 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_14_14, 0) = ((MR_Box) (mercury__tree_bitset__Level_1));
#line 1760 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_14_14, 1) = ((MR_Box) (mercury__tree_bitset__V_15_15));
#line 1760 "tree_bitset.m"
            }
#line 1760 "tree_bitset.m"
            {
#line 1760 "tree_bitset.m"
              MR_Word base;
#line 1760 "tree_bitset.m"
              base = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 1760 "tree_bitset.m"
              *mercury__tree_bitset__ParentNode_6 = base;
#line 1760 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), base, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffset_2));
#line 1760 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), base, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffset_3));
#line 1760 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), base, 2) = ((MR_Box) (mercury__tree_bitset__V_14_14));
#line 1760 "tree_bitset.m"
            }
#line 1759 "tree_bitset.m"
          }
#line 1759 "tree_bitset.m"
        else
#line 1763 "tree_bitset.m"
          {
#line 1763 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Head_20 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__5_5, (MR_Integer) 0)));
#line 1763 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Tail_21 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__5_5, (MR_Integer) 1)));
#line 1763 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__HeadParentInitOffset_24;
#line 1763 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__HeadParentLimitOffset_25;
#line 1763 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_27_27 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_20, (MR_Integer) 0)));
#line 1764 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_37_37 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_20, (MR_Integer) 1)));
#line 1764 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_38_38 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_20, (MR_Integer) 2)));

#line 1764 "tree_bitset.m"
            {
#line 1764 "tree_bitset.m"
              mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_27_27, mercury__tree_bitset__Level_1, &mercury__tree_bitset__HeadParentInitOffset_24, &mercury__tree_bitset__HeadParentLimitOffset_25);
            }
#line 1766 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__ParentInitOffset_2 == mercury__tree_bitset__HeadParentInitOffset_24);
#line 1775 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1770 "tree_bitset.m"
              {
#line 1770 "tree_bitset.m"
                MR_Word mercury__tree_bitset__STATE_VARIABLE_RevAcc_32_32;

#line 1768 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__ParentLimitOffset_3 == mercury__tree_bitset__HeadParentLimitOffset_25);
#line 32 "require.opt"
                if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
                  {
#line 31 "require.opt"
                  }
#line 32 "require.opt"
                else
#line 33 "require.opt"
                  {
#line 33 "require.opt"
                    mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.group_interior_nodes_in_range\'/7", (MR_String) "limit mismatch");
#line 33 "require.opt"
                    return;
                  }
#line 1771 "tree_bitset.m"
                {
#line 1771 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_RevAcc_32_32 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1771 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__STATE_VARIABLE_RevAcc_32_32, 0) = ((MR_Box) (mercury__tree_bitset__Head_20));
#line 1771 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__STATE_VARIABLE_RevAcc_32_32, 1) = ((MR_Box) (mercury__tree_bitset__STATE_VARIABLE_RevAcc_0_4));
#line 1771 "tree_bitset.m"
                }
#line 1772 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 1772 "tree_bitset.m"
                {
#line 1772 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__STATE_VARIABLE_RevAcc_0__tmp_copy_4 = mercury__tree_bitset__STATE_VARIABLE_RevAcc_32_32;
#line 1772 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__5__tmp_copy_5 = mercury__tree_bitset__Tail_21;

#line 1772 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__5_5 = mercury__tree_bitset__HeadVar__5__tmp_copy_5;
#line 1772 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_RevAcc_0_4 = mercury__tree_bitset__STATE_VARIABLE_RevAcc_0__tmp_copy_4;
#line 1772 "tree_bitset.m"
                }
#line 1772 "tree_bitset.m"
                continue;
#line 1770 "tree_bitset.m"
              }
#line 1775 "tree_bitset.m"
            else
#line 1777 "tree_bitset.m"
              {
#line 1777 "tree_bitset.m"
                MR_Word mercury__tree_bitset__TypeCtorInfo_41_41 = (MR_Word) &mercury__tree_bitset__tree_bitset__type_ctor_info_interior_node_0;
#line 1777 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_33_33;
#line 1777 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_34_34;

#line 118 "list.opt"
                {
#line 118 "list.opt"
                  mercury__list__reverse_2_p_0(mercury__tree_bitset__TypeCtorInfo_41_41, mercury__tree_bitset__STATE_VARIABLE_RevAcc_0_4, &mercury__tree_bitset__V_34_34);
                }
#line 1776 "tree_bitset.m"
                {
#line 1776 "tree_bitset.m"
                  mercury__tree_bitset__V_33_33 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1776 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_33_33, 0) = ((MR_Box) (mercury__tree_bitset__Level_1));
#line 1776 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_33_33, 1) = ((MR_Box) (mercury__tree_bitset__V_34_34));
#line 1776 "tree_bitset.m"
                }
#line 1776 "tree_bitset.m"
                {
#line 1776 "tree_bitset.m"
                  MR_Word base;
#line 1776 "tree_bitset.m"
                  base = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 1776 "tree_bitset.m"
                  *mercury__tree_bitset__ParentNode_6 = base;
#line 1776 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), base, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffset_2));
#line 1776 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), base, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffset_3));
#line 1776 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), base, 2) = ((MR_Box) (mercury__tree_bitset__V_33_33));
#line 1776 "tree_bitset.m"
                }
#line 1778 "tree_bitset.m"
                *mercury__tree_bitset__HeadVar__7_7 = mercury__tree_bitset__HeadVar__5_5;
#line 1777 "tree_bitset.m"
              }
#line 1763 "tree_bitset.m"
          }
#line 1759 "tree_bitset.m"
      }
#line 1759 "tree_bitset.m"
      break;
#line 1759 "tree_bitset.m"
    }
#line 1754 "tree_bitset.m"
}

#line 1737 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__group_interior_nodes_4_p_0(
#line 1737 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Level_5,
#line 1737 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Head_6,
#line 1737 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Tail_7,
#line 1737 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__ParentList_8)
#line 1737 "tree_bitset.m"
{
#line 1740 "tree_bitset.m"
  {
#line 1740 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1740 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__ParentInitOffset_9;
#line 1740 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__ParentLimitOffset_10;
#line 1740 "tree_bitset.m"
    MR_Word mercury__tree_bitset__ParentHead_11;
#line 1740 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Remaining_12;
#line 1740 "tree_bitset.m"
    MR_Word mercury__tree_bitset__ParentTail_13;
#line 1740 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_6, (MR_Integer) 0)));
#line 1740 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_17_17;
#line 1740 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_18_18;
#line 1741 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_19_19 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_6, (MR_Integer) 1)));
#line 1741 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_20_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_6, (MR_Integer) 2)));

#line 1741 "tree_bitset.m"
    {
#line 1741 "tree_bitset.m"
      mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_16_16, mercury__tree_bitset__Level_5, &mercury__tree_bitset__ParentInitOffset_9, &mercury__tree_bitset__ParentLimitOffset_10);
    }
#line 1744 "tree_bitset.m"
    mercury__tree_bitset__V_18_18 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1743 "tree_bitset.m"
    {
#line 1743 "tree_bitset.m"
      mercury__tree_bitset__V_17_17 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1743 "tree_bitset.m"
      MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_17_17, 0) = ((MR_Box) (mercury__tree_bitset__Head_6));
#line 1743 "tree_bitset.m"
      MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_17_17, 1) = ((MR_Box) (mercury__tree_bitset__V_18_18));
#line 1743 "tree_bitset.m"
    }
#line 1743 "tree_bitset.m"
    {
#line 1743 "tree_bitset.m"
      mercury__tree_bitset__group_interior_nodes_in_range_7_p_0(mercury__tree_bitset__Level_5, mercury__tree_bitset__ParentInitOffset_9, mercury__tree_bitset__ParentLimitOffset_10, mercury__tree_bitset__V_17_17, mercury__tree_bitset__Tail_7, &mercury__tree_bitset__ParentHead_11, &mercury__tree_bitset__Remaining_12);
    }
#line 1748 "tree_bitset.m"
    if ((mercury__tree_bitset__Remaining_12 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1747 "tree_bitset.m"
      mercury__tree_bitset__ParentTail_13 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1748 "tree_bitset.m"
    else
#line 1749 "tree_bitset.m"
      {
#line 1749 "tree_bitset.m"
        MR_Word mercury__tree_bitset__RemainingHead_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Remaining_12, (MR_Integer) 0)));
#line 1749 "tree_bitset.m"
        MR_Word mercury__tree_bitset__RemainingTail_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Remaining_12, (MR_Integer) 1)));

#line 1750 "tree_bitset.m"
        {
#line 1750 "tree_bitset.m"
          mercury__tree_bitset__group_interior_nodes_4_p_0(mercury__tree_bitset__Level_5, mercury__tree_bitset__RemainingHead_14, mercury__tree_bitset__RemainingTail_15, &mercury__tree_bitset__ParentTail_13);
        }
#line 1749 "tree_bitset.m"
      }
#line 1752 "tree_bitset.m"
    {
#line 1752 "tree_bitset.m"
      MR_Word base;
#line 1752 "tree_bitset.m"
      base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1752 "tree_bitset.m"
      *mercury__tree_bitset__ParentList_8 = base;
#line 1752 "tree_bitset.m"
      MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__ParentHead_11));
#line 1752 "tree_bitset.m"
      MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__ParentTail_13));
#line 1752 "tree_bitset.m"
    }
#line 1740 "tree_bitset.m"
  }
#line 1737 "tree_bitset.m"
}

#line 1717 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__recursively_group_interior_nodes_3_p_0(
#line 1717 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__CurLevel_4,
#line 1717 "tree_bitset.m"
  MR_Word mercury__tree_bitset__CurNodes_5,
#line 1717 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__List_6)
#line 1717 "tree_bitset.m"
{
#line 1722 "tree_bitset.m"
  while (MR_TRUE)
#line 1722 "tree_bitset.m"
    {
#line 1722 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 1722 "tree_bitset.m"
      {
#line 1722 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 1722 "tree_bitset.m"
        if ((mercury__tree_bitset__CurNodes_5 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1722 "tree_bitset.m"
          {
#line 1723 "tree_bitset.m"
            {
#line 1723 "tree_bitset.m"
              mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.recursively_group_interior_nodes\'/3", (MR_String) "empty CurNodes");
#line 1723 "tree_bitset.m"
              return;
            }
#line 1722 "tree_bitset.m"
          }
#line 1722 "tree_bitset.m"
        else
#line 1725 "tree_bitset.m"
          {
#line 1725 "tree_bitset.m"
            MR_Word mercury__tree_bitset__CurNodesHead_7 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__CurNodes_5, (MR_Integer) 0)));
#line 1725 "tree_bitset.m"
            MR_Word mercury__tree_bitset__CurNodesTail_8 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__CurNodes_5, (MR_Integer) 1)));

#line 1729 "tree_bitset.m"
            if ((mercury__tree_bitset__CurNodesTail_8 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1728 "tree_bitset.m"
              {
#line 1728 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__CurNodesHead_7, (MR_Integer) 0)));
#line 1728 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_18_18 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__CurNodesHead_7, (MR_Integer) 1)));

#line 1728 "tree_bitset.m"
                *mercury__tree_bitset__List_6 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__CurNodesHead_7, (MR_Integer) 2)));
#line 1728 "tree_bitset.m"
              }
#line 1729 "tree_bitset.m"
            else
#line 1730 "tree_bitset.m"
              {
#line 1730 "tree_bitset.m"
                MR_Word mercury__tree_bitset__ParentNodes_11;
#line 1730 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_12_12;

#line 1731 "tree_bitset.m"
                {
#line 1731 "tree_bitset.m"
                  mercury__tree_bitset__group_interior_nodes_4_p_0(mercury__tree_bitset__CurLevel_4, mercury__tree_bitset__CurNodesHead_7, mercury__tree_bitset__CurNodesTail_8, &mercury__tree_bitset__ParentNodes_11);
                }
#line 1733 "tree_bitset.m"
                mercury__tree_bitset__V_12_12 = (mercury__tree_bitset__CurLevel_4 + (MR_Integer) 1);
#line 1733 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 1733 "tree_bitset.m"
                {
#line 1733 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__CurLevel__tmp_copy_4 = mercury__tree_bitset__V_12_12;
#line 1733 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__CurNodes__tmp_copy_5 = mercury__tree_bitset__ParentNodes_11;

#line 1733 "tree_bitset.m"
                  mercury__tree_bitset__CurNodes_5 = mercury__tree_bitset__CurNodes__tmp_copy_5;
#line 1733 "tree_bitset.m"
                  mercury__tree_bitset__CurLevel_4 = mercury__tree_bitset__CurLevel__tmp_copy_4;
#line 1733 "tree_bitset.m"
                }
#line 1733 "tree_bitset.m"
                continue;
#line 1730 "tree_bitset.m"
              }
#line 1725 "tree_bitset.m"
          }
#line 1722 "tree_bitset.m"
      }
#line 1722 "tree_bitset.m"
      break;
#line 1722 "tree_bitset.m"
    }
#line 1717 "tree_bitset.m"
}

#line 1691 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__group_leaf_nodes_in_range_6_p_0(
#line 1691 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__ParentInitOffset_1,
#line 1691 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__ParentLimitOffset_2,
#line 1691 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_RevAcc_0_3,
#line 1691 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__4_4,
#line 1691 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__ParentNode_5,
#line 1691 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__6_6)
#line 1691 "tree_bitset.m"
{
#line 1696 "tree_bitset.m"
  while (MR_TRUE)
#line 1696 "tree_bitset.m"
    {
#line 1696 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 1696 "tree_bitset.m"
      {
#line 1696 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 1696 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__4_4 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1696 "tree_bitset.m"
          {
#line 1696 "tree_bitset.m"
            MR_Word mercury__tree_bitset__TypeCtorInfo_36_36;
#line 1696 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_12_12;
#line 1696 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_13_13;

#line 1696 "tree_bitset.m"
            *mercury__tree_bitset__HeadVar__6_6 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 58786 "tree_bitset.c"
            mercury__tree_bitset__TypeCtorInfo_36_36 = (MR_Word) &mercury__tree_bitset__tree_bitset__type_ctor_info_leaf_node_0;
#line 118 "list.opt"
            {
#line 118 "list.opt"
              mercury__list__reverse_2_p_0(mercury__tree_bitset__TypeCtorInfo_36_36, mercury__tree_bitset__STATE_VARIABLE_RevAcc_0_3, &mercury__tree_bitset__V_13_13);
            }
#line 1697 "tree_bitset.m"
            {
#line 1697 "tree_bitset.m"
              mercury__tree_bitset__V_12_12 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 1697 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_12_12, 0) = ((MR_Box) (mercury__tree_bitset__V_13_13));
#line 1697 "tree_bitset.m"
            }
#line 1697 "tree_bitset.m"
            {
#line 1697 "tree_bitset.m"
              MR_Word base;
#line 1697 "tree_bitset.m"
              base = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 1697 "tree_bitset.m"
              *mercury__tree_bitset__ParentNode_5 = base;
#line 1697 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), base, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffset_1));
#line 1697 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), base, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffset_2));
#line 1697 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), base, 2) = ((MR_Box) (mercury__tree_bitset__V_12_12));
#line 1697 "tree_bitset.m"
            }
#line 1696 "tree_bitset.m"
          }
#line 1696 "tree_bitset.m"
        else
#line 1700 "tree_bitset.m"
          {
#line 1700 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Head_17 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__4_4, (MR_Integer) 0)));
#line 1700 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Tail_18 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__4_4, (MR_Integer) 1)));
#line 1700 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__HeadParentInitOffset_21;
#line 1700 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__HeadParentLimitOffset_22;
#line 1700 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_17, (MR_Integer) 0)));
#line 1701 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_35_35 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_17, (MR_Integer) 1)));

#line 1701 "tree_bitset.m"
            {
#line 1701 "tree_bitset.m"
              mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_24_24, (MR_Integer) 0, &mercury__tree_bitset__HeadParentInitOffset_21, &mercury__tree_bitset__HeadParentLimitOffset_22);
            }
#line 1703 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__ParentInitOffset_1 == mercury__tree_bitset__HeadParentInitOffset_21);
#line 1711 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1707 "tree_bitset.m"
              {
#line 1707 "tree_bitset.m"
                MR_Word mercury__tree_bitset__STATE_VARIABLE_RevAcc_30_30;

#line 1705 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__ParentLimitOffset_2 == mercury__tree_bitset__HeadParentLimitOffset_22);
#line 32 "require.opt"
                if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
                  {
#line 31 "require.opt"
                  }
#line 32 "require.opt"
                else
#line 33 "require.opt"
                  {
#line 33 "require.opt"
                    mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.group_leaf_nodes_in_range\'/6", (MR_String) "limit mismatch");
#line 33 "require.opt"
                    return;
                  }
#line 1708 "tree_bitset.m"
                {
#line 1708 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_RevAcc_30_30 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1708 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__STATE_VARIABLE_RevAcc_30_30, 0) = ((MR_Box) (mercury__tree_bitset__Head_17));
#line 1708 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__STATE_VARIABLE_RevAcc_30_30, 1) = ((MR_Box) (mercury__tree_bitset__STATE_VARIABLE_RevAcc_0_3));
#line 1708 "tree_bitset.m"
                }
#line 1709 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 1709 "tree_bitset.m"
                {
#line 1709 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__STATE_VARIABLE_RevAcc_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_RevAcc_30_30;
#line 1709 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__4__tmp_copy_4 = mercury__tree_bitset__Tail_18;

#line 1709 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__4_4 = mercury__tree_bitset__HeadVar__4__tmp_copy_4;
#line 1709 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_RevAcc_0_3 = mercury__tree_bitset__STATE_VARIABLE_RevAcc_0__tmp_copy_3;
#line 1709 "tree_bitset.m"
                }
#line 1709 "tree_bitset.m"
                continue;
#line 1707 "tree_bitset.m"
              }
#line 1711 "tree_bitset.m"
            else
#line 1713 "tree_bitset.m"
              {
#line 1713 "tree_bitset.m"
                MR_Word mercury__tree_bitset__TypeCtorInfo_38_38 = (MR_Word) &mercury__tree_bitset__tree_bitset__type_ctor_info_leaf_node_0;
#line 1713 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_31_31;
#line 1713 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_32_32;

#line 118 "list.opt"
                {
#line 118 "list.opt"
                  mercury__list__reverse_2_p_0(mercury__tree_bitset__TypeCtorInfo_38_38, mercury__tree_bitset__STATE_VARIABLE_RevAcc_0_3, &mercury__tree_bitset__V_32_32);
                }
#line 1712 "tree_bitset.m"
                {
#line 1712 "tree_bitset.m"
                  mercury__tree_bitset__V_31_31 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 1712 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_31_31, 0) = ((MR_Box) (mercury__tree_bitset__V_32_32));
#line 1712 "tree_bitset.m"
                }
#line 1712 "tree_bitset.m"
                {
#line 1712 "tree_bitset.m"
                  MR_Word base;
#line 1712 "tree_bitset.m"
                  base = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 1712 "tree_bitset.m"
                  *mercury__tree_bitset__ParentNode_5 = base;
#line 1712 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), base, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffset_1));
#line 1712 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), base, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffset_2));
#line 1712 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), base, 2) = ((MR_Box) (mercury__tree_bitset__V_31_31));
#line 1712 "tree_bitset.m"
                }
#line 1714 "tree_bitset.m"
                *mercury__tree_bitset__HeadVar__6_6 = mercury__tree_bitset__HeadVar__4_4;
#line 1713 "tree_bitset.m"
              }
#line 1700 "tree_bitset.m"
          }
#line 1696 "tree_bitset.m"
      }
#line 1696 "tree_bitset.m"
      break;
#line 1696 "tree_bitset.m"
    }
#line 1691 "tree_bitset.m"
}

#line 1674 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__group_leaf_nodes_3_p_0(
#line 1674 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Head_4,
#line 1674 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Tail_5,
#line 1674 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__ParentList_6)
#line 1674 "tree_bitset.m"
{
#line 1677 "tree_bitset.m"
  {
#line 1677 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1677 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__ParentInitOffset_7;
#line 1677 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__ParentLimitOffset_8;
#line 1677 "tree_bitset.m"
    MR_Word mercury__tree_bitset__ParentHead_9;
#line 1677 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Remaining_10;
#line 1677 "tree_bitset.m"
    MR_Word mercury__tree_bitset__ParentTail_11;
#line 1677 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_14_14 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_4, (MR_Integer) 0)));
#line 1677 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_16_16;
#line 1677 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_17_17;
#line 1678 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_18_18 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_4, (MR_Integer) 1)));

#line 1678 "tree_bitset.m"
    {
#line 1678 "tree_bitset.m"
      mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_14_14, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffset_7, &mercury__tree_bitset__ParentLimitOffset_8);
    }
#line 1680 "tree_bitset.m"
    mercury__tree_bitset__V_17_17 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1680 "tree_bitset.m"
    {
#line 1680 "tree_bitset.m"
      mercury__tree_bitset__V_16_16 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1680 "tree_bitset.m"
      MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_16_16, 0) = ((MR_Box) (mercury__tree_bitset__Head_4));
#line 1680 "tree_bitset.m"
      MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_16_16, 1) = ((MR_Box) (mercury__tree_bitset__V_17_17));
#line 1680 "tree_bitset.m"
    }
#line 1680 "tree_bitset.m"
    {
#line 1680 "tree_bitset.m"
      mercury__tree_bitset__group_leaf_nodes_in_range_6_p_0(mercury__tree_bitset__ParentInitOffset_7, mercury__tree_bitset__ParentLimitOffset_8, mercury__tree_bitset__V_16_16, mercury__tree_bitset__Tail_5, &mercury__tree_bitset__ParentHead_9, &mercury__tree_bitset__Remaining_10);
    }
#line 1685 "tree_bitset.m"
    if ((mercury__tree_bitset__Remaining_10 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1684 "tree_bitset.m"
      mercury__tree_bitset__ParentTail_11 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1685 "tree_bitset.m"
    else
#line 1686 "tree_bitset.m"
      {
#line 1686 "tree_bitset.m"
        MR_Word mercury__tree_bitset__RemainingHead_12 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Remaining_10, (MR_Integer) 0)));
#line 1686 "tree_bitset.m"
        MR_Word mercury__tree_bitset__RemainingTail_13 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Remaining_10, (MR_Integer) 1)));

#line 1687 "tree_bitset.m"
        {
#line 1687 "tree_bitset.m"
          mercury__tree_bitset__group_leaf_nodes_3_p_0(mercury__tree_bitset__RemainingHead_12, mercury__tree_bitset__RemainingTail_13, &mercury__tree_bitset__ParentTail_11);
        }
#line 1686 "tree_bitset.m"
      }
#line 1689 "tree_bitset.m"
    {
#line 1689 "tree_bitset.m"
      MR_Word base;
#line 1689 "tree_bitset.m"
      base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1689 "tree_bitset.m"
      *mercury__tree_bitset__ParentList_6 = base;
#line 1689 "tree_bitset.m"
      MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__ParentHead_9));
#line 1689 "tree_bitset.m"
      MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__ParentTail_11));
#line 1689 "tree_bitset.m"
    }
#line 1677 "tree_bitset.m"
  }
#line 1674 "tree_bitset.m"
}

#line 1661 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__gather_bits_for_leaf_5_p_0(
#line 1661 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1661 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__2_2,
#line 1661 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__STATE_VARIABLE_Bits_0_3,
#line 1661 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__STATE_VARIABLE_Bits_4,
#line 1661 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__5_5)
#line 1661 "tree_bitset.m"
{
#line 1664 "tree_bitset.m"
  while (MR_TRUE)
#line 1664 "tree_bitset.m"
    {
#line 1664 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 1664 "tree_bitset.m"
      {
#line 1664 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 1664 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1664 "tree_bitset.m"
          {
#line 1664 "tree_bitset.m"
            *mercury__tree_bitset__HeadVar__5_5 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1664 "tree_bitset.m"
            *mercury__tree_bitset__STATE_VARIABLE_Bits_4 = mercury__tree_bitset__STATE_VARIABLE_Bits_0_3;
#line 1664 "tree_bitset.m"
          }
#line 1664 "tree_bitset.m"
        else
#line 1665 "tree_bitset.m"
          {
#line 1665 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Head_11 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));
#line 1665 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Tail_12 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 1665 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__HeadOffset_16;
#line 1665 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__HeadBits_17;
#line 1665 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__BitToSet_25;
#line 1665 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Trunc_5_29;
#line 1665 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Floor0_6_30;
#line 1665 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_35_35;

#line 282 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__gather_bits_for_leaf_5_p_0

	MR_Integer Int;
	MR_Integer Div;

	Int =  mercury__tree_bitset__Head_11 ;
		{
#line 282 "int.opt"

    Div = Int / ML_BITS_PER_INT;

#line 59116 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Trunc_5_29  = Div;
#line 282 "int.opt"
}
#line 285 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__gather_bits_for_leaf_5_p_0

	MR_Integer Int;
	MR_Integer Result;

	Int =  mercury__tree_bitset__Trunc_5_29 ;
		{
#line 285 "int.opt"

    Result = Int * ML_BITS_PER_INT;

#line 59136 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Floor0_6_30  = Result;
#line 285 "int.opt"
}
#line 275 "int.opt"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Floor0_6_30 > mercury__tree_bitset__Head_11);
#line 279 "int.opt"
            if (mercury__tree_bitset__succeeded)
#line 277 "int.opt"
              {
#line 277 "int.opt"
                MR_Integer mercury__tree_bitset__V_7_31;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__gather_bits_for_leaf_5_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 59163 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_7_31  = Bits;
#line 171 "int.opt"
}
#line 277 "int.opt"
                mercury__tree_bitset__HeadOffset_16 = (mercury__tree_bitset__Floor0_6_30 - mercury__tree_bitset__V_7_31);
#line 277 "int.opt"
              }
#line 279 "int.opt"
            else
#line 280 "int.opt"
              mercury__tree_bitset__HeadOffset_16 = mercury__tree_bitset__Floor0_6_30;
#line 3621 "tree_bitset.m"
            mercury__tree_bitset__BitToSet_25 = (mercury__tree_bitset__Head_11 - mercury__tree_bitset__HeadOffset_16);
#line 3632 "tree_bitset.m"
            mercury__tree_bitset__V_35_35 = ((MR_Integer) 1 << mercury__tree_bitset__BitToSet_25);
#line 3632 "tree_bitset.m"
            mercury__tree_bitset__HeadBits_17 = ((MR_Integer) 0 | mercury__tree_bitset__V_35_35);
#line 1667 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__HeadOffset_16 == mercury__tree_bitset__HeadVar__2_2);
#line 1670 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1668 "tree_bitset.m"
              {
#line 1668 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__STATE_VARIABLE_Bits_20_20 = (mercury__tree_bitset__STATE_VARIABLE_Bits_0_3 | mercury__tree_bitset__HeadBits_17);

#line 1669 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 1669 "tree_bitset.m"
                {
#line 1669 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__Tail_12;
#line 1669 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__STATE_VARIABLE_Bits_0__tmp_copy_3 = mercury__tree_bitset__STATE_VARIABLE_Bits_20_20;

#line 1669 "tree_bitset.m"
                  mercury__tree_bitset__STATE_VARIABLE_Bits_0_3 = mercury__tree_bitset__STATE_VARIABLE_Bits_0__tmp_copy_3;
#line 1669 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 1669 "tree_bitset.m"
                }
#line 1669 "tree_bitset.m"
                continue;
#line 1668 "tree_bitset.m"
              }
#line 1670 "tree_bitset.m"
            else
#line 1671 "tree_bitset.m"
              {
#line 1671 "tree_bitset.m"
                *mercury__tree_bitset__HeadVar__5_5 = mercury__tree_bitset__HeadVar__1_1;
#line 1671 "tree_bitset.m"
                *mercury__tree_bitset__STATE_VARIABLE_Bits_4 = mercury__tree_bitset__STATE_VARIABLE_Bits_0_3;
#line 1671 "tree_bitset.m"
              }
#line 1665 "tree_bitset.m"
          }
#line 1664 "tree_bitset.m"
      }
#line 1664 "tree_bitset.m"
      break;
#line 1664 "tree_bitset.m"
    }
#line 1661 "tree_bitset.m"
}

#line 1652 "tree_bitset.m"
static MR_Word MR_CALL 
mercury__tree_bitset__sorted_list_to_leaf_nodes_1_f_0(
#line 1652 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1)
#line 1652 "tree_bitset.m"
{
#line 1654 "tree_bitset.m"
  {
#line 1654 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1654 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__2_2;

#line 1654 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1654 "tree_bitset.m"
      mercury__tree_bitset__HeadVar__2_2 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1654 "tree_bitset.m"
    else
#line 1655 "tree_bitset.m"
      {
#line 1655 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Head_3 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));
#line 1655 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Tail_4 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 1655 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Offset_6;
#line 1655 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__HeadBits_7;
#line 1655 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Bits_8;
#line 1655 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Remaining_9;
#line 1655 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodesTail_10;
#line 1655 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_11_11;
#line 1655 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__BitToSet_15;
#line 1655 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Trunc_5_19;
#line 1655 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Floor0_6_20;
#line 1655 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_25_25;

#line 282 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__sorted_list_to_leaf_nodes_1_f_0

	MR_Integer Int;
	MR_Integer Div;

	Int =  mercury__tree_bitset__Head_3 ;
		{
#line 282 "int.opt"

    Div = Int / ML_BITS_PER_INT;

#line 59293 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Trunc_5_19  = Div;
#line 282 "int.opt"
}
#line 285 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__sorted_list_to_leaf_nodes_1_f_0

	MR_Integer Int;
	MR_Integer Result;

	Int =  mercury__tree_bitset__Trunc_5_19 ;
		{
#line 285 "int.opt"

    Result = Int * ML_BITS_PER_INT;

#line 59313 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Floor0_6_20  = Result;
#line 285 "int.opt"
}
#line 275 "int.opt"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__Floor0_6_20 > mercury__tree_bitset__Head_3);
#line 279 "int.opt"
        if (mercury__tree_bitset__succeeded)
#line 277 "int.opt"
          {
#line 277 "int.opt"
            MR_Integer mercury__tree_bitset__V_7_21;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__sorted_list_to_leaf_nodes_1_f_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 59340 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_7_21  = Bits;
#line 171 "int.opt"
}
#line 277 "int.opt"
            mercury__tree_bitset__Offset_6 = (mercury__tree_bitset__Floor0_6_20 - mercury__tree_bitset__V_7_21);
#line 277 "int.opt"
          }
#line 279 "int.opt"
        else
#line 280 "int.opt"
          mercury__tree_bitset__Offset_6 = mercury__tree_bitset__Floor0_6_20;
#line 3621 "tree_bitset.m"
        mercury__tree_bitset__BitToSet_15 = (mercury__tree_bitset__Head_3 - mercury__tree_bitset__Offset_6);
#line 3632 "tree_bitset.m"
        mercury__tree_bitset__V_25_25 = ((MR_Integer) 1 << mercury__tree_bitset__BitToSet_15);
#line 3632 "tree_bitset.m"
        mercury__tree_bitset__HeadBits_7 = ((MR_Integer) 0 | mercury__tree_bitset__V_25_25);
#line 1657 "tree_bitset.m"
        {
#line 1657 "tree_bitset.m"
          mercury__tree_bitset__gather_bits_for_leaf_5_p_0(mercury__tree_bitset__Tail_4, mercury__tree_bitset__Offset_6, mercury__tree_bitset__HeadBits_7, &mercury__tree_bitset__Bits_8, &mercury__tree_bitset__Remaining_9);
        }
#line 1658 "tree_bitset.m"
        {
#line 1658 "tree_bitset.m"
          mercury__tree_bitset__LeafNodesTail_10 = mercury__tree_bitset__sorted_list_to_leaf_nodes_1_f_0(mercury__tree_bitset__Remaining_9);
        }
#line 547 "tree_bitset.m"
        {
#line 547 "tree_bitset.m"
          mercury__tree_bitset__V_11_11 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_11_11, 0) = ((MR_Box) (mercury__tree_bitset__Offset_6));
#line 547 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_11_11, 1) = ((MR_Box) (mercury__tree_bitset__Bits_8));
#line 547 "tree_bitset.m"
        }
#line 1659 "tree_bitset.m"
        {
#line 1659 "tree_bitset.m"
          mercury__tree_bitset__HeadVar__2_2 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1659 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, 0) = ((MR_Box) (mercury__tree_bitset__V_11_11));
#line 1659 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, 1) = ((MR_Box) (mercury__tree_bitset__LeafNodesTail_10));
#line 1659 "tree_bitset.m"
        }
#line 1655 "tree_bitset.m"
      }
#line 1654 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__2_2;
#line 1654 "tree_bitset.m"
  }
#line 1652 "tree_bitset.m"
}

#line 1643 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__items_to_index_2_p_0(
#line 1643 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_7,
#line 1643 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1643 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__2_2)
#line 1643 "tree_bitset.m"
{
#line 1647 "tree_bitset.m"
  {
#line 1647 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 1647 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1647 "tree_bitset.m"
      *mercury__tree_bitset__HeadVar__2_2 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1647 "tree_bitset.m"
    else
#line 1648 "tree_bitset.m"
      {
#line 1648 "tree_bitset.m"
        MR_Box mercury__tree_bitset__ElemHead_3 = (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0));
#line 1648 "tree_bitset.m"
        MR_Word mercury__tree_bitset__ElemTail_4 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 1648 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__IndexHead_5;
#line 1648 "tree_bitset.m"
        MR_Word mercury__tree_bitset__IndexTail_6;

#line 1649 "tree_bitset.m"
        {
#line 1649 "tree_bitset.m"
          mercury__tree_bitset__IndexHead_5 = mercury__tree_bitset__enum_to_index_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_7, mercury__tree_bitset__ElemHead_3);
        }
#line 1650 "tree_bitset.m"
        {
#line 1650 "tree_bitset.m"
          mercury__tree_bitset__items_to_index_2_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_7, mercury__tree_bitset__ElemTail_4, &mercury__tree_bitset__IndexTail_6);
        }
#line 1648 "tree_bitset.m"
        {
#line 1648 "tree_bitset.m"
          MR_Word base;
#line 1648 "tree_bitset.m"
          base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1648 "tree_bitset.m"
          *mercury__tree_bitset__HeadVar__2_2 = base;
#line 1648 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__IndexHead_5));
#line 1648 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__IndexTail_6));
#line 1648 "tree_bitset.m"
        }
#line 1648 "tree_bitset.m"
      }
#line 1647 "tree_bitset.m"
  }
#line 1643 "tree_bitset.m"
}

#line 1587 "tree_bitset.m"
static MR_Integer MR_CALL 
mercury__tree_bitset__find_least_bit_2_3_f_0(
#line 1587 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits0_5,
#line 1587 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Size_6,
#line 1587 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__BitNum0_7)
#line 1587 "tree_bitset.m"
{
#line 1593 "tree_bitset.m"
  while (MR_TRUE)
#line 1593 "tree_bitset.m"
    {
#line 1593 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 1593 "tree_bitset.m"
      {
#line 1593 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__Size_6 == (MR_Integer) 1);
#line 1593 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__BitNum_8;

#line 1593 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 1592 "tree_bitset.m"
          mercury__tree_bitset__BitNum_8 = mercury__tree_bitset__BitNum0_7;
#line 1593 "tree_bitset.m"
        else
#line 1594 "tree_bitset.m"
          {
#line 1594 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__HalfSize_9 = (mercury__tree_bitset__Size_6 >> (MR_Integer) 1);
#line 1594 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Mask_10;
#line 1594 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__LowBits_11;
#line 1594 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_17_17 = ((MR_Integer) -1 << mercury__tree_bitset__HalfSize_9);

#line 3645 "tree_bitset.m"
            mercury__tree_bitset__Mask_10 = ~(mercury__tree_bitset__V_17_17);
#line 1597 "tree_bitset.m"
            mercury__tree_bitset__LowBits_11 = (mercury__tree_bitset__Bits0_5 & mercury__tree_bitset__Mask_10);
#line 1598 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__LowBits_11 == (MR_Integer) 0);
#line 1598 "tree_bitset.m"
            mercury__tree_bitset__succeeded = !(mercury__tree_bitset__succeeded);
#line 1600 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1599 "tree_bitset.m"
              {
#line 1599 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 1599 "tree_bitset.m"
                {
#line 1599 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__Bits0__tmp_copy_5 = mercury__tree_bitset__LowBits_11;
#line 1599 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__Size__tmp_copy_6 = mercury__tree_bitset__HalfSize_9;

#line 1599 "tree_bitset.m"
                  mercury__tree_bitset__Size_6 = mercury__tree_bitset__Size__tmp_copy_6;
#line 1599 "tree_bitset.m"
                  mercury__tree_bitset__Bits0_5 = mercury__tree_bitset__Bits0__tmp_copy_5;
#line 1599 "tree_bitset.m"
                }
#line 1599 "tree_bitset.m"
                continue;
#line 1599 "tree_bitset.m"
              }
#line 1600 "tree_bitset.m"
            else
#line 1601 "tree_bitset.m"
              {
#line 1601 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__HighBits_12;
#line 1601 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_14_14 = (mercury__tree_bitset__Bits0_5 >> mercury__tree_bitset__HalfSize_9);
#line 1601 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15;

#line 1601 "tree_bitset.m"
                mercury__tree_bitset__HighBits_12 = (mercury__tree_bitset__Mask_10 & mercury__tree_bitset__V_14_14);
#line 1602 "tree_bitset.m"
                mercury__tree_bitset__V_15_15 = (mercury__tree_bitset__BitNum0_7 + mercury__tree_bitset__HalfSize_9);
#line 1602 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 1602 "tree_bitset.m"
                {
#line 1602 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__Bits0__tmp_copy_5 = mercury__tree_bitset__HighBits_12;
#line 1602 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__Size__tmp_copy_6 = mercury__tree_bitset__HalfSize_9;
#line 1602 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__BitNum0__tmp_copy_7 = mercury__tree_bitset__V_15_15;

#line 1602 "tree_bitset.m"
                  mercury__tree_bitset__BitNum0_7 = mercury__tree_bitset__BitNum0__tmp_copy_7;
#line 1602 "tree_bitset.m"
                  mercury__tree_bitset__Size_6 = mercury__tree_bitset__Size__tmp_copy_6;
#line 1602 "tree_bitset.m"
                  mercury__tree_bitset__Bits0_5 = mercury__tree_bitset__Bits0__tmp_copy_5;
#line 1602 "tree_bitset.m"
                }
#line 1602 "tree_bitset.m"
                continue;
#line 1601 "tree_bitset.m"
              }
#line 1594 "tree_bitset.m"
          }
#line 1593 "tree_bitset.m"
        return mercury__tree_bitset__BitNum_8;
#line 1593 "tree_bitset.m"
      }
#line 1593 "tree_bitset.m"
      break;
#line 1593 "tree_bitset.m"
    }
#line 1587 "tree_bitset.m"
}

#line 1521 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__remove_least_interior_4_p_0(
#line 1521 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Head0_5,
#line 1521 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Tail0_6,
#line 1521 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__Index_7,
#line 1521 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__Nodes_8)
#line 1521 "tree_bitset.m"
{
#line 1524 "tree_bitset.m"
  {
#line 1524 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1524 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Components0_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 2)));
#line 1525 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_41_41 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 0)));
#line 1525 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_42_42 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 1)));

#line 1544 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__Components0_9)) == (MR_mktag((MR_Integer) 1))))
#line 1545 "tree_bitset.m"
      {
#line 1545 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Level_18 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components0_9, (MR_Integer) 0)));
#line 1545 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes0_19 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components0_9, (MR_Integer) 1)));

#line 1549 "tree_bitset.m"
        if ((mercury__tree_bitset__InteriorNodes0_19 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1547 "tree_bitset.m"
          {
#line 1548 "tree_bitset.m"
            {
#line 1548 "tree_bitset.m"
              mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.remove_least_interior\'/4", (MR_String) "empty InteriorNodes0");
#line 1548 "tree_bitset.m"
              return;
            }
#line 1547 "tree_bitset.m"
          }
#line 1549 "tree_bitset.m"
        else
#line 1550 "tree_bitset.m"
          {
#line 1550 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InteriorHead0_20 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorNodes0_19, (MR_Integer) 0)));
#line 1550 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InteriorTail0_21 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorNodes0_19, (MR_Integer) 1)));
#line 1550 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InteriorNodes_22;

#line 1551 "tree_bitset.m"
            {
#line 1551 "tree_bitset.m"
              mercury__tree_bitset__remove_least_interior_4_p_0(mercury__tree_bitset__InteriorHead0_20, mercury__tree_bitset__InteriorTail0_21, mercury__tree_bitset__Index_7, &mercury__tree_bitset__InteriorNodes_22);
            }
#line 1556 "tree_bitset.m"
            if ((mercury__tree_bitset__InteriorNodes_22 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1555 "tree_bitset.m"
              *mercury__tree_bitset__Nodes_8 = mercury__tree_bitset__Tail0_6;
#line 1556 "tree_bitset.m"
            else
#line 1557 "tree_bitset.m"
              {
#line 1557 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Components_31;
#line 1557 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Head_32;
#line 1559 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_46_46;
#line 1559 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_47_47;
#line 1559 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_48_48;

#line 1558 "tree_bitset.m"
                {
#line 1558 "tree_bitset.m"
                  mercury__tree_bitset__Components_31 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1558 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_31, 0) = ((MR_Box) (mercury__tree_bitset__Level_18));
#line 1558 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_31, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodes_22));
#line 1558 "tree_bitset.m"
                }
#line 1559 "tree_bitset.m"
                mercury__tree_bitset__V_46_46 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 0)));
#line 1559 "tree_bitset.m"
                mercury__tree_bitset__V_47_47 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 1)));
#line 1559 "tree_bitset.m"
                mercury__tree_bitset__V_48_48 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 2)));
#line 1559 "tree_bitset.m"
                {
#line 1559 "tree_bitset.m"
                  mercury__tree_bitset__Head_32 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 1559 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_32, 0) = ((MR_Box) (mercury__tree_bitset__V_46_46));
#line 1559 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_32, 1) = ((MR_Box) (mercury__tree_bitset__V_47_47));
#line 1559 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_32, 2) = ((MR_Box) (mercury__tree_bitset__Components_31));
#line 1559 "tree_bitset.m"
                }
#line 1560 "tree_bitset.m"
                {
#line 1560 "tree_bitset.m"
                  MR_Word base;
#line 1560 "tree_bitset.m"
                  base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1560 "tree_bitset.m"
                  *mercury__tree_bitset__Nodes_8 = base;
#line 1560 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head_32));
#line 1560 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail0_6));
#line 1560 "tree_bitset.m"
                }
#line 1557 "tree_bitset.m"
              }
#line 1550 "tree_bitset.m"
          }
#line 1545 "tree_bitset.m"
      }
#line 1544 "tree_bitset.m"
    else
#line 1527 "tree_bitset.m"
      {
#line 1527 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes0_10 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components0_9, (MR_Integer) 0)));

#line 1531 "tree_bitset.m"
        if ((mercury__tree_bitset__LeafNodes0_10 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1529 "tree_bitset.m"
          {
#line 1530 "tree_bitset.m"
            {
#line 1530 "tree_bitset.m"
              mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.remove_least_interior\'/4", (MR_String) "empty LeafNodes0");
#line 1530 "tree_bitset.m"
              return;
            }
#line 1529 "tree_bitset.m"
          }
#line 1531 "tree_bitset.m"
        else
#line 1532 "tree_bitset.m"
          {
#line 1532 "tree_bitset.m"
            MR_Word mercury__tree_bitset__LeafHead0_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodes0_10, (MR_Integer) 0)));
#line 1532 "tree_bitset.m"
            MR_Word mercury__tree_bitset__LeafTail0_12 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodes0_10, (MR_Integer) 1)));
#line 1532 "tree_bitset.m"
            MR_Word mercury__tree_bitset__LeafNodes_13;
#line 1532 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Bits0_53 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__LeafHead0_11, (MR_Integer) 1)));
#line 1532 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Offset_54 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__LeafHead0_11, (MR_Integer) 0)));
#line 1532 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Bit_55;
#line 1532 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Bits_56;
#line 1532 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Size_62;
#line 1532 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_67_67;
#line 1532 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_68_68;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__remove_least_interior_4_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 59772 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Size_62  = Bits;
#line 171 "int.opt"
}
#line 1585 "tree_bitset.m"
            {
#line 1585 "tree_bitset.m"
              mercury__tree_bitset__Bit_55 = mercury__tree_bitset__find_least_bit_2_3_f_0(mercury__tree_bitset__Bits0_53, mercury__tree_bitset__Size_62, (MR_Integer) 0);
            }
#line 3637 "tree_bitset.m"
            mercury__tree_bitset__V_68_68 = ((MR_Integer) 1 << mercury__tree_bitset__Bit_55);
#line 3637 "tree_bitset.m"
            mercury__tree_bitset__V_67_67 = ~(mercury__tree_bitset__V_68_68);
#line 3637 "tree_bitset.m"
            mercury__tree_bitset__Bits_56 = (mercury__tree_bitset__Bits0_53 & mercury__tree_bitset__V_67_67);
#line 1573 "tree_bitset.m"
            *mercury__tree_bitset__Index_7 = (mercury__tree_bitset__Offset_54 + mercury__tree_bitset__Bit_55);
#line 1574 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_56 == (MR_Integer) 0);
#line 1576 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1575 "tree_bitset.m"
              mercury__tree_bitset__LeafNodes_13 = mercury__tree_bitset__LeafTail0_12;
#line 1576 "tree_bitset.m"
            else
#line 1577 "tree_bitset.m"
              {
#line 1577 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_57_57;

#line 547 "tree_bitset.m"
                {
#line 547 "tree_bitset.m"
                  mercury__tree_bitset__V_57_57 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_57_57, 0) = ((MR_Box) (mercury__tree_bitset__Offset_54));
#line 547 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_57_57, 1) = ((MR_Box) (mercury__tree_bitset__Bits_56));
#line 547 "tree_bitset.m"
                }
#line 1577 "tree_bitset.m"
                {
#line 1577 "tree_bitset.m"
                  mercury__tree_bitset__LeafNodes_13 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1577 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodes_13, 0) = ((MR_Box) (mercury__tree_bitset__V_57_57));
#line 1577 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodes_13, 1) = ((MR_Box) (mercury__tree_bitset__LeafTail0_12));
#line 1577 "tree_bitset.m"
                }
#line 1577 "tree_bitset.m"
              }
#line 1537 "tree_bitset.m"
            if ((mercury__tree_bitset__LeafNodes_13 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1536 "tree_bitset.m"
              *mercury__tree_bitset__Nodes_8 = mercury__tree_bitset__Tail0_6;
#line 1537 "tree_bitset.m"
            else
#line 1538 "tree_bitset.m"
              {
#line 1538 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Components_16;
#line 1538 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Head_17;
#line 1540 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_43_43;
#line 1540 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_44_44;
#line 1540 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_45_45;

#line 1539 "tree_bitset.m"
                {
#line 1539 "tree_bitset.m"
                  mercury__tree_bitset__Components_16 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 1539 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_16, 0) = ((MR_Box) (mercury__tree_bitset__LeafNodes_13));
#line 1539 "tree_bitset.m"
                }
#line 1540 "tree_bitset.m"
                mercury__tree_bitset__V_43_43 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 0)));
#line 1540 "tree_bitset.m"
                mercury__tree_bitset__V_44_44 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 1)));
#line 1540 "tree_bitset.m"
                mercury__tree_bitset__V_45_45 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 2)));
#line 1540 "tree_bitset.m"
                {
#line 1540 "tree_bitset.m"
                  mercury__tree_bitset__Head_17 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 1540 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_17, 0) = ((MR_Box) (mercury__tree_bitset__V_43_43));
#line 1540 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_17, 1) = ((MR_Box) (mercury__tree_bitset__V_44_44));
#line 1540 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_17, 2) = ((MR_Box) (mercury__tree_bitset__Components_16));
#line 1540 "tree_bitset.m"
                }
#line 1541 "tree_bitset.m"
                {
#line 1541 "tree_bitset.m"
                  MR_Word base;
#line 1541 "tree_bitset.m"
                  base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1541 "tree_bitset.m"
                  *mercury__tree_bitset__Nodes_8 = base;
#line 1541 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head_17));
#line 1541 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail0_6));
#line 1541 "tree_bitset.m"
                }
#line 1538 "tree_bitset.m"
              }
#line 1532 "tree_bitset.m"
          }
#line 1527 "tree_bitset.m"
      }
#line 1524 "tree_bitset.m"
  }
#line 1521 "tree_bitset.m"
}

#line 1467 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__remove_gt_leaf_3_p_0(
#line 1467 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1467 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_2,
#line 1467 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3)
#line 1467 "tree_bitset.m"
{
#line 1470 "tree_bitset.m"
  {
#line 1470 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 1470 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1470 "tree_bitset.m"
      *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1470 "tree_bitset.m"
    else
#line 1471 "tree_bitset.m"
      {
#line 1471 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Head0_5 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));
#line 1471 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Tail0_6 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 1471 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Offset_9 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 0)));
#line 1472 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 1)));
#line 1473 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_12_12;
#line 1473 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_13_13;
#line 1473 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_14_14;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__remove_gt_leaf_3_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 59947 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_14_14  = Bits;
#line 171 "int.opt"
}
#line 1473 "tree_bitset.m"
        mercury__tree_bitset__V_13_13 = (mercury__tree_bitset__Offset_9 + mercury__tree_bitset__V_14_14);
#line 1473 "tree_bitset.m"
        mercury__tree_bitset__V_12_12 = (mercury__tree_bitset__V_13_13 - (MR_Integer) 1);
#line 1473 "tree_bitset.m"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_12_12 <= mercury__tree_bitset__Index_2);
#line 1476 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 1474 "tree_bitset.m"
          {
#line 1474 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Tail_10;

#line 1474 "tree_bitset.m"
            {
#line 1474 "tree_bitset.m"
              mercury__tree_bitset__remove_gt_leaf_3_p_0(mercury__tree_bitset__Tail0_6, mercury__tree_bitset__Index_2, &mercury__tree_bitset__Tail_10);
            }
#line 1475 "tree_bitset.m"
            {
#line 1475 "tree_bitset.m"
              MR_Word base;
#line 1475 "tree_bitset.m"
              base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1475 "tree_bitset.m"
              *mercury__tree_bitset__HeadVar__3_3 = base;
#line 1475 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head0_5));
#line 1475 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail_10));
#line 1475 "tree_bitset.m"
            }
#line 1474 "tree_bitset.m"
          }
#line 1476 "tree_bitset.m"
        else
#line 1486 "tree_bitset.m"
          {
#line 1476 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Offset_9 <= mercury__tree_bitset__Index_2);
#line 1486 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1483 "tree_bitset.m"
              {
#line 1483 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Bits_11;
#line 1479 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 1)));
#line 1479 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_17_17;
#line 1479 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_18_18;
#line 1479 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_21_21;
#line 1479 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_22_22 = (mercury__tree_bitset__Index_2 - mercury__tree_bitset__Offset_9);
#line 1478 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_27_27 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 0)));

#line 1479 "tree_bitset.m"
                mercury__tree_bitset__V_21_21 = (mercury__tree_bitset__V_22_22 + (MR_Integer) 1);
#line 1479 "tree_bitset.m"
                mercury__tree_bitset__V_18_18 = ((MR_Integer) -1 << mercury__tree_bitset__V_21_21);
#line 1478 "tree_bitset.m"
                mercury__tree_bitset__V_17_17 = ~(mercury__tree_bitset__V_18_18);
#line 1478 "tree_bitset.m"
                mercury__tree_bitset__Bits_11 = (mercury__tree_bitset__V_16_16 & mercury__tree_bitset__V_17_17);
#line 1480 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);
#line 1480 "tree_bitset.m"
                mercury__tree_bitset__succeeded = !(mercury__tree_bitset__succeeded);
#line 1483 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 1482 "tree_bitset.m"
                  {
#line 1482 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_24_24;
#line 1482 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_25_25;

#line 547 "tree_bitset.m"
                    {
#line 547 "tree_bitset.m"
                      mercury__tree_bitset__V_24_24 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
                      MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_24_24, 0) = ((MR_Box) (mercury__tree_bitset__Offset_9));
#line 547 "tree_bitset.m"
                      MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_24_24, 1) = ((MR_Box) (mercury__tree_bitset__Bits_11));
#line 547 "tree_bitset.m"
                    }
#line 1482 "tree_bitset.m"
                    mercury__tree_bitset__V_25_25 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1482 "tree_bitset.m"
                    {
#line 1482 "tree_bitset.m"
                      MR_Word base;
#line 1482 "tree_bitset.m"
                      base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1482 "tree_bitset.m"
                      *mercury__tree_bitset__HeadVar__3_3 = base;
#line 1482 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__V_24_24));
#line 1482 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__V_25_25));
#line 1482 "tree_bitset.m"
                    }
#line 1482 "tree_bitset.m"
                  }
#line 1483 "tree_bitset.m"
                else
#line 1484 "tree_bitset.m"
                  *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1483 "tree_bitset.m"
              }
#line 1486 "tree_bitset.m"
            else
#line 1487 "tree_bitset.m"
              *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1486 "tree_bitset.m"
          }
#line 1471 "tree_bitset.m"
      }
#line 1470 "tree_bitset.m"
  }
#line 1467 "tree_bitset.m"
}

#line 1426 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__remove_gt_interior_3_p_0(
#line 1426 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1426 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_2,
#line 1426 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3)
#line 1426 "tree_bitset.m"
{
#line 1429 "tree_bitset.m"
  {
#line 1429 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 1429 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1429 "tree_bitset.m"
      *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1429 "tree_bitset.m"
    else
#line 1430 "tree_bitset.m"
      {
#line 1430 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Head0_5 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));
#line 1430 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Tail0_6 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 1431 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 1)));
#line 1431 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_36_36 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 0)));
#line 1431 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_37_37 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 2)));

#line 1431 "tree_bitset.m"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_22_22 <= mercury__tree_bitset__Index_2);
#line 1434 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 1432 "tree_bitset.m"
          {
#line 1432 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Tail_9;

#line 1432 "tree_bitset.m"
            {
#line 1432 "tree_bitset.m"
              mercury__tree_bitset__remove_gt_interior_3_p_0(mercury__tree_bitset__Tail0_6, mercury__tree_bitset__Index_2, &mercury__tree_bitset__Tail_9);
            }
#line 1433 "tree_bitset.m"
            {
#line 1433 "tree_bitset.m"
              MR_Word base;
#line 1433 "tree_bitset.m"
              base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1433 "tree_bitset.m"
              *mercury__tree_bitset__HeadVar__3_3 = base;
#line 1433 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head0_5));
#line 1433 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail_9));
#line 1433 "tree_bitset.m"
            }
#line 1432 "tree_bitset.m"
          }
#line 1434 "tree_bitset.m"
        else
#line 1463 "tree_bitset.m"
          {
#line 1463 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_39_39 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 2)));
#line 1434 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 0)));
#line 1434 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_38_38 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 1)));

#line 1434 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_23_23 <= mercury__tree_bitset__Index_2);
#line 1463 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1449 "tree_bitset.m"
              if (((MR_tag((MR_Word) mercury__tree_bitset__V_39_39)) == (MR_mktag((MR_Integer) 1))))
#line 1450 "tree_bitset.m"
                {
#line 1450 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__Level_17 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_39_39, (MR_Integer) 0)));
#line 1450 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__InteriorNodes0_18 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_39_39, (MR_Integer) 1)));
#line 1450 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__InteriorNodes_19;

#line 1451 "tree_bitset.m"
                  {
#line 1451 "tree_bitset.m"
                    mercury__tree_bitset__remove_gt_interior_3_p_0(mercury__tree_bitset__InteriorNodes0_18, mercury__tree_bitset__Index_2, &mercury__tree_bitset__InteriorNodes_19);
                  }
#line 1455 "tree_bitset.m"
                  if ((mercury__tree_bitset__InteriorNodes_19 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1454 "tree_bitset.m"
                    *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1455 "tree_bitset.m"
                  else
#line 1456 "tree_bitset.m"
                    {
#line 1456 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__V_24_24;
#line 1456 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__V_26_26;
#line 1456 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__Components_30;
#line 1456 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__Head_31;
#line 1456 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__V_46_46;
#line 1458 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__V_47_47;

#line 1457 "tree_bitset.m"
                      {
#line 1457 "tree_bitset.m"
                        mercury__tree_bitset__Components_30 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1457 "tree_bitset.m"
                        MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_30, 0) = ((MR_Box) (mercury__tree_bitset__Level_17));
#line 1457 "tree_bitset.m"
                        MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_30, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodes_19));
#line 1457 "tree_bitset.m"
                      }
#line 1458 "tree_bitset.m"
                      mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 0)));
#line 1458 "tree_bitset.m"
                      mercury__tree_bitset__V_46_46 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 1)));
#line 1458 "tree_bitset.m"
                      mercury__tree_bitset__V_47_47 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 2)));
#line 1458 "tree_bitset.m"
                      {
#line 1458 "tree_bitset.m"
                        mercury__tree_bitset__Head_31 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 1458 "tree_bitset.m"
                        MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_31, 0) = ((MR_Box) (mercury__tree_bitset__V_24_24));
#line 1458 "tree_bitset.m"
                        MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_31, 1) = ((MR_Box) (mercury__tree_bitset__V_46_46));
#line 1458 "tree_bitset.m"
                        MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_31, 2) = ((MR_Box) (mercury__tree_bitset__Components_30));
#line 1458 "tree_bitset.m"
                      }
#line 1460 "tree_bitset.m"
                      mercury__tree_bitset__V_26_26 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1460 "tree_bitset.m"
                      {
#line 1460 "tree_bitset.m"
                        MR_Word base;
#line 1460 "tree_bitset.m"
                        base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1460 "tree_bitset.m"
                        *mercury__tree_bitset__HeadVar__3_3 = base;
#line 1460 "tree_bitset.m"
                        MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head_31));
#line 1460 "tree_bitset.m"
                        MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__V_26_26));
#line 1460 "tree_bitset.m"
                      }
#line 1456 "tree_bitset.m"
                    }
#line 1450 "tree_bitset.m"
                }
#line 1449 "tree_bitset.m"
              else
#line 1437 "tree_bitset.m"
                {
#line 1437 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__LeafNodes0_11 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_39_39, (MR_Integer) 0)));
#line 1437 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__LeafNodes_12;

#line 1438 "tree_bitset.m"
                  {
#line 1438 "tree_bitset.m"
                    mercury__tree_bitset__remove_gt_leaf_3_p_0(mercury__tree_bitset__LeafNodes0_11, mercury__tree_bitset__Index_2, &mercury__tree_bitset__LeafNodes_12);
                  }
#line 1442 "tree_bitset.m"
                  if ((mercury__tree_bitset__LeafNodes_12 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1441 "tree_bitset.m"
                    *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1442 "tree_bitset.m"
                  else
#line 1443 "tree_bitset.m"
                    {
#line 1443 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__Components_15;
#line 1443 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__Head_16;
#line 1443 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__V_27_27;
#line 1443 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__V_29_29;
#line 1443 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__V_42_42;
#line 1445 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__V_43_43;

#line 1444 "tree_bitset.m"
                      {
#line 1444 "tree_bitset.m"
                        mercury__tree_bitset__Components_15 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 1444 "tree_bitset.m"
                        MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_15, 0) = ((MR_Box) (mercury__tree_bitset__LeafNodes_12));
#line 1444 "tree_bitset.m"
                      }
#line 1445 "tree_bitset.m"
                      mercury__tree_bitset__V_27_27 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 0)));
#line 1445 "tree_bitset.m"
                      mercury__tree_bitset__V_42_42 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 1)));
#line 1445 "tree_bitset.m"
                      mercury__tree_bitset__V_43_43 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 2)));
#line 1445 "tree_bitset.m"
                      {
#line 1445 "tree_bitset.m"
                        mercury__tree_bitset__Head_16 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 1445 "tree_bitset.m"
                        MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_16, 0) = ((MR_Box) (mercury__tree_bitset__V_27_27));
#line 1445 "tree_bitset.m"
                        MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_16, 1) = ((MR_Box) (mercury__tree_bitset__V_42_42));
#line 1445 "tree_bitset.m"
                        MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_16, 2) = ((MR_Box) (mercury__tree_bitset__Components_15));
#line 1445 "tree_bitset.m"
                      }
#line 1447 "tree_bitset.m"
                      mercury__tree_bitset__V_29_29 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1447 "tree_bitset.m"
                      {
#line 1447 "tree_bitset.m"
                        MR_Word base;
#line 1447 "tree_bitset.m"
                        base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1447 "tree_bitset.m"
                        *mercury__tree_bitset__HeadVar__3_3 = base;
#line 1447 "tree_bitset.m"
                        MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head_16));
#line 1447 "tree_bitset.m"
                        MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__V_29_29));
#line 1447 "tree_bitset.m"
                      }
#line 1443 "tree_bitset.m"
                    }
#line 1437 "tree_bitset.m"
                }
#line 1463 "tree_bitset.m"
            else
#line 1464 "tree_bitset.m"
              *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1463 "tree_bitset.m"
          }
#line 1430 "tree_bitset.m"
      }
#line 1429 "tree_bitset.m"
  }
#line 1426 "tree_bitset.m"
}

#line 1389 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__remove_leq_leaf_3_p_0(
#line 1389 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1389 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_2,
#line 1389 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3)
#line 1389 "tree_bitset.m"
{
#line 1392 "tree_bitset.m"
  while (MR_TRUE)
#line 1392 "tree_bitset.m"
    {
#line 1392 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 1392 "tree_bitset.m"
      {
#line 1392 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 1392 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1392 "tree_bitset.m"
          *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1392 "tree_bitset.m"
        else
#line 1393 "tree_bitset.m"
          {
#line 1393 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Head0_5 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));
#line 1393 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Tail0_6 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 1393 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Offset_9 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 0)));
#line 1394 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 1)));
#line 1395 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_11_11;
#line 1395 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_12_12;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__remove_leq_leaf_3_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 60394 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_12_12  = Bits;
#line 171 "int.opt"
}
#line 1395 "tree_bitset.m"
            mercury__tree_bitset__V_11_11 = (mercury__tree_bitset__Offset_9 + mercury__tree_bitset__V_12_12);
#line 1395 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_11_11 <= mercury__tree_bitset__Index_2);
#line 1397 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1396 "tree_bitset.m"
              {
#line 1396 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 1396 "tree_bitset.m"
                {
#line 1396 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__Tail0_6;

#line 1396 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 1396 "tree_bitset.m"
                }
#line 1396 "tree_bitset.m"
                continue;
#line 1396 "tree_bitset.m"
              }
#line 1397 "tree_bitset.m"
            else
#line 1405 "tree_bitset.m"
              {
#line 1397 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__Offset_9 <= mercury__tree_bitset__Index_2);
#line 1405 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 1399 "tree_bitset.m"
                  {
#line 1399 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__Bits_10;
#line 1399 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_13_13 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 1)));
#line 1399 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_14_14;
#line 1399 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_17_17;
#line 1399 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_18_18 = (mercury__tree_bitset__Index_2 - mercury__tree_bitset__Offset_9);
#line 1398 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 0)));

#line 1399 "tree_bitset.m"
                    mercury__tree_bitset__V_17_17 = (mercury__tree_bitset__V_18_18 + (MR_Integer) 1);
#line 1398 "tree_bitset.m"
                    mercury__tree_bitset__V_14_14 = ((MR_Integer) -1 << mercury__tree_bitset__V_17_17);
#line 1398 "tree_bitset.m"
                    mercury__tree_bitset__Bits_10 = (mercury__tree_bitset__V_13_13 & mercury__tree_bitset__V_14_14);
#line 1400 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_10 == (MR_Integer) 0);
#line 1400 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = !(mercury__tree_bitset__succeeded);
#line 1402 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 1401 "tree_bitset.m"
                      {
#line 1401 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__V_20_20;

#line 547 "tree_bitset.m"
                        {
#line 547 "tree_bitset.m"
                          mercury__tree_bitset__V_20_20 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_20_20, 0) = ((MR_Box) (mercury__tree_bitset__Offset_9));
#line 547 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_20_20, 1) = ((MR_Box) (mercury__tree_bitset__Bits_10));
#line 547 "tree_bitset.m"
                        }
#line 1401 "tree_bitset.m"
                        {
#line 1401 "tree_bitset.m"
                          MR_Word base;
#line 1401 "tree_bitset.m"
                          base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1401 "tree_bitset.m"
                          *mercury__tree_bitset__HeadVar__3_3 = base;
#line 1401 "tree_bitset.m"
                          MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__V_20_20));
#line 1401 "tree_bitset.m"
                          MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail0_6));
#line 1401 "tree_bitset.m"
                        }
#line 1401 "tree_bitset.m"
                      }
#line 1402 "tree_bitset.m"
                    else
#line 1403 "tree_bitset.m"
                      *mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__Tail0_6;
#line 1399 "tree_bitset.m"
                  }
#line 1405 "tree_bitset.m"
                else
#line 1406 "tree_bitset.m"
                  *mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__HeadVar__1_1;
#line 1405 "tree_bitset.m"
              }
#line 1393 "tree_bitset.m"
          }
#line 1392 "tree_bitset.m"
      }
#line 1392 "tree_bitset.m"
      break;
#line 1392 "tree_bitset.m"
    }
#line 1389 "tree_bitset.m"
}

#line 1349 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__remove_leq_interior_3_p_0(
#line 1349 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1349 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_2,
#line 1349 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3)
#line 1349 "tree_bitset.m"
{
#line 1352 "tree_bitset.m"
  while (MR_TRUE)
#line 1352 "tree_bitset.m"
    {
#line 1352 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 1352 "tree_bitset.m"
      {
#line 1352 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 1352 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1352 "tree_bitset.m"
          *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1352 "tree_bitset.m"
        else
#line 1353 "tree_bitset.m"
          {
#line 1353 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Head0_5 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));
#line 1353 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Tail0_6 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 1354 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 1)));
#line 1354 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 0)));
#line 1354 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_34_34 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 2)));

#line 1354 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_21_21 <= mercury__tree_bitset__Index_2);
#line 1356 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1355 "tree_bitset.m"
              {
#line 1355 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 1355 "tree_bitset.m"
                {
#line 1355 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__Tail0_6;

#line 1355 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 1355 "tree_bitset.m"
                }
#line 1355 "tree_bitset.m"
                continue;
#line 1355 "tree_bitset.m"
              }
#line 1356 "tree_bitset.m"
            else
#line 1385 "tree_bitset.m"
              {
#line 1385 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_36_36 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 2)));
#line 1356 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 0)));
#line 1356 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_35_35 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 1)));

#line 1356 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_22_22 <= mercury__tree_bitset__Index_2);
#line 1385 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 1371 "tree_bitset.m"
                  if (((MR_tag((MR_Word) mercury__tree_bitset__V_36_36)) == (MR_mktag((MR_Integer) 1))))
#line 1372 "tree_bitset.m"
                    {
#line 1372 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__Level_16 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_36_36, (MR_Integer) 0)));
#line 1372 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__InteriorNodes0_17 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_36_36, (MR_Integer) 1)));
#line 1372 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__InteriorNodes_18;

#line 1373 "tree_bitset.m"
                      {
#line 1373 "tree_bitset.m"
                        mercury__tree_bitset__remove_leq_interior_3_p_0(mercury__tree_bitset__InteriorNodes0_17, mercury__tree_bitset__Index_2, &mercury__tree_bitset__InteriorNodes_18);
                      }
#line 1377 "tree_bitset.m"
                      if ((mercury__tree_bitset__InteriorNodes_18 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1376 "tree_bitset.m"
                        *mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__Tail0_6;
#line 1377 "tree_bitset.m"
                      else
#line 1378 "tree_bitset.m"
                        {
#line 1378 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__V_23_23;
#line 1378 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__Components_27;
#line 1378 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__Head_28;
#line 1378 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__V_43_43;
#line 1380 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__V_44_44;

#line 1379 "tree_bitset.m"
                          {
#line 1379 "tree_bitset.m"
                            mercury__tree_bitset__Components_27 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1379 "tree_bitset.m"
                            MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_27, 0) = ((MR_Box) (mercury__tree_bitset__Level_16));
#line 1379 "tree_bitset.m"
                            MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_27, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodes_18));
#line 1379 "tree_bitset.m"
                          }
#line 1380 "tree_bitset.m"
                          mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 0)));
#line 1380 "tree_bitset.m"
                          mercury__tree_bitset__V_43_43 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 1)));
#line 1380 "tree_bitset.m"
                          mercury__tree_bitset__V_44_44 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 2)));
#line 1380 "tree_bitset.m"
                          {
#line 1380 "tree_bitset.m"
                            mercury__tree_bitset__Head_28 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 1380 "tree_bitset.m"
                            MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_28, 0) = ((MR_Box) (mercury__tree_bitset__V_23_23));
#line 1380 "tree_bitset.m"
                            MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_28, 1) = ((MR_Box) (mercury__tree_bitset__V_43_43));
#line 1380 "tree_bitset.m"
                            MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_28, 2) = ((MR_Box) (mercury__tree_bitset__Components_27));
#line 1380 "tree_bitset.m"
                          }
#line 1382 "tree_bitset.m"
                          {
#line 1382 "tree_bitset.m"
                            MR_Word base;
#line 1382 "tree_bitset.m"
                            base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1382 "tree_bitset.m"
                            *mercury__tree_bitset__HeadVar__3_3 = base;
#line 1382 "tree_bitset.m"
                            MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head_28));
#line 1382 "tree_bitset.m"
                            MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail0_6));
#line 1382 "tree_bitset.m"
                          }
#line 1378 "tree_bitset.m"
                        }
#line 1372 "tree_bitset.m"
                    }
#line 1371 "tree_bitset.m"
                  else
#line 1359 "tree_bitset.m"
                    {
#line 1359 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__LeafNodes0_10 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_36_36, (MR_Integer) 0)));
#line 1359 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__LeafNodes_11;

#line 1360 "tree_bitset.m"
                      {
#line 1360 "tree_bitset.m"
                        mercury__tree_bitset__remove_leq_leaf_3_p_0(mercury__tree_bitset__LeafNodes0_10, mercury__tree_bitset__Index_2, &mercury__tree_bitset__LeafNodes_11);
                      }
#line 1364 "tree_bitset.m"
                      if ((mercury__tree_bitset__LeafNodes_11 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1363 "tree_bitset.m"
                        *mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__Tail0_6;
#line 1364 "tree_bitset.m"
                      else
#line 1365 "tree_bitset.m"
                        {
#line 1365 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__Components_14;
#line 1365 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__Head_15;
#line 1365 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__V_25_25;
#line 1365 "tree_bitset.m"
                          MR_Integer mercury__tree_bitset__V_39_39;
#line 1367 "tree_bitset.m"
                          MR_Word mercury__tree_bitset__V_40_40;

#line 1366 "tree_bitset.m"
                          {
#line 1366 "tree_bitset.m"
                            mercury__tree_bitset__Components_14 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 1366 "tree_bitset.m"
                            MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_14, 0) = ((MR_Box) (mercury__tree_bitset__LeafNodes_11));
#line 1366 "tree_bitset.m"
                          }
#line 1367 "tree_bitset.m"
                          mercury__tree_bitset__V_25_25 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 0)));
#line 1367 "tree_bitset.m"
                          mercury__tree_bitset__V_39_39 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 1)));
#line 1367 "tree_bitset.m"
                          mercury__tree_bitset__V_40_40 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 2)));
#line 1367 "tree_bitset.m"
                          {
#line 1367 "tree_bitset.m"
                            mercury__tree_bitset__Head_15 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 1367 "tree_bitset.m"
                            MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_15, 0) = ((MR_Box) (mercury__tree_bitset__V_25_25));
#line 1367 "tree_bitset.m"
                            MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_15, 1) = ((MR_Box) (mercury__tree_bitset__V_39_39));
#line 1367 "tree_bitset.m"
                            MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_15, 2) = ((MR_Box) (mercury__tree_bitset__Components_14));
#line 1367 "tree_bitset.m"
                          }
#line 1369 "tree_bitset.m"
                          {
#line 1369 "tree_bitset.m"
                            MR_Word base;
#line 1369 "tree_bitset.m"
                            base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1369 "tree_bitset.m"
                            *mercury__tree_bitset__HeadVar__3_3 = base;
#line 1369 "tree_bitset.m"
                            MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head_15));
#line 1369 "tree_bitset.m"
                            MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail0_6));
#line 1369 "tree_bitset.m"
                          }
#line 1365 "tree_bitset.m"
                        }
#line 1359 "tree_bitset.m"
                    }
#line 1385 "tree_bitset.m"
                else
#line 1386 "tree_bitset.m"
                  *mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__HeadVar__1_1;
#line 1385 "tree_bitset.m"
              }
#line 1353 "tree_bitset.m"
          }
#line 1352 "tree_bitset.m"
      }
#line 1352 "tree_bitset.m"
      break;
#line 1352 "tree_bitset.m"
    }
#line 1349 "tree_bitset.m"
}

#line 1299 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaflist_delete_3_p_0(
#line 1299 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1299 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_2,
#line 1299 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3)
#line 1299 "tree_bitset.m"
{
#line 1302 "tree_bitset.m"
  {
#line 1302 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 1302 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1302 "tree_bitset.m"
      *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1302 "tree_bitset.m"
    else
#line 1303 "tree_bitset.m"
      {
#line 1303 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Head0_5 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));
#line 1303 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Tail0_6 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 1303 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Offset_9 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 0)));
#line 1304 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 1)));
#line 1305 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_12_12;
#line 1305 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_13_13;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaflist_delete_3_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 60813 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_13_13  = Bits;
#line 171 "int.opt"
}
#line 1305 "tree_bitset.m"
        mercury__tree_bitset__V_12_12 = (mercury__tree_bitset__Offset_9 + mercury__tree_bitset__V_13_13);
#line 1305 "tree_bitset.m"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_12_12 <= mercury__tree_bitset__Index_2);
#line 1308 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 1306 "tree_bitset.m"
          {
#line 1306 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Tail_10;

#line 1306 "tree_bitset.m"
            {
#line 1306 "tree_bitset.m"
              mercury__tree_bitset__leaflist_delete_3_p_0(mercury__tree_bitset__Tail0_6, mercury__tree_bitset__Index_2, &mercury__tree_bitset__Tail_10);
            }
#line 1307 "tree_bitset.m"
            {
#line 1307 "tree_bitset.m"
              MR_Word base;
#line 1307 "tree_bitset.m"
              base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1307 "tree_bitset.m"
              *mercury__tree_bitset__HeadVar__3_3 = base;
#line 1307 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head0_5));
#line 1307 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail_10));
#line 1307 "tree_bitset.m"
            }
#line 1306 "tree_bitset.m"
          }
#line 1308 "tree_bitset.m"
        else
#line 1315 "tree_bitset.m"
          {
#line 1308 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Offset_9 <= mercury__tree_bitset__Index_2);
#line 1315 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1309 "tree_bitset.m"
              {
#line 1309 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Bits_11;
#line 1309 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_14_14 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 1)));
#line 1309 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_15_15 = (mercury__tree_bitset__Index_2 - mercury__tree_bitset__Offset_9);
#line 1309 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_22_22;
#line 1309 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) 1 << mercury__tree_bitset__V_15_15);
#line 1309 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_18_18 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 0)));

#line 3637 "tree_bitset.m"
                mercury__tree_bitset__V_22_22 = ~(mercury__tree_bitset__V_23_23);
#line 3637 "tree_bitset.m"
                mercury__tree_bitset__Bits_11 = (mercury__tree_bitset__V_14_14 & mercury__tree_bitset__V_22_22);
#line 1310 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_11 == (MR_Integer) 0);
#line 1310 "tree_bitset.m"
                mercury__tree_bitset__succeeded = !(mercury__tree_bitset__succeeded);
#line 1312 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 1311 "tree_bitset.m"
                  {
#line 1311 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_16_16;

#line 547 "tree_bitset.m"
                    {
#line 547 "tree_bitset.m"
                      mercury__tree_bitset__V_16_16 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
                      MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_16_16, 0) = ((MR_Box) (mercury__tree_bitset__Offset_9));
#line 547 "tree_bitset.m"
                      MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_16_16, 1) = ((MR_Box) (mercury__tree_bitset__Bits_11));
#line 547 "tree_bitset.m"
                    }
#line 1311 "tree_bitset.m"
                    {
#line 1311 "tree_bitset.m"
                      MR_Word base;
#line 1311 "tree_bitset.m"
                      base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1311 "tree_bitset.m"
                      *mercury__tree_bitset__HeadVar__3_3 = base;
#line 1311 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__V_16_16));
#line 1311 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail0_6));
#line 1311 "tree_bitset.m"
                    }
#line 1311 "tree_bitset.m"
                  }
#line 1312 "tree_bitset.m"
                else
#line 1313 "tree_bitset.m"
                  *mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__Tail0_6;
#line 1309 "tree_bitset.m"
              }
#line 1315 "tree_bitset.m"
            else
#line 1316 "tree_bitset.m"
              *mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__HeadVar__1_1;
#line 1315 "tree_bitset.m"
          }
#line 1303 "tree_bitset.m"
      }
#line 1302 "tree_bitset.m"
  }
#line 1299 "tree_bitset.m"
}

#line 1258 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__interiorlist_delete_3_p_0(
#line 1258 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 1258 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_2,
#line 1258 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3)
#line 1258 "tree_bitset.m"
{
#line 1261 "tree_bitset.m"
  {
#line 1261 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 1261 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1261 "tree_bitset.m"
      *mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1261 "tree_bitset.m"
    else
#line 1262 "tree_bitset.m"
      {
#line 1262 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Head0_5 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));
#line 1262 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Tail0_6 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 1263 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_22_22 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 1)));
#line 1263 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 0)));
#line 1263 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_35_35 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 2)));

#line 1263 "tree_bitset.m"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_22_22 <= mercury__tree_bitset__Index_2);
#line 1266 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 1264 "tree_bitset.m"
          {
#line 1264 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Tail_9;

#line 1264 "tree_bitset.m"
            {
#line 1264 "tree_bitset.m"
              mercury__tree_bitset__interiorlist_delete_3_p_0(mercury__tree_bitset__Tail0_6, mercury__tree_bitset__Index_2, &mercury__tree_bitset__Tail_9);
            }
#line 1265 "tree_bitset.m"
            {
#line 1265 "tree_bitset.m"
              MR_Word base;
#line 1265 "tree_bitset.m"
              base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1265 "tree_bitset.m"
              *mercury__tree_bitset__HeadVar__3_3 = base;
#line 1265 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head0_5));
#line 1265 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail_9));
#line 1265 "tree_bitset.m"
            }
#line 1264 "tree_bitset.m"
          }
#line 1266 "tree_bitset.m"
        else
#line 1295 "tree_bitset.m"
          {
#line 1295 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_37_37 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 2)));
#line 1266 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 0)));
#line 1266 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_36_36 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 1)));

#line 1266 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_23_23 <= mercury__tree_bitset__Index_2);
#line 1295 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1281 "tree_bitset.m"
              if (((MR_tag((MR_Word) mercury__tree_bitset__V_37_37)) == (MR_mktag((MR_Integer) 1))))
#line 1282 "tree_bitset.m"
                {
#line 1282 "tree_bitset.m"
                  MR_Integer mercury__tree_bitset__Level_17 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_37_37, (MR_Integer) 0)));
#line 1282 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__InteriorNodes0_18 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_37_37, (MR_Integer) 1)));
#line 1282 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__InteriorNodes_19;

#line 1283 "tree_bitset.m"
                  {
#line 1283 "tree_bitset.m"
                    mercury__tree_bitset__interiorlist_delete_3_p_0(mercury__tree_bitset__InteriorNodes0_18, mercury__tree_bitset__Index_2, &mercury__tree_bitset__InteriorNodes_19);
                  }
#line 1287 "tree_bitset.m"
                  if ((mercury__tree_bitset__InteriorNodes_19 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1286 "tree_bitset.m"
                    *mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__Tail0_6;
#line 1287 "tree_bitset.m"
                  else
#line 1288 "tree_bitset.m"
                    {
#line 1288 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__V_24_24;
#line 1288 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__Components_28;
#line 1288 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__Head_29;
#line 1288 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__V_44_44;
#line 1290 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__V_45_45;

#line 1289 "tree_bitset.m"
                      {
#line 1289 "tree_bitset.m"
                        mercury__tree_bitset__Components_28 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1289 "tree_bitset.m"
                        MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_28, 0) = ((MR_Box) (mercury__tree_bitset__Level_17));
#line 1289 "tree_bitset.m"
                        MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_28, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodes_19));
#line 1289 "tree_bitset.m"
                      }
#line 1290 "tree_bitset.m"
                      mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 0)));
#line 1290 "tree_bitset.m"
                      mercury__tree_bitset__V_44_44 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 1)));
#line 1290 "tree_bitset.m"
                      mercury__tree_bitset__V_45_45 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 2)));
#line 1290 "tree_bitset.m"
                      {
#line 1290 "tree_bitset.m"
                        mercury__tree_bitset__Head_29 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 1290 "tree_bitset.m"
                        MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_29, 0) = ((MR_Box) (mercury__tree_bitset__V_24_24));
#line 1290 "tree_bitset.m"
                        MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_29, 1) = ((MR_Box) (mercury__tree_bitset__V_44_44));
#line 1290 "tree_bitset.m"
                        MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_29, 2) = ((MR_Box) (mercury__tree_bitset__Components_28));
#line 1290 "tree_bitset.m"
                      }
#line 1292 "tree_bitset.m"
                      {
#line 1292 "tree_bitset.m"
                        MR_Word base;
#line 1292 "tree_bitset.m"
                        base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1292 "tree_bitset.m"
                        *mercury__tree_bitset__HeadVar__3_3 = base;
#line 1292 "tree_bitset.m"
                        MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head_29));
#line 1292 "tree_bitset.m"
                        MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail0_6));
#line 1292 "tree_bitset.m"
                      }
#line 1288 "tree_bitset.m"
                    }
#line 1282 "tree_bitset.m"
                }
#line 1281 "tree_bitset.m"
              else
#line 1269 "tree_bitset.m"
                {
#line 1269 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__LeafNodes0_11 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_37_37, (MR_Integer) 0)));
#line 1269 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__LeafNodes_12;

#line 1270 "tree_bitset.m"
                  {
#line 1270 "tree_bitset.m"
                    mercury__tree_bitset__leaflist_delete_3_p_0(mercury__tree_bitset__LeafNodes0_11, mercury__tree_bitset__Index_2, &mercury__tree_bitset__LeafNodes_12);
                  }
#line 1274 "tree_bitset.m"
                  if ((mercury__tree_bitset__LeafNodes_12 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1273 "tree_bitset.m"
                    *mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__Tail0_6;
#line 1274 "tree_bitset.m"
                  else
#line 1275 "tree_bitset.m"
                    {
#line 1275 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__Components_15;
#line 1275 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__Head_16;
#line 1275 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__V_26_26;
#line 1275 "tree_bitset.m"
                      MR_Integer mercury__tree_bitset__V_40_40;
#line 1277 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__V_41_41;

#line 1276 "tree_bitset.m"
                      {
#line 1276 "tree_bitset.m"
                        mercury__tree_bitset__Components_15 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 1276 "tree_bitset.m"
                        MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_15, 0) = ((MR_Box) (mercury__tree_bitset__LeafNodes_12));
#line 1276 "tree_bitset.m"
                      }
#line 1277 "tree_bitset.m"
                      mercury__tree_bitset__V_26_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 0)));
#line 1277 "tree_bitset.m"
                      mercury__tree_bitset__V_40_40 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 1)));
#line 1277 "tree_bitset.m"
                      mercury__tree_bitset__V_41_41 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_5, (MR_Integer) 2)));
#line 1277 "tree_bitset.m"
                      {
#line 1277 "tree_bitset.m"
                        mercury__tree_bitset__Head_16 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 1277 "tree_bitset.m"
                        MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_16, 0) = ((MR_Box) (mercury__tree_bitset__V_26_26));
#line 1277 "tree_bitset.m"
                        MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_16, 1) = ((MR_Box) (mercury__tree_bitset__V_40_40));
#line 1277 "tree_bitset.m"
                        MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_16, 2) = ((MR_Box) (mercury__tree_bitset__Components_15));
#line 1277 "tree_bitset.m"
                      }
#line 1279 "tree_bitset.m"
                      {
#line 1279 "tree_bitset.m"
                        MR_Word base;
#line 1279 "tree_bitset.m"
                        base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1279 "tree_bitset.m"
                        *mercury__tree_bitset__HeadVar__3_3 = base;
#line 1279 "tree_bitset.m"
                        MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head_16));
#line 1279 "tree_bitset.m"
                        MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail0_6));
#line 1279 "tree_bitset.m"
                      }
#line 1275 "tree_bitset.m"
                    }
#line 1269 "tree_bitset.m"
                }
#line 1295 "tree_bitset.m"
            else
#line 1296 "tree_bitset.m"
              *mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__HeadVar__1_1;
#line 1295 "tree_bitset.m"
          }
#line 1262 "tree_bitset.m"
      }
#line 1261 "tree_bitset.m"
  }
#line 1258 "tree_bitset.m"
}

#line 1197 "tree_bitset.m"
static MR_bool MR_CALL 
mercury__tree_bitset__interiorlist_insert_new_4_p_0(
#line 1197 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_1,
#line 1197 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Level_2,
#line 1197 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__3_3,
#line 1197 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__Nodes_4)
#line 1197 "tree_bitset.m"
{
#line 1200 "tree_bitset.m"
  {
#line 1200 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 1200 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__3_3 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1200 "tree_bitset.m"
      {
#line 1200 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Offset_8;
#line 1200 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Bits_9;
#line 1200 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Node_10;
#line 1200 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_11_11;
#line 1200 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_12_12;
#line 1200 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__BitToSet_62;
#line 1200 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Trunc_5_66;
#line 1200 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Floor0_6_67;
#line 1200 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_72_72;
#line 1200 "tree_bitset.m"
        MR_Word mercury__tree_bitset__ParentNode_79;
#line 1200 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_80_80;
#line 1200 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__ParentInitOffset_85;
#line 1200 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__ParentLimitOffset_86;
#line 1200 "tree_bitset.m"
        MR_Word mercury__tree_bitset__NodeList_87;
#line 1200 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_90_90;

#line 282 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__interiorlist_insert_new_4_p_0

	MR_Integer Int;
	MR_Integer Div;

	Int =  mercury__tree_bitset__Index_1 ;
		{
#line 282 "int.opt"

    Div = Int / ML_BITS_PER_INT;

#line 61252 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Trunc_5_66  = Div;
#line 282 "int.opt"
}
#line 285 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__interiorlist_insert_new_4_p_0

	MR_Integer Int;
	MR_Integer Result;

	Int =  mercury__tree_bitset__Trunc_5_66 ;
		{
#line 285 "int.opt"

    Result = Int * ML_BITS_PER_INT;

#line 61272 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Floor0_6_67  = Result;
#line 285 "int.opt"
}
#line 275 "int.opt"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__Floor0_6_67 > mercury__tree_bitset__Index_1);
#line 279 "int.opt"
        if (mercury__tree_bitset__succeeded)
#line 277 "int.opt"
          {
#line 277 "int.opt"
            MR_Integer mercury__tree_bitset__V_7_68;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__interiorlist_insert_new_4_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 61299 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_7_68  = Bits;
#line 171 "int.opt"
}
#line 277 "int.opt"
            mercury__tree_bitset__Offset_8 = (mercury__tree_bitset__Floor0_6_67 - mercury__tree_bitset__V_7_68);
#line 277 "int.opt"
          }
#line 279 "int.opt"
        else
#line 280 "int.opt"
          mercury__tree_bitset__Offset_8 = mercury__tree_bitset__Floor0_6_67;
#line 3621 "tree_bitset.m"
        mercury__tree_bitset__BitToSet_62 = (mercury__tree_bitset__Index_1 - mercury__tree_bitset__Offset_8);
#line 3632 "tree_bitset.m"
        mercury__tree_bitset__V_72_72 = ((MR_Integer) 1 << mercury__tree_bitset__BitToSet_62);
#line 3632 "tree_bitset.m"
        mercury__tree_bitset__Bits_9 = ((MR_Integer) 0 | mercury__tree_bitset__V_72_72);
#line 547 "tree_bitset.m"
        {
#line 547 "tree_bitset.m"
          mercury__tree_bitset__V_11_11 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_11_11, 0) = ((MR_Box) (mercury__tree_bitset__Offset_8));
#line 547 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_11_11, 1) = ((MR_Box) (mercury__tree_bitset__Bits_9));
#line 547 "tree_bitset.m"
        }
#line 804 "tree_bitset.m"
        mercury__tree_bitset__V_80_80 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 794 "tree_bitset.m"
        {
#line 794 "tree_bitset.m"
          mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__Offset_8, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffset_85, &mercury__tree_bitset__ParentLimitOffset_86);
        }
#line 796 "tree_bitset.m"
        {
#line 796 "tree_bitset.m"
          mercury__tree_bitset__V_90_90 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 796 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_90_90, 0) = ((MR_Box) (mercury__tree_bitset__V_11_11));
#line 796 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_90_90, 1) = ((MR_Box) (mercury__tree_bitset__V_80_80));
#line 796 "tree_bitset.m"
        }
#line 796 "tree_bitset.m"
        {
#line 796 "tree_bitset.m"
          mercury__tree_bitset__NodeList_87 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 796 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__NodeList_87, 0) = ((MR_Box) (mercury__tree_bitset__V_90_90));
#line 796 "tree_bitset.m"
        }
#line 797 "tree_bitset.m"
        {
#line 797 "tree_bitset.m"
          mercury__tree_bitset__ParentNode_79 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 797 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_79, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffset_85));
#line 797 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_79, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffset_86));
#line 797 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_79, 2) = ((MR_Box) (mercury__tree_bitset__NodeList_87));
#line 797 "tree_bitset.m"
        }
#line 805 "tree_bitset.m"
        {
#line 805 "tree_bitset.m"
          mercury__tree_bitset__raise_one_interior_to_level_4_p_0(mercury__tree_bitset__Level_2, (MR_Integer) 1, mercury__tree_bitset__ParentNode_79, &mercury__tree_bitset__Node_10);
        }
#line 1203 "tree_bitset.m"
        mercury__tree_bitset__V_12_12 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1203 "tree_bitset.m"
        {
#line 1203 "tree_bitset.m"
          MR_Word base;
#line 1203 "tree_bitset.m"
          base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1203 "tree_bitset.m"
          *mercury__tree_bitset__Nodes_4 = base;
#line 1203 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Node_10));
#line 1203 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__V_12_12));
#line 1203 "tree_bitset.m"
        }
#line 1200 "tree_bitset.m"
        mercury__tree_bitset__succeeded = MR_TRUE;
#line 1200 "tree_bitset.m"
      }
#line 1200 "tree_bitset.m"
    else
#line 1204 "tree_bitset.m"
      {
#line 1204 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Head0_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__3_3, (MR_Integer) 0)));
#line 1204 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Tail0_17 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__3_3, (MR_Integer) 1)));
#line 1204 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Offset0_19 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_16, (MR_Integer) 0)));
#line 1205 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_46_46 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_16, (MR_Integer) 1)));
#line 1205 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_47_47 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_16, (MR_Integer) 2)));

#line 1206 "tree_bitset.m"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__Index_1 < mercury__tree_bitset__Offset0_19);
#line 1210 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 1207 "tree_bitset.m"
          {
#line 1207 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Offset_20;
#line 1207 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Bits_21;
#line 1207 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Node_22;
#line 1207 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_32_32;
#line 1207 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__BitToSet_95;
#line 1207 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Trunc_5_99;
#line 1207 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Floor0_6_100;
#line 1207 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_105_105;
#line 1207 "tree_bitset.m"
            MR_Word mercury__tree_bitset__ParentNode_112;
#line 1207 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_113_113;
#line 1207 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentInitOffset_118;
#line 1207 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentLimitOffset_119;
#line 1207 "tree_bitset.m"
            MR_Word mercury__tree_bitset__NodeList_120;
#line 1207 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_123_123;

#line 282 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__interiorlist_insert_new_4_p_0

	MR_Integer Int;
	MR_Integer Div;

	Int =  mercury__tree_bitset__Index_1 ;
		{
#line 282 "int.opt"

    Div = Int / ML_BITS_PER_INT;

#line 61455 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Trunc_5_99  = Div;
#line 282 "int.opt"
}
#line 285 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__interiorlist_insert_new_4_p_0

	MR_Integer Int;
	MR_Integer Result;

	Int =  mercury__tree_bitset__Trunc_5_99 ;
		{
#line 285 "int.opt"

    Result = Int * ML_BITS_PER_INT;

#line 61475 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Floor0_6_100  = Result;
#line 285 "int.opt"
}
#line 275 "int.opt"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Floor0_6_100 > mercury__tree_bitset__Index_1);
#line 279 "int.opt"
            if (mercury__tree_bitset__succeeded)
#line 277 "int.opt"
              {
#line 277 "int.opt"
                MR_Integer mercury__tree_bitset__V_7_101;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__interiorlist_insert_new_4_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 61502 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_7_101  = Bits;
#line 171 "int.opt"
}
#line 277 "int.opt"
                mercury__tree_bitset__Offset_20 = (mercury__tree_bitset__Floor0_6_100 - mercury__tree_bitset__V_7_101);
#line 277 "int.opt"
              }
#line 279 "int.opt"
            else
#line 280 "int.opt"
              mercury__tree_bitset__Offset_20 = mercury__tree_bitset__Floor0_6_100;
#line 3621 "tree_bitset.m"
            mercury__tree_bitset__BitToSet_95 = (mercury__tree_bitset__Index_1 - mercury__tree_bitset__Offset_20);
#line 3632 "tree_bitset.m"
            mercury__tree_bitset__V_105_105 = ((MR_Integer) 1 << mercury__tree_bitset__BitToSet_95);
#line 3632 "tree_bitset.m"
            mercury__tree_bitset__Bits_21 = ((MR_Integer) 0 | mercury__tree_bitset__V_105_105);
#line 547 "tree_bitset.m"
            {
#line 547 "tree_bitset.m"
              mercury__tree_bitset__V_32_32 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_32_32, 0) = ((MR_Box) (mercury__tree_bitset__Offset_20));
#line 547 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_32_32, 1) = ((MR_Box) (mercury__tree_bitset__Bits_21));
#line 547 "tree_bitset.m"
            }
#line 804 "tree_bitset.m"
            mercury__tree_bitset__V_113_113 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 794 "tree_bitset.m"
            {
#line 794 "tree_bitset.m"
              mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__Offset_20, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffset_118, &mercury__tree_bitset__ParentLimitOffset_119);
            }
#line 796 "tree_bitset.m"
            {
#line 796 "tree_bitset.m"
              mercury__tree_bitset__V_123_123 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 796 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_123_123, 0) = ((MR_Box) (mercury__tree_bitset__V_32_32));
#line 796 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_123_123, 1) = ((MR_Box) (mercury__tree_bitset__V_113_113));
#line 796 "tree_bitset.m"
            }
#line 796 "tree_bitset.m"
            {
#line 796 "tree_bitset.m"
              mercury__tree_bitset__NodeList_120 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 796 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__NodeList_120, 0) = ((MR_Box) (mercury__tree_bitset__V_123_123));
#line 796 "tree_bitset.m"
            }
#line 797 "tree_bitset.m"
            {
#line 797 "tree_bitset.m"
              mercury__tree_bitset__ParentNode_112 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 797 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_112, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffset_118));
#line 797 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_112, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffset_119));
#line 797 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_112, 2) = ((MR_Box) (mercury__tree_bitset__NodeList_120));
#line 797 "tree_bitset.m"
            }
#line 805 "tree_bitset.m"
            {
#line 805 "tree_bitset.m"
              mercury__tree_bitset__raise_one_interior_to_level_4_p_0(mercury__tree_bitset__Level_2, (MR_Integer) 1, mercury__tree_bitset__ParentNode_112, &mercury__tree_bitset__Node_22);
            }
#line 1209 "tree_bitset.m"
            {
#line 1209 "tree_bitset.m"
              MR_Word base;
#line 1209 "tree_bitset.m"
              base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1209 "tree_bitset.m"
              *mercury__tree_bitset__Nodes_4 = base;
#line 1209 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Node_22));
#line 1209 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__HeadVar__3_3));
#line 1209 "tree_bitset.m"
            }
#line 1207 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 1207 "tree_bitset.m"
          }
#line 1210 "tree_bitset.m"
        else
#line 1232 "tree_bitset.m"
          {
#line 1232 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_16, (MR_Integer) 0)));
#line 1232 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_48_48 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_16, (MR_Integer) 1)));
#line 1232 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_49_49 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_16, (MR_Integer) 2)));

#line 1210 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_33_33 <= mercury__tree_bitset__Index_1);
#line 1210 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1210 "tree_bitset.m"
              mercury__tree_bitset__succeeded = (mercury__tree_bitset__Index_1 < mercury__tree_bitset__V_48_48);
#line 1232 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1211 "tree_bitset.m"
              {
#line 1211 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Components_26;
#line 1211 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Head_30;

#line 1220 "tree_bitset.m"
                if (((MR_tag((MR_Word) mercury__tree_bitset__V_49_49)) == (MR_mktag((MR_Integer) 1))))
#line 1221 "tree_bitset.m"
                  {
#line 1221 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__InteriorLevel_27 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_49_49, (MR_Integer) 0)));
#line 1221 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__InteriorList0_28 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_49_49, (MR_Integer) 1)));
#line 1221 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__InteriorList_29;
#line 1223 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_39_39 = (mercury__tree_bitset__Level_2 - (MR_Integer) 1);

#line 1223 "tree_bitset.m"
                    {
#line 1223 "tree_bitset.m"
                      mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_52_53_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__InteriorLevel_27, mercury__tree_bitset__V_39_39, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.interiorlist_insert_new\'/4", (MR_String) "bad component list (interior)");
                    }
#line 1226 "tree_bitset.m"
                    {
#line 1226 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__interiorlist_insert_new_4_p_0(mercury__tree_bitset__Index_1, mercury__tree_bitset__InteriorLevel_27, mercury__tree_bitset__InteriorList0_28, &mercury__tree_bitset__InteriorList_29);
                    }
#line 1221 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 1221 "tree_bitset.m"
                      {
#line 1228 "tree_bitset.m"
                        {
#line 1228 "tree_bitset.m"
                          mercury__tree_bitset__Components_26 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1228 "tree_bitset.m"
                          MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_26, 0) = ((MR_Box) (mercury__tree_bitset__InteriorLevel_27));
#line 1228 "tree_bitset.m"
                          MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_26, 1) = ((MR_Box) (mercury__tree_bitset__InteriorList_29));
#line 1228 "tree_bitset.m"
                        }
#line 1228 "tree_bitset.m"
                        mercury__tree_bitset__succeeded = MR_TRUE;
#line 1221 "tree_bitset.m"
                      }
#line 1221 "tree_bitset.m"
                  }
#line 1220 "tree_bitset.m"
                else
#line 1213 "tree_bitset.m"
                  {
#line 1213 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__LeafList0_24 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_49_49, (MR_Integer) 0)));
#line 1213 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__LeafList_25;

#line 1215 "tree_bitset.m"
                    {
#line 1215 "tree_bitset.m"
                      mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_52_52_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__Level_2, (MR_Integer) 1, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.interiorlist_insert_new\'/4", (MR_String) "bad component list (leaf)");
                    }
#line 1218 "tree_bitset.m"
                    {
#line 1218 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = mercury__tree_bitset__leaflist_insert_new_3_p_0(mercury__tree_bitset__Index_1, mercury__tree_bitset__LeafList0_24, &mercury__tree_bitset__LeafList_25);
                    }
#line 1213 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 1213 "tree_bitset.m"
                      {
#line 1219 "tree_bitset.m"
                        {
#line 1219 "tree_bitset.m"
                          mercury__tree_bitset__Components_26 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 1219 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_26, 0) = ((MR_Box) (mercury__tree_bitset__LeafList_25));
#line 1219 "tree_bitset.m"
                        }
#line 1219 "tree_bitset.m"
                        mercury__tree_bitset__succeeded = MR_TRUE;
#line 1213 "tree_bitset.m"
                      }
#line 1213 "tree_bitset.m"
                  }
#line 1211 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 1211 "tree_bitset.m"
                  {
#line 1230 "tree_bitset.m"
                    {
#line 1230 "tree_bitset.m"
                      mercury__tree_bitset__Head_30 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 1230 "tree_bitset.m"
                      MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_30, 0) = ((MR_Box) (mercury__tree_bitset__V_33_33));
#line 1230 "tree_bitset.m"
                      MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_30, 1) = ((MR_Box) (mercury__tree_bitset__V_48_48));
#line 1230 "tree_bitset.m"
                      MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_30, 2) = ((MR_Box) (mercury__tree_bitset__Components_26));
#line 1230 "tree_bitset.m"
                    }
#line 1231 "tree_bitset.m"
                    {
#line 1231 "tree_bitset.m"
                      MR_Word base;
#line 1231 "tree_bitset.m"
                      base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1231 "tree_bitset.m"
                      *mercury__tree_bitset__Nodes_4 = base;
#line 1231 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head_30));
#line 1231 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail0_17));
#line 1231 "tree_bitset.m"
                    }
#line 1231 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 1211 "tree_bitset.m"
                  }
#line 1211 "tree_bitset.m"
              }
#line 1232 "tree_bitset.m"
            else
#line 1233 "tree_bitset.m"
              {
#line 1233 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Tail_31;

#line 1233 "tree_bitset.m"
                {
#line 1233 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__interiorlist_insert_new_4_p_0(mercury__tree_bitset__Index_1, mercury__tree_bitset__Level_2, mercury__tree_bitset__Tail0_17, &mercury__tree_bitset__Tail_31);
                }
#line 1233 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 1233 "tree_bitset.m"
                  {
#line 1234 "tree_bitset.m"
                    {
#line 1234 "tree_bitset.m"
                      MR_Word base;
#line 1234 "tree_bitset.m"
                      base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1234 "tree_bitset.m"
                      *mercury__tree_bitset__Nodes_4 = base;
#line 1234 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head0_16));
#line 1234 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail_31));
#line 1234 "tree_bitset.m"
                    }
#line 1234 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 1233 "tree_bitset.m"
                  }
#line 1233 "tree_bitset.m"
              }
#line 1232 "tree_bitset.m"
          }
#line 1204 "tree_bitset.m"
      }
#line 1200 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 1200 "tree_bitset.m"
  }
#line 1197 "tree_bitset.m"
}

#line 1173 "tree_bitset.m"
static MR_bool MR_CALL 
mercury__tree_bitset__leaflist_insert_new_3_p_0(
#line 1173 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_1,
#line 1173 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 1173 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__Leaves_3)
#line 1173 "tree_bitset.m"
{
#line 1176 "tree_bitset.m"
  {
#line 1176 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 1176 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1176 "tree_bitset.m"
      {
#line 1176 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Offset_6;
#line 1176 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Bits_7;
#line 1176 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_8_8;
#line 1176 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_9_9;
#line 1176 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__BitToSet_34;
#line 1176 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Trunc_5_38;
#line 1176 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Floor0_6_39;
#line 1176 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_44_44;

#line 282 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaflist_insert_new_3_p_0

	MR_Integer Int;
	MR_Integer Div;

	Int =  mercury__tree_bitset__Index_1 ;
		{
#line 282 "int.opt"

    Div = Int / ML_BITS_PER_INT;

#line 61832 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Trunc_5_38  = Div;
#line 282 "int.opt"
}
#line 285 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaflist_insert_new_3_p_0

	MR_Integer Int;
	MR_Integer Result;

	Int =  mercury__tree_bitset__Trunc_5_38 ;
		{
#line 285 "int.opt"

    Result = Int * ML_BITS_PER_INT;

#line 61852 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Floor0_6_39  = Result;
#line 285 "int.opt"
}
#line 275 "int.opt"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__Floor0_6_39 > mercury__tree_bitset__Index_1);
#line 279 "int.opt"
        if (mercury__tree_bitset__succeeded)
#line 277 "int.opt"
          {
#line 277 "int.opt"
            MR_Integer mercury__tree_bitset__V_7_40;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaflist_insert_new_3_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 61879 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_7_40  = Bits;
#line 171 "int.opt"
}
#line 277 "int.opt"
            mercury__tree_bitset__Offset_6 = (mercury__tree_bitset__Floor0_6_39 - mercury__tree_bitset__V_7_40);
#line 277 "int.opt"
          }
#line 279 "int.opt"
        else
#line 280 "int.opt"
          mercury__tree_bitset__Offset_6 = mercury__tree_bitset__Floor0_6_39;
#line 3621 "tree_bitset.m"
        mercury__tree_bitset__BitToSet_34 = (mercury__tree_bitset__Index_1 - mercury__tree_bitset__Offset_6);
#line 3632 "tree_bitset.m"
        mercury__tree_bitset__V_44_44 = ((MR_Integer) 1 << mercury__tree_bitset__BitToSet_34);
#line 3632 "tree_bitset.m"
        mercury__tree_bitset__Bits_7 = ((MR_Integer) 0 | mercury__tree_bitset__V_44_44);
#line 547 "tree_bitset.m"
        {
#line 547 "tree_bitset.m"
          mercury__tree_bitset__V_8_8 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_8_8, 0) = ((MR_Box) (mercury__tree_bitset__Offset_6));
#line 547 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_8_8, 1) = ((MR_Box) (mercury__tree_bitset__Bits_7));
#line 547 "tree_bitset.m"
        }
#line 1178 "tree_bitset.m"
        mercury__tree_bitset__V_9_9 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1178 "tree_bitset.m"
        {
#line 1178 "tree_bitset.m"
          MR_Word base;
#line 1178 "tree_bitset.m"
          base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1178 "tree_bitset.m"
          *mercury__tree_bitset__Leaves_3 = base;
#line 1178 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__V_8_8));
#line 1178 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__V_9_9));
#line 1178 "tree_bitset.m"
        }
#line 1176 "tree_bitset.m"
        mercury__tree_bitset__succeeded = MR_TRUE;
#line 1176 "tree_bitset.m"
      }
#line 1176 "tree_bitset.m"
    else
#line 1179 "tree_bitset.m"
      {
#line 1179 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Head0_12 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 1179 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Tail0_13 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 1179 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Offset0_15 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_12, (MR_Integer) 0)));
#line 1180 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_29_29 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_12, (MR_Integer) 1)));

#line 1181 "tree_bitset.m"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__Index_1 < mercury__tree_bitset__Offset0_15);
#line 1184 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 1182 "tree_bitset.m"
          {
#line 1182 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Offset_16;
#line 1182 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Bits_17;
#line 1182 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_21_21;
#line 1182 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__BitToSet_51;
#line 1182 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Trunc_5_55;
#line 1182 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Floor0_6_56;
#line 1182 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_61_61;

#line 282 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaflist_insert_new_3_p_0

	MR_Integer Int;
	MR_Integer Div;

	Int =  mercury__tree_bitset__Index_1 ;
		{
#line 282 "int.opt"

    Div = Int / ML_BITS_PER_INT;

#line 61977 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Trunc_5_55  = Div;
#line 282 "int.opt"
}
#line 285 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaflist_insert_new_3_p_0

	MR_Integer Int;
	MR_Integer Result;

	Int =  mercury__tree_bitset__Trunc_5_55 ;
		{
#line 285 "int.opt"

    Result = Int * ML_BITS_PER_INT;

#line 61997 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Floor0_6_56  = Result;
#line 285 "int.opt"
}
#line 275 "int.opt"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Floor0_6_56 > mercury__tree_bitset__Index_1);
#line 279 "int.opt"
            if (mercury__tree_bitset__succeeded)
#line 277 "int.opt"
              {
#line 277 "int.opt"
                MR_Integer mercury__tree_bitset__V_7_57;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaflist_insert_new_3_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 62024 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_7_57  = Bits;
#line 171 "int.opt"
}
#line 277 "int.opt"
                mercury__tree_bitset__Offset_16 = (mercury__tree_bitset__Floor0_6_56 - mercury__tree_bitset__V_7_57);
#line 277 "int.opt"
              }
#line 279 "int.opt"
            else
#line 280 "int.opt"
              mercury__tree_bitset__Offset_16 = mercury__tree_bitset__Floor0_6_56;
#line 3621 "tree_bitset.m"
            mercury__tree_bitset__BitToSet_51 = (mercury__tree_bitset__Index_1 - mercury__tree_bitset__Offset_16);
#line 3632 "tree_bitset.m"
            mercury__tree_bitset__V_61_61 = ((MR_Integer) 1 << mercury__tree_bitset__BitToSet_51);
#line 3632 "tree_bitset.m"
            mercury__tree_bitset__Bits_17 = ((MR_Integer) 0 | mercury__tree_bitset__V_61_61);
#line 547 "tree_bitset.m"
            {
#line 547 "tree_bitset.m"
              mercury__tree_bitset__V_21_21 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_21_21, 0) = ((MR_Box) (mercury__tree_bitset__Offset_16));
#line 547 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_21_21, 1) = ((MR_Box) (mercury__tree_bitset__Bits_17));
#line 547 "tree_bitset.m"
            }
#line 1183 "tree_bitset.m"
            {
#line 1183 "tree_bitset.m"
              MR_Word base;
#line 1183 "tree_bitset.m"
              base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1183 "tree_bitset.m"
              *mercury__tree_bitset__Leaves_3 = base;
#line 1183 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__V_21_21));
#line 1183 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__HeadVar__2_2));
#line 1183 "tree_bitset.m"
            }
#line 1182 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 1182 "tree_bitset.m"
          }
#line 1184 "tree_bitset.m"
        else
#line 1192 "tree_bitset.m"
          {
#line 1192 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__BitToSet_18 = (mercury__tree_bitset__Index_1 - mercury__tree_bitset__Offset0_15);
#line 1184 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaflist_insert_new_3_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 62093 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_22_22  = Bits;
#line 171 "int.opt"
}
#line 1184 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__BitToSet_18 < mercury__tree_bitset__V_22_22);
#line 1192 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1185 "tree_bitset.m"
              {
#line 1185 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Bits0_19 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_12, (MR_Integer) 1)));
#line 1185 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_30_30 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_12, (MR_Integer) 0)));
#line 1186 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 1186 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_68_68 = ((MR_Integer) 1 << mercury__tree_bitset__BitToSet_18);

#line 3627 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits0_19 & mercury__tree_bitset__V_68_68);
#line 1186 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_23_23 == (MR_Integer) 0);
#line 1186 "tree_bitset.m"
                mercury__tree_bitset__succeeded = !(mercury__tree_bitset__succeeded);
#line 1188 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 1187 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = MR_FALSE;
#line 1188 "tree_bitset.m"
                else
#line 1189 "tree_bitset.m"
                  {
#line 1189 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_24_24;
#line 1189 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__Bits_25;
#line 1189 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_72_72 = ((MR_Integer) 1 << mercury__tree_bitset__BitToSet_18);

#line 3632 "tree_bitset.m"
                    mercury__tree_bitset__Bits_25 = (mercury__tree_bitset__Bits0_19 | mercury__tree_bitset__V_72_72);
#line 547 "tree_bitset.m"
                    {
#line 547 "tree_bitset.m"
                      mercury__tree_bitset__V_24_24 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
                      MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_24_24, 0) = ((MR_Box) (mercury__tree_bitset__Offset0_15));
#line 547 "tree_bitset.m"
                      MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_24_24, 1) = ((MR_Box) (mercury__tree_bitset__Bits_25));
#line 547 "tree_bitset.m"
                    }
#line 1190 "tree_bitset.m"
                    {
#line 1190 "tree_bitset.m"
                      MR_Word base;
#line 1190 "tree_bitset.m"
                      base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1190 "tree_bitset.m"
                      *mercury__tree_bitset__Leaves_3 = base;
#line 1190 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__V_24_24));
#line 1190 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail0_13));
#line 1190 "tree_bitset.m"
                    }
#line 1189 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 1189 "tree_bitset.m"
                  }
#line 1185 "tree_bitset.m"
              }
#line 1192 "tree_bitset.m"
            else
#line 1193 "tree_bitset.m"
              {
#line 1193 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Tail_20;

#line 1193 "tree_bitset.m"
                {
#line 1193 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__leaflist_insert_new_3_p_0(mercury__tree_bitset__Index_1, mercury__tree_bitset__Tail0_13, &mercury__tree_bitset__Tail_20);
                }
#line 1193 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 1193 "tree_bitset.m"
                  {
#line 1194 "tree_bitset.m"
                    {
#line 1194 "tree_bitset.m"
                      MR_Word base;
#line 1194 "tree_bitset.m"
                      base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1194 "tree_bitset.m"
                      *mercury__tree_bitset__Leaves_3 = base;
#line 1194 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head0_12));
#line 1194 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail_20));
#line 1194 "tree_bitset.m"
                    }
#line 1194 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 1193 "tree_bitset.m"
                  }
#line 1193 "tree_bitset.m"
              }
#line 1192 "tree_bitset.m"
          }
#line 1179 "tree_bitset.m"
      }
#line 1176 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 1176 "tree_bitset.m"
  }
#line 1173 "tree_bitset.m"
}

#line 1071 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__interiorlist_insert_4_p_0(
#line 1071 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_1,
#line 1071 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Level_2,
#line 1071 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__3_3,
#line 1071 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__Nodes_4)
#line 1071 "tree_bitset.m"
{
#line 1074 "tree_bitset.m"
  {
#line 1074 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 1074 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__3_3 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1074 "tree_bitset.m"
      {
#line 1074 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Offset_8;
#line 1074 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Bits_9;
#line 1074 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Node_10;
#line 1074 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_11_11;
#line 1074 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_12_12;
#line 1074 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__BitToSet_62;
#line 1074 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Trunc_5_66;
#line 1074 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Floor0_6_67;
#line 1074 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_72_72;
#line 1074 "tree_bitset.m"
        MR_Word mercury__tree_bitset__ParentNode_79;
#line 1074 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_80_80;
#line 1074 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__ParentInitOffset_85;
#line 1074 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__ParentLimitOffset_86;
#line 1074 "tree_bitset.m"
        MR_Word mercury__tree_bitset__NodeList_87;
#line 1074 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_90_90;

#line 282 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__interiorlist_insert_4_p_0

	MR_Integer Int;
	MR_Integer Div;

	Int =  mercury__tree_bitset__Index_1 ;
		{
#line 282 "int.opt"

    Div = Int / ML_BITS_PER_INT;

#line 62281 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Trunc_5_66  = Div;
#line 282 "int.opt"
}
#line 285 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__interiorlist_insert_4_p_0

	MR_Integer Int;
	MR_Integer Result;

	Int =  mercury__tree_bitset__Trunc_5_66 ;
		{
#line 285 "int.opt"

    Result = Int * ML_BITS_PER_INT;

#line 62301 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Floor0_6_67  = Result;
#line 285 "int.opt"
}
#line 275 "int.opt"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__Floor0_6_67 > mercury__tree_bitset__Index_1);
#line 279 "int.opt"
        if (mercury__tree_bitset__succeeded)
#line 277 "int.opt"
          {
#line 277 "int.opt"
            MR_Integer mercury__tree_bitset__V_7_68;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__interiorlist_insert_4_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 62328 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_7_68  = Bits;
#line 171 "int.opt"
}
#line 277 "int.opt"
            mercury__tree_bitset__Offset_8 = (mercury__tree_bitset__Floor0_6_67 - mercury__tree_bitset__V_7_68);
#line 277 "int.opt"
          }
#line 279 "int.opt"
        else
#line 280 "int.opt"
          mercury__tree_bitset__Offset_8 = mercury__tree_bitset__Floor0_6_67;
#line 3621 "tree_bitset.m"
        mercury__tree_bitset__BitToSet_62 = (mercury__tree_bitset__Index_1 - mercury__tree_bitset__Offset_8);
#line 3632 "tree_bitset.m"
        mercury__tree_bitset__V_72_72 = ((MR_Integer) 1 << mercury__tree_bitset__BitToSet_62);
#line 3632 "tree_bitset.m"
        mercury__tree_bitset__Bits_9 = ((MR_Integer) 0 | mercury__tree_bitset__V_72_72);
#line 547 "tree_bitset.m"
        {
#line 547 "tree_bitset.m"
          mercury__tree_bitset__V_11_11 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_11_11, 0) = ((MR_Box) (mercury__tree_bitset__Offset_8));
#line 547 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_11_11, 1) = ((MR_Box) (mercury__tree_bitset__Bits_9));
#line 547 "tree_bitset.m"
        }
#line 804 "tree_bitset.m"
        mercury__tree_bitset__V_80_80 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 794 "tree_bitset.m"
        {
#line 794 "tree_bitset.m"
          mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__Offset_8, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffset_85, &mercury__tree_bitset__ParentLimitOffset_86);
        }
#line 796 "tree_bitset.m"
        {
#line 796 "tree_bitset.m"
          mercury__tree_bitset__V_90_90 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 796 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_90_90, 0) = ((MR_Box) (mercury__tree_bitset__V_11_11));
#line 796 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_90_90, 1) = ((MR_Box) (mercury__tree_bitset__V_80_80));
#line 796 "tree_bitset.m"
        }
#line 796 "tree_bitset.m"
        {
#line 796 "tree_bitset.m"
          mercury__tree_bitset__NodeList_87 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 796 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__NodeList_87, 0) = ((MR_Box) (mercury__tree_bitset__V_90_90));
#line 796 "tree_bitset.m"
        }
#line 797 "tree_bitset.m"
        {
#line 797 "tree_bitset.m"
          mercury__tree_bitset__ParentNode_79 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 797 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_79, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffset_85));
#line 797 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_79, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffset_86));
#line 797 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_79, 2) = ((MR_Box) (mercury__tree_bitset__NodeList_87));
#line 797 "tree_bitset.m"
        }
#line 805 "tree_bitset.m"
        {
#line 805 "tree_bitset.m"
          mercury__tree_bitset__raise_one_interior_to_level_4_p_0(mercury__tree_bitset__Level_2, (MR_Integer) 1, mercury__tree_bitset__ParentNode_79, &mercury__tree_bitset__Node_10);
        }
#line 1077 "tree_bitset.m"
        mercury__tree_bitset__V_12_12 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1077 "tree_bitset.m"
        {
#line 1077 "tree_bitset.m"
          MR_Word base;
#line 1077 "tree_bitset.m"
          base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1077 "tree_bitset.m"
          *mercury__tree_bitset__Nodes_4 = base;
#line 1077 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Node_10));
#line 1077 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__V_12_12));
#line 1077 "tree_bitset.m"
        }
#line 1074 "tree_bitset.m"
      }
#line 1074 "tree_bitset.m"
    else
#line 1078 "tree_bitset.m"
      {
#line 1078 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Head0_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__3_3, (MR_Integer) 0)));
#line 1078 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Tail0_17 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__3_3, (MR_Integer) 1)));
#line 1078 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Offset0_19 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_16, (MR_Integer) 0)));
#line 1079 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_46_46 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_16, (MR_Integer) 1)));
#line 1079 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_47_47 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_16, (MR_Integer) 2)));

#line 1080 "tree_bitset.m"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__Index_1 < mercury__tree_bitset__Offset0_19);
#line 1084 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 1081 "tree_bitset.m"
          {
#line 1081 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Offset_20;
#line 1081 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Bits_21;
#line 1081 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Node_22;
#line 1081 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_32_32;
#line 1081 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__BitToSet_95;
#line 1081 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Trunc_5_99;
#line 1081 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Floor0_6_100;
#line 1081 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_105_105;
#line 1081 "tree_bitset.m"
            MR_Word mercury__tree_bitset__ParentNode_112;
#line 1081 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_113_113;
#line 1081 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentInitOffset_118;
#line 1081 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentLimitOffset_119;
#line 1081 "tree_bitset.m"
            MR_Word mercury__tree_bitset__NodeList_120;
#line 1081 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_123_123;

#line 282 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__interiorlist_insert_4_p_0

	MR_Integer Int;
	MR_Integer Div;

	Int =  mercury__tree_bitset__Index_1 ;
		{
#line 282 "int.opt"

    Div = Int / ML_BITS_PER_INT;

#line 62482 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Trunc_5_99  = Div;
#line 282 "int.opt"
}
#line 285 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__interiorlist_insert_4_p_0

	MR_Integer Int;
	MR_Integer Result;

	Int =  mercury__tree_bitset__Trunc_5_99 ;
		{
#line 285 "int.opt"

    Result = Int * ML_BITS_PER_INT;

#line 62502 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Floor0_6_100  = Result;
#line 285 "int.opt"
}
#line 275 "int.opt"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Floor0_6_100 > mercury__tree_bitset__Index_1);
#line 279 "int.opt"
            if (mercury__tree_bitset__succeeded)
#line 277 "int.opt"
              {
#line 277 "int.opt"
                MR_Integer mercury__tree_bitset__V_7_101;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__interiorlist_insert_4_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 62529 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_7_101  = Bits;
#line 171 "int.opt"
}
#line 277 "int.opt"
                mercury__tree_bitset__Offset_20 = (mercury__tree_bitset__Floor0_6_100 - mercury__tree_bitset__V_7_101);
#line 277 "int.opt"
              }
#line 279 "int.opt"
            else
#line 280 "int.opt"
              mercury__tree_bitset__Offset_20 = mercury__tree_bitset__Floor0_6_100;
#line 3621 "tree_bitset.m"
            mercury__tree_bitset__BitToSet_95 = (mercury__tree_bitset__Index_1 - mercury__tree_bitset__Offset_20);
#line 3632 "tree_bitset.m"
            mercury__tree_bitset__V_105_105 = ((MR_Integer) 1 << mercury__tree_bitset__BitToSet_95);
#line 3632 "tree_bitset.m"
            mercury__tree_bitset__Bits_21 = ((MR_Integer) 0 | mercury__tree_bitset__V_105_105);
#line 547 "tree_bitset.m"
            {
#line 547 "tree_bitset.m"
              mercury__tree_bitset__V_32_32 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_32_32, 0) = ((MR_Box) (mercury__tree_bitset__Offset_20));
#line 547 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_32_32, 1) = ((MR_Box) (mercury__tree_bitset__Bits_21));
#line 547 "tree_bitset.m"
            }
#line 804 "tree_bitset.m"
            mercury__tree_bitset__V_113_113 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 794 "tree_bitset.m"
            {
#line 794 "tree_bitset.m"
              mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__Offset_20, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffset_118, &mercury__tree_bitset__ParentLimitOffset_119);
            }
#line 796 "tree_bitset.m"
            {
#line 796 "tree_bitset.m"
              mercury__tree_bitset__V_123_123 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 796 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_123_123, 0) = ((MR_Box) (mercury__tree_bitset__V_32_32));
#line 796 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_123_123, 1) = ((MR_Box) (mercury__tree_bitset__V_113_113));
#line 796 "tree_bitset.m"
            }
#line 796 "tree_bitset.m"
            {
#line 796 "tree_bitset.m"
              mercury__tree_bitset__NodeList_120 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 796 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__NodeList_120, 0) = ((MR_Box) (mercury__tree_bitset__V_123_123));
#line 796 "tree_bitset.m"
            }
#line 797 "tree_bitset.m"
            {
#line 797 "tree_bitset.m"
              mercury__tree_bitset__ParentNode_112 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 797 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_112, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffset_118));
#line 797 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_112, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffset_119));
#line 797 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_112, 2) = ((MR_Box) (mercury__tree_bitset__NodeList_120));
#line 797 "tree_bitset.m"
            }
#line 805 "tree_bitset.m"
            {
#line 805 "tree_bitset.m"
              mercury__tree_bitset__raise_one_interior_to_level_4_p_0(mercury__tree_bitset__Level_2, (MR_Integer) 1, mercury__tree_bitset__ParentNode_112, &mercury__tree_bitset__Node_22);
            }
#line 1083 "tree_bitset.m"
            {
#line 1083 "tree_bitset.m"
              MR_Word base;
#line 1083 "tree_bitset.m"
              base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1083 "tree_bitset.m"
              *mercury__tree_bitset__Nodes_4 = base;
#line 1083 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Node_22));
#line 1083 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__HeadVar__3_3));
#line 1083 "tree_bitset.m"
            }
#line 1081 "tree_bitset.m"
          }
#line 1084 "tree_bitset.m"
        else
#line 1106 "tree_bitset.m"
          {
#line 1106 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_33_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_16, (MR_Integer) 0)));
#line 1106 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_48_48 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_16, (MR_Integer) 1)));
#line 1106 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_49_49 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_16, (MR_Integer) 2)));

#line 1084 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_33_33 <= mercury__tree_bitset__Index_1);
#line 1084 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1084 "tree_bitset.m"
              mercury__tree_bitset__succeeded = (mercury__tree_bitset__Index_1 < mercury__tree_bitset__V_48_48);
#line 1106 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1085 "tree_bitset.m"
              {
#line 1085 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Components_26;
#line 1085 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Head_30;

#line 1094 "tree_bitset.m"
                if (((MR_tag((MR_Word) mercury__tree_bitset__V_49_49)) == (MR_mktag((MR_Integer) 1))))
#line 1095 "tree_bitset.m"
                  {
#line 1095 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__InteriorLevel_27 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_49_49, (MR_Integer) 0)));
#line 1095 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__InteriorList0_28 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_49_49, (MR_Integer) 1)));
#line 1095 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__InteriorList_29;
#line 1097 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_39_39 = (mercury__tree_bitset__Level_2 - (MR_Integer) 1);

#line 1097 "tree_bitset.m"
                    {
#line 1097 "tree_bitset.m"
                      mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_52_55_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__InteriorLevel_27, mercury__tree_bitset__V_39_39, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.interiorlist_insert\'/4", (MR_String) "bad component list (interior)");
                    }
#line 1100 "tree_bitset.m"
                    {
#line 1100 "tree_bitset.m"
                      mercury__tree_bitset__interiorlist_insert_4_p_0(mercury__tree_bitset__Index_1, mercury__tree_bitset__InteriorLevel_27, mercury__tree_bitset__InteriorList0_28, &mercury__tree_bitset__InteriorList_29);
                    }
#line 1102 "tree_bitset.m"
                    {
#line 1102 "tree_bitset.m"
                      mercury__tree_bitset__Components_26 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1102 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_26, 0) = ((MR_Box) (mercury__tree_bitset__InteriorLevel_27));
#line 1102 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_26, 1) = ((MR_Box) (mercury__tree_bitset__InteriorList_29));
#line 1102 "tree_bitset.m"
                    }
#line 1095 "tree_bitset.m"
                  }
#line 1094 "tree_bitset.m"
                else
#line 1087 "tree_bitset.m"
                  {
#line 1087 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__LeafList0_24 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_49_49, (MR_Integer) 0)));
#line 1087 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__LeafList_25;

#line 1089 "tree_bitset.m"
                    {
#line 1089 "tree_bitset.m"
                      mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_52_54_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__Level_2, (MR_Integer) 1, (MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.interiorlist_insert\'/4", (MR_String) "bad component list (leaf)");
                    }
#line 1092 "tree_bitset.m"
                    {
#line 1092 "tree_bitset.m"
                      mercury__tree_bitset__leaflist_insert_3_p_0(mercury__tree_bitset__Index_1, mercury__tree_bitset__LeafList0_24, &mercury__tree_bitset__LeafList_25);
                    }
#line 1093 "tree_bitset.m"
                    {
#line 1093 "tree_bitset.m"
                      mercury__tree_bitset__Components_26 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 1093 "tree_bitset.m"
                      MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_26, 0) = ((MR_Box) (mercury__tree_bitset__LeafList_25));
#line 1093 "tree_bitset.m"
                    }
#line 1087 "tree_bitset.m"
                  }
#line 1104 "tree_bitset.m"
                {
#line 1104 "tree_bitset.m"
                  mercury__tree_bitset__Head_30 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 1104 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_30, 0) = ((MR_Box) (mercury__tree_bitset__V_33_33));
#line 1104 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_30, 1) = ((MR_Box) (mercury__tree_bitset__V_48_48));
#line 1104 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_30, 2) = ((MR_Box) (mercury__tree_bitset__Components_26));
#line 1104 "tree_bitset.m"
                }
#line 1105 "tree_bitset.m"
                {
#line 1105 "tree_bitset.m"
                  MR_Word base;
#line 1105 "tree_bitset.m"
                  base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1105 "tree_bitset.m"
                  *mercury__tree_bitset__Nodes_4 = base;
#line 1105 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head_30));
#line 1105 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail0_17));
#line 1105 "tree_bitset.m"
                }
#line 1085 "tree_bitset.m"
              }
#line 1106 "tree_bitset.m"
            else
#line 1107 "tree_bitset.m"
              {
#line 1107 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Tail_31;

#line 1107 "tree_bitset.m"
                {
#line 1107 "tree_bitset.m"
                  mercury__tree_bitset__interiorlist_insert_4_p_0(mercury__tree_bitset__Index_1, mercury__tree_bitset__Level_2, mercury__tree_bitset__Tail0_17, &mercury__tree_bitset__Tail_31);
                }
#line 1108 "tree_bitset.m"
                {
#line 1108 "tree_bitset.m"
                  MR_Word base;
#line 1108 "tree_bitset.m"
                  base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1108 "tree_bitset.m"
                  *mercury__tree_bitset__Nodes_4 = base;
#line 1108 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head0_16));
#line 1108 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail_31));
#line 1108 "tree_bitset.m"
                }
#line 1107 "tree_bitset.m"
              }
#line 1106 "tree_bitset.m"
          }
#line 1078 "tree_bitset.m"
      }
#line 1074 "tree_bitset.m"
  }
#line 1071 "tree_bitset.m"
}

#line 1047 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__leaflist_insert_3_p_0(
#line 1047 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_1,
#line 1047 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__2_2,
#line 1047 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__Leaves_3)
#line 1047 "tree_bitset.m"
{
#line 1050 "tree_bitset.m"
  {
#line 1050 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 1050 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1050 "tree_bitset.m"
      {
#line 1050 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Offset_6;
#line 1050 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Bits_7;
#line 1050 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_8_8;
#line 1050 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_9_9;
#line 1050 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__BitToSet_34;
#line 1050 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Trunc_5_38;
#line 1050 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Floor0_6_39;
#line 1050 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_44_44;

#line 282 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaflist_insert_3_p_0

	MR_Integer Int;
	MR_Integer Div;

	Int =  mercury__tree_bitset__Index_1 ;
		{
#line 282 "int.opt"

    Div = Int / ML_BITS_PER_INT;

#line 62823 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Trunc_5_38  = Div;
#line 282 "int.opt"
}
#line 285 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaflist_insert_3_p_0

	MR_Integer Int;
	MR_Integer Result;

	Int =  mercury__tree_bitset__Trunc_5_38 ;
		{
#line 285 "int.opt"

    Result = Int * ML_BITS_PER_INT;

#line 62843 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Floor0_6_39  = Result;
#line 285 "int.opt"
}
#line 275 "int.opt"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__Floor0_6_39 > mercury__tree_bitset__Index_1);
#line 279 "int.opt"
        if (mercury__tree_bitset__succeeded)
#line 277 "int.opt"
          {
#line 277 "int.opt"
            MR_Integer mercury__tree_bitset__V_7_40;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaflist_insert_3_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 62870 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_7_40  = Bits;
#line 171 "int.opt"
}
#line 277 "int.opt"
            mercury__tree_bitset__Offset_6 = (mercury__tree_bitset__Floor0_6_39 - mercury__tree_bitset__V_7_40);
#line 277 "int.opt"
          }
#line 279 "int.opt"
        else
#line 280 "int.opt"
          mercury__tree_bitset__Offset_6 = mercury__tree_bitset__Floor0_6_39;
#line 3621 "tree_bitset.m"
        mercury__tree_bitset__BitToSet_34 = (mercury__tree_bitset__Index_1 - mercury__tree_bitset__Offset_6);
#line 3632 "tree_bitset.m"
        mercury__tree_bitset__V_44_44 = ((MR_Integer) 1 << mercury__tree_bitset__BitToSet_34);
#line 3632 "tree_bitset.m"
        mercury__tree_bitset__Bits_7 = ((MR_Integer) 0 | mercury__tree_bitset__V_44_44);
#line 547 "tree_bitset.m"
        {
#line 547 "tree_bitset.m"
          mercury__tree_bitset__V_8_8 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_8_8, 0) = ((MR_Box) (mercury__tree_bitset__Offset_6));
#line 547 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_8_8, 1) = ((MR_Box) (mercury__tree_bitset__Bits_7));
#line 547 "tree_bitset.m"
        }
#line 1052 "tree_bitset.m"
        mercury__tree_bitset__V_9_9 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1052 "tree_bitset.m"
        {
#line 1052 "tree_bitset.m"
          MR_Word base;
#line 1052 "tree_bitset.m"
          base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1052 "tree_bitset.m"
          *mercury__tree_bitset__Leaves_3 = base;
#line 1052 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__V_8_8));
#line 1052 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__V_9_9));
#line 1052 "tree_bitset.m"
        }
#line 1050 "tree_bitset.m"
      }
#line 1050 "tree_bitset.m"
    else
#line 1053 "tree_bitset.m"
      {
#line 1053 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Head0_12 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 0)));
#line 1053 "tree_bitset.m"
        MR_Word mercury__tree_bitset__Tail0_13 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__2_2, (MR_Integer) 1)));
#line 1053 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Offset0_15 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_12, (MR_Integer) 0)));
#line 1054 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_29_29 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_12, (MR_Integer) 1)));

#line 1055 "tree_bitset.m"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__Index_1 < mercury__tree_bitset__Offset0_15);
#line 1058 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 1056 "tree_bitset.m"
          {
#line 1056 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Offset_16;
#line 1056 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Bits_17;
#line 1056 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_21_21;
#line 1056 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__BitToSet_51;
#line 1056 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Trunc_5_55;
#line 1056 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Floor0_6_56;
#line 1056 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_61_61;

#line 282 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaflist_insert_3_p_0

	MR_Integer Int;
	MR_Integer Div;

	Int =  mercury__tree_bitset__Index_1 ;
		{
#line 282 "int.opt"

    Div = Int / ML_BITS_PER_INT;

#line 62966 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Trunc_5_55  = Div;
#line 282 "int.opt"
}
#line 285 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaflist_insert_3_p_0

	MR_Integer Int;
	MR_Integer Result;

	Int =  mercury__tree_bitset__Trunc_5_55 ;
		{
#line 285 "int.opt"

    Result = Int * ML_BITS_PER_INT;

#line 62986 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Floor0_6_56  = Result;
#line 285 "int.opt"
}
#line 275 "int.opt"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Floor0_6_56 > mercury__tree_bitset__Index_1);
#line 279 "int.opt"
            if (mercury__tree_bitset__succeeded)
#line 277 "int.opt"
              {
#line 277 "int.opt"
                MR_Integer mercury__tree_bitset__V_7_57;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaflist_insert_3_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 63013 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_7_57  = Bits;
#line 171 "int.opt"
}
#line 277 "int.opt"
                mercury__tree_bitset__Offset_16 = (mercury__tree_bitset__Floor0_6_56 - mercury__tree_bitset__V_7_57);
#line 277 "int.opt"
              }
#line 279 "int.opt"
            else
#line 280 "int.opt"
              mercury__tree_bitset__Offset_16 = mercury__tree_bitset__Floor0_6_56;
#line 3621 "tree_bitset.m"
            mercury__tree_bitset__BitToSet_51 = (mercury__tree_bitset__Index_1 - mercury__tree_bitset__Offset_16);
#line 3632 "tree_bitset.m"
            mercury__tree_bitset__V_61_61 = ((MR_Integer) 1 << mercury__tree_bitset__BitToSet_51);
#line 3632 "tree_bitset.m"
            mercury__tree_bitset__Bits_17 = ((MR_Integer) 0 | mercury__tree_bitset__V_61_61);
#line 547 "tree_bitset.m"
            {
#line 547 "tree_bitset.m"
              mercury__tree_bitset__V_21_21 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_21_21, 0) = ((MR_Box) (mercury__tree_bitset__Offset_16));
#line 547 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_21_21, 1) = ((MR_Box) (mercury__tree_bitset__Bits_17));
#line 547 "tree_bitset.m"
            }
#line 1057 "tree_bitset.m"
            {
#line 1057 "tree_bitset.m"
              MR_Word base;
#line 1057 "tree_bitset.m"
              base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1057 "tree_bitset.m"
              *mercury__tree_bitset__Leaves_3 = base;
#line 1057 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__V_21_21));
#line 1057 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__HeadVar__2_2));
#line 1057 "tree_bitset.m"
            }
#line 1056 "tree_bitset.m"
          }
#line 1058 "tree_bitset.m"
        else
#line 1066 "tree_bitset.m"
          {
#line 1066 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__BitToSet_18 = (mercury__tree_bitset__Index_1 - mercury__tree_bitset__Offset0_15);
#line 1058 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_22_22;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__leaflist_insert_3_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 63080 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_22_22  = Bits;
#line 171 "int.opt"
}
#line 1058 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__BitToSet_18 < mercury__tree_bitset__V_22_22);
#line 1066 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1059 "tree_bitset.m"
              {
#line 1059 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Bits0_19 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_12, (MR_Integer) 1)));
#line 1059 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_30_30 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head0_12, (MR_Integer) 0)));
#line 1060 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23;
#line 1060 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_68_68 = ((MR_Integer) 1 << mercury__tree_bitset__BitToSet_18);

#line 3627 "tree_bitset.m"
                mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__Bits0_19 & mercury__tree_bitset__V_68_68);
#line 1060 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_23_23 == (MR_Integer) 0);
#line 1060 "tree_bitset.m"
                mercury__tree_bitset__succeeded = !(mercury__tree_bitset__succeeded);
#line 1062 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 1061 "tree_bitset.m"
                  *mercury__tree_bitset__Leaves_3 = mercury__tree_bitset__HeadVar__2_2;
#line 1062 "tree_bitset.m"
                else
#line 1063 "tree_bitset.m"
                  {
#line 1063 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_24_24;
#line 1063 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__Bits_25;
#line 1063 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_72_72 = ((MR_Integer) 1 << mercury__tree_bitset__BitToSet_18);

#line 3632 "tree_bitset.m"
                    mercury__tree_bitset__Bits_25 = (mercury__tree_bitset__Bits0_19 | mercury__tree_bitset__V_72_72);
#line 547 "tree_bitset.m"
                    {
#line 547 "tree_bitset.m"
                      mercury__tree_bitset__V_24_24 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
                      MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_24_24, 0) = ((MR_Box) (mercury__tree_bitset__Offset0_15));
#line 547 "tree_bitset.m"
                      MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_24_24, 1) = ((MR_Box) (mercury__tree_bitset__Bits_25));
#line 547 "tree_bitset.m"
                    }
#line 1064 "tree_bitset.m"
                    {
#line 1064 "tree_bitset.m"
                      MR_Word base;
#line 1064 "tree_bitset.m"
                      base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1064 "tree_bitset.m"
                      *mercury__tree_bitset__Leaves_3 = base;
#line 1064 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__V_24_24));
#line 1064 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail0_13));
#line 1064 "tree_bitset.m"
                    }
#line 1063 "tree_bitset.m"
                  }
#line 1059 "tree_bitset.m"
              }
#line 1066 "tree_bitset.m"
            else
#line 1067 "tree_bitset.m"
              {
#line 1067 "tree_bitset.m"
                MR_Word mercury__tree_bitset__Tail_20;

#line 1067 "tree_bitset.m"
                {
#line 1067 "tree_bitset.m"
                  mercury__tree_bitset__leaflist_insert_3_p_0(mercury__tree_bitset__Index_1, mercury__tree_bitset__Tail0_13, &mercury__tree_bitset__Tail_20);
                }
#line 1068 "tree_bitset.m"
                {
#line 1068 "tree_bitset.m"
                  MR_Word base;
#line 1068 "tree_bitset.m"
                  base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1068 "tree_bitset.m"
                  *mercury__tree_bitset__Leaves_3 = base;
#line 1068 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), base, 0) = ((MR_Box) (mercury__tree_bitset__Head0_12));
#line 1068 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), base, 1) = ((MR_Box) (mercury__tree_bitset__Tail_20));
#line 1068 "tree_bitset.m"
                }
#line 1067 "tree_bitset.m"
              }
#line 1066 "tree_bitset.m"
          }
#line 1053 "tree_bitset.m"
      }
#line 1050 "tree_bitset.m"
  }
#line 1047 "tree_bitset.m"
}

#line 906 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__head_and_tail_3_p_0(
#line 906 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 906 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__Head_2,
#line 906 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__Tail_3)
#line 906 "tree_bitset.m"
{
#line 909 "tree_bitset.m"
  {
#line 909 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 909 "tree_bitset.m"
    if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 909 "tree_bitset.m"
      {
#line 910 "tree_bitset.m"
        {
#line 910 "tree_bitset.m"
          mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.head_and_tail\'/3", (MR_String) "empty list");
#line 910 "tree_bitset.m"
          return;
        }
#line 909 "tree_bitset.m"
      }
#line 909 "tree_bitset.m"
    else
#line 911 "tree_bitset.m"
      {
#line 911 "tree_bitset.m"
        *mercury__tree_bitset__Head_2 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));
#line 911 "tree_bitset.m"
        *mercury__tree_bitset__Tail_3 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 911 "tree_bitset.m"
      }
#line 909 "tree_bitset.m"
  }
#line 906 "tree_bitset.m"
}

#line 885 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__prune_top_levels_2_p_0(
#line 885 "tree_bitset.m"
  MR_Word mercury__tree_bitset__List_3,
#line 885 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__PrunedList_4)
#line 885 "tree_bitset.m"
{
#line 889 "tree_bitset.m"
  while (MR_TRUE)
#line 889 "tree_bitset.m"
    {
#line 889 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 889 "tree_bitset.m"
      {
#line 889 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 889 "tree_bitset.m"
        if (((MR_tag((MR_Word) mercury__tree_bitset__List_3)) == (MR_mktag((MR_Integer) 1))))
#line 892 "tree_bitset.m"
          {
#line 892 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Nodes_7 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_3, (MR_Integer) 1)));
#line 892 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_6_6 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_3, (MR_Integer) 0)));

#line 897 "tree_bitset.m"
            if ((mercury__tree_bitset__Nodes_7 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 894 "tree_bitset.m"
              {
#line 894 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_15_15 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));

#line 896 "tree_bitset.m"
                *mercury__tree_bitset__PrunedList_4 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 894 "tree_bitset.m"
              }
#line 897 "tree_bitset.m"
            else
#line 897 "tree_bitset.m"
              {
#line 897 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_18_18 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Nodes_7, (MR_Integer) 1)));
#line 897 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_19_19 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Nodes_7, (MR_Integer) 0)));

#line 897 "tree_bitset.m"
                if ((mercury__tree_bitset__V_18_18 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 898 "tree_bitset.m"
                  {
#line 898 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_14_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_19_19, (MR_Integer) 2)));
#line 899 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_16_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_19_19, (MR_Integer) 0)));
#line 899 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_19_19, (MR_Integer) 1)));

#line 899 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 899 "tree_bitset.m"
                    {
#line 899 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__List__tmp_copy_3 = mercury__tree_bitset__V_14_14;

#line 899 "tree_bitset.m"
                      mercury__tree_bitset__List_3 = mercury__tree_bitset__List__tmp_copy_3;
#line 899 "tree_bitset.m"
                    }
#line 899 "tree_bitset.m"
                    continue;
#line 898 "tree_bitset.m"
                  }
#line 897 "tree_bitset.m"
                else
#line 902 "tree_bitset.m"
                  *mercury__tree_bitset__PrunedList_4 = mercury__tree_bitset__List_3;
#line 897 "tree_bitset.m"
              }
#line 892 "tree_bitset.m"
          }
#line 889 "tree_bitset.m"
        else
#line 890 "tree_bitset.m"
          *mercury__tree_bitset__PrunedList_4 = mercury__tree_bitset__List_3;
#line 889 "tree_bitset.m"
      }
#line 889 "tree_bitset.m"
      break;
#line 889 "tree_bitset.m"
    }
#line 885 "tree_bitset.m"
}

#line 851 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__raise_to_common_level_10_p_0(
#line 851 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__CurLevel_11,
#line 851 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadA_12,
#line 851 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TailA_13,
#line 851 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadB_14,
#line 851 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TailB_15,
#line 851 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__TopHeadA_16,
#line 851 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__TopTailA_17,
#line 851 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__TopHeadB_18,
#line 851 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__TopTailB_19,
#line 851 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__TopLevel_20)
#line 851 "tree_bitset.m"
{
#line 859 "tree_bitset.m"
  while (MR_TRUE)
#line 859 "tree_bitset.m"
    {
#line 859 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 859 "tree_bitset.m"
      {
#line 859 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;
#line 859 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__ParentInitOffsetA_21;
#line 859 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__ParentLimitOffsetA_22;
#line 859 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__ParentInitOffsetB_23;
#line 859 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__ParentLimitOffsetB_24;
#line 859 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_29_29 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_12, (MR_Integer) 0)));
#line 859 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_30_30;
#line 860 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_41_41 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_12, (MR_Integer) 1)));
#line 860 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_42_42 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadA_12, (MR_Integer) 2)));
#line 862 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_43_43;
#line 862 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_44_44;

#line 860 "tree_bitset.m"
        {
#line 860 "tree_bitset.m"
          mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_29_29, mercury__tree_bitset__CurLevel_11, &mercury__tree_bitset__ParentInitOffsetA_21, &mercury__tree_bitset__ParentLimitOffsetA_22);
        }
#line 862 "tree_bitset.m"
        mercury__tree_bitset__V_30_30 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 0)));
#line 862 "tree_bitset.m"
        mercury__tree_bitset__V_43_43 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 1)));
#line 862 "tree_bitset.m"
        mercury__tree_bitset__V_44_44 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadB_14, (MR_Integer) 2)));
#line 862 "tree_bitset.m"
        {
#line 862 "tree_bitset.m"
          mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_30_30, mercury__tree_bitset__CurLevel_11, &mercury__tree_bitset__ParentInitOffsetB_23, &mercury__tree_bitset__ParentLimitOffsetB_24);
        }
#line 864 "tree_bitset.m"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__ParentInitOffsetA_21 == mercury__tree_bitset__ParentInitOffsetB_23);
#line 874 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 868 "tree_bitset.m"
          {
#line 866 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__ParentLimitOffsetA_22 == mercury__tree_bitset__ParentLimitOffsetB_24);
#line 32 "require.opt"
            if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
              {
#line 31 "require.opt"
              }
#line 32 "require.opt"
            else
#line 33 "require.opt"
              {
#line 33 "require.opt"
                mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.raise_to_common_level\'/10", (MR_String) "limit mismatch");
#line 33 "require.opt"
                return;
              }
#line 869 "tree_bitset.m"
            *mercury__tree_bitset__TopHeadA_16 = mercury__tree_bitset__HeadA_12;
#line 870 "tree_bitset.m"
            *mercury__tree_bitset__TopTailA_17 = mercury__tree_bitset__TailA_13;
#line 871 "tree_bitset.m"
            *mercury__tree_bitset__TopHeadB_18 = mercury__tree_bitset__HeadB_14;
#line 872 "tree_bitset.m"
            *mercury__tree_bitset__TopTailB_19 = mercury__tree_bitset__TailB_15;
#line 873 "tree_bitset.m"
            *mercury__tree_bitset__TopLevel_20 = mercury__tree_bitset__CurLevel_11;
#line 868 "tree_bitset.m"
          }
#line 874 "tree_bitset.m"
        else
#line 875 "tree_bitset.m"
          {
#line 875 "tree_bitset.m"
            MR_Word mercury__tree_bitset__ComponentsA_25;
#line 875 "tree_bitset.m"
            MR_Word mercury__tree_bitset__ParentA_26;
#line 875 "tree_bitset.m"
            MR_Word mercury__tree_bitset__ComponentsB_27;
#line 875 "tree_bitset.m"
            MR_Word mercury__tree_bitset__ParentB_28;
#line 875 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_35_35;
#line 875 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_36_36;
#line 875 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_37_37;
#line 875 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_38_38;
#line 875 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_39_39;

#line 875 "tree_bitset.m"
            {
#line 875 "tree_bitset.m"
              mercury__tree_bitset__V_35_35 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 875 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_35_35, 0) = ((MR_Box) (mercury__tree_bitset__HeadA_12));
#line 875 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_35_35, 1) = ((MR_Box) (mercury__tree_bitset__TailA_13));
#line 875 "tree_bitset.m"
            }
#line 875 "tree_bitset.m"
            {
#line 875 "tree_bitset.m"
              mercury__tree_bitset__ComponentsA_25 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 875 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__ComponentsA_25, 0) = ((MR_Box) (mercury__tree_bitset__CurLevel_11));
#line 875 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__ComponentsA_25, 1) = ((MR_Box) (mercury__tree_bitset__V_35_35));
#line 875 "tree_bitset.m"
            }
#line 876 "tree_bitset.m"
            {
#line 876 "tree_bitset.m"
              mercury__tree_bitset__ParentA_26 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 876 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentA_26, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffsetA_21));
#line 876 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentA_26, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffsetA_22));
#line 876 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentA_26, 2) = ((MR_Box) (mercury__tree_bitset__ComponentsA_25));
#line 876 "tree_bitset.m"
            }
#line 878 "tree_bitset.m"
            {
#line 878 "tree_bitset.m"
              mercury__tree_bitset__V_36_36 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 878 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_36_36, 0) = ((MR_Box) (mercury__tree_bitset__HeadB_14));
#line 878 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_36_36, 1) = ((MR_Box) (mercury__tree_bitset__TailB_15));
#line 878 "tree_bitset.m"
            }
#line 878 "tree_bitset.m"
            {
#line 878 "tree_bitset.m"
              mercury__tree_bitset__ComponentsB_27 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 878 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__ComponentsB_27, 0) = ((MR_Box) (mercury__tree_bitset__CurLevel_11));
#line 878 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__ComponentsB_27, 1) = ((MR_Box) (mercury__tree_bitset__V_36_36));
#line 878 "tree_bitset.m"
            }
#line 879 "tree_bitset.m"
            {
#line 879 "tree_bitset.m"
              mercury__tree_bitset__ParentB_28 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 879 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentB_28, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffsetB_23));
#line 879 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentB_28, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffsetB_24));
#line 879 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentB_28, 2) = ((MR_Box) (mercury__tree_bitset__ComponentsB_27));
#line 879 "tree_bitset.m"
            }
#line 881 "tree_bitset.m"
            mercury__tree_bitset__V_37_37 = (mercury__tree_bitset__CurLevel_11 + (MR_Integer) 1);
#line 881 "tree_bitset.m"
            mercury__tree_bitset__V_38_38 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 881 "tree_bitset.m"
            mercury__tree_bitset__V_39_39 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 881 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 881 "tree_bitset.m"
            {
#line 881 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__CurLevel__tmp_copy_11 = mercury__tree_bitset__V_37_37;
#line 881 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadA__tmp_copy_12 = mercury__tree_bitset__ParentA_26;
#line 881 "tree_bitset.m"
              MR_Word mercury__tree_bitset__TailA__tmp_copy_13 = mercury__tree_bitset__V_38_38;
#line 881 "tree_bitset.m"
              MR_Word mercury__tree_bitset__HeadB__tmp_copy_14 = mercury__tree_bitset__ParentB_28;
#line 881 "tree_bitset.m"
              MR_Word mercury__tree_bitset__TailB__tmp_copy_15 = mercury__tree_bitset__V_39_39;

#line 881 "tree_bitset.m"
              mercury__tree_bitset__TailB_15 = mercury__tree_bitset__TailB__tmp_copy_15;
#line 881 "tree_bitset.m"
              mercury__tree_bitset__HeadB_14 = mercury__tree_bitset__HeadB__tmp_copy_14;
#line 881 "tree_bitset.m"
              mercury__tree_bitset__TailA_13 = mercury__tree_bitset__TailA__tmp_copy_13;
#line 881 "tree_bitset.m"
              mercury__tree_bitset__HeadA_12 = mercury__tree_bitset__HeadA__tmp_copy_12;
#line 881 "tree_bitset.m"
              mercury__tree_bitset__CurLevel_11 = mercury__tree_bitset__CurLevel__tmp_copy_11;
#line 881 "tree_bitset.m"
            }
#line 881 "tree_bitset.m"
            continue;
#line 875 "tree_bitset.m"
          }
#line 859 "tree_bitset.m"
      }
#line 859 "tree_bitset.m"
      break;
#line 859 "tree_bitset.m"
    }
#line 851 "tree_bitset.m"
}

#line 831 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__raise_interiors_to_level_6_p_0(
#line 831 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__TargetLevel_7,
#line 831 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__CurLevel_8,
#line 831 "tree_bitset.m"
  MR_Word mercury__tree_bitset__CurNodesHead_9,
#line 831 "tree_bitset.m"
  MR_Word mercury__tree_bitset__CurNodesTail_10,
#line 831 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__TopNodesHead_11,
#line 831 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__TopNodesTail_12)
#line 831 "tree_bitset.m"
{
#line 840 "tree_bitset.m"
  {
#line 840 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__CurLevel_8 == mercury__tree_bitset__TargetLevel_7);

#line 840 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 838 "tree_bitset.m"
      {
#line 838 "tree_bitset.m"
        *mercury__tree_bitset__TopNodesHead_11 = mercury__tree_bitset__CurNodesHead_9;
#line 839 "tree_bitset.m"
        *mercury__tree_bitset__TopNodesTail_12 = mercury__tree_bitset__CurNodesTail_10;
#line 838 "tree_bitset.m"
      }
#line 840 "tree_bitset.m"
    else
#line 842 "tree_bitset.m"
      {
#line 842 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__ParentInitOffset_13;
#line 842 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__ParentLimitOffset_14;
#line 842 "tree_bitset.m"
        MR_Word mercury__tree_bitset__NodeList_15;
#line 842 "tree_bitset.m"
        MR_Word mercury__tree_bitset__ParentNode_16;
#line 842 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__CurNodesHead_9, (MR_Integer) 0)));
#line 842 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_18_18;
#line 842 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_19_19;
#line 841 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_21_21 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__CurNodesHead_9, (MR_Integer) 1)));
#line 841 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_22_22 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__CurNodesHead_9, (MR_Integer) 2)));

#line 841 "tree_bitset.m"
        {
#line 841 "tree_bitset.m"
          mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_17_17, mercury__tree_bitset__CurLevel_8, &mercury__tree_bitset__ParentInitOffset_13, &mercury__tree_bitset__ParentLimitOffset_14);
        }
#line 843 "tree_bitset.m"
        {
#line 843 "tree_bitset.m"
          mercury__tree_bitset__V_18_18 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 843 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_18_18, 0) = ((MR_Box) (mercury__tree_bitset__CurNodesHead_9));
#line 843 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_18_18, 1) = ((MR_Box) (mercury__tree_bitset__CurNodesTail_10));
#line 843 "tree_bitset.m"
        }
#line 843 "tree_bitset.m"
        {
#line 843 "tree_bitset.m"
          mercury__tree_bitset__NodeList_15 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 843 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_15, 0) = ((MR_Box) (mercury__tree_bitset__CurLevel_8));
#line 843 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_15, 1) = ((MR_Box) (mercury__tree_bitset__V_18_18));
#line 843 "tree_bitset.m"
        }
#line 844 "tree_bitset.m"
        {
#line 844 "tree_bitset.m"
          mercury__tree_bitset__ParentNode_16 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 844 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_16, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffset_13));
#line 844 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_16, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffset_14));
#line 844 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_16, 2) = ((MR_Box) (mercury__tree_bitset__NodeList_15));
#line 844 "tree_bitset.m"
        }
#line 846 "tree_bitset.m"
        mercury__tree_bitset__V_19_19 = (mercury__tree_bitset__CurLevel_8 + (MR_Integer) 1);
#line 846 "tree_bitset.m"
        {
#line 846 "tree_bitset.m"
          mercury__tree_bitset__raise_one_interior_to_level_4_p_0(mercury__tree_bitset__TargetLevel_7, mercury__tree_bitset__V_19_19, mercury__tree_bitset__ParentNode_16, mercury__tree_bitset__TopNodesHead_11);
        }
#line 848 "tree_bitset.m"
        *mercury__tree_bitset__TopNodesTail_12 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 842 "tree_bitset.m"
      }
#line 840 "tree_bitset.m"
  }
#line 831 "tree_bitset.m"
}

#line 815 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__raise_one_interior_to_level_4_p_0(
#line 815 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__TargetLevel_5,
#line 815 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__CurLevel_6,
#line 815 "tree_bitset.m"
  MR_Word mercury__tree_bitset__CurNode_7,
#line 815 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__TopNode_8)
#line 815 "tree_bitset.m"
{
#line 821 "tree_bitset.m"
  while (MR_TRUE)
#line 821 "tree_bitset.m"
    {
#line 821 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 821 "tree_bitset.m"
      {
#line 821 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded = (mercury__tree_bitset__CurLevel_6 == mercury__tree_bitset__TargetLevel_5);

#line 821 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 820 "tree_bitset.m"
          *mercury__tree_bitset__TopNode_8 = mercury__tree_bitset__CurNode_7;
#line 821 "tree_bitset.m"
        else
#line 823 "tree_bitset.m"
          {
#line 823 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentInitOffset_9;
#line 823 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentLimitOffset_10;
#line 823 "tree_bitset.m"
            MR_Word mercury__tree_bitset__NodeList_11;
#line 823 "tree_bitset.m"
            MR_Word mercury__tree_bitset__ParentNode_12;
#line 823 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_13_13 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__CurNode_7, (MR_Integer) 0)));
#line 823 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_14_14;
#line 823 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_15_15;
#line 823 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_16_16;
#line 822 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_18_18 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__CurNode_7, (MR_Integer) 1)));
#line 822 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_19_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__CurNode_7, (MR_Integer) 2)));

#line 822 "tree_bitset.m"
            {
#line 822 "tree_bitset.m"
              mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_13_13, mercury__tree_bitset__CurLevel_6, &mercury__tree_bitset__ParentInitOffset_9, &mercury__tree_bitset__ParentLimitOffset_10);
            }
#line 824 "tree_bitset.m"
            mercury__tree_bitset__V_15_15 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 824 "tree_bitset.m"
            {
#line 824 "tree_bitset.m"
              mercury__tree_bitset__V_14_14 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 824 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_14_14, 0) = ((MR_Box) (mercury__tree_bitset__CurNode_7));
#line 824 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_14_14, 1) = ((MR_Box) (mercury__tree_bitset__V_15_15));
#line 824 "tree_bitset.m"
            }
#line 824 "tree_bitset.m"
            {
#line 824 "tree_bitset.m"
              mercury__tree_bitset__NodeList_11 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 824 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_11, 0) = ((MR_Box) (mercury__tree_bitset__CurLevel_6));
#line 824 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_11, 1) = ((MR_Box) (mercury__tree_bitset__V_14_14));
#line 824 "tree_bitset.m"
            }
#line 825 "tree_bitset.m"
            {
#line 825 "tree_bitset.m"
              mercury__tree_bitset__ParentNode_12 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 825 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_12, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffset_9));
#line 825 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_12, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffset_10));
#line 825 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__ParentNode_12, 2) = ((MR_Box) (mercury__tree_bitset__NodeList_11));
#line 825 "tree_bitset.m"
            }
#line 827 "tree_bitset.m"
            mercury__tree_bitset__V_16_16 = (mercury__tree_bitset__CurLevel_6 + (MR_Integer) 1);
#line 827 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 827 "tree_bitset.m"
            {
#line 827 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__CurLevel__tmp_copy_6 = mercury__tree_bitset__V_16_16;
#line 827 "tree_bitset.m"
              MR_Word mercury__tree_bitset__CurNode__tmp_copy_7 = mercury__tree_bitset__ParentNode_12;

#line 827 "tree_bitset.m"
              mercury__tree_bitset__CurNode_7 = mercury__tree_bitset__CurNode__tmp_copy_7;
#line 827 "tree_bitset.m"
              mercury__tree_bitset__CurLevel_6 = mercury__tree_bitset__CurLevel__tmp_copy_6;
#line 827 "tree_bitset.m"
            }
#line 827 "tree_bitset.m"
            continue;
#line 823 "tree_bitset.m"
          }
#line 821 "tree_bitset.m"
      }
#line 821 "tree_bitset.m"
      break;
#line 821 "tree_bitset.m"
    }
#line 815 "tree_bitset.m"
}

#line 757 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__expand_range_7_p_0(
#line 757 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_8,
#line 757 "tree_bitset.m"
  MR_Word mercury__tree_bitset__SubNodes_9,
#line 757 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__CurLevel_10,
#line 757 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__CurInitOffset_11,
#line 757 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__CurLimitOffset_12,
#line 757 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__TopNode_13,
#line 757 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__TopLevel_14)
#line 757 "tree_bitset.m"
{
#line 761 "tree_bitset.m"
  while (MR_TRUE)
#line 761 "tree_bitset.m"
    {
#line 761 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 761 "tree_bitset.m"
      {
#line 761 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;
#line 761 "tree_bitset.m"
        MR_Word mercury__tree_bitset__CurNode_16;
#line 761 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__ParentInitOffset_17;
#line 761 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__ParentLimitOffset_18;

#line 775 "tree_bitset.m"
        {
#line 775 "tree_bitset.m"
          mercury__tree_bitset__CurNode_16 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 775 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__CurNode_16, 0) = ((MR_Box) (mercury__tree_bitset__CurInitOffset_11));
#line 775 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__CurNode_16, 1) = ((MR_Box) (mercury__tree_bitset__CurLimitOffset_12));
#line 775 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__CurNode_16, 2) = ((MR_Box) (mercury__tree_bitset__SubNodes_9));
#line 775 "tree_bitset.m"
        }
#line 776 "tree_bitset.m"
        {
#line 776 "tree_bitset.m"
          mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__CurInitOffset_11, mercury__tree_bitset__CurLevel_10, &mercury__tree_bitset__ParentInitOffset_17, &mercury__tree_bitset__ParentLimitOffset_18);
        }
#line 779 "tree_bitset.m"
        mercury__tree_bitset__succeeded = (mercury__tree_bitset__ParentInitOffset_17 <= mercury__tree_bitset__Index_8);
#line 779 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 780 "tree_bitset.m"
          mercury__tree_bitset__succeeded = (mercury__tree_bitset__Index_8 < mercury__tree_bitset__ParentLimitOffset_18);
#line 784 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 782 "tree_bitset.m"
          {
#line 782 "tree_bitset.m"
            *mercury__tree_bitset__TopNode_13 = mercury__tree_bitset__CurNode_16;
#line 783 "tree_bitset.m"
            *mercury__tree_bitset__TopLevel_14 = mercury__tree_bitset__CurLevel_10;
#line 782 "tree_bitset.m"
          }
#line 784 "tree_bitset.m"
        else
#line 785 "tree_bitset.m"
          {
#line 785 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_25_25;
#line 785 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_26_26;
#line 785 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_27_27;
#line 785 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_28_28 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));

#line 785 "tree_bitset.m"
            {
#line 785 "tree_bitset.m"
              mercury__tree_bitset__V_27_27 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 785 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_27_27, 0) = ((MR_Box) (mercury__tree_bitset__CurNode_16));
#line 785 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_27_27, 1) = ((MR_Box) (mercury__tree_bitset__V_28_28));
#line 785 "tree_bitset.m"
            }
#line 785 "tree_bitset.m"
            {
#line 785 "tree_bitset.m"
              mercury__tree_bitset__V_25_25 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 785 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_25_25, 0) = ((MR_Box) (mercury__tree_bitset__CurLevel_10));
#line 785 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_25_25, 1) = ((MR_Box) (mercury__tree_bitset__V_27_27));
#line 785 "tree_bitset.m"
            }
#line 785 "tree_bitset.m"
            mercury__tree_bitset__V_26_26 = (mercury__tree_bitset__CurLevel_10 + (MR_Integer) 1);
#line 785 "tree_bitset.m"
            /* direct tailcall eliminated */
#line 785 "tree_bitset.m"
            {
#line 785 "tree_bitset.m"
              MR_Word mercury__tree_bitset__SubNodes__tmp_copy_9 = mercury__tree_bitset__V_25_25;
#line 785 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__CurLevel__tmp_copy_10 = mercury__tree_bitset__V_26_26;
#line 785 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__CurInitOffset__tmp_copy_11 = mercury__tree_bitset__ParentInitOffset_17;
#line 785 "tree_bitset.m"
              MR_Integer mercury__tree_bitset__CurLimitOffset__tmp_copy_12 = mercury__tree_bitset__ParentLimitOffset_18;

#line 785 "tree_bitset.m"
              mercury__tree_bitset__CurLimitOffset_12 = mercury__tree_bitset__CurLimitOffset__tmp_copy_12;
#line 785 "tree_bitset.m"
              mercury__tree_bitset__CurInitOffset_11 = mercury__tree_bitset__CurInitOffset__tmp_copy_11;
#line 785 "tree_bitset.m"
              mercury__tree_bitset__CurLevel_10 = mercury__tree_bitset__CurLevel__tmp_copy_10;
#line 785 "tree_bitset.m"
              mercury__tree_bitset__SubNodes_9 = mercury__tree_bitset__SubNodes__tmp_copy_9;
#line 785 "tree_bitset.m"
            }
#line 785 "tree_bitset.m"
            continue;
#line 785 "tree_bitset.m"
          }
#line 761 "tree_bitset.m"
      }
#line 761 "tree_bitset.m"
      break;
#line 761 "tree_bitset.m"
    }
#line 757 "tree_bitset.m"
}

#line 747 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__range_of_parent_node_4_p_0(
#line 747 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__NodeOffset_5,
#line 747 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__NodeLevel_6,
#line 747 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__ParentInitOffset_7,
#line 747 "tree_bitset.m"
  MR_Integer * mercury__tree_bitset__ParentLimitOffset_8)
#line 747 "tree_bitset.m"
{
#line 750 "tree_bitset.m"
  {
#line 750 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 750 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__HigherLevel_9 = (mercury__tree_bitset__NodeLevel_6 + (MR_Integer) 1);
#line 750 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__ParentRangeSize_10;
#line 750 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_12_12;
#line 750 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_13_13;
#line 750 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_15_15;
#line 750 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_16_16;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__range_of_parent_node_4_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 63981 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_12_12  = Bits;
#line 171 "int.opt"
}
#line 752 "tree_bitset.m"
    mercury__tree_bitset__V_13_13 = (mercury__tree_bitset__HigherLevel_9 * (MR_Integer) 5);
#line 752 "tree_bitset.m"
    mercury__tree_bitset__ParentRangeSize_10 = (mercury__tree_bitset__V_12_12 << mercury__tree_bitset__V_13_13);
#line 754 "tree_bitset.m"
    mercury__tree_bitset__V_16_16 = (mercury__tree_bitset__ParentRangeSize_10 - (MR_Integer) 1);
#line 754 "tree_bitset.m"
    mercury__tree_bitset__V_15_15 = ~(mercury__tree_bitset__V_16_16);
#line 754 "tree_bitset.m"
    *mercury__tree_bitset__ParentInitOffset_7 = (mercury__tree_bitset__NodeOffset_5 & mercury__tree_bitset__V_15_15);
#line 755 "tree_bitset.m"
    *mercury__tree_bitset__ParentLimitOffset_8 = (*mercury__tree_bitset__ParentInitOffset_7 + mercury__tree_bitset__ParentRangeSize_10);
#line 750 "tree_bitset.m"
  }
#line 747 "tree_bitset.m"
}

#line 704 "tree_bitset.m"
static MR_Word MR_CALL 
mercury__tree_bitset__integrity_interior_nodes_4_f_0(
#line 704 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 704 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__2_2,
#line 704 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__3_3,
#line 704 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__4_4)
#line 704 "tree_bitset.m"
{
#line 706 "tree_bitset.m"
  while (MR_TRUE)
#line 706 "tree_bitset.m"
    {
#line 706 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 706 "tree_bitset.m"
      {
#line 706 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;
#line 706 "tree_bitset.m"
        MR_Word mercury__tree_bitset__HeadVar__5_5;

#line 706 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 706 "tree_bitset.m"
          mercury__tree_bitset__HeadVar__5_5 = (MR_Integer) 1;
#line 706 "tree_bitset.m"
        else
#line 707 "tree_bitset.m"
          {
#line 707 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Head_9 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));
#line 707 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Tail_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 707 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__NodeInit_15 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_9, (MR_Integer) 0)));
#line 707 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__NodeLimit_16 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_9, (MR_Integer) 1)));
#line 707 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Components_17 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_9, (MR_Integer) 2)));
#line 707 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__CalcLimit_18;
#line 707 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_23_23;
#line 707 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24;
#line 707 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_25_25;
#line 711 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_27_27;
#line 711 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_29_29;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__integrity_interior_nodes_4_f_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 64073 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_24_24  = Bits;
#line 171 "int.opt"
}
#line 710 "tree_bitset.m"
            mercury__tree_bitset__V_25_25 = (mercury__tree_bitset__HeadVar__2_2 * (MR_Integer) 5);
#line 709 "tree_bitset.m"
            mercury__tree_bitset__V_23_23 = (mercury__tree_bitset__V_24_24 << mercury__tree_bitset__V_25_25);
#line 709 "tree_bitset.m"
            mercury__tree_bitset__CalcLimit_18 = (mercury__tree_bitset__NodeInit_15 + mercury__tree_bitset__V_23_23);
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__integrity_interior_nodes_4_f_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 64097 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_29_29  = Bits;
#line 171 "int.opt"
}
#line 292 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__integrity_interior_nodes_4_f_0

	MR_bool SUCCESS_INDICATOR;

		{
#line 292 "int.opt"

#ifdef ML_OMIT_MATH_DOMAIN_CHECKS
    SUCCESS_INDICATOR = MR_FALSE;
#else
    SUCCESS_INDICATOR = MR_TRUE;
#endif

#line 64119 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	if (SUCCESS_INDICATOR) {
#line 292 "int.opt"
	}
mercury__tree_bitset__succeeded  = SUCCESS_INDICATOR;
}
#line 117 "int.opt"
            if (mercury__tree_bitset__succeeded)
#line 118 "int.opt"
              mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_29_29 == (MR_Integer) 0);
#line 123 "int.opt"
            if (mercury__tree_bitset__succeeded)
#line 120 "int.opt"
              {
#line 120 "int.opt"
                MR_Word mercury__tree_bitset__TypeCtorInfo_9_43 = (MR_Word) &mercury__math__math__type_ctor_info_domain_error_0;
#line 120 "int.opt"
                MR_Word mercury__tree_bitset__V_7_41 = (MR_Word) ((MR_Box) ((MR_String) "int.rem: division by zero"));

#line 122 "int.opt"
                {
#line 122 "int.opt"
                  mercury__exception__throw_1_p_0(mercury__tree_bitset__TypeCtorInfo_9_43, ((MR_Box) (mercury__tree_bitset__V_7_41)));
                }
#line 120 "int.opt"
              }
#line 123 "int.opt"
            else
#line 124 "int.opt"
              mercury__tree_bitset__V_27_27 = (mercury__tree_bitset__NodeInit_15 % mercury__tree_bitset__V_29_29);
#line 711 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_27_27 > (MR_Integer) 0);
#line 713 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 712 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__5_5 = (MR_Integer) 0;
#line 713 "tree_bitset.m"
            else
#line 715 "tree_bitset.m"
              {
#line 713 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_30_30;
#line 713 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_32_32;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__integrity_interior_nodes_4_f_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 64178 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_32_32  = Bits;
#line 171 "int.opt"
}
#line 292 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__integrity_interior_nodes_4_f_0

	MR_bool SUCCESS_INDICATOR;

		{
#line 292 "int.opt"

#ifdef ML_OMIT_MATH_DOMAIN_CHECKS
    SUCCESS_INDICATOR = MR_FALSE;
#else
    SUCCESS_INDICATOR = MR_TRUE;
#endif

#line 64200 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	if (SUCCESS_INDICATOR) {
#line 292 "int.opt"
	}
mercury__tree_bitset__succeeded  = SUCCESS_INDICATOR;
}
#line 117 "int.opt"
                if (mercury__tree_bitset__succeeded)
#line 118 "int.opt"
                  mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_32_32 == (MR_Integer) 0);
#line 123 "int.opt"
                if (mercury__tree_bitset__succeeded)
#line 120 "int.opt"
                  {
#line 120 "int.opt"
                    MR_Word mercury__tree_bitset__TypeCtorInfo_9_50 = (MR_Word) &mercury__math__math__type_ctor_info_domain_error_0;
#line 120 "int.opt"
                    MR_Word mercury__tree_bitset__V_7_48 = (MR_Word) ((MR_Box) ((MR_String) "int.rem: division by zero"));

#line 122 "int.opt"
                    {
#line 122 "int.opt"
                      mercury__exception__throw_1_p_0(mercury__tree_bitset__TypeCtorInfo_9_50, ((MR_Box) (mercury__tree_bitset__V_7_48)));
                    }
#line 120 "int.opt"
                  }
#line 123 "int.opt"
                else
#line 124 "int.opt"
                  mercury__tree_bitset__V_30_30 = (mercury__tree_bitset__NodeLimit_16 % mercury__tree_bitset__V_32_32);
#line 713 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_30_30 > (MR_Integer) 0);
#line 715 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 714 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__5_5 = (MR_Integer) 0;
#line 715 "tree_bitset.m"
                else
#line 717 "tree_bitset.m"
                  {
#line 715 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = (mercury__tree_bitset__NodeLimit_16 == mercury__tree_bitset__CalcLimit_18);
#line 715 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = !(mercury__tree_bitset__succeeded);
#line 717 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 716 "tree_bitset.m"
                      mercury__tree_bitset__HeadVar__5_5 = (MR_Integer) 0;
#line 717 "tree_bitset.m"
                    else
#line 719 "tree_bitset.m"
                      {
#line 717 "tree_bitset.m"
                        MR_Integer mercury__tree_bitset__V_33_33;
#line 717 "tree_bitset.m"
                        MR_Integer mercury__tree_bitset__V_34_34;

#line 717 "tree_bitset.m"
                        mercury__tree_bitset__succeeded = (mercury__tree_bitset__HeadVar__3_3 <= mercury__tree_bitset__NodeInit_15);
#line 717 "tree_bitset.m"
                        if (mercury__tree_bitset__succeeded)
#line 717 "tree_bitset.m"
                          {
#line 717 "tree_bitset.m"
                            mercury__tree_bitset__V_34_34 = (MR_Integer) 1;
#line 717 "tree_bitset.m"
                            mercury__tree_bitset__V_33_33 = (mercury__tree_bitset__NodeLimit_16 - mercury__tree_bitset__V_34_34);
#line 717 "tree_bitset.m"
                            mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_33_33 < mercury__tree_bitset__HeadVar__4_4);
#line 717 "tree_bitset.m"
                          }
#line 717 "tree_bitset.m"
                        mercury__tree_bitset__succeeded = !(mercury__tree_bitset__succeeded);
#line 719 "tree_bitset.m"
                        if (mercury__tree_bitset__succeeded)
#line 718 "tree_bitset.m"
                          mercury__tree_bitset__HeadVar__5_5 = (MR_Integer) 0;
#line 719 "tree_bitset.m"
                        else
#line 735 "tree_bitset.m"
                          {
#line 735 "tree_bitset.m"
                            MR_Word mercury__tree_bitset__SubOK_20;

#line 727 "tree_bitset.m"
                            if (((MR_tag((MR_Word) mercury__tree_bitset__Components_17)) == (MR_mktag((MR_Integer) 1))))
#line 728 "tree_bitset.m"
                              {
#line 728 "tree_bitset.m"
                                MR_Integer mercury__tree_bitset__CompLevel_21 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_17, (MR_Integer) 0)));
#line 728 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__InteriorNodes_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__Components_17, (MR_Integer) 1)));
#line 729 "tree_bitset.m"
                                MR_Integer mercury__tree_bitset__V_35_35 = (mercury__tree_bitset__HeadVar__2_2 - mercury__tree_bitset__CompLevel_21);

#line 729 "tree_bitset.m"
                                mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_35_35 == (MR_Integer) 1);
#line 732 "tree_bitset.m"
                                if (mercury__tree_bitset__succeeded)
#line 730 "tree_bitset.m"
                                  {
#line 730 "tree_bitset.m"
                                    mercury__tree_bitset__SubOK_20 = mercury__tree_bitset__integrity_interior_nodes_4_f_0(mercury__tree_bitset__InteriorNodes_22, mercury__tree_bitset__CompLevel_21, mercury__tree_bitset__NodeInit_15, mercury__tree_bitset__NodeLimit_16);
                                  }
#line 732 "tree_bitset.m"
                                else
#line 733 "tree_bitset.m"
                                  mercury__tree_bitset__SubOK_20 = (MR_Integer) 0;
#line 728 "tree_bitset.m"
                              }
#line 727 "tree_bitset.m"
                            else
#line 721 "tree_bitset.m"
                              {
#line 721 "tree_bitset.m"
                                MR_Word mercury__tree_bitset__LeafNodes_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Components_17, (MR_Integer) 0)));

#line 722 "tree_bitset.m"
                                mercury__tree_bitset__succeeded = (mercury__tree_bitset__HeadVar__2_2 == (MR_Integer) 1);
#line 724 "tree_bitset.m"
                                if (mercury__tree_bitset__succeeded)
#line 723 "tree_bitset.m"
                                  {
#line 723 "tree_bitset.m"
                                    mercury__tree_bitset__SubOK_20 = mercury__tree_bitset__integrity_leaf_nodes_3_f_0(mercury__tree_bitset__LeafNodes_19, mercury__tree_bitset__NodeInit_15, mercury__tree_bitset__NodeLimit_16);
                                  }
#line 724 "tree_bitset.m"
                                else
#line 725 "tree_bitset.m"
                                  mercury__tree_bitset__SubOK_20 = (MR_Integer) 0;
#line 721 "tree_bitset.m"
                              }
#line 739 "tree_bitset.m"
                            if ((mercury__tree_bitset__SubOK_20 == (MR_Integer) 0))
#line 738 "tree_bitset.m"
                              mercury__tree_bitset__HeadVar__5_5 = (MR_Integer) 0;
#line 739 "tree_bitset.m"
                            else
#line 741 "tree_bitset.m"
                              {
#line 741 "tree_bitset.m"
                                /* direct tailcall eliminated */
#line 741 "tree_bitset.m"
                                {
#line 741 "tree_bitset.m"
                                  MR_Word mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__Tail_10;

#line 741 "tree_bitset.m"
                                  mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 741 "tree_bitset.m"
                                }
#line 741 "tree_bitset.m"
                                continue;
#line 741 "tree_bitset.m"
                              }
#line 735 "tree_bitset.m"
                          }
#line 719 "tree_bitset.m"
                      }
#line 717 "tree_bitset.m"
                  }
#line 715 "tree_bitset.m"
              }
#line 707 "tree_bitset.m"
          }
#line 706 "tree_bitset.m"
        return mercury__tree_bitset__HeadVar__5_5;
#line 706 "tree_bitset.m"
      }
#line 706 "tree_bitset.m"
      break;
#line 706 "tree_bitset.m"
    }
#line 704 "tree_bitset.m"
}

#line 691 "tree_bitset.m"
static MR_Word MR_CALL 
mercury__tree_bitset__integrity_leaf_nodes_3_f_0(
#line 691 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 691 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__2_2,
#line 691 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__HeadVar__3_3)
#line 691 "tree_bitset.m"
{
#line 693 "tree_bitset.m"
  while (MR_TRUE)
#line 693 "tree_bitset.m"
    {
#line 693 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 693 "tree_bitset.m"
      {
#line 693 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;
#line 693 "tree_bitset.m"
        MR_Word mercury__tree_bitset__HeadVar__4_4;

#line 693 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 693 "tree_bitset.m"
          mercury__tree_bitset__HeadVar__4_4 = (MR_Integer) 1;
#line 693 "tree_bitset.m"
        else
#line 694 "tree_bitset.m"
          {
#line 694 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Head_7 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));
#line 694 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Tail_8 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 694 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Offset_12 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_7, (MR_Integer) 0)));
#line 695 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_20_20 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Head_7, (MR_Integer) 1)));
#line 696 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_13_13;
#line 696 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_15_15;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__integrity_leaf_nodes_3_f_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 64435 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_15_15  = Bits;
#line 171 "int.opt"
}
#line 292 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__integrity_leaf_nodes_3_f_0

	MR_bool SUCCESS_INDICATOR;

		{
#line 292 "int.opt"

#ifdef ML_OMIT_MATH_DOMAIN_CHECKS
    SUCCESS_INDICATOR = MR_FALSE;
#else
    SUCCESS_INDICATOR = MR_TRUE;
#endif

#line 64457 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	if (SUCCESS_INDICATOR) {
#line 292 "int.opt"
	}
mercury__tree_bitset__succeeded  = SUCCESS_INDICATOR;
}
#line 117 "int.opt"
            if (mercury__tree_bitset__succeeded)
#line 118 "int.opt"
              mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_15_15 == (MR_Integer) 0);
#line 123 "int.opt"
            if (mercury__tree_bitset__succeeded)
#line 120 "int.opt"
              {
#line 120 "int.opt"
                MR_Word mercury__tree_bitset__TypeCtorInfo_9_27 = (MR_Word) &mercury__math__math__type_ctor_info_domain_error_0;
#line 120 "int.opt"
                MR_Word mercury__tree_bitset__V_7_25 = (MR_Word) ((MR_Box) ((MR_String) "int.rem: division by zero"));

#line 122 "int.opt"
                {
#line 122 "int.opt"
                  mercury__exception__throw_1_p_0(mercury__tree_bitset__TypeCtorInfo_9_27, ((MR_Box) (mercury__tree_bitset__V_7_25)));
                }
#line 120 "int.opt"
              }
#line 123 "int.opt"
            else
#line 124 "int.opt"
              mercury__tree_bitset__V_13_13 = (mercury__tree_bitset__Offset_12 % mercury__tree_bitset__V_15_15);
#line 696 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_13_13 > (MR_Integer) 0);
#line 698 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 697 "tree_bitset.m"
              mercury__tree_bitset__HeadVar__4_4 = (MR_Integer) 0;
#line 698 "tree_bitset.m"
            else
#line 700 "tree_bitset.m"
              {
#line 698 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_16_16;
#line 698 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_17_17;
#line 698 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_18_18;
#line 698 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_19_19;

#line 698 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__HeadVar__2_2 <= mercury__tree_bitset__Offset_12);
#line 698 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 698 "tree_bitset.m"
                  {
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__integrity_leaf_nodes_3_f_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 64526 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_18_18  = Bits;
#line 171 "int.opt"
}
#line 698 "tree_bitset.m"
                    mercury__tree_bitset__V_17_17 = (mercury__tree_bitset__Offset_12 + mercury__tree_bitset__V_18_18);
#line 698 "tree_bitset.m"
                    mercury__tree_bitset__V_19_19 = (MR_Integer) 1;
#line 698 "tree_bitset.m"
                    mercury__tree_bitset__V_16_16 = (mercury__tree_bitset__V_17_17 - mercury__tree_bitset__V_19_19);
#line 698 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_16_16 < mercury__tree_bitset__HeadVar__3_3);
#line 698 "tree_bitset.m"
                  }
#line 698 "tree_bitset.m"
                mercury__tree_bitset__succeeded = !(mercury__tree_bitset__succeeded);
#line 700 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 699 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__4_4 = (MR_Integer) 0;
#line 700 "tree_bitset.m"
                else
#line 701 "tree_bitset.m"
                  {
#line 701 "tree_bitset.m"
                    /* direct tailcall eliminated */
#line 701 "tree_bitset.m"
                    {
#line 701 "tree_bitset.m"
                      MR_Word mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__Tail_8;

#line 701 "tree_bitset.m"
                      mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 701 "tree_bitset.m"
                    }
#line 701 "tree_bitset.m"
                    continue;
#line 701 "tree_bitset.m"
                  }
#line 700 "tree_bitset.m"
              }
#line 694 "tree_bitset.m"
          }
#line 693 "tree_bitset.m"
        return mercury__tree_bitset__HeadVar__4_4;
#line 693 "tree_bitset.m"
      }
#line 693 "tree_bitset.m"
      break;
#line 693 "tree_bitset.m"
    }
#line 691 "tree_bitset.m"
}

#line 597 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__integrity_2_f_0(
#line 597 "tree_bitset.m"
  MR_Word mercury__tree_bitset__MaybeBounds_4,
#line 597 "tree_bitset.m"
  MR_Word mercury__tree_bitset__NodeList_5)
#line 597 "tree_bitset.m"
{
#line 601 "tree_bitset.m"
  {
#line 601 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 601 "tree_bitset.m"
    MR_Word mercury__tree_bitset__OK_6;

#line 601 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__NodeList_5)) == (MR_mktag((MR_Integer) 1))))
#line 639 "tree_bitset.m"
      {
#line 639 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Level_16 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_5, (MR_Integer) 0)));
#line 639 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_17 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_5, (MR_Integer) 1)));
#line 639 "tree_bitset.m"
        MR_Word mercury__tree_bitset__ListOK_18;

#line 643 "tree_bitset.m"
        if ((mercury__tree_bitset__InteriorNodes_17 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 642 "tree_bitset.m"
          mercury__tree_bitset__ListOK_18 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 643 "tree_bitset.m"
        else
#line 644 "tree_bitset.m"
          {
#line 644 "tree_bitset.m"
            MR_Word mercury__tree_bitset__IH_19 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorNodes_17, (MR_Integer) 0)));
#line 644 "tree_bitset.m"
            MR_Word mercury__tree_bitset__IT_20 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorNodes_17, (MR_Integer) 1)));

#line 654 "tree_bitset.m"
            if ((mercury__tree_bitset__IT_20 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 650 "tree_bitset.m"
              if ((mercury__tree_bitset__MaybeBounds_4 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 649 "tree_bitset.m"
                mercury__tree_bitset__ListOK_18 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 650 "tree_bitset.m"
              else
#line 652 "tree_bitset.m"
                {
#line 652 "tree_bitset.m"
                  mercury__tree_bitset__ListOK_18 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 652 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListOK_18, 0) = ((MR_Box) (mercury__tree_bitset__IH_19));
#line 652 "tree_bitset.m"
                }
#line 654 "tree_bitset.m"
            else
#line 656 "tree_bitset.m"
              {
#line 656 "tree_bitset.m"
                mercury__tree_bitset__ListOK_18 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 656 "tree_bitset.m"
                MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListOK_18, 0) = ((MR_Box) (mercury__tree_bitset__IH_19));
#line 656 "tree_bitset.m"
              }
#line 644 "tree_bitset.m"
          }
#line 662 "tree_bitset.m"
        if ((mercury__tree_bitset__ListOK_18 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 661 "tree_bitset.m"
          mercury__tree_bitset__OK_6 = (MR_Integer) 0;
#line 662 "tree_bitset.m"
        else
#line 663 "tree_bitset.m"
          {
#line 663 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InteriorHead_24 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListOK_18, (MR_Integer) 0)));
#line 663 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_25_25 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorHead_24, (MR_Integer) 0)));
#line 663 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentInitOffset_34;
#line 663 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentLimitOffset_35;
#line 663 "tree_bitset.m"
            MR_Word mercury__tree_bitset__LimitOK_36;
#line 664 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_50_50 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorHead_24, (MR_Integer) 1)));
#line 664 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_51_51 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorHead_24, (MR_Integer) 2)));

#line 664 "tree_bitset.m"
            {
#line 664 "tree_bitset.m"
              mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_25_25, mercury__tree_bitset__Level_16, &mercury__tree_bitset__ParentInitOffset_34, &mercury__tree_bitset__ParentLimitOffset_35);
            }
#line 669 "tree_bitset.m"
            if ((mercury__tree_bitset__MaybeBounds_4 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 668 "tree_bitset.m"
              mercury__tree_bitset__LimitOK_36 = (MR_Integer) 1;
#line 669 "tree_bitset.m"
            else
#line 670 "tree_bitset.m"
              {
#line 670 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_26_26 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__MaybeBounds_4, (MR_Integer) 0)));
#line 670 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Init_30 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_26_26, (MR_Integer) 0)));
#line 670 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Limit_31 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_26_26, (MR_Integer) 1)));

#line 672 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__Init_30 == mercury__tree_bitset__ParentInitOffset_34);
#line 672 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 673 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = (mercury__tree_bitset__Limit_31 == mercury__tree_bitset__ParentLimitOffset_35);
#line 676 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 675 "tree_bitset.m"
                  mercury__tree_bitset__LimitOK_36 = (MR_Integer) 1;
#line 676 "tree_bitset.m"
                else
#line 677 "tree_bitset.m"
                  mercury__tree_bitset__LimitOK_36 = (MR_Integer) 0;
#line 670 "tree_bitset.m"
              }
#line 683 "tree_bitset.m"
            if ((mercury__tree_bitset__LimitOK_36 == (MR_Integer) 0))
#line 682 "tree_bitset.m"
              mercury__tree_bitset__OK_6 = (MR_Integer) 0;
#line 683 "tree_bitset.m"
            else
#line 685 "tree_bitset.m"
              {
#line 685 "tree_bitset.m"
                return mercury__tree_bitset__OK_6 = mercury__tree_bitset__integrity_interior_nodes_4_f_0(mercury__tree_bitset__InteriorNodes_17, mercury__tree_bitset__Level_16, mercury__tree_bitset__ParentInitOffset_34, mercury__tree_bitset__ParentLimitOffset_35);
              }
#line 663 "tree_bitset.m"
          }
#line 639 "tree_bitset.m"
      }
#line 601 "tree_bitset.m"
    else
#line 601 "tree_bitset.m"
      {
#line 601 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_7 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__NodeList_5, (MR_Integer) 0)));

#line 611 "tree_bitset.m"
        if ((mercury__tree_bitset__LeafNodes_7 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 607 "tree_bitset.m"
          if ((mercury__tree_bitset__MaybeBounds_4 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 606 "tree_bitset.m"
            mercury__tree_bitset__OK_6 = (MR_Integer) 1;
#line 607 "tree_bitset.m"
          else
#line 609 "tree_bitset.m"
            mercury__tree_bitset__OK_6 = (MR_Integer) 0;
#line 611 "tree_bitset.m"
        else
#line 612 "tree_bitset.m"
          {
#line 612 "tree_bitset.m"
            MR_Word mercury__tree_bitset__LeafHead_9 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodes_7, (MR_Integer) 0)));
#line 612 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentInitOffset_11;
#line 612 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentLimitOffset_12;
#line 612 "tree_bitset.m"
            MR_Word mercury__tree_bitset__LimitOK_13;
#line 612 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_27_27 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__LeafHead_9, (MR_Integer) 0)));
#line 612 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_10_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodes_7, (MR_Integer) 1)));
#line 613 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_49_49 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__LeafHead_9, (MR_Integer) 1)));

#line 613 "tree_bitset.m"
            {
#line 613 "tree_bitset.m"
              mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_27_27, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffset_11, &mercury__tree_bitset__ParentLimitOffset_12);
            }
#line 618 "tree_bitset.m"
            if ((mercury__tree_bitset__MaybeBounds_4 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 617 "tree_bitset.m"
              mercury__tree_bitset__LimitOK_13 = (MR_Integer) 1;
#line 618 "tree_bitset.m"
            else
#line 619 "tree_bitset.m"
              {
#line 619 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Init_14;
#line 619 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Limit_15;
#line 619 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_29_29 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__MaybeBounds_4, (MR_Integer) 0)));

#line 619 "tree_bitset.m"
                mercury__tree_bitset__Init_14 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_29_29, (MR_Integer) 0)));
#line 619 "tree_bitset.m"
                mercury__tree_bitset__Limit_15 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_29_29, (MR_Integer) 1)));
#line 621 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__Init_14 == mercury__tree_bitset__ParentInitOffset_11);
#line 621 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 622 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = (mercury__tree_bitset__Limit_15 == mercury__tree_bitset__ParentLimitOffset_12);
#line 625 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 624 "tree_bitset.m"
                  mercury__tree_bitset__LimitOK_13 = (MR_Integer) 1;
#line 625 "tree_bitset.m"
                else
#line 626 "tree_bitset.m"
                  mercury__tree_bitset__LimitOK_13 = (MR_Integer) 0;
#line 619 "tree_bitset.m"
              }
#line 632 "tree_bitset.m"
            if ((mercury__tree_bitset__LimitOK_13 == (MR_Integer) 0))
#line 631 "tree_bitset.m"
              mercury__tree_bitset__OK_6 = (MR_Integer) 0;
#line 632 "tree_bitset.m"
            else
#line 634 "tree_bitset.m"
              {
#line 634 "tree_bitset.m"
                return mercury__tree_bitset__OK_6 = mercury__tree_bitset__integrity_leaf_nodes_3_f_0(mercury__tree_bitset__LeafNodes_7, mercury__tree_bitset__ParentInitOffset_11, mercury__tree_bitset__ParentLimitOffset_12);
              }
#line 612 "tree_bitset.m"
          }
#line 601 "tree_bitset.m"
      }
#line 601 "tree_bitset.m"
    return mercury__tree_bitset__OK_6;
#line 601 "tree_bitset.m"
  }
#line 597 "tree_bitset.m"
}

#line 584 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__wrap_tree_bitset_1_f_0(
#line 584 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_10,
#line 584 "tree_bitset.m"
  MR_Word mercury__tree_bitset__NodeList_3)
#line 584 "tree_bitset.m"
{
#line 595 "tree_bitset.m"
  {
#line 595 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 595 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Set_4 = (MR_Word) mercury__tree_bitset__NodeList_3;

#line 595 "tree_bitset.m"
    return mercury__tree_bitset__Set_4;
#line 595 "tree_bitset.m"
  }
#line 584 "tree_bitset.m"
}

#line 560 "tree_bitset.m"
MR_Box MR_CALL 
mercury__tree_bitset__index_to_enum_1_f_0(
#line 560 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_9,
#line 560 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Index_3)
#line 560 "tree_bitset.m"
{
#line 565 "tree_bitset.m"
  {
#line 565 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 565 "tree_bitset.m"
    MR_Box mercury__tree_bitset__Elem_4;
#line 565 "tree_bitset.m"
    MR_Box mercury__tree_bitset__Elem0_5;
#line 64863 "tree_bitset.c"
    MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_9, (MR_Integer) 0)), (MR_Integer) 6)));

#line 64866 "tree_bitset.c"
    {
#line 64868 "tree_bitset.c"
      mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_9), ((MR_Box) (mercury__tree_bitset__Index_3)), &mercury__tree_bitset__Elem0_5);
    }
#line 565 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
      mercury__tree_bitset__Elem_4 = mercury__tree_bitset__Elem0_5;
#line 565 "tree_bitset.m"
    else
#line 568 "tree_bitset.m"
      {
#line 568 "tree_bitset.m"
        {
#line 568 "tree_bitset.m"
          mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
        }
#line 568 "tree_bitset.m"
      }
#line 565 "tree_bitset.m"
    return mercury__tree_bitset__Elem_4;
#line 565 "tree_bitset.m"
  }
#line 560 "tree_bitset.m"
}

#line 551 "tree_bitset.m"
static MR_Integer MR_CALL 
mercury__tree_bitset__enum_to_index_1_f_0(
#line 551 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_10,
#line 551 "tree_bitset.m"
  MR_Box mercury__tree_bitset__Elem_3)
#line 551 "tree_bitset.m"
{
#line 553 "tree_bitset.m"
  {
#line 553 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 553 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__Index_4;
#line 64908 "tree_bitset.c"
    MR_Box MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box) = ((MR_Box MR_CALL (*)(MR_Box, MR_Box)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_10, (MR_Integer) 0)), (MR_Integer) 5)));
#line 64910 "tree_bitset.c"
    MR_Box mercury__tree_bitset__conv1_Index_4;

#line 64913 "tree_bitset.c"
    {
#line 64915 "tree_bitset.c"
      mercury__tree_bitset__conv1_Index_4 = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_10), mercury__tree_bitset__Elem_3);
    }
#line 64918 "tree_bitset.c"
    mercury__tree_bitset__Index_4 = ((MR_Integer) mercury__tree_bitset__conv1_Index_4);
#line 29 "require.opt"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__Index_4 >= (MR_Integer) 0);
#line 32 "require.opt"
    if (mercury__tree_bitset__succeeded)
#line 31 "require.opt"
      {
#line 31 "require.opt"
      }
#line 32 "require.opt"
    else
#line 33 "require.opt"
      {
#line 33 "require.opt"
        mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.enum_to_index\'/1", (MR_String) "enums must map to nonnegative integers");
      }
#line 553 "tree_bitset.m"
    return mercury__tree_bitset__Index_4;
#line 553 "tree_bitset.m"
  }
#line 551 "tree_bitset.m"
}

#line 544 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__make_leaf_node_2_f_0(
#line 544 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Offset_4,
#line 544 "tree_bitset.m"
  MR_Integer mercury__tree_bitset__Bits_5)
#line 544 "tree_bitset.m"
{
#line 547 "tree_bitset.m"
  {
#line 547 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 547 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__3_3;

#line 547 "tree_bitset.m"
    {
#line 547 "tree_bitset.m"
      mercury__tree_bitset__HeadVar__3_3 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
      MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__3_3, 0) = ((MR_Box) (mercury__tree_bitset__Offset_4));
#line 547 "tree_bitset.m"
      MR_hl_field(MR_mktag(0), mercury__tree_bitset__HeadVar__3_3, 1) = ((MR_Box) (mercury__tree_bitset__Bits_5));
#line 547 "tree_bitset.m"
    }
#line 547 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__3_3;
#line 547 "tree_bitset.m"
  }
#line 544 "tree_bitset.m"
}

#line 335 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__filter_4_p_0(
#line 335 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_12,
#line 335 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Pred_5,
#line 335 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 335 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__TrueSet_7,
#line 335 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__FalseSet_8)
#line 335 "tree_bitset.m"
{
#line 964 "tree_bitset.m"
  {
#line 964 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 964 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_14_14;
#line 964 "tree_bitset.m"
    MR_Word mercury__tree_bitset__SortedList_9;
#line 964 "tree_bitset.m"
    MR_Word mercury__tree_bitset__SortedTrueList_10;
#line 964 "tree_bitset.m"
    MR_Word mercury__tree_bitset__SortedFalseList_11;

#line 965 "tree_bitset.m"
    {
#line 965 "tree_bitset.m"
      mercury__tree_bitset__SortedList_9 = mercury__tree_bitset__to_sorted_list_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_12, mercury__tree_bitset__Set_6);
    }
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__filter_4_p_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_12 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 65023 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_14_14  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 966 "tree_bitset.m"
    {
#line 966 "tree_bitset.m"
      mercury__list__filter_4_p_0(mercury__tree_bitset__TypeInfo_14_14, mercury__tree_bitset__Pred_5, mercury__tree_bitset__SortedList_9, &mercury__tree_bitset__SortedTrueList_10, &mercury__tree_bitset__SortedFalseList_11);
    }
#line 967 "tree_bitset.m"
    {
#line 967 "tree_bitset.m"
      *mercury__tree_bitset__TrueSet_7 = mercury__tree_bitset__sorted_list_to_set_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_12, mercury__tree_bitset__SortedTrueList_10);
    }
#line 968 "tree_bitset.m"
    {
#line 968 "tree_bitset.m"
      *mercury__tree_bitset__FalseSet_8 = mercury__tree_bitset__sorted_list_to_set_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_12, mercury__tree_bitset__SortedFalseList_11);
    }
#line 964 "tree_bitset.m"
  }
#line 335 "tree_bitset.m"
}

#line 328 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__filter_2_f_0(
#line 328 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_9,
#line 328 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Pred_4,
#line 328 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_5)
#line 328 "tree_bitset.m"
{
#line 959 "tree_bitset.m"
  {
#line 959 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 959 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TrueSet_6;
#line 959 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_11_11;
#line 959 "tree_bitset.m"
    MR_Word mercury__tree_bitset__SortedList_7;
#line 959 "tree_bitset.m"
    MR_Word mercury__tree_bitset__SortedTrueList_8;

#line 960 "tree_bitset.m"
    {
#line 960 "tree_bitset.m"
      mercury__tree_bitset__SortedList_7 = mercury__tree_bitset__to_sorted_list_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_9, mercury__tree_bitset__Set_5);
    }
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__filter_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_9 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 65094 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_11_11  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 624 "list.opt"
    {
#line 624 "list.opt"
      mercury__list__filter_3_p_0(mercury__tree_bitset__TypeInfo_11_11, mercury__tree_bitset__Pred_4, mercury__tree_bitset__SortedList_7, &mercury__tree_bitset__SortedTrueList_8);
    }
#line 962 "tree_bitset.m"
    {
#line 962 "tree_bitset.m"
      return mercury__tree_bitset__TrueSet_6 = mercury__tree_bitset__sorted_list_to_set_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_9, mercury__tree_bitset__SortedTrueList_8);
    }
#line 959 "tree_bitset.m"
    return mercury__tree_bitset__TrueSet_6;
#line 959 "tree_bitset.m"
  }
#line 328 "tree_bitset.m"
}

#line 321 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__all_true_2_p_0(
#line 321 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_9,
#line 321 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_3,
#line 321 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_4)
#line 321 "tree_bitset.m"
{
#line 4055 "tree_bitset.m"
  {
#line 4055 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 4055 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_5 = (MR_Word) mercury__tree_bitset__Set_4;

#line 4060 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_5)) == (MR_mktag((MR_Integer) 1))))
#line 4061 "tree_bitset.m"
      {
#line 4061 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_8 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_5, (MR_Integer) 1)));
#line 4061 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_7_7 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_5, (MR_Integer) 0)));

#line 4062 "tree_bitset.m"
        {
#line 4062 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__interior_all_true_2_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_9, mercury__tree_bitset__P_3, mercury__tree_bitset__InteriorNodes_8);
        }
#line 4061 "tree_bitset.m"
      }
#line 4060 "tree_bitset.m"
    else
#line 4058 "tree_bitset.m"
      {
#line 4058 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_6 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_5, (MR_Integer) 0)));

#line 4059 "tree_bitset.m"
        {
#line 4059 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__leaf_all_true_2_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_9, mercury__tree_bitset__P_3, mercury__tree_bitset__LeafNodes_6);
        }
#line 4058 "tree_bitset.m"
      }
#line 4055 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 4055 "tree_bitset.m"
  }
#line 321 "tree_bitset.m"
}

#line 315 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldr2_6_p_7(
#line 315 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 315 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_25,
#line 315 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 315 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_7,
#line 315 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_8,
#line 315 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_15,
#line 315 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_16,
#line 315 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_17,
#line 315 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_18)
#line 315 "tree_bitset.m"
{
#line 3825 "tree_bitset.m"
  {
#line 3825 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3825 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11 = (MR_Word) mercury__tree_bitset__Set_8;

#line 3830 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_11)) == (MR_mktag((MR_Integer) 1))))
#line 3831 "tree_bitset.m"
      {
#line 3831 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 1)));
#line 3831 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_13_13 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3832 "tree_bitset.m"
        {
#line 3832 "tree_bitset.m"
          mercury__tree_bitset__do_foldr2_pred_6_p_7(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__InteriorNodes_14, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3832 "tree_bitset.m"
          return;
        }
#line 3831 "tree_bitset.m"
      }
#line 3830 "tree_bitset.m"
    else
#line 3828 "tree_bitset.m"
      {
#line 3828 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_12 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3829 "tree_bitset.m"
        {
#line 3829 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldr2_pred_6_p_7(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__LeafNodes_12, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3829 "tree_bitset.m"
          return;
        }
#line 3828 "tree_bitset.m"
      }
#line 3825 "tree_bitset.m"
  }
#line 315 "tree_bitset.m"
}

#line 313 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldr2_6_p_6(
#line 313 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 313 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_25,
#line 313 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 313 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_7,
#line 313 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_8,
#line 313 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_15,
#line 313 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_16,
#line 313 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_17,
#line 313 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_18)
#line 313 "tree_bitset.m"
{
#line 3825 "tree_bitset.m"
  {
#line 3825 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3825 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11 = (MR_Word) mercury__tree_bitset__Set_8;

#line 3830 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_11)) == (MR_mktag((MR_Integer) 1))))
#line 3831 "tree_bitset.m"
      {
#line 3831 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 1)));
#line 3831 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_13_13 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3832 "tree_bitset.m"
        {
#line 3832 "tree_bitset.m"
          mercury__tree_bitset__do_foldr2_pred_6_p_6(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__InteriorNodes_14, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3832 "tree_bitset.m"
          return;
        }
#line 3831 "tree_bitset.m"
      }
#line 3830 "tree_bitset.m"
    else
#line 3828 "tree_bitset.m"
      {
#line 3828 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_12 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3829 "tree_bitset.m"
        {
#line 3829 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldr2_pred_6_p_6(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__LeafNodes_12, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3829 "tree_bitset.m"
          return;
        }
#line 3828 "tree_bitset.m"
      }
#line 3825 "tree_bitset.m"
  }
#line 313 "tree_bitset.m"
}

#line 311 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldr2_6_p_5(
#line 311 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 311 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_25,
#line 311 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 311 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_7,
#line 311 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_8,
#line 311 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_15,
#line 311 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_16,
#line 311 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_17,
#line 311 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_18)
#line 311 "tree_bitset.m"
{
#line 3825 "tree_bitset.m"
  {
#line 3825 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3825 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11 = (MR_Word) mercury__tree_bitset__Set_8;

#line 3830 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_11)) == (MR_mktag((MR_Integer) 1))))
#line 3831 "tree_bitset.m"
      {
#line 3831 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 1)));
#line 3831 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_13_13 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3832 "tree_bitset.m"
        {
#line 3832 "tree_bitset.m"
          mercury__tree_bitset__do_foldr2_pred_6_p_5(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__InteriorNodes_14, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3832 "tree_bitset.m"
          return;
        }
#line 3831 "tree_bitset.m"
      }
#line 3830 "tree_bitset.m"
    else
#line 3828 "tree_bitset.m"
      {
#line 3828 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_12 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3829 "tree_bitset.m"
        {
#line 3829 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldr2_pred_6_p_5(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__LeafNodes_12, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3829 "tree_bitset.m"
          return;
        }
#line 3828 "tree_bitset.m"
      }
#line 3825 "tree_bitset.m"
  }
#line 311 "tree_bitset.m"
}

#line 309 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldr2_6_p_4(
#line 309 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 309 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_25,
#line 309 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 309 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_7,
#line 309 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_8,
#line 309 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_15,
#line 309 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_16,
#line 309 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_17,
#line 309 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_18,
#line 309 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 309 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 309 "tree_bitset.m"
{
#line 3825 "tree_bitset.m"
  {
#line 3825 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3825 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11 = (MR_Word) mercury__tree_bitset__Set_8;

#line 3830 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_11)) == (MR_mktag((MR_Integer) 1))))
#line 3831 "tree_bitset.m"
      {
#line 3831 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 1)));
#line 3831 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_13_13 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3832 "tree_bitset.m"
        {
#line 3832 "tree_bitset.m"
          mercury__tree_bitset__do_foldr2_pred_6_p_4(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__InteriorNodes_14, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
#line 3832 "tree_bitset.m"
          return;
        }
#line 3831 "tree_bitset.m"
      }
#line 3830 "tree_bitset.m"
    else
#line 3828 "tree_bitset.m"
      {
#line 3828 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_12 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3829 "tree_bitset.m"
        {
#line 3829 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldr2_pred_6_p_4(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__LeafNodes_12, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
#line 3829 "tree_bitset.m"
          return;
        }
#line 3828 "tree_bitset.m"
      }
#line 3825 "tree_bitset.m"
  }
#line 309 "tree_bitset.m"
}

#line 307 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__foldr2_6_p_3(
#line 307 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 307 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_25,
#line 307 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 307 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_7,
#line 307 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_8,
#line 307 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_15,
#line 307 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_16,
#line 307 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_17,
#line 307 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_18)
#line 307 "tree_bitset.m"
{
#line 3825 "tree_bitset.m"
  {
#line 3825 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3825 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11 = (MR_Word) mercury__tree_bitset__Set_8;

#line 3830 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_11)) == (MR_mktag((MR_Integer) 1))))
#line 3831 "tree_bitset.m"
      {
#line 3831 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 1)));
#line 3831 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_13_13 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3832 "tree_bitset.m"
        {
#line 3832 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__do_foldr2_pred_6_p_3(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__InteriorNodes_14, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
        }
#line 3831 "tree_bitset.m"
      }
#line 3830 "tree_bitset.m"
    else
#line 3828 "tree_bitset.m"
      {
#line 3828 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_12 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3829 "tree_bitset.m"
        {
#line 3829 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__leaf_foldr2_pred_6_p_3(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__LeafNodes_12, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
        }
#line 3828 "tree_bitset.m"
      }
#line 3825 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 3825 "tree_bitset.m"
  }
#line 307 "tree_bitset.m"
}

#line 306 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldr2_6_p_2(
#line 306 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 306 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_25,
#line 306 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 306 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_7,
#line 306 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_8,
#line 306 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_15,
#line 306 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_16,
#line 306 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_17,
#line 306 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_18)
#line 306 "tree_bitset.m"
{
#line 3825 "tree_bitset.m"
  {
#line 3825 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3825 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11 = (MR_Word) mercury__tree_bitset__Set_8;

#line 3830 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_11)) == (MR_mktag((MR_Integer) 1))))
#line 3831 "tree_bitset.m"
      {
#line 3831 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 1)));
#line 3831 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_13_13 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3832 "tree_bitset.m"
        {
#line 3832 "tree_bitset.m"
          mercury__tree_bitset__do_foldr2_pred_6_p_2(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__InteriorNodes_14, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3832 "tree_bitset.m"
          return;
        }
#line 3831 "tree_bitset.m"
      }
#line 3830 "tree_bitset.m"
    else
#line 3828 "tree_bitset.m"
      {
#line 3828 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_12 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3829 "tree_bitset.m"
        {
#line 3829 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldr2_pred_6_p_2(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__LeafNodes_12, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3829 "tree_bitset.m"
          return;
        }
#line 3828 "tree_bitset.m"
      }
#line 3825 "tree_bitset.m"
  }
#line 306 "tree_bitset.m"
}

#line 305 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldr2_6_p_1(
#line 305 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 305 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_25,
#line 305 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 305 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_7,
#line 305 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_8,
#line 305 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_15,
#line 305 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_16,
#line 305 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_17,
#line 305 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_18)
#line 305 "tree_bitset.m"
{
#line 3825 "tree_bitset.m"
  {
#line 3825 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3825 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11 = (MR_Word) mercury__tree_bitset__Set_8;

#line 3830 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_11)) == (MR_mktag((MR_Integer) 1))))
#line 3831 "tree_bitset.m"
      {
#line 3831 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 1)));
#line 3831 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_13_13 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3832 "tree_bitset.m"
        {
#line 3832 "tree_bitset.m"
          mercury__tree_bitset__do_foldr2_pred_6_p_1(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__InteriorNodes_14, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3832 "tree_bitset.m"
          return;
        }
#line 3831 "tree_bitset.m"
      }
#line 3830 "tree_bitset.m"
    else
#line 3828 "tree_bitset.m"
      {
#line 3828 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_12 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3829 "tree_bitset.m"
        {
#line 3829 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldr2_pred_6_p_1(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__LeafNodes_12, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3829 "tree_bitset.m"
          return;
        }
#line 3828 "tree_bitset.m"
      }
#line 3825 "tree_bitset.m"
  }
#line 305 "tree_bitset.m"
}

#line 304 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldr2_6_p_0(
#line 304 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 304 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_25,
#line 304 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 304 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_7,
#line 304 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_8,
#line 304 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_15,
#line 304 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_16,
#line 304 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_17,
#line 304 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_18)
#line 304 "tree_bitset.m"
{
#line 3825 "tree_bitset.m"
  {
#line 3825 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3825 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11 = (MR_Word) mercury__tree_bitset__Set_8;

#line 3830 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_11)) == (MR_mktag((MR_Integer) 1))))
#line 3831 "tree_bitset.m"
      {
#line 3831 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 1)));
#line 3831 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_13_13 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3832 "tree_bitset.m"
        {
#line 3832 "tree_bitset.m"
          mercury__tree_bitset__do_foldr2_pred_6_p_0(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__InteriorNodes_14, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3832 "tree_bitset.m"
          return;
        }
#line 3831 "tree_bitset.m"
      }
#line 3830 "tree_bitset.m"
    else
#line 3828 "tree_bitset.m"
      {
#line 3828 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_12 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3829 "tree_bitset.m"
        {
#line 3829 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldr2_pred_6_p_0(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__LeafNodes_12, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3829 "tree_bitset.m"
          return;
        }
#line 3828 "tree_bitset.m"
      }
#line 3825 "tree_bitset.m"
  }
#line 304 "tree_bitset.m"
}

#line 301 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldr_4_p_5(
#line 301 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 301 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 301 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 301 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 301 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 301 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 301 "tree_bitset.m"
{
#line 3815 "tree_bitset.m"
  {
#line 3815 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3815 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          mercury__tree_bitset__do_foldr_pred_4_p_5(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3822 "tree_bitset.m"
          return;
        }
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldr_pred_4_p_5(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3819 "tree_bitset.m"
          return;
        }
#line 3818 "tree_bitset.m"
      }
#line 3815 "tree_bitset.m"
  }
#line 301 "tree_bitset.m"
}

#line 300 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldr_4_p_4(
#line 300 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 300 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 300 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 300 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 300 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 300 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 300 "tree_bitset.m"
{
#line 3815 "tree_bitset.m"
  {
#line 3815 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3815 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          mercury__tree_bitset__do_foldr_pred_4_p_4(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3822 "tree_bitset.m"
          return;
        }
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldr_pred_4_p_4(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3819 "tree_bitset.m"
          return;
        }
#line 3818 "tree_bitset.m"
      }
#line 3815 "tree_bitset.m"
  }
#line 300 "tree_bitset.m"
}

#line 299 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldr_4_p_3(
#line 299 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 299 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 299 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 299 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 299 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 299 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13,
#line 299 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 299 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 299 "tree_bitset.m"
{
#line 3815 "tree_bitset.m"
  {
#line 3815 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3815 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          mercury__tree_bitset__do_foldr_pred_4_p_3(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
#line 3822 "tree_bitset.m"
          return;
        }
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldr_pred_4_p_3(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
#line 3819 "tree_bitset.m"
          return;
        }
#line 3818 "tree_bitset.m"
      }
#line 3815 "tree_bitset.m"
  }
#line 299 "tree_bitset.m"
}

#line 298 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__foldr_4_p_2(
#line 298 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 298 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 298 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 298 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 298 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 298 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 298 "tree_bitset.m"
{
#line 3815 "tree_bitset.m"
  {
#line 3815 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3815 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__do_foldr_pred_4_p_2(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__leaf_foldr_pred_4_p_2(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3818 "tree_bitset.m"
      }
#line 3815 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 3815 "tree_bitset.m"
  }
#line 298 "tree_bitset.m"
}

#line 297 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldr_4_p_1(
#line 297 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 297 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 297 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 297 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 297 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 297 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 297 "tree_bitset.m"
{
#line 3815 "tree_bitset.m"
  {
#line 3815 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3815 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          mercury__tree_bitset__do_foldr_pred_4_p_1(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3822 "tree_bitset.m"
          return;
        }
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldr_pred_4_p_1(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3819 "tree_bitset.m"
          return;
        }
#line 3818 "tree_bitset.m"
      }
#line 3815 "tree_bitset.m"
  }
#line 297 "tree_bitset.m"
}

#line 296 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldr_4_p_0(
#line 296 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 296 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 296 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 296 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 296 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 296 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 296 "tree_bitset.m"
{
#line 3815 "tree_bitset.m"
  {
#line 3815 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3815 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          mercury__tree_bitset__do_foldr_pred_4_p_0(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3822 "tree_bitset.m"
          return;
        }
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldr_pred_4_p_0(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3819 "tree_bitset.m"
          return;
        }
#line 3818 "tree_bitset.m"
      }
#line 3815 "tree_bitset.m"
  }
#line 296 "tree_bitset.m"
}

#line 293 "tree_bitset.m"
MR_Box MR_CALL 
mercury__tree_bitset__foldr_3_f_0(
#line 293 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_20,
#line 293 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_19,
#line 293 "tree_bitset.m"
  MR_Word mercury__tree_bitset__F_5,
#line 293 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 293 "tree_bitset.m"
  MR_Box mercury__tree_bitset__Acc0_7)
#line 293 "tree_bitset.m"
{
#line 3809 "tree_bitset.m"
  {
#line 3809 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3809 "tree_bitset.m"
    MR_Box mercury__tree_bitset__Acc_8;
#line 3809 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_26 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_26)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_29 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_26, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_26, (MR_Integer) 0)));

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_54_51_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0(mercury__tree_bitset__F_5, mercury__tree_bitset__TypeClassInfo_for_enum_19, mercury__tree_bitset__InteriorNodes_29, mercury__tree_bitset__Acc0_7, &mercury__tree_bitset__Acc_8);
        }
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_27 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_26, (MR_Integer) 0)));

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_54_50_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0(mercury__tree_bitset__F_5, mercury__tree_bitset__TypeClassInfo_for_enum_19, mercury__tree_bitset__LeafNodes_27, mercury__tree_bitset__Acc0_7, &mercury__tree_bitset__Acc_8);
        }
#line 3818 "tree_bitset.m"
      }
#line 3809 "tree_bitset.m"
    return mercury__tree_bitset__Acc_8;
#line 3809 "tree_bitset.m"
  }
#line 293 "tree_bitset.m"
}

#line 286 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldl2_6_p_7(
#line 286 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 286 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_25,
#line 286 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 286 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_7,
#line 286 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_8,
#line 286 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_15,
#line 286 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_16,
#line 286 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_17,
#line 286 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_18)
#line 286 "tree_bitset.m"
{
#line 3689 "tree_bitset.m"
  {
#line 3689 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3689 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11 = (MR_Word) mercury__tree_bitset__Set_8;

#line 3694 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_11)) == (MR_mktag((MR_Integer) 1))))
#line 3695 "tree_bitset.m"
      {
#line 3695 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 1)));
#line 3695 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_13_13 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3696 "tree_bitset.m"
        {
#line 3696 "tree_bitset.m"
          mercury__tree_bitset__do_foldl2_pred_6_p_7(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__InteriorNodes_14, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3696 "tree_bitset.m"
          return;
        }
#line 3695 "tree_bitset.m"
      }
#line 3694 "tree_bitset.m"
    else
#line 3692 "tree_bitset.m"
      {
#line 3692 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_12 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3693 "tree_bitset.m"
        {
#line 3693 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldl2_pred_6_p_7(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__LeafNodes_12, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3693 "tree_bitset.m"
          return;
        }
#line 3692 "tree_bitset.m"
      }
#line 3689 "tree_bitset.m"
  }
#line 286 "tree_bitset.m"
}

#line 284 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldl2_6_p_6(
#line 284 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 284 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_25,
#line 284 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 284 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_7,
#line 284 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_8,
#line 284 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_15,
#line 284 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_16,
#line 284 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_17,
#line 284 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_18)
#line 284 "tree_bitset.m"
{
#line 3689 "tree_bitset.m"
  {
#line 3689 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3689 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11 = (MR_Word) mercury__tree_bitset__Set_8;

#line 3694 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_11)) == (MR_mktag((MR_Integer) 1))))
#line 3695 "tree_bitset.m"
      {
#line 3695 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 1)));
#line 3695 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_13_13 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3696 "tree_bitset.m"
        {
#line 3696 "tree_bitset.m"
          mercury__tree_bitset__do_foldl2_pred_6_p_6(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__InteriorNodes_14, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3696 "tree_bitset.m"
          return;
        }
#line 3695 "tree_bitset.m"
      }
#line 3694 "tree_bitset.m"
    else
#line 3692 "tree_bitset.m"
      {
#line 3692 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_12 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3693 "tree_bitset.m"
        {
#line 3693 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldl2_pred_6_p_6(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__LeafNodes_12, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3693 "tree_bitset.m"
          return;
        }
#line 3692 "tree_bitset.m"
      }
#line 3689 "tree_bitset.m"
  }
#line 284 "tree_bitset.m"
}

#line 282 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldl2_6_p_5(
#line 282 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 282 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_25,
#line 282 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 282 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_7,
#line 282 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_8,
#line 282 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_15,
#line 282 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_16,
#line 282 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_17,
#line 282 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_18)
#line 282 "tree_bitset.m"
{
#line 3689 "tree_bitset.m"
  {
#line 3689 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3689 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11 = (MR_Word) mercury__tree_bitset__Set_8;

#line 3694 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_11)) == (MR_mktag((MR_Integer) 1))))
#line 3695 "tree_bitset.m"
      {
#line 3695 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 1)));
#line 3695 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_13_13 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3696 "tree_bitset.m"
        {
#line 3696 "tree_bitset.m"
          mercury__tree_bitset__do_foldl2_pred_6_p_5(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__InteriorNodes_14, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3696 "tree_bitset.m"
          return;
        }
#line 3695 "tree_bitset.m"
      }
#line 3694 "tree_bitset.m"
    else
#line 3692 "tree_bitset.m"
      {
#line 3692 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_12 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3693 "tree_bitset.m"
        {
#line 3693 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldl2_pred_6_p_5(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__LeafNodes_12, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3693 "tree_bitset.m"
          return;
        }
#line 3692 "tree_bitset.m"
      }
#line 3689 "tree_bitset.m"
  }
#line 282 "tree_bitset.m"
}

#line 280 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldl2_6_p_4(
#line 280 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 280 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_25,
#line 280 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 280 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_7,
#line 280 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_8,
#line 280 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_15,
#line 280 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_16,
#line 280 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_17,
#line 280 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_18,
#line 280 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 280 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 280 "tree_bitset.m"
{
#line 3689 "tree_bitset.m"
  {
#line 3689 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3689 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11 = (MR_Word) mercury__tree_bitset__Set_8;

#line 3694 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_11)) == (MR_mktag((MR_Integer) 1))))
#line 3695 "tree_bitset.m"
      {
#line 3695 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 1)));
#line 3695 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_13_13 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3696 "tree_bitset.m"
        {
#line 3696 "tree_bitset.m"
          mercury__tree_bitset__do_foldl2_pred_6_p_4(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__InteriorNodes_14, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
#line 3696 "tree_bitset.m"
          return;
        }
#line 3695 "tree_bitset.m"
      }
#line 3694 "tree_bitset.m"
    else
#line 3692 "tree_bitset.m"
      {
#line 3692 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_12 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3693 "tree_bitset.m"
        {
#line 3693 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldl2_pred_6_p_4(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__LeafNodes_12, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
#line 3693 "tree_bitset.m"
          return;
        }
#line 3692 "tree_bitset.m"
      }
#line 3689 "tree_bitset.m"
  }
#line 280 "tree_bitset.m"
}

#line 278 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__foldl2_6_p_3(
#line 278 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 278 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_25,
#line 278 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 278 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_7,
#line 278 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_8,
#line 278 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_15,
#line 278 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_16,
#line 278 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_17,
#line 278 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_18)
#line 278 "tree_bitset.m"
{
#line 3689 "tree_bitset.m"
  {
#line 3689 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3689 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11 = (MR_Word) mercury__tree_bitset__Set_8;

#line 3694 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_11)) == (MR_mktag((MR_Integer) 1))))
#line 3695 "tree_bitset.m"
      {
#line 3695 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 1)));
#line 3695 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_13_13 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3696 "tree_bitset.m"
        {
#line 3696 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__do_foldl2_pred_6_p_3(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__InteriorNodes_14, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
        }
#line 3695 "tree_bitset.m"
      }
#line 3694 "tree_bitset.m"
    else
#line 3692 "tree_bitset.m"
      {
#line 3692 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_12 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3693 "tree_bitset.m"
        {
#line 3693 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__leaf_foldl2_pred_6_p_3(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__LeafNodes_12, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
        }
#line 3692 "tree_bitset.m"
      }
#line 3689 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 3689 "tree_bitset.m"
  }
#line 278 "tree_bitset.m"
}

#line 277 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldl2_6_p_2(
#line 277 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 277 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_25,
#line 277 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 277 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_7,
#line 277 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_8,
#line 277 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_15,
#line 277 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_16,
#line 277 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_17,
#line 277 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_18)
#line 277 "tree_bitset.m"
{
#line 3689 "tree_bitset.m"
  {
#line 3689 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3689 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11 = (MR_Word) mercury__tree_bitset__Set_8;

#line 3694 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_11)) == (MR_mktag((MR_Integer) 1))))
#line 3695 "tree_bitset.m"
      {
#line 3695 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 1)));
#line 3695 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_13_13 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3696 "tree_bitset.m"
        {
#line 3696 "tree_bitset.m"
          mercury__tree_bitset__do_foldl2_pred_6_p_2(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__InteriorNodes_14, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3696 "tree_bitset.m"
          return;
        }
#line 3695 "tree_bitset.m"
      }
#line 3694 "tree_bitset.m"
    else
#line 3692 "tree_bitset.m"
      {
#line 3692 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_12 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3693 "tree_bitset.m"
        {
#line 3693 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldl2_pred_6_p_2(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__LeafNodes_12, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3693 "tree_bitset.m"
          return;
        }
#line 3692 "tree_bitset.m"
      }
#line 3689 "tree_bitset.m"
  }
#line 277 "tree_bitset.m"
}

#line 276 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldl2_6_p_1(
#line 276 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 276 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_25,
#line 276 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 276 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_7,
#line 276 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_8,
#line 276 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_15,
#line 276 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_16,
#line 276 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_17,
#line 276 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_18)
#line 276 "tree_bitset.m"
{
#line 3689 "tree_bitset.m"
  {
#line 3689 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3689 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11 = (MR_Word) mercury__tree_bitset__Set_8;

#line 3694 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_11)) == (MR_mktag((MR_Integer) 1))))
#line 3695 "tree_bitset.m"
      {
#line 3695 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 1)));
#line 3695 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_13_13 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3696 "tree_bitset.m"
        {
#line 3696 "tree_bitset.m"
          mercury__tree_bitset__do_foldl2_pred_6_p_1(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__InteriorNodes_14, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3696 "tree_bitset.m"
          return;
        }
#line 3695 "tree_bitset.m"
      }
#line 3694 "tree_bitset.m"
    else
#line 3692 "tree_bitset.m"
      {
#line 3692 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_12 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3693 "tree_bitset.m"
        {
#line 3693 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldl2_pred_6_p_1(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__LeafNodes_12, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3693 "tree_bitset.m"
          return;
        }
#line 3692 "tree_bitset.m"
      }
#line 3689 "tree_bitset.m"
  }
#line 276 "tree_bitset.m"
}

#line 275 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldl2_6_p_0(
#line 275 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_24,
#line 275 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_V_25,
#line 275 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 275 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_7,
#line 275 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_8,
#line 275 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccA_0_15,
#line 275 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccA_16,
#line 275 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_AccB_0_17,
#line 275 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_AccB_18)
#line 275 "tree_bitset.m"
{
#line 3689 "tree_bitset.m"
  {
#line 3689 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3689 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11 = (MR_Word) mercury__tree_bitset__Set_8;

#line 3694 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_11)) == (MR_mktag((MR_Integer) 1))))
#line 3695 "tree_bitset.m"
      {
#line 3695 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 1)));
#line 3695 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_13_13 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3696 "tree_bitset.m"
        {
#line 3696 "tree_bitset.m"
          mercury__tree_bitset__do_foldl2_pred_6_p_0(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__InteriorNodes_14, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3696 "tree_bitset.m"
          return;
        }
#line 3695 "tree_bitset.m"
      }
#line 3694 "tree_bitset.m"
    else
#line 3692 "tree_bitset.m"
      {
#line 3692 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_12 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, (MR_Integer) 0)));

#line 3693 "tree_bitset.m"
        {
#line 3693 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldl2_pred_6_p_0(mercury__tree_bitset__TypeInfo_for_U_24, mercury__tree_bitset__TypeInfo_for_V_25, mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__P_7, mercury__tree_bitset__LeafNodes_12, mercury__tree_bitset__STATE_VARIABLE_AccA_0_15, mercury__tree_bitset__STATE_VARIABLE_AccA_16, mercury__tree_bitset__STATE_VARIABLE_AccB_0_17, mercury__tree_bitset__STATE_VARIABLE_AccB_18);
#line 3693 "tree_bitset.m"
          return;
        }
#line 3692 "tree_bitset.m"
      }
#line 3689 "tree_bitset.m"
  }
#line 275 "tree_bitset.m"
}

#line 272 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldl_4_p_9(
#line 272 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 272 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 272 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 272 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 272 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 272 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 272 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__do_foldl_pred_4_p_8(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3686 "tree_bitset.m"
          return;
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldl_pred_4_p_8(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3683 "tree_bitset.m"
          return;
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
  }
#line 272 "tree_bitset.m"
}

#line 271 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldl_4_p_8(
#line 271 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 271 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 271 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 271 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 271 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 271 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 271 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__do_foldl_pred_4_p_9(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3686 "tree_bitset.m"
          return;
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldl_pred_4_p_9(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3683 "tree_bitset.m"
          return;
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
  }
#line 271 "tree_bitset.m"
}

#line 270 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldl_4_p_7(
#line 270 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 270 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 270 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 270 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 270 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 270 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13,
#line 270 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 270 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 270 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__do_foldl_pred_4_p_7(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
#line 3686 "tree_bitset.m"
          return;
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldl_pred_4_p_7(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
#line 3683 "tree_bitset.m"
          return;
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
  }
#line 270 "tree_bitset.m"
}

#line 269 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldl_4_p_6(
#line 269 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 269 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 269 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 269 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 269 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 269 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13,
#line 269 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 269 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 269 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__do_foldl_pred_4_p_6(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
#line 3686 "tree_bitset.m"
          return;
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldl_pred_4_p_6(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13, mercury__tree_bitset__cont, mercury__tree_bitset__cont_env_ptr);
#line 3683 "tree_bitset.m"
          return;
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
  }
#line 269 "tree_bitset.m"
}

#line 268 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__foldl_4_p_5(
#line 268 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 268 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 268 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 268 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 268 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 268 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 268 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__do_foldl_pred_4_p_5(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__leaf_foldl_pred_4_p_5(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
  }
#line 268 "tree_bitset.m"
}

#line 267 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__foldl_4_p_4(
#line 267 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 267 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 267 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 267 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 267 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 267 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 267 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__do_foldl_pred_4_p_4(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__leaf_foldl_pred_4_p_4(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
  }
#line 267 "tree_bitset.m"
}

#line 266 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__foldl_4_p_3(
#line 266 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 266 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 266 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 266 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 266 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 266 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 266 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__do_foldl_pred_4_p_3(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__leaf_foldl_pred_4_p_3(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
  }
#line 266 "tree_bitset.m"
}

#line 265 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldl_4_p_2(
#line 265 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 265 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 265 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 265 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 265 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 265 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 265 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__do_foldl_pred_4_p_2(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3686 "tree_bitset.m"
          return;
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldl_pred_4_p_2(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3683 "tree_bitset.m"
          return;
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
  }
#line 265 "tree_bitset.m"
}

#line 264 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldl_4_p_1(
#line 264 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 264 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 264 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 264 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 264 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 264 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 264 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__do_foldl_pred_4_p_1(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3686 "tree_bitset.m"
          return;
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldl_pred_4_p_1(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3683 "tree_bitset.m"
          return;
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
  }
#line 264 "tree_bitset.m"
}

#line 263 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__foldl_4_p_0(
#line 263 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_17,
#line 263 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 263 "tree_bitset.m"
  MR_Word mercury__tree_bitset__P_5,
#line 263 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 263 "tree_bitset.m"
  MR_Box mercury__tree_bitset__STATE_VARIABLE_Acc_0_12,
#line 263 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__STATE_VARIABLE_Acc_13)
#line 263 "tree_bitset.m"
{
#line 3679 "tree_bitset.m"
  {
#line 3679 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3679 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_8 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_8)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__do_foldl_pred_4_p_0(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3686 "tree_bitset.m"
          return;
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_8, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__leaf_foldl_pred_4_p_0(mercury__tree_bitset__TypeInfo_for_U_17, mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__P_5, mercury__tree_bitset__LeafNodes_9, mercury__tree_bitset__STATE_VARIABLE_Acc_0_12, mercury__tree_bitset__STATE_VARIABLE_Acc_13);
#line 3683 "tree_bitset.m"
          return;
        }
#line 3682 "tree_bitset.m"
      }
#line 3679 "tree_bitset.m"
  }
#line 263 "tree_bitset.m"
}

#line 260 "tree_bitset.m"
MR_Box MR_CALL 
mercury__tree_bitset__foldl_3_f_0(
#line 260 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_U_20,
#line 260 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_19,
#line 260 "tree_bitset.m"
  MR_Word mercury__tree_bitset__F_5,
#line 260 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 260 "tree_bitset.m"
  MR_Box mercury__tree_bitset__Acc0_7)
#line 260 "tree_bitset.m"
{
#line 3673 "tree_bitset.m"
  {
#line 3673 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3673 "tree_bitset.m"
    MR_Box mercury__tree_bitset__Acc_8;
#line 3673 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_26 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_26)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_29 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_26, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_28_28 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_26, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_104_111_54_49_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0(mercury__tree_bitset__F_5, mercury__tree_bitset__TypeClassInfo_for_enum_19, mercury__tree_bitset__InteriorNodes_29, mercury__tree_bitset__Acc0_7, &mercury__tree_bitset__Acc_8);
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_27 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_26, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_104_111_54_48_95_95_91_49_44_32_50_44_32_52_44_32_54_93_95_48_4_p_0(mercury__tree_bitset__F_5, mercury__tree_bitset__TypeClassInfo_for_enum_19, mercury__tree_bitset__LeafNodes_27, mercury__tree_bitset__Acc0_7, &mercury__tree_bitset__Acc_8);
        }
#line 3682 "tree_bitset.m"
      }
#line 3673 "tree_bitset.m"
    return mercury__tree_bitset__Acc_8;
#line 3673 "tree_bitset.m"
  }
#line 260 "tree_bitset.m"
}

#line 254 "tree_bitset.m"
MR_Integer MR_CALL 
mercury__tree_bitset__count_1_f_0(
#line 254 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_15,
#line 254 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_3)
#line 254 "tree_bitset.m"
{
#line 972 "tree_bitset.m"
  {
#line 972 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 972 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__HeadVar__2_2;
#line 972 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_37 = (MR_Word) mercury__tree_bitset__Set_3;

#line 3684 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_37)) == (MR_mktag((MR_Integer) 1))))
#line 3685 "tree_bitset.m"
      {
#line 3685 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_40 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_37, (MR_Integer) 1)));
#line 3685 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_39_39 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_37, (MR_Integer) 0)));

#line 3686 "tree_bitset.m"
        {
#line 3686 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_100_111_95_102_111_108_100_108_95_112_114_101_100_95_95_104_111_54_57_95_95_91_49_44_32_50_44_32_51_44_32_53_93_95_48_4_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_15, mercury__tree_bitset__InteriorNodes_40, (MR_Integer) 0, &mercury__tree_bitset__HeadVar__2_2);
        }
#line 3685 "tree_bitset.m"
      }
#line 3684 "tree_bitset.m"
    else
#line 3682 "tree_bitset.m"
      {
#line 3682 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_38 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_37, (MR_Integer) 0)));

#line 3683 "tree_bitset.m"
        {
#line 3683 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_108_95_112_114_101_100_95_95_104_111_54_56_95_95_91_49_44_32_50_44_32_51_44_32_53_93_95_48_4_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_15, mercury__tree_bitset__LeafNodes_38, (MR_Integer) 0, &mercury__tree_bitset__HeadVar__2_2);
        }
#line 3682 "tree_bitset.m"
      }
#line 972 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__2_2;
#line 972 "tree_bitset.m"
  }
#line 254 "tree_bitset.m"
}

#line 248 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__divide_by_set_4_p_0(
#line 248 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_108,
#line 248 "tree_bitset.m"
  MR_Word mercury__tree_bitset__DivideBySet_5,
#line 248 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 248 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__InSet_7,
#line 248 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__OutSet_8)
#line 248 "tree_bitset.m"
{
#line 3049 "tree_bitset.m"
  {
#line 3049 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 3049 "tree_bitset.m"
    MR_Word mercury__tree_bitset__DivideByList_9 = (MR_Word) mercury__tree_bitset__DivideBySet_5;
#line 3049 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_10 = (MR_Word) mercury__tree_bitset__Set_6;

#line 3061 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__DivideByList_9)) == (MR_mktag((MR_Integer) 1))))
#line 3061 "tree_bitset.m"
      {
#line 3061 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_129_129 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__DivideByList_9, (MR_Integer) 1)));
#line 3061 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_130_130 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__DivideByList_9, (MR_Integer) 0)));

#line 3061 "tree_bitset.m"
        if (((MR_tag((MR_Word) mercury__tree_bitset__List_10)) == (MR_mktag((MR_Integer) 1))))
#line 3111 "tree_bitset.m"
          {
#line 3111 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Level_36 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_10, (MR_Integer) 0)));
#line 3111 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Nodes_37 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_10, (MR_Integer) 1)));

#line 3113 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_130_130 == mercury__tree_bitset__Level_36);
#line 3134 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 3115 "tree_bitset.m"
              {
#line 3115 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InNodes_72;
#line 3115 "tree_bitset.m"
                MR_Word mercury__tree_bitset__OutNodes_73;
#line 3115 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InList_74;
#line 3115 "tree_bitset.m"
                MR_Word mercury__tree_bitset__OutList_75;
#line 67526 "tree_bitset.c"
                MR_Word mercury__tree_bitset__TypeInfo_121_121;
#line 67528 "tree_bitset.c"
                MR_Word mercury__tree_bitset__TypeInfo_122_122;

#line 3114 "tree_bitset.m"
                {
#line 3114 "tree_bitset.m"
                  mercury__tree_bitset__interiorlist_divide_by_set_5_p_0(mercury__tree_bitset__Level_36, mercury__tree_bitset__V_129_129, mercury__tree_bitset__Nodes_37, &mercury__tree_bitset__InNodes_72, &mercury__tree_bitset__OutNodes_73);
                }
#line 3119 "tree_bitset.m"
                if ((mercury__tree_bitset__InNodes_72 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3117 "tree_bitset.m"
                  {
#line 3117 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_47_47 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));

#line 3118 "tree_bitset.m"
                    mercury__tree_bitset__InList_74 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 3117 "tree_bitset.m"
                  }
#line 3119 "tree_bitset.m"
                else
#line 3120 "tree_bitset.m"
                  {
#line 3120 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__InList0_68;

#line 3121 "tree_bitset.m"
                    {
#line 3121 "tree_bitset.m"
                      mercury__tree_bitset__InList0_68 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 3121 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), mercury__tree_bitset__InList0_68, 0) = ((MR_Box) (mercury__tree_bitset__Level_36));
#line 3121 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), mercury__tree_bitset__InList0_68, 1) = ((MR_Box) (mercury__tree_bitset__InNodes_72));
#line 3121 "tree_bitset.m"
                    }
#line 3122 "tree_bitset.m"
                    {
#line 3122 "tree_bitset.m"
                      mercury__tree_bitset__prune_top_levels_2_p_0(mercury__tree_bitset__InList0_68, &mercury__tree_bitset__InList_74);
                    }
#line 3120 "tree_bitset.m"
                  }
#line 3127 "tree_bitset.m"
                if ((mercury__tree_bitset__OutNodes_73 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3125 "tree_bitset.m"
                  {
#line 3125 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_48_48 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));

#line 3126 "tree_bitset.m"
                    mercury__tree_bitset__OutList_75 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 3125 "tree_bitset.m"
                  }
#line 3127 "tree_bitset.m"
                else
#line 3128 "tree_bitset.m"
                  {
#line 3128 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__OutList0_70;

#line 3129 "tree_bitset.m"
                    {
#line 3129 "tree_bitset.m"
                      mercury__tree_bitset__OutList0_70 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 3129 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), mercury__tree_bitset__OutList0_70, 0) = ((MR_Box) (mercury__tree_bitset__Level_36));
#line 3129 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), mercury__tree_bitset__OutList0_70, 1) = ((MR_Box) (mercury__tree_bitset__OutNodes_73));
#line 3129 "tree_bitset.m"
                    }
#line 3130 "tree_bitset.m"
                    {
#line 3130 "tree_bitset.m"
                      mercury__tree_bitset__prune_top_levels_2_p_0(mercury__tree_bitset__OutList0_70, &mercury__tree_bitset__OutList_75);
                    }
#line 3128 "tree_bitset.m"
                  }
#line 67606 "tree_bitset.c"
                {
#line 67608 "tree_bitset.c"
                  mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_108, (MR_Integer) 1, &mercury__tree_bitset__TypeInfo_121_121);
                }
#line 595 "tree_bitset.m"
                *mercury__tree_bitset__InSet_7 = (MR_Word) mercury__tree_bitset__InList_74;
#line 67613 "tree_bitset.c"
                {
#line 67615 "tree_bitset.c"
                  mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_108, (MR_Integer) 1, &mercury__tree_bitset__TypeInfo_122_122);
                }
#line 595 "tree_bitset.m"
                *mercury__tree_bitset__OutSet_8 = (MR_Word) mercury__tree_bitset__OutList_75;
#line 3115 "tree_bitset.m"
              }
#line 3134 "tree_bitset.m"
            else
#line 3145 "tree_bitset.m"
              {
#line 3134 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_130_130 > mercury__tree_bitset__Level_36);
#line 3145 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 3135 "tree_bitset.m"
                  {
#line 3135 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__NodesHead_42;
#line 3135 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__FirstInitOffset_44;
#line 3135 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__InList_78;
#line 3135 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__OutList_79;
#line 3135 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__InitOffset_80;
#line 3135 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__LimitOffset_81;
#line 3135 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__InList0_82;
#line 3135 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__OutList0_83;
#line 3135 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_43_43;
#line 3136 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_45_45;
#line 3136 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_46_46;
#line 67654 "tree_bitset.c"
                    MR_Word mercury__tree_bitset__TypeInfo_124_124;
#line 67656 "tree_bitset.c"
                    MR_Word mercury__tree_bitset__TypeInfo_125_125;

#line 3135 "tree_bitset.m"
                    {
#line 3135 "tree_bitset.m"
                      mercury__tree_bitset__head_and_tail_3_p_0(mercury__tree_bitset__Nodes_37, &mercury__tree_bitset__NodesHead_42, &mercury__tree_bitset__V_43_43);
                    }
#line 3136 "tree_bitset.m"
                    mercury__tree_bitset__FirstInitOffset_44 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__NodesHead_42, (MR_Integer) 0)));
#line 3136 "tree_bitset.m"
                    mercury__tree_bitset__V_45_45 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__NodesHead_42, (MR_Integer) 1)));
#line 3136 "tree_bitset.m"
                    mercury__tree_bitset__V_46_46 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__NodesHead_42, (MR_Integer) 2)));
#line 3137 "tree_bitset.m"
                    {
#line 3137 "tree_bitset.m"
                      mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__FirstInitOffset_44, mercury__tree_bitset__Level_36, &mercury__tree_bitset__InitOffset_80, &mercury__tree_bitset__LimitOffset_81);
                    }
#line 3139 "tree_bitset.m"
                    {
#line 3139 "tree_bitset.m"
                      mercury__tree_bitset__divide_by_set_descend_divide_by_8_p_0(mercury__tree_bitset__V_130_130, mercury__tree_bitset__V_129_129, mercury__tree_bitset__Level_36, mercury__tree_bitset__InitOffset_80, mercury__tree_bitset__LimitOffset_81, mercury__tree_bitset__List_10, &mercury__tree_bitset__InList0_82, &mercury__tree_bitset__OutList0_83);
                    }
#line 3141 "tree_bitset.m"
                    {
#line 3141 "tree_bitset.m"
                      mercury__tree_bitset__prune_top_levels_2_p_0(mercury__tree_bitset__InList0_82, &mercury__tree_bitset__InList_78);
                    }
#line 3142 "tree_bitset.m"
                    {
#line 3142 "tree_bitset.m"
                      mercury__tree_bitset__prune_top_levels_2_p_0(mercury__tree_bitset__OutList0_83, &mercury__tree_bitset__OutList_79);
                    }
#line 67690 "tree_bitset.c"
                    {
#line 67692 "tree_bitset.c"
                      mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_108, (MR_Integer) 1, &mercury__tree_bitset__TypeInfo_124_124);
                    }
#line 595 "tree_bitset.m"
                    *mercury__tree_bitset__InSet_7 = (MR_Word) mercury__tree_bitset__InList_78;
#line 67697 "tree_bitset.c"
                    {
#line 67699 "tree_bitset.c"
                      mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_108, (MR_Integer) 1, &mercury__tree_bitset__TypeInfo_125_125);
                    }
#line 595 "tree_bitset.m"
                    *mercury__tree_bitset__OutSet_8 = (MR_Word) mercury__tree_bitset__OutList_79;
#line 3135 "tree_bitset.m"
                  }
#line 3145 "tree_bitset.m"
                else
#line 3150 "tree_bitset.m"
                  {
#line 3150 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__TypeInfo_127_127;
#line 3150 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__TypeInfo_128_128;

#line 67715 "tree_bitset.c"
                    {
#line 67717 "tree_bitset.c"
                      mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_108, (MR_Integer) 1, &mercury__tree_bitset__TypeInfo_127_127);
                    }
#line 3150 "tree_bitset.m"
                    {
#line 3150 "tree_bitset.m"
                      mercury__tree_bitset__intersect_3_p_0(mercury__tree_bitset__TypeInfo_127_127, mercury__tree_bitset__DivideBySet_5, mercury__tree_bitset__Set_6, mercury__tree_bitset__InSet_7);
                    }
#line 67725 "tree_bitset.c"
                    {
#line 67727 "tree_bitset.c"
                      mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_108, (MR_Integer) 1, &mercury__tree_bitset__TypeInfo_128_128);
                    }
#line 3151 "tree_bitset.m"
                    {
#line 3151 "tree_bitset.m"
                      mercury__tree_bitset__difference_3_p_0(mercury__tree_bitset__TypeInfo_128_128, mercury__tree_bitset__Set_6, *mercury__tree_bitset__InSet_7, mercury__tree_bitset__OutSet_8);
#line 3151 "tree_bitset.m"
                      return;
                    }
#line 3150 "tree_bitset.m"
                  }
#line 3145 "tree_bitset.m"
              }
#line 3111 "tree_bitset.m"
          }
#line 3061 "tree_bitset.m"
        else
#line 3062 "tree_bitset.m"
          {
#line 3062 "tree_bitset.m"
            MR_Word mercury__tree_bitset__LeafNodes_65 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_10, (MR_Integer) 0)));

#line 3070 "tree_bitset.m"
            if ((mercury__tree_bitset__LeafNodes_65 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 3065 "tree_bitset.m"
              {
#line 3068 "tree_bitset.m"
                *mercury__tree_bitset__InSet_7 = mercury__tree_bitset__Set_6;
#line 3069 "tree_bitset.m"
                *mercury__tree_bitset__OutSet_8 = mercury__tree_bitset__Set_6;
#line 3065 "tree_bitset.m"
              }
#line 3070 "tree_bitset.m"
            else
#line 3071 "tree_bitset.m"
              {
#line 3071 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__FirstOffset_19;
#line 3071 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__InitOffset_22;
#line 3071 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__LimitOffset_23;
#line 3071 "tree_bitset.m"
                MR_Word mercury__tree_bitset__DBNodesHead_24;
#line 3071 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__DBFirstInitOffset_26;
#line 3071 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__DBInitOffset_29;
#line 3071 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__DBLimitOffset_30;
#line 3071 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_49_49 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodes_65, (MR_Integer) 0)));
#line 3071 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_21_21 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodes_65, (MR_Integer) 1)));
#line 3071 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_20_20;
#line 3073 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_25_25;
#line 3074 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_27_27;
#line 3074 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_28_28;

#line 3071 "tree_bitset.m"
                mercury__tree_bitset__FirstOffset_19 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_49_49, (MR_Integer) 0)));
#line 3071 "tree_bitset.m"
                mercury__tree_bitset__V_20_20 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_49_49, (MR_Integer) 1)));
#line 3072 "tree_bitset.m"
                {
#line 3072 "tree_bitset.m"
                  mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__FirstOffset_19, (MR_Integer) 0, &mercury__tree_bitset__InitOffset_22, &mercury__tree_bitset__LimitOffset_23);
                }
#line 3073 "tree_bitset.m"
                {
#line 3073 "tree_bitset.m"
                  mercury__tree_bitset__head_and_tail_3_p_0(mercury__tree_bitset__V_129_129, &mercury__tree_bitset__DBNodesHead_24, &mercury__tree_bitset__V_25_25);
                }
#line 3074 "tree_bitset.m"
                mercury__tree_bitset__DBFirstInitOffset_26 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__DBNodesHead_24, (MR_Integer) 0)));
#line 3074 "tree_bitset.m"
                mercury__tree_bitset__V_27_27 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__DBNodesHead_24, (MR_Integer) 1)));
#line 3074 "tree_bitset.m"
                mercury__tree_bitset__V_28_28 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__DBNodesHead_24, (MR_Integer) 2)));
#line 3075 "tree_bitset.m"
                {
#line 3075 "tree_bitset.m"
                  mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__DBFirstInitOffset_26, mercury__tree_bitset__V_130_130, &mercury__tree_bitset__DBInitOffset_29, &mercury__tree_bitset__DBLimitOffset_30);
                }
#line 3078 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__DBInitOffset_29 <= mercury__tree_bitset__InitOffset_22);
#line 3078 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 3079 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = (mercury__tree_bitset__InitOffset_22 < mercury__tree_bitset__DBLimitOffset_30);
#line 3095 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 3088 "tree_bitset.m"
                  {
#line 3088 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__InList0_31;
#line 3088 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__OutList0_32;
#line 3088 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__InList_57;
#line 3088 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__OutList_58;
#line 67834 "tree_bitset.c"
                    MR_Word mercury__tree_bitset__TypeInfo_113_113;
#line 67836 "tree_bitset.c"
                    MR_Word mercury__tree_bitset__TypeInfo_114_114;

#line 3082 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = (mercury__tree_bitset__DBInitOffset_29 < mercury__tree_bitset__LimitOffset_23);
#line 3082 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 3083 "tree_bitset.m"
                      mercury__tree_bitset__succeeded = (mercury__tree_bitset__LimitOffset_23 <= mercury__tree_bitset__DBLimitOffset_30);
#line 3086 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 3085 "tree_bitset.m"
                      {
#line 3085 "tree_bitset.m"
                      }
#line 3086 "tree_bitset.m"
                    else
#line 3087 "tree_bitset.m"
                      {
#line 3087 "tree_bitset.m"
                        {
#line 3087 "tree_bitset.m"
                          mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.divide_by_set\'/4", (MR_String) "strange offsets");
#line 3087 "tree_bitset.m"
                          return;
                        }
#line 3087 "tree_bitset.m"
                      }
#line 3089 "tree_bitset.m"
                    {
#line 3089 "tree_bitset.m"
                      mercury__tree_bitset__divide_by_set_descend_divide_by_8_p_0(mercury__tree_bitset__V_130_130, mercury__tree_bitset__V_129_129, (MR_Integer) 0, mercury__tree_bitset__InitOffset_22, mercury__tree_bitset__LimitOffset_23, mercury__tree_bitset__List_10, &mercury__tree_bitset__InList0_31, &mercury__tree_bitset__OutList0_32);
                    }
#line 3091 "tree_bitset.m"
                    {
#line 3091 "tree_bitset.m"
                      mercury__tree_bitset__prune_top_levels_2_p_0(mercury__tree_bitset__InList0_31, &mercury__tree_bitset__InList_57);
                    }
#line 3092 "tree_bitset.m"
                    {
#line 3092 "tree_bitset.m"
                      mercury__tree_bitset__prune_top_levels_2_p_0(mercury__tree_bitset__OutList0_32, &mercury__tree_bitset__OutList_58);
                    }
#line 67879 "tree_bitset.c"
                    {
#line 67881 "tree_bitset.c"
                      mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_108, (MR_Integer) 1, &mercury__tree_bitset__TypeInfo_113_113);
                    }
#line 595 "tree_bitset.m"
                    *mercury__tree_bitset__InSet_7 = (MR_Word) mercury__tree_bitset__InList_57;
#line 67886 "tree_bitset.c"
                    {
#line 67888 "tree_bitset.c"
                      mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_108, (MR_Integer) 1, &mercury__tree_bitset__TypeInfo_114_114);
                    }
#line 595 "tree_bitset.m"
                    *mercury__tree_bitset__OutSet_8 = (MR_Word) mercury__tree_bitset__OutList_58;
#line 3088 "tree_bitset.m"
                  }
#line 3095 "tree_bitset.m"
                else
#line 3097 "tree_bitset.m"
                  {
#line 3097 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_55_55;
#line 3097 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_56_56;
#line 67903 "tree_bitset.c"
                    MR_Word mercury__tree_bitset__TypeInfo_116_116;

#line 67906 "tree_bitset.c"
                    {
#line 67908 "tree_bitset.c"
                      mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_108, (MR_Integer) 1, &mercury__tree_bitset__TypeInfo_116_116);
                    }
#line 3097 "tree_bitset.m"
                    mercury__tree_bitset__V_56_56 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 3097 "tree_bitset.m"
                    mercury__tree_bitset__V_55_55 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 595 "tree_bitset.m"
                    *mercury__tree_bitset__InSet_7 = (MR_Word) ((MR_Box) (&mercury__tree_bitset_scalar_common_5[0]));
#line 3098 "tree_bitset.m"
                    *mercury__tree_bitset__OutSet_8 = mercury__tree_bitset__Set_6;
#line 3097 "tree_bitset.m"
                  }
#line 3071 "tree_bitset.m"
              }
#line 3062 "tree_bitset.m"
          }
#line 3061 "tree_bitset.m"
      }
#line 3061 "tree_bitset.m"
    else
#line 3061 "tree_bitset.m"
      {
#line 3061 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_131_131 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__DivideByList_9, (MR_Integer) 0)));

#line 3061 "tree_bitset.m"
        if (((MR_tag((MR_Word) mercury__tree_bitset__List_10)) == (MR_mktag((MR_Integer) 1))))
#line 3102 "tree_bitset.m"
          {
#line 3102 "tree_bitset.m"
            MR_Word mercury__tree_bitset__TypeInfo_118_118;
#line 3102 "tree_bitset.m"
            MR_Word mercury__tree_bitset__TypeInfo_119_119;

#line 67943 "tree_bitset.c"
            {
#line 67945 "tree_bitset.c"
              mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_108, (MR_Integer) 1, &mercury__tree_bitset__TypeInfo_118_118);
            }
#line 3108 "tree_bitset.m"
            {
#line 3108 "tree_bitset.m"
              mercury__tree_bitset__intersect_3_p_0(mercury__tree_bitset__TypeInfo_118_118, mercury__tree_bitset__DivideBySet_5, mercury__tree_bitset__Set_6, mercury__tree_bitset__InSet_7);
            }
#line 67953 "tree_bitset.c"
            {
#line 67955 "tree_bitset.c"
              mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_108, (MR_Integer) 1, &mercury__tree_bitset__TypeInfo_119_119);
            }
#line 3109 "tree_bitset.m"
            {
#line 3109 "tree_bitset.m"
              mercury__tree_bitset__difference_3_p_0(mercury__tree_bitset__TypeInfo_119_119, mercury__tree_bitset__Set_6, *mercury__tree_bitset__InSet_7, mercury__tree_bitset__OutSet_8);
#line 3109 "tree_bitset.m"
              return;
            }
#line 3102 "tree_bitset.m"
          }
#line 3061 "tree_bitset.m"
        else
#line 3053 "tree_bitset.m"
          {
#line 3053 "tree_bitset.m"
            MR_Word mercury__tree_bitset__LeafNodes_12 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_10, (MR_Integer) 0)));
#line 3053 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InNodes_13;
#line 3053 "tree_bitset.m"
            MR_Word mercury__tree_bitset__OutNodes_14;
#line 3053 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InList_15;
#line 3053 "tree_bitset.m"
            MR_Word mercury__tree_bitset__OutList_16;
#line 67981 "tree_bitset.c"
            MR_Word mercury__tree_bitset__TypeInfo_110_110;
#line 67983 "tree_bitset.c"
            MR_Word mercury__tree_bitset__TypeInfo_111_111;

#line 3055 "tree_bitset.m"
            {
#line 3055 "tree_bitset.m"
              mercury__tree_bitset__leaflist_divide_by_set_4_p_0(mercury__tree_bitset__V_131_131, mercury__tree_bitset__LeafNodes_12, &mercury__tree_bitset__InNodes_13, &mercury__tree_bitset__OutNodes_14);
            }
#line 3057 "tree_bitset.m"
            {
#line 3057 "tree_bitset.m"
              mercury__tree_bitset__InList_15 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 3057 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__InList_15, 0) = ((MR_Box) (mercury__tree_bitset__InNodes_13));
#line 3057 "tree_bitset.m"
            }
#line 3058 "tree_bitset.m"
            {
#line 3058 "tree_bitset.m"
              mercury__tree_bitset__OutList_16 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 3058 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__OutList_16, 0) = ((MR_Box) (mercury__tree_bitset__OutNodes_14));
#line 3058 "tree_bitset.m"
            }
#line 68007 "tree_bitset.c"
            {
#line 68009 "tree_bitset.c"
              mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_108, (MR_Integer) 1, &mercury__tree_bitset__TypeInfo_110_110);
            }
#line 595 "tree_bitset.m"
            *mercury__tree_bitset__InSet_7 = (MR_Word) mercury__tree_bitset__InList_15;
#line 68014 "tree_bitset.c"
            {
#line 68016 "tree_bitset.c"
              mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_108, (MR_Integer) 1, &mercury__tree_bitset__TypeInfo_111_111);
            }
#line 595 "tree_bitset.m"
            *mercury__tree_bitset__OutSet_8 = (MR_Word) mercury__tree_bitset__OutList_16;
#line 3053 "tree_bitset.m"
          }
#line 3061 "tree_bitset.m"
      }
#line 3049 "tree_bitset.m"
  }
#line 248 "tree_bitset.m"
}

#line 241 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__divide_4_p_0(
#line 241 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 241 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Pred_5,
#line 241 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_6,
#line 241 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__InSet_7,
#line 241 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__OutSet_8)
#line 241 "tree_bitset.m"
{
#line 2931 "tree_bitset.m"
  {
#line 2931 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 2931 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_9 = (MR_Word) mercury__tree_bitset__Set_6;

#line 2938 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_9)) == (MR_mktag((MR_Integer) 1))))
#line 2939 "tree_bitset.m"
      {
#line 2939 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Level_13 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_9, (MR_Integer) 0)));
#line 2939 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_9, (MR_Integer) 1)));
#line 2939 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InInteriorNodes_15;
#line 2939 "tree_bitset.m"
        MR_Word mercury__tree_bitset__OutInteriorNodes_16;
#line 2939 "tree_bitset.m"
        MR_Word mercury__tree_bitset__PrunedInList_17;
#line 2939 "tree_bitset.m"
        MR_Word mercury__tree_bitset__PrunedOutList_18;
#line 2939 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InList_21;
#line 2939 "tree_bitset.m"
        MR_Word mercury__tree_bitset__OutList_22;
#line 137 "private_builtin.opt"
        MR_Word mercury__tree_bitset__TypeInfo_28_28;
#line 137 "private_builtin.opt"
        MR_Word mercury__tree_bitset__TypeInfo_29_29;

#line 2940 "tree_bitset.m"
        {
#line 2940 "tree_bitset.m"
          mercury__tree_bitset__interiornode_divide_4_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__Pred_5, mercury__tree_bitset__InteriorNodes_14, &mercury__tree_bitset__InInteriorNodes_15, &mercury__tree_bitset__OutInteriorNodes_16);
        }
#line 2943 "tree_bitset.m"
        {
#line 2943 "tree_bitset.m"
          mercury__tree_bitset__InList_21 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2943 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__InList_21, 0) = ((MR_Box) (mercury__tree_bitset__Level_13));
#line 2943 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__InList_21, 1) = ((MR_Box) (mercury__tree_bitset__InInteriorNodes_15));
#line 2943 "tree_bitset.m"
        }
#line 2944 "tree_bitset.m"
        {
#line 2944 "tree_bitset.m"
          mercury__tree_bitset__prune_top_levels_2_p_0(mercury__tree_bitset__InList_21, &mercury__tree_bitset__PrunedInList_17);
        }
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__divide_4_p_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_23 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 68112 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_28_28  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 595 "tree_bitset.m"
        *mercury__tree_bitset__InSet_7 = (MR_Word) mercury__tree_bitset__PrunedInList_17;
#line 2947 "tree_bitset.m"
        {
#line 2947 "tree_bitset.m"
          mercury__tree_bitset__OutList_22 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2947 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__OutList_22, 0) = ((MR_Box) (mercury__tree_bitset__Level_13));
#line 2947 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__OutList_22, 1) = ((MR_Box) (mercury__tree_bitset__OutInteriorNodes_16));
#line 2947 "tree_bitset.m"
        }
#line 2948 "tree_bitset.m"
        {
#line 2948 "tree_bitset.m"
          mercury__tree_bitset__prune_top_levels_2_p_0(mercury__tree_bitset__OutList_22, &mercury__tree_bitset__PrunedOutList_18);
        }
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__divide_4_p_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_23 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 68151 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_29_29  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 595 "tree_bitset.m"
        *mercury__tree_bitset__OutSet_8 = (MR_Word) mercury__tree_bitset__PrunedOutList_18;
#line 2939 "tree_bitset.m"
      }
#line 2938 "tree_bitset.m"
    else
#line 2934 "tree_bitset.m"
      {
#line 2934 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_10 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_9, (MR_Integer) 0)));
#line 2934 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InList_11;
#line 2934 "tree_bitset.m"
        MR_Word mercury__tree_bitset__OutList_12;
#line 2934 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_19_19;
#line 2934 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_20_20;
#line 137 "private_builtin.opt"
        MR_Word mercury__tree_bitset__TypeInfo_25_25;
#line 137 "private_builtin.opt"
        MR_Word mercury__tree_bitset__TypeInfo_26_26;

#line 2935 "tree_bitset.m"
        {
#line 2935 "tree_bitset.m"
          mercury__tree_bitset__leaflist_divide_4_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_23, mercury__tree_bitset__Pred_5, mercury__tree_bitset__LeafNodes_10, &mercury__tree_bitset__InList_11, &mercury__tree_bitset__OutList_12);
        }
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__divide_4_p_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_23 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 68201 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_25_25  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 2936 "tree_bitset.m"
        {
#line 2936 "tree_bitset.m"
          mercury__tree_bitset__V_19_19 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 2936 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_19_19, 0) = ((MR_Box) (mercury__tree_bitset__InList_11));
#line 2936 "tree_bitset.m"
        }
#line 595 "tree_bitset.m"
        *mercury__tree_bitset__InSet_7 = (MR_Word) mercury__tree_bitset__V_19_19;
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__divide_4_p_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_23 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 68233 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_26_26  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 2937 "tree_bitset.m"
        {
#line 2937 "tree_bitset.m"
          mercury__tree_bitset__V_20_20 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 2937 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_20_20, 0) = ((MR_Box) (mercury__tree_bitset__OutList_12));
#line 2937 "tree_bitset.m"
        }
#line 595 "tree_bitset.m"
        *mercury__tree_bitset__OutSet_8 = (MR_Word) mercury__tree_bitset__V_20_20;
#line 2934 "tree_bitset.m"
      }
#line 2931 "tree_bitset.m"
  }
#line 241 "tree_bitset.m"
}

#line 234 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__difference_3_p_0(
#line 234 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_6,
#line 234 "tree_bitset.m"
  MR_Word mercury__tree_bitset__A_4,
#line 234 "tree_bitset.m"
  MR_Word mercury__tree_bitset__B_5,
#line 234 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3)
#line 234 "tree_bitset.m"
{
#line 3665 "tree_bitset.m"
  {
#line 3665 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3665 "tree_bitset.m"
    {
#line 3665 "tree_bitset.m"
      *mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__difference_2_f_0(mercury__tree_bitset__TypeInfo_for_T_6, mercury__tree_bitset__A_4, mercury__tree_bitset__B_5);
    }
#line 3665 "tree_bitset.m"
  }
#line 234 "tree_bitset.m"
}

#line 233 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__difference_2_f_0(
#line 233 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_117,
#line 233 "tree_bitset.m"
  MR_Word mercury__tree_bitset__SetA_4,
#line 233 "tree_bitset.m"
  MR_Word mercury__tree_bitset__SetB_5)
#line 233 "tree_bitset.m"
{
#line 2317 "tree_bitset.m"
  {
#line 2317 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 2317 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Set_6;
#line 2317 "tree_bitset.m"
    MR_Word mercury__tree_bitset__ListA_7 = (MR_Word) mercury__tree_bitset__SetA_4;
#line 2317 "tree_bitset.m"
    MR_Word mercury__tree_bitset__ListB_8 = (MR_Word) mercury__tree_bitset__SetB_5;
#line 2317 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11;
#line 2317 "tree_bitset.m"
    MR_Word mercury__tree_bitset__PrunedList_40;

#line 2354 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__ListA_7)) == (MR_mktag((MR_Integer) 1))))
#line 2354 "tree_bitset.m"
      {
#line 2354 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_119_119 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListA_7, (MR_Integer) 1)));
#line 2354 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_120_120 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListA_7, (MR_Integer) 0)));

#line 2354 "tree_bitset.m"
        if (((MR_tag((MR_Word) mercury__tree_bitset__ListB_8)) == (MR_mktag((MR_Integer) 1))))
#line 2383 "tree_bitset.m"
          {
#line 2383 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__LevelB_106 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListB_8, (MR_Integer) 0)));
#line 2383 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InteriorNodesB_107 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListB_8, (MR_Integer) 1)));

#line 2385 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_120_120 > mercury__tree_bitset__LevelB_106);
#line 2390 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 2386 "tree_bitset.m"
              {
#line 2386 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorHeadB_31;
#line 2386 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorTailB_32;
#line 2386 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Level_78;
#line 2386 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_79;

#line 2386 "tree_bitset.m"
                {
#line 2386 "tree_bitset.m"
                  mercury__tree_bitset__head_and_tail_3_p_0(mercury__tree_bitset__InteriorNodesB_107, &mercury__tree_bitset__InteriorHeadB_31, &mercury__tree_bitset__InteriorTailB_32);
                }
#line 2387 "tree_bitset.m"
                {
#line 2387 "tree_bitset.m"
                  mercury__tree_bitset__descend_and_difference_list_7_p_0(mercury__tree_bitset__V_120_120, mercury__tree_bitset__V_119_119, mercury__tree_bitset__LevelB_106, mercury__tree_bitset__InteriorHeadB_31, mercury__tree_bitset__InteriorTailB_32, &mercury__tree_bitset__Level_78, &mercury__tree_bitset__InteriorNodes_79);
                }
#line 2389 "tree_bitset.m"
                {
#line 2389 "tree_bitset.m"
                  mercury__tree_bitset__List_11 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2389 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, 0) = ((MR_Box) (mercury__tree_bitset__Level_78));
#line 2389 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodes_79));
#line 2389 "tree_bitset.m"
                }
#line 2386 "tree_bitset.m"
              }
#line 2390 "tree_bitset.m"
            else
#line 2396 "tree_bitset.m"
              {
#line 2390 "tree_bitset.m"
                mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_120_120 == mercury__tree_bitset__LevelB_106);
#line 2396 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 2391 "tree_bitset.m"
                  {
#line 2391 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__InteriorHeadA_33;
#line 2391 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__InteriorTailA_34;
#line 2391 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__Level_80;
#line 2391 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__InteriorNodes_81;
#line 2391 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__InteriorHeadB_82;
#line 2391 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__InteriorTailB_83;

#line 2391 "tree_bitset.m"
                    {
#line 2391 "tree_bitset.m"
                      mercury__tree_bitset__head_and_tail_3_p_0(mercury__tree_bitset__V_119_119, &mercury__tree_bitset__InteriorHeadA_33, &mercury__tree_bitset__InteriorTailA_34);
                    }
#line 2392 "tree_bitset.m"
                    {
#line 2392 "tree_bitset.m"
                      mercury__tree_bitset__head_and_tail_3_p_0(mercury__tree_bitset__InteriorNodesB_107, &mercury__tree_bitset__InteriorHeadB_82, &mercury__tree_bitset__InteriorTailB_83);
                    }
#line 2393 "tree_bitset.m"
                    {
#line 2393 "tree_bitset.m"
                      mercury__tree_bitset__interiornode_difference_8_p_0(mercury__tree_bitset__V_120_120, mercury__tree_bitset__InteriorHeadA_33, mercury__tree_bitset__InteriorTailA_34, mercury__tree_bitset__LevelB_106, mercury__tree_bitset__InteriorHeadB_82, mercury__tree_bitset__InteriorTailB_83, &mercury__tree_bitset__Level_80, &mercury__tree_bitset__InteriorNodes_81);
                    }
#line 2395 "tree_bitset.m"
                    {
#line 2395 "tree_bitset.m"
                      mercury__tree_bitset__List_11 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2395 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, 0) = ((MR_Box) (mercury__tree_bitset__Level_80));
#line 2395 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodes_81));
#line 2395 "tree_bitset.m"
                    }
#line 2391 "tree_bitset.m"
                  }
#line 2396 "tree_bitset.m"
                else
#line 2398 "tree_bitset.m"
                  {
#line 2398 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__ParentLevelA_35;
#line 2398 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__SelectedNodesB_36;
#line 2398 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_41_41;
#line 2398 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__ParentInitOffsetA_88;
#line 2398 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__ParentLimitOffsetA_89;
#line 2398 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__InteriorHeadA_92;
#line 2398 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__InteriorTailA_93;
#line 2399 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_115_115;
#line 2399 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__V_116_116;

#line 2398 "tree_bitset.m"
                    {
#line 2398 "tree_bitset.m"
                      mercury__tree_bitset__head_and_tail_3_p_0(mercury__tree_bitset__V_119_119, &mercury__tree_bitset__InteriorHeadA_92, &mercury__tree_bitset__InteriorTailA_93);
                    }
#line 2399 "tree_bitset.m"
                    mercury__tree_bitset__V_41_41 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorHeadA_92, (MR_Integer) 0)));
#line 2399 "tree_bitset.m"
                    mercury__tree_bitset__V_115_115 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorHeadA_92, (MR_Integer) 1)));
#line 2399 "tree_bitset.m"
                    mercury__tree_bitset__V_116_116 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorHeadA_92, (MR_Integer) 2)));
#line 2399 "tree_bitset.m"
                    {
#line 2399 "tree_bitset.m"
                      mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_41_41, mercury__tree_bitset__V_120_120, &mercury__tree_bitset__ParentInitOffsetA_88, &mercury__tree_bitset__ParentLimitOffsetA_89);
                    }
#line 2401 "tree_bitset.m"
                    mercury__tree_bitset__ParentLevelA_35 = (mercury__tree_bitset__V_120_120 + (MR_Integer) 1);
#line 2405 "tree_bitset.m"
                    {
#line 2405 "tree_bitset.m"
                      mercury__tree_bitset__find_interior_nodes_at_parent_offset_6_p_0(mercury__tree_bitset__LevelB_106, mercury__tree_bitset__InteriorNodesB_107, mercury__tree_bitset__ParentLevelA_35, mercury__tree_bitset__ParentInitOffsetA_88, mercury__tree_bitset__ParentLimitOffsetA_89, &mercury__tree_bitset__SelectedNodesB_36);
                    }
#line 2411 "tree_bitset.m"
                    if ((mercury__tree_bitset__SelectedNodesB_36 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2409 "tree_bitset.m"
                      mercury__tree_bitset__List_11 = mercury__tree_bitset__ListA_7;
#line 2411 "tree_bitset.m"
                    else
#line 2412 "tree_bitset.m"
                      {
#line 2412 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__SelectedHeadB_37 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__SelectedNodesB_36, (MR_Integer) 0)));
#line 2412 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__SelectedTailB_38 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__SelectedNodesB_36, (MR_Integer) 1)));
#line 2412 "tree_bitset.m"
                        MR_Integer mercury__tree_bitset__Level_84;
#line 2412 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__InteriorNodes_85;

#line 2414 "tree_bitset.m"
                        {
#line 2414 "tree_bitset.m"
                          mercury__tree_bitset__interiornode_difference_8_p_0(mercury__tree_bitset__V_120_120, mercury__tree_bitset__InteriorHeadA_92, mercury__tree_bitset__InteriorTailA_93, mercury__tree_bitset__V_120_120, mercury__tree_bitset__SelectedHeadB_37, mercury__tree_bitset__SelectedTailB_38, &mercury__tree_bitset__Level_84, &mercury__tree_bitset__InteriorNodes_85);
                        }
#line 2417 "tree_bitset.m"
                        {
#line 2417 "tree_bitset.m"
                          mercury__tree_bitset__List_11 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2417 "tree_bitset.m"
                          MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, 0) = ((MR_Box) (mercury__tree_bitset__Level_84));
#line 2417 "tree_bitset.m"
                          MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodes_85));
#line 2417 "tree_bitset.m"
                        }
#line 2412 "tree_bitset.m"
                      }
#line 2398 "tree_bitset.m"
                  }
#line 2396 "tree_bitset.m"
              }
#line 2383 "tree_bitset.m"
          }
#line 2354 "tree_bitset.m"
        else
#line 2370 "tree_bitset.m"
          {
#line 2370 "tree_bitset.m"
            MR_Word mercury__tree_bitset__LeafNodesB_76 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__ListB_8, (MR_Integer) 0)));

#line 2375 "tree_bitset.m"
            if ((mercury__tree_bitset__LeafNodesB_76 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2373 "tree_bitset.m"
              mercury__tree_bitset__List_11 = mercury__tree_bitset__ListA_7;
#line 2375 "tree_bitset.m"
            else
#line 2376 "tree_bitset.m"
              {
#line 2376 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodeB_28;
#line 2376 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Level_29;
#line 2376 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_30;
#line 2376 "tree_bitset.m"
                MR_Word mercury__tree_bitset__FirstNodeB_74 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodesB_76, (MR_Integer) 0)));
#line 2376 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__ParentInitOffset_127;
#line 2376 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__ParentLimitOffset_128;
#line 2376 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_130_130 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__FirstNodeB_74, (MR_Integer) 0)));
#line 2376 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LaterNodesB_27 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodesB_76, (MR_Integer) 1)));
#line 794 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_133_133 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__FirstNodeB_74, (MR_Integer) 1)));

#line 794 "tree_bitset.m"
                {
#line 794 "tree_bitset.m"
                  mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_130_130, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffset_127, &mercury__tree_bitset__ParentLimitOffset_128);
                }
#line 797 "tree_bitset.m"
                {
#line 797 "tree_bitset.m"
                  mercury__tree_bitset__InteriorNodeB_28 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 797 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_28, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffset_127));
#line 797 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_28, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffset_128));
#line 797 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_28, 2) = ((MR_Box) (mercury__tree_bitset__ListB_8));
#line 797 "tree_bitset.m"
                }
#line 2378 "tree_bitset.m"
                {
#line 2378 "tree_bitset.m"
                  mercury__tree_bitset__descend_and_difference_one_6_p_0(mercury__tree_bitset__V_120_120, mercury__tree_bitset__V_119_119, (MR_Integer) 1, mercury__tree_bitset__InteriorNodeB_28, &mercury__tree_bitset__Level_29, &mercury__tree_bitset__InteriorNodes_30);
                }
#line 2380 "tree_bitset.m"
                {
#line 2380 "tree_bitset.m"
                  mercury__tree_bitset__List_11 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2380 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, 0) = ((MR_Box) (mercury__tree_bitset__Level_29));
#line 2380 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodes_30));
#line 2380 "tree_bitset.m"
                }
#line 2376 "tree_bitset.m"
              }
#line 2370 "tree_bitset.m"
          }
#line 2354 "tree_bitset.m"
      }
#line 2354 "tree_bitset.m"
    else
#line 2354 "tree_bitset.m"
      {
#line 2354 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_121_121 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__ListA_7, (MR_Integer) 0)));

#line 2354 "tree_bitset.m"
        if (((MR_tag((MR_Word) mercury__tree_bitset__ListB_8)) == (MR_mktag((MR_Integer) 1))))
#line 2355 "tree_bitset.m"
          {
#line 2355 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__LevelB_23 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListB_8, (MR_Integer) 0)));
#line 2355 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InteriorNodesB_24 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListB_8, (MR_Integer) 1)));

#line 2360 "tree_bitset.m"
            if ((mercury__tree_bitset__V_121_121 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2358 "tree_bitset.m"
              mercury__tree_bitset__List_11 = mercury__tree_bitset__ListA_7;
#line 2360 "tree_bitset.m"
            else
#line 2361 "tree_bitset.m"
              {
#line 2361 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_44_44;
#line 2361 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodesB_55;
#line 2361 "tree_bitset.m"
                MR_Word mercury__tree_bitset__FirstNodeA_56 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_121_121, (MR_Integer) 0)));
#line 2361 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__ParentInitOffsetA_58;
#line 2361 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__ParentLimitOffsetA_59;
#line 2361 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafNodes_60;
#line 2361 "tree_bitset.m"
                MR_Word mercury__tree_bitset___LaterNodesA_54 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_121_121, (MR_Integer) 1)));
#line 2362 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_114_114;

#line 2362 "tree_bitset.m"
                mercury__tree_bitset__V_44_44 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__FirstNodeA_56, (MR_Integer) 0)));
#line 2362 "tree_bitset.m"
                mercury__tree_bitset__V_114_114 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__FirstNodeA_56, (MR_Integer) 1)));
#line 2362 "tree_bitset.m"
                {
#line 2362 "tree_bitset.m"
                  mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_44_44, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffsetA_58, &mercury__tree_bitset__ParentLimitOffsetA_59);
                }
#line 2364 "tree_bitset.m"
                {
#line 2364 "tree_bitset.m"
                  mercury__tree_bitset__find_leaf_nodes_at_parent_offset_5_p_0(mercury__tree_bitset__LevelB_23, mercury__tree_bitset__InteriorNodesB_24, mercury__tree_bitset__ParentInitOffsetA_58, mercury__tree_bitset__ParentLimitOffsetA_59, &mercury__tree_bitset__LeafNodesB_55);
                }
#line 2366 "tree_bitset.m"
                {
#line 2366 "tree_bitset.m"
                  mercury__tree_bitset__leaflist_difference_3_p_0(mercury__tree_bitset__V_121_121, mercury__tree_bitset__LeafNodesB_55, &mercury__tree_bitset__LeafNodes_60);
                }
#line 2367 "tree_bitset.m"
                {
#line 2367 "tree_bitset.m"
                  mercury__tree_bitset__List_11 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 2367 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, 0) = ((MR_Box) (mercury__tree_bitset__LeafNodes_60));
#line 2367 "tree_bitset.m"
                }
#line 2361 "tree_bitset.m"
              }
#line 2355 "tree_bitset.m"
          }
#line 2354 "tree_bitset.m"
        else
#line 2326 "tree_bitset.m"
          {
#line 2326 "tree_bitset.m"
            MR_Word mercury__tree_bitset__LeafNodesB_10 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__ListB_8, (MR_Integer) 0)));

#line 2331 "tree_bitset.m"
            if ((mercury__tree_bitset__V_121_121 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2329 "tree_bitset.m"
              mercury__tree_bitset__List_11 = mercury__tree_bitset__ListA_7;
#line 2331 "tree_bitset.m"
            else
#line 2331 "tree_bitset.m"
              {
#line 2331 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_123_123 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_121_121, (MR_Integer) 0)));
#line 2332 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_122_122 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_121_121, (MR_Integer) 1)));

#line 2331 "tree_bitset.m"
                if ((mercury__tree_bitset__LeafNodesB_10 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2334 "tree_bitset.m"
                  mercury__tree_bitset__List_11 = mercury__tree_bitset__ListA_7;
#line 2331 "tree_bitset.m"
                else
#line 2336 "tree_bitset.m"
                  {
#line 2336 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__FirstNodeB_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodesB_10, (MR_Integer) 0)));
#line 2336 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__ParentInitOffsetA_18;
#line 2336 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__ParentLimitOffsetA_19;
#line 2336 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__ParentInitOffsetB_20;
#line 2336 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__ParentLimitOffsetB_21;
#line 2336 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_46_46 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_123_123, (MR_Integer) 0)));
#line 2336 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_48_48;
#line 2337 "tree_bitset.m"
                    MR_Word mercury__tree_bitset___LaterNodesB_17 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodesB_10, (MR_Integer) 1)));
#line 2338 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_112_112 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_123_123, (MR_Integer) 1)));
#line 2340 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_113_113;

#line 2338 "tree_bitset.m"
                    {
#line 2338 "tree_bitset.m"
                      mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_46_46, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffsetA_18, &mercury__tree_bitset__ParentLimitOffsetA_19);
                    }
#line 2340 "tree_bitset.m"
                    mercury__tree_bitset__V_48_48 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__FirstNodeB_16, (MR_Integer) 0)));
#line 2340 "tree_bitset.m"
                    mercury__tree_bitset__V_113_113 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__FirstNodeB_16, (MR_Integer) 1)));
#line 2340 "tree_bitset.m"
                    {
#line 2340 "tree_bitset.m"
                      mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_48_48, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffsetB_20, &mercury__tree_bitset__ParentLimitOffsetB_21);
                    }
#line 2342 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = (mercury__tree_bitset__ParentInitOffsetA_18 == mercury__tree_bitset__ParentInitOffsetB_20);
#line 2349 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 2346 "tree_bitset.m"
                      {
#line 2346 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__LeafNodes_22;

#line 2344 "tree_bitset.m"
                        {
#line 2344 "tree_bitset.m"
                          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_53_51_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__ParentLimitOffsetA_19, mercury__tree_bitset__ParentLimitOffsetB_21, (MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.difference\'/2", (MR_String) "limit mismatch");
                        }
#line 2347 "tree_bitset.m"
                        {
#line 2347 "tree_bitset.m"
                          mercury__tree_bitset__leaflist_difference_3_p_0(mercury__tree_bitset__V_121_121, mercury__tree_bitset__LeafNodesB_10, &mercury__tree_bitset__LeafNodes_22);
                        }
#line 2348 "tree_bitset.m"
                        {
#line 2348 "tree_bitset.m"
                          mercury__tree_bitset__List_11 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 2348 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, 0) = ((MR_Box) (mercury__tree_bitset__LeafNodes_22));
#line 2348 "tree_bitset.m"
                        }
#line 2346 "tree_bitset.m"
                      }
#line 2349 "tree_bitset.m"
                    else
#line 2351 "tree_bitset.m"
                      mercury__tree_bitset__List_11 = mercury__tree_bitset__ListA_7;
#line 2336 "tree_bitset.m"
                  }
#line 2331 "tree_bitset.m"
              }
#line 2326 "tree_bitset.m"
          }
#line 2354 "tree_bitset.m"
      }
#line 2421 "tree_bitset.m"
    {
#line 2421 "tree_bitset.m"
      mercury__tree_bitset__prune_top_levels_2_p_0(mercury__tree_bitset__List_11, &mercury__tree_bitset__PrunedList_40);
    }
#line 595 "tree_bitset.m"
    mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__PrunedList_40;
#line 2317 "tree_bitset.m"
    return mercury__tree_bitset__Set_6;
#line 2317 "tree_bitset.m"
  }
#line 233 "tree_bitset.m"
}

#line 226 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__intersect_list_2_p_0(
#line 226 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_13,
#line 226 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 226 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__2_2)
#line 226 "tree_bitset.m"
{
#line 2897 "tree_bitset.m"
  while (MR_TRUE)
#line 2897 "tree_bitset.m"
    {
#line 2897 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 2897 "tree_bitset.m"
      {
#line 2897 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 2897 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 915 "tree_bitset.m"
          {
#line 915 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_16_16 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 915 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_17_17 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));

#line 595 "tree_bitset.m"
            *mercury__tree_bitset__HeadVar__2_2 = (MR_Word) ((MR_Box) (&mercury__tree_bitset_scalar_common_5[0]));
#line 915 "tree_bitset.m"
          }
#line 2897 "tree_bitset.m"
        else
#line 2897 "tree_bitset.m"
          {
#line 2897 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_14_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 2897 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_15_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));

#line 2897 "tree_bitset.m"
            if ((mercury__tree_bitset__V_14_14 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2898 "tree_bitset.m"
              *mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__V_15_15;
#line 2897 "tree_bitset.m"
            else
#line 2899 "tree_bitset.m"
              {
#line 2899 "tree_bitset.m"
                MR_Word mercury__tree_bitset__MergedSets_10;
#line 2899 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_12_12 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));

#line 2900 "tree_bitset.m"
                {
#line 2900 "tree_bitset.m"
                  mercury__tree_bitset__intersect_list_pass_3_p_0(mercury__tree_bitset__TypeInfo_for_T_13, mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__V_12_12, &mercury__tree_bitset__MergedSets_10);
                }
#line 2901 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 2901 "tree_bitset.m"
                {
#line 2901 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__MergedSets_10;

#line 2901 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 2901 "tree_bitset.m"
                }
#line 2901 "tree_bitset.m"
                continue;
#line 2899 "tree_bitset.m"
              }
#line 2897 "tree_bitset.m"
          }
#line 2897 "tree_bitset.m"
      }
#line 2897 "tree_bitset.m"
      break;
#line 2897 "tree_bitset.m"
    }
#line 226 "tree_bitset.m"
}

#line 225 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__intersect_list_1_f_0(
#line 225 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_5,
#line 225 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Sets_3)
#line 225 "tree_bitset.m"
{
#line 2895 "tree_bitset.m"
  {
#line 2895 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 2895 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Set_4;

#line 2895 "tree_bitset.m"
    {
#line 2895 "tree_bitset.m"
      mercury__tree_bitset__intersect_list_2_p_0(mercury__tree_bitset__TypeInfo_for_T_5, mercury__tree_bitset__Sets_3, &mercury__tree_bitset__Set_4);
    }
#line 2895 "tree_bitset.m"
    return mercury__tree_bitset__Set_4;
#line 2895 "tree_bitset.m"
  }
#line 225 "tree_bitset.m"
}

#line 219 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__intersect_3_p_0(
#line 219 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_6,
#line 219 "tree_bitset.m"
  MR_Word mercury__tree_bitset__A_4,
#line 219 "tree_bitset.m"
  MR_Word mercury__tree_bitset__B_5,
#line 219 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3)
#line 219 "tree_bitset.m"
{
#line 3663 "tree_bitset.m"
  {
#line 3663 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3663 "tree_bitset.m"
    {
#line 3663 "tree_bitset.m"
      *mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__intersect_2_f_0(mercury__tree_bitset__TypeInfo_for_T_6, mercury__tree_bitset__A_4, mercury__tree_bitset__B_5);
    }
#line 3663 "tree_bitset.m"
  }
#line 219 "tree_bitset.m"
}

#line 218 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__intersect_2_f_0(
#line 218 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_66,
#line 218 "tree_bitset.m"
  MR_Word mercury__tree_bitset__SetA_4,
#line 218 "tree_bitset.m"
  MR_Word mercury__tree_bitset__SetB_5)
#line 218 "tree_bitset.m"
{
#line 2068 "tree_bitset.m"
  {
#line 2068 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 2068 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Set_6;
#line 2068 "tree_bitset.m"
    MR_Word mercury__tree_bitset__ListA_7 = (MR_Word) mercury__tree_bitset__SetA_4;
#line 2068 "tree_bitset.m"
    MR_Word mercury__tree_bitset__ListB_8 = (MR_Word) mercury__tree_bitset__SetB_5;
#line 2068 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11;
#line 2068 "tree_bitset.m"
    MR_Word mercury__tree_bitset__PrunedList_39;

#line 2105 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__ListA_7)) == (MR_mktag((MR_Integer) 1))))
#line 2105 "tree_bitset.m"
      {
#line 2105 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_68_68 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListA_7, (MR_Integer) 1)));
#line 2105 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_69_69 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListA_7, (MR_Integer) 0)));

#line 2105 "tree_bitset.m"
        if (((MR_tag((MR_Word) mercury__tree_bitset__ListB_8)) == (MR_mktag((MR_Integer) 1))))
#line 2130 "tree_bitset.m"
          {
#line 2130 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__LevelB_60 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListB_8, (MR_Integer) 0)));
#line 2130 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InteriorNodesB_61 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListB_8, (MR_Integer) 1)));

#line 2132 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_69_69 == mercury__tree_bitset__LevelB_60);
#line 2136 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 2134 "tree_bitset.m"
              {
#line 2134 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_33;

#line 2133 "tree_bitset.m"
                {
#line 2133 "tree_bitset.m"
                  mercury__tree_bitset__interiorlist_intersect_3_p_0(mercury__tree_bitset__V_68_68, mercury__tree_bitset__InteriorNodesB_61, &mercury__tree_bitset__InteriorNodes_33);
                }
#line 2135 "tree_bitset.m"
                {
#line 2135 "tree_bitset.m"
                  mercury__tree_bitset__List_11 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2135 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, 0) = ((MR_Box) (mercury__tree_bitset__V_69_69));
#line 2135 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodes_33));
#line 2135 "tree_bitset.m"
                }
#line 2134 "tree_bitset.m"
              }
#line 2136 "tree_bitset.m"
            else
#line 2137 "tree_bitset.m"
              {
#line 2137 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorHeadA_34;
#line 2137 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorTailA_35;
#line 2137 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorHeadB_36;
#line 2137 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorTailB_37;
#line 2137 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Level_38;
#line 2137 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_59;

#line 909 "tree_bitset.m"
                if ((mercury__tree_bitset__V_68_68 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 909 "tree_bitset.m"
                  {
#line 910 "tree_bitset.m"
                    {
#line 910 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.head_and_tail\'/3", (MR_String) "empty list");
                    }
#line 909 "tree_bitset.m"
                  }
#line 909 "tree_bitset.m"
                else
#line 911 "tree_bitset.m"
                  {
#line 911 "tree_bitset.m"
                    mercury__tree_bitset__InteriorHeadA_34 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_68_68, (MR_Integer) 0)));
#line 911 "tree_bitset.m"
                    mercury__tree_bitset__InteriorTailA_35 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_68_68, (MR_Integer) 1)));
#line 911 "tree_bitset.m"
                  }
#line 909 "tree_bitset.m"
                if ((mercury__tree_bitset__InteriorNodesB_61 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 909 "tree_bitset.m"
                  {
#line 910 "tree_bitset.m"
                    {
#line 910 "tree_bitset.m"
                      mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.head_and_tail\'/3", (MR_String) "empty list");
                    }
#line 909 "tree_bitset.m"
                  }
#line 909 "tree_bitset.m"
                else
#line 911 "tree_bitset.m"
                  {
#line 911 "tree_bitset.m"
                    mercury__tree_bitset__InteriorHeadB_36 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorNodesB_61, (MR_Integer) 0)));
#line 911 "tree_bitset.m"
                    mercury__tree_bitset__InteriorTailB_37 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorNodesB_61, (MR_Integer) 1)));
#line 911 "tree_bitset.m"
                  }
#line 2143 "tree_bitset.m"
                {
#line 2143 "tree_bitset.m"
                  mercury__tree_bitset__interiornode_intersect_8_p_0(mercury__tree_bitset__V_69_69, mercury__tree_bitset__InteriorHeadA_34, mercury__tree_bitset__InteriorTailA_35, mercury__tree_bitset__LevelB_60, mercury__tree_bitset__InteriorHeadB_36, mercury__tree_bitset__InteriorTailB_37, &mercury__tree_bitset__Level_38, &mercury__tree_bitset__InteriorNodes_59);
                }
#line 2145 "tree_bitset.m"
                {
#line 2145 "tree_bitset.m"
                  mercury__tree_bitset__List_11 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 2145 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, 0) = ((MR_Box) (mercury__tree_bitset__Level_38));
#line 2145 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodes_59));
#line 2145 "tree_bitset.m"
                }
#line 2137 "tree_bitset.m"
              }
#line 2130 "tree_bitset.m"
          }
#line 2105 "tree_bitset.m"
        else
#line 2118 "tree_bitset.m"
          {
#line 2118 "tree_bitset.m"
            MR_Word mercury__tree_bitset__LeafNodesB_57 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__ListB_8, (MR_Integer) 0)));

#line 2123 "tree_bitset.m"
            if ((mercury__tree_bitset__LeafNodesB_57 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2121 "tree_bitset.m"
              mercury__tree_bitset__List_11 = mercury__tree_bitset__ListB_8;
#line 2123 "tree_bitset.m"
            else
#line 2124 "tree_bitset.m"
              {
#line 2124 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodeB_32;
#line 2124 "tree_bitset.m"
                MR_Word mercury__tree_bitset__FirstNodeB_55 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodesB_57, (MR_Integer) 0)));
#line 2124 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__ParentInitOffset_90;
#line 2124 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__ParentLimitOffset_91;
#line 2124 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_93_93 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__FirstNodeB_55, (MR_Integer) 0)));
#line 2124 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LaterNodesB_31 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodesB_57, (MR_Integer) 1)));
#line 794 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_96_96 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__FirstNodeB_55, (MR_Integer) 1)));

#line 794 "tree_bitset.m"
                {
#line 794 "tree_bitset.m"
                  mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_93_93, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffset_90, &mercury__tree_bitset__ParentLimitOffset_91);
                }
#line 797 "tree_bitset.m"
                {
#line 797 "tree_bitset.m"
                  mercury__tree_bitset__InteriorNodeB_32 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 797 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_32, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffset_90));
#line 797 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_32, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffset_91));
#line 797 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_32, 2) = ((MR_Box) (mercury__tree_bitset__ListB_8));
#line 797 "tree_bitset.m"
                }
#line 2126 "tree_bitset.m"
                {
#line 2126 "tree_bitset.m"
                  mercury__tree_bitset__descend_and_intersect_5_p_0((MR_Integer) 1, mercury__tree_bitset__InteriorNodeB_32, mercury__tree_bitset__V_69_69, mercury__tree_bitset__V_68_68, &mercury__tree_bitset__List_11);
                }
#line 2124 "tree_bitset.m"
              }
#line 2118 "tree_bitset.m"
          }
#line 2105 "tree_bitset.m"
      }
#line 2105 "tree_bitset.m"
    else
#line 2105 "tree_bitset.m"
      {
#line 2105 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_70_70 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__ListA_7, (MR_Integer) 0)));

#line 2105 "tree_bitset.m"
        if (((MR_tag((MR_Word) mercury__tree_bitset__ListB_8)) == (MR_mktag((MR_Integer) 1))))
#line 2106 "tree_bitset.m"
          {
#line 2106 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__LevelB_25 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListB_8, (MR_Integer) 0)));
#line 2106 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InteriorNodesB_26 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListB_8, (MR_Integer) 1)));

#line 2111 "tree_bitset.m"
            if ((mercury__tree_bitset__V_70_70 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2109 "tree_bitset.m"
              mercury__tree_bitset__List_11 = mercury__tree_bitset__ListA_7;
#line 2111 "tree_bitset.m"
            else
#line 2112 "tree_bitset.m"
              {
#line 2112 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodeA_28;
#line 2112 "tree_bitset.m"
                MR_Word mercury__tree_bitset__FirstNodeA_51 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_70_70, (MR_Integer) 0)));
#line 2112 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__ParentInitOffset_100;
#line 2112 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__ParentLimitOffset_101;
#line 2112 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_103_103 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__FirstNodeA_51, (MR_Integer) 0)));
#line 2112 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LaterNodesA_27 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_70_70, (MR_Integer) 1)));
#line 794 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_106_106 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__FirstNodeA_51, (MR_Integer) 1)));

#line 794 "tree_bitset.m"
                {
#line 794 "tree_bitset.m"
                  mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_103_103, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffset_100, &mercury__tree_bitset__ParentLimitOffset_101);
                }
#line 797 "tree_bitset.m"
                {
#line 797 "tree_bitset.m"
                  mercury__tree_bitset__InteriorNodeA_28 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 797 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeA_28, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffset_100));
#line 797 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeA_28, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffset_101));
#line 797 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeA_28, 2) = ((MR_Box) (mercury__tree_bitset__ListA_7));
#line 797 "tree_bitset.m"
                }
#line 2114 "tree_bitset.m"
                {
#line 2114 "tree_bitset.m"
                  mercury__tree_bitset__descend_and_intersect_5_p_0((MR_Integer) 1, mercury__tree_bitset__InteriorNodeA_28, mercury__tree_bitset__LevelB_25, mercury__tree_bitset__InteriorNodesB_26, &mercury__tree_bitset__List_11);
                }
#line 2112 "tree_bitset.m"
              }
#line 2106 "tree_bitset.m"
          }
#line 2105 "tree_bitset.m"
        else
#line 2072 "tree_bitset.m"
          {
#line 2072 "tree_bitset.m"
            MR_Word mercury__tree_bitset__LeafNodesB_10 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__ListB_8, (MR_Integer) 0)));

#line 2078 "tree_bitset.m"
            if ((mercury__tree_bitset__V_70_70 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2078 "tree_bitset.m"
              if ((mercury__tree_bitset__LeafNodesB_10 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2075 "tree_bitset.m"
                mercury__tree_bitset__List_11 = mercury__tree_bitset__ListA_7;
#line 2078 "tree_bitset.m"
              else
#line 2085 "tree_bitset.m"
                mercury__tree_bitset__List_11 = mercury__tree_bitset__ListA_7;
#line 2078 "tree_bitset.m"
            else
#line 2078 "tree_bitset.m"
              {
#line 2078 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_72_72 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_70_70, (MR_Integer) 0)));
#line 2079 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_71_71 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_70_70, (MR_Integer) 1)));

#line 2078 "tree_bitset.m"
                if ((mercury__tree_bitset__LeafNodesB_10 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2081 "tree_bitset.m"
                  mercury__tree_bitset__List_11 = mercury__tree_bitset__ListB_8;
#line 2078 "tree_bitset.m"
                else
#line 2087 "tree_bitset.m"
                  {
#line 2087 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__FirstNodeB_18 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodesB_10, (MR_Integer) 0)));
#line 2087 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__ParentInitOffsetA_20;
#line 2087 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__ParentLimitOffsetA_21;
#line 2087 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__ParentInitOffsetB_22;
#line 2087 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__ParentLimitOffsetB_23;
#line 2087 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_42_42 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_72_72, (MR_Integer) 0)));
#line 2087 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_44_44;
#line 2088 "tree_bitset.m"
                    MR_Word mercury__tree_bitset___LaterNodesB_19 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodesB_10, (MR_Integer) 1)));
#line 2089 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_64_64 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_72_72, (MR_Integer) 1)));
#line 2091 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_65_65;

#line 2089 "tree_bitset.m"
                    {
#line 2089 "tree_bitset.m"
                      mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_42_42, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffsetA_20, &mercury__tree_bitset__ParentLimitOffsetA_21);
                    }
#line 2091 "tree_bitset.m"
                    mercury__tree_bitset__V_44_44 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__FirstNodeB_18, (MR_Integer) 0)));
#line 2091 "tree_bitset.m"
                    mercury__tree_bitset__V_65_65 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__FirstNodeB_18, (MR_Integer) 1)));
#line 2091 "tree_bitset.m"
                    {
#line 2091 "tree_bitset.m"
                      mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_44_44, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffsetB_22, &mercury__tree_bitset__ParentLimitOffsetB_23);
                    }
#line 2093 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = (mercury__tree_bitset__ParentInitOffsetA_20 == mercury__tree_bitset__ParentInitOffsetB_22);
#line 2100 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 2097 "tree_bitset.m"
                      {
#line 2097 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__LeafNodes_24;

#line 2095 "tree_bitset.m"
                        {
#line 2095 "tree_bitset.m"
                          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_53_52_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__ParentLimitOffsetA_21, mercury__tree_bitset__ParentLimitOffsetB_23, (MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.intersect\'/2", (MR_String) "limit mismatch");
                        }
#line 2098 "tree_bitset.m"
                        {
#line 2098 "tree_bitset.m"
                          mercury__tree_bitset__leaflist_intersect_3_p_0(mercury__tree_bitset__V_70_70, mercury__tree_bitset__LeafNodesB_10, &mercury__tree_bitset__LeafNodes_24);
                        }
#line 2099 "tree_bitset.m"
                        {
#line 2099 "tree_bitset.m"
                          mercury__tree_bitset__List_11 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 2099 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, 0) = ((MR_Box) (mercury__tree_bitset__LeafNodes_24));
#line 2099 "tree_bitset.m"
                        }
#line 2097 "tree_bitset.m"
                      }
#line 2100 "tree_bitset.m"
                    else
#line 2102 "tree_bitset.m"
                      {
#line 2102 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__V_50_50 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));

#line 2102 "tree_bitset.m"
                        mercury__tree_bitset__List_11 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 2102 "tree_bitset.m"
                      }
#line 2087 "tree_bitset.m"
                  }
#line 2078 "tree_bitset.m"
              }
#line 2072 "tree_bitset.m"
          }
#line 2105 "tree_bitset.m"
      }
#line 2148 "tree_bitset.m"
    {
#line 2148 "tree_bitset.m"
      mercury__tree_bitset__prune_top_levels_2_p_0(mercury__tree_bitset__List_11, &mercury__tree_bitset__PrunedList_39);
    }
#line 595 "tree_bitset.m"
    mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__PrunedList_39;
#line 2068 "tree_bitset.m"
    return mercury__tree_bitset__Set_6;
#line 2068 "tree_bitset.m"
  }
#line 218 "tree_bitset.m"
}

#line 210 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__union_list_2_p_0(
#line 210 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_13,
#line 210 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1,
#line 210 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__2_2)
#line 210 "tree_bitset.m"
{
#line 2860 "tree_bitset.m"
  while (MR_TRUE)
#line 2860 "tree_bitset.m"
    {
#line 2860 "tree_bitset.m"
      /* tailcall optimized into a loop */
#line 2860 "tree_bitset.m"
      {
#line 2860 "tree_bitset.m"
        MR_bool mercury__tree_bitset__succeeded;

#line 2860 "tree_bitset.m"
        if ((mercury__tree_bitset__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 915 "tree_bitset.m"
          {
#line 915 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_16_16 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 915 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_17_17 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));

#line 595 "tree_bitset.m"
            *mercury__tree_bitset__HeadVar__2_2 = (MR_Word) ((MR_Box) (&mercury__tree_bitset_scalar_common_5[0]));
#line 915 "tree_bitset.m"
          }
#line 2860 "tree_bitset.m"
        else
#line 2860 "tree_bitset.m"
          {
#line 2860 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_14_14 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 1)));
#line 2860 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_15_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__HeadVar__1_1, (MR_Integer) 0)));

#line 2860 "tree_bitset.m"
            if ((mercury__tree_bitset__V_14_14 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 2861 "tree_bitset.m"
              *mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__V_15_15;
#line 2860 "tree_bitset.m"
            else
#line 2862 "tree_bitset.m"
              {
#line 2862 "tree_bitset.m"
                MR_Word mercury__tree_bitset__MergedSets_10;
#line 2862 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_12_12 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));

#line 2863 "tree_bitset.m"
                {
#line 2863 "tree_bitset.m"
                  mercury__tree_bitset__union_list_pass_3_p_0(mercury__tree_bitset__TypeInfo_for_T_13, mercury__tree_bitset__HeadVar__1_1, mercury__tree_bitset__V_12_12, &mercury__tree_bitset__MergedSets_10);
                }
#line 2864 "tree_bitset.m"
                /* direct tailcall eliminated */
#line 2864 "tree_bitset.m"
                {
#line 2864 "tree_bitset.m"
                  MR_Word mercury__tree_bitset__HeadVar__1__tmp_copy_1 = mercury__tree_bitset__MergedSets_10;

#line 2864 "tree_bitset.m"
                  mercury__tree_bitset__HeadVar__1_1 = mercury__tree_bitset__HeadVar__1__tmp_copy_1;
#line 2864 "tree_bitset.m"
                }
#line 2864 "tree_bitset.m"
                continue;
#line 2862 "tree_bitset.m"
              }
#line 2860 "tree_bitset.m"
          }
#line 2860 "tree_bitset.m"
      }
#line 2860 "tree_bitset.m"
      break;
#line 2860 "tree_bitset.m"
    }
#line 210 "tree_bitset.m"
}

#line 209 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__union_list_1_f_0(
#line 209 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_5,
#line 209 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Sets_3)
#line 209 "tree_bitset.m"
{
#line 2858 "tree_bitset.m"
  {
#line 2858 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 2858 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Set_4;

#line 2858 "tree_bitset.m"
    {
#line 2858 "tree_bitset.m"
      mercury__tree_bitset__union_list_2_p_0(mercury__tree_bitset__TypeInfo_for_T_5, mercury__tree_bitset__Sets_3, &mercury__tree_bitset__Set_4);
    }
#line 2858 "tree_bitset.m"
    return mercury__tree_bitset__Set_4;
#line 2858 "tree_bitset.m"
  }
#line 209 "tree_bitset.m"
}

#line 204 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__union_3_p_0(
#line 204 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_6,
#line 204 "tree_bitset.m"
  MR_Word mercury__tree_bitset__A_4,
#line 204 "tree_bitset.m"
  MR_Word mercury__tree_bitset__B_5,
#line 204 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__3_3)
#line 204 "tree_bitset.m"
{
#line 3661 "tree_bitset.m"
  {
#line 3661 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3661 "tree_bitset.m"
    {
#line 3661 "tree_bitset.m"
      *mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__union_2_f_0(mercury__tree_bitset__TypeInfo_for_T_6, mercury__tree_bitset__A_4, mercury__tree_bitset__B_5);
    }
#line 3661 "tree_bitset.m"
  }
#line 204 "tree_bitset.m"
}

#line 203 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__union_2_f_0(
#line 203 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_97,
#line 203 "tree_bitset.m"
  MR_Word mercury__tree_bitset__SetA_4,
#line 203 "tree_bitset.m"
  MR_Word mercury__tree_bitset__SetB_5)
#line 203 "tree_bitset.m"
{
#line 1897 "tree_bitset.m"
  {
#line 1897 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1897 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Set_6;
#line 1897 "tree_bitset.m"
    MR_Word mercury__tree_bitset__ListA_7 = (MR_Word) mercury__tree_bitset__SetA_4;
#line 1897 "tree_bitset.m"
    MR_Word mercury__tree_bitset__ListB_8 = (MR_Word) mercury__tree_bitset__SetB_5;
#line 1897 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11;

#line 1939 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__ListA_7)) == (MR_mktag((MR_Integer) 1))))
#line 1939 "tree_bitset.m"
      {
#line 1939 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_99_99 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListA_7, (MR_Integer) 1)));
#line 1939 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_100_100 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListA_7, (MR_Integer) 0)));

#line 1939 "tree_bitset.m"
        if (((MR_tag((MR_Word) mercury__tree_bitset__ListB_8)) == (MR_mktag((MR_Integer) 1))))
#line 1968 "tree_bitset.m"
          {
#line 1968 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Level_85;
#line 1968 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InteriorNodes_86;
#line 1968 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__LevelB_87 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListB_8, (MR_Integer) 0)));
#line 1968 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InteriorNodesB_88 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListB_8, (MR_Integer) 1)));
#line 1968 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InteriorHeadB_89;
#line 1968 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InteriorTailB_90;
#line 1968 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InteriorHeadA_93;
#line 1968 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InteriorTailA_94;

#line 1970 "tree_bitset.m"
            {
#line 1970 "tree_bitset.m"
              mercury__tree_bitset__head_and_tail_3_p_0(mercury__tree_bitset__V_99_99, &mercury__tree_bitset__InteriorHeadA_93, &mercury__tree_bitset__InteriorTailA_94);
            }
#line 1971 "tree_bitset.m"
            {
#line 1971 "tree_bitset.m"
              mercury__tree_bitset__head_and_tail_3_p_0(mercury__tree_bitset__InteriorNodesB_88, &mercury__tree_bitset__InteriorHeadB_89, &mercury__tree_bitset__InteriorTailB_90);
            }
#line 1972 "tree_bitset.m"
            {
#line 1972 "tree_bitset.m"
              mercury__tree_bitset__interiornode_union_8_p_0(mercury__tree_bitset__V_100_100, mercury__tree_bitset__InteriorHeadA_93, mercury__tree_bitset__InteriorTailA_94, mercury__tree_bitset__LevelB_87, mercury__tree_bitset__InteriorHeadB_89, mercury__tree_bitset__InteriorTailB_90, &mercury__tree_bitset__Level_85, &mercury__tree_bitset__InteriorNodes_86);
            }
#line 1975 "tree_bitset.m"
            {
#line 1975 "tree_bitset.m"
              mercury__tree_bitset__List_11 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1975 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, 0) = ((MR_Box) (mercury__tree_bitset__Level_85));
#line 1975 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodes_86));
#line 1975 "tree_bitset.m"
            }
#line 1968 "tree_bitset.m"
          }
#line 1939 "tree_bitset.m"
        else
#line 1954 "tree_bitset.m"
          {
#line 1954 "tree_bitset.m"
            MR_Word mercury__tree_bitset__LeafNodesB_79 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__ListB_8, (MR_Integer) 0)));

#line 1959 "tree_bitset.m"
            if ((mercury__tree_bitset__LeafNodesB_79 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1957 "tree_bitset.m"
              mercury__tree_bitset__List_11 = mercury__tree_bitset__ListA_7;
#line 1959 "tree_bitset.m"
            else
#line 1960 "tree_bitset.m"
              {
#line 1960 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorHeadA_35;
#line 1960 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorTailA_36;
#line 1960 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_38_38;
#line 1960 "tree_bitset.m"
                MR_Word mercury__tree_bitset__FirstNodeB_69 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodesB_79, (MR_Integer) 0)));
#line 1960 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodeB_71;
#line 1960 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Level_72;
#line 1960 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_73;
#line 1960 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__ParentInitOffset_107;
#line 1960 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__ParentLimitOffset_108;
#line 1960 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_110_110 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__FirstNodeB_69, (MR_Integer) 0)));
#line 1960 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LaterNodesB_70 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodesB_79, (MR_Integer) 1)));
#line 794 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_113_113 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__FirstNodeB_69, (MR_Integer) 1)));

#line 794 "tree_bitset.m"
                {
#line 794 "tree_bitset.m"
                  mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_110_110, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffset_107, &mercury__tree_bitset__ParentLimitOffset_108);
                }
#line 797 "tree_bitset.m"
                {
#line 797 "tree_bitset.m"
                  mercury__tree_bitset__InteriorNodeB_71 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 797 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_71, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffset_107));
#line 797 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_71, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffset_108));
#line 797 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_71, 2) = ((MR_Box) (mercury__tree_bitset__ListB_8));
#line 797 "tree_bitset.m"
                }
#line 1962 "tree_bitset.m"
                {
#line 1962 "tree_bitset.m"
                  mercury__tree_bitset__head_and_tail_3_p_0(mercury__tree_bitset__V_99_99, &mercury__tree_bitset__InteriorHeadA_35, &mercury__tree_bitset__InteriorTailA_36);
                }
#line 1963 "tree_bitset.m"
                mercury__tree_bitset__V_38_38 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1963 "tree_bitset.m"
                {
#line 1963 "tree_bitset.m"
                  mercury__tree_bitset__interiornode_union_8_p_0(mercury__tree_bitset__V_100_100, mercury__tree_bitset__InteriorHeadA_35, mercury__tree_bitset__InteriorTailA_36, (MR_Integer) 1, mercury__tree_bitset__InteriorNodeB_71, mercury__tree_bitset__V_38_38, &mercury__tree_bitset__Level_72, &mercury__tree_bitset__InteriorNodes_73);
                }
#line 1965 "tree_bitset.m"
                {
#line 1965 "tree_bitset.m"
                  mercury__tree_bitset__List_11 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1965 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, 0) = ((MR_Box) (mercury__tree_bitset__Level_72));
#line 1965 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodes_73));
#line 1965 "tree_bitset.m"
                }
#line 1960 "tree_bitset.m"
              }
#line 1954 "tree_bitset.m"
          }
#line 1939 "tree_bitset.m"
      }
#line 1939 "tree_bitset.m"
    else
#line 1939 "tree_bitset.m"
      {
#line 1939 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_101_101 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__ListA_7, (MR_Integer) 0)));

#line 1939 "tree_bitset.m"
        if (((MR_tag((MR_Word) mercury__tree_bitset__ListB_8)) == (MR_mktag((MR_Integer) 1))))
#line 1940 "tree_bitset.m"
          {
#line 1940 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__LevelB_29 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListB_8, (MR_Integer) 0)));
#line 1940 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InteriorNodesB_30 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__ListB_8, (MR_Integer) 1)));

#line 1945 "tree_bitset.m"
            if ((mercury__tree_bitset__V_101_101 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1943 "tree_bitset.m"
              mercury__tree_bitset__List_11 = mercury__tree_bitset__ListB_8;
#line 1945 "tree_bitset.m"
            else
#line 1946 "tree_bitset.m"
              {
#line 1946 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorHeadB_31;
#line 1946 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorTailB_32;
#line 1946 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_40_40;
#line 1946 "tree_bitset.m"
                MR_Word mercury__tree_bitset__FirstNodeA_53 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_101_101, (MR_Integer) 0)));
#line 1946 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodeA_55;
#line 1946 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__Level_56;
#line 1946 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNodes_57;
#line 1946 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__ParentInitOffset_117;
#line 1946 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__ParentLimitOffset_118;
#line 1946 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_120_120 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__FirstNodeA_53, (MR_Integer) 0)));
#line 1946 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LaterNodesA_54 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_101_101, (MR_Integer) 1)));
#line 794 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_123_123 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__FirstNodeA_53, (MR_Integer) 1)));

#line 794 "tree_bitset.m"
                {
#line 794 "tree_bitset.m"
                  mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_120_120, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffset_117, &mercury__tree_bitset__ParentLimitOffset_118);
                }
#line 797 "tree_bitset.m"
                {
#line 797 "tree_bitset.m"
                  mercury__tree_bitset__InteriorNodeA_55 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 797 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeA_55, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffset_117));
#line 797 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeA_55, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffset_118));
#line 797 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeA_55, 2) = ((MR_Box) (mercury__tree_bitset__ListA_7));
#line 797 "tree_bitset.m"
                }
#line 1948 "tree_bitset.m"
                {
#line 1948 "tree_bitset.m"
                  mercury__tree_bitset__head_and_tail_3_p_0(mercury__tree_bitset__InteriorNodesB_30, &mercury__tree_bitset__InteriorHeadB_31, &mercury__tree_bitset__InteriorTailB_32);
                }
#line 1949 "tree_bitset.m"
                mercury__tree_bitset__V_40_40 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1949 "tree_bitset.m"
                {
#line 1949 "tree_bitset.m"
                  mercury__tree_bitset__interiornode_union_8_p_0((MR_Integer) 1, mercury__tree_bitset__InteriorNodeA_55, mercury__tree_bitset__V_40_40, mercury__tree_bitset__LevelB_29, mercury__tree_bitset__InteriorHeadB_31, mercury__tree_bitset__InteriorTailB_32, &mercury__tree_bitset__Level_56, &mercury__tree_bitset__InteriorNodes_57);
                }
#line 1951 "tree_bitset.m"
                {
#line 1951 "tree_bitset.m"
                  mercury__tree_bitset__List_11 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1951 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, 0) = ((MR_Box) (mercury__tree_bitset__Level_56));
#line 1951 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodes_57));
#line 1951 "tree_bitset.m"
                }
#line 1946 "tree_bitset.m"
              }
#line 1940 "tree_bitset.m"
          }
#line 1939 "tree_bitset.m"
        else
#line 1901 "tree_bitset.m"
          {
#line 1901 "tree_bitset.m"
            MR_Word mercury__tree_bitset__LeafNodesB_10 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__ListB_8, (MR_Integer) 0)));

#line 1907 "tree_bitset.m"
            if ((mercury__tree_bitset__V_101_101 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1907 "tree_bitset.m"
              if ((mercury__tree_bitset__LeafNodesB_10 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1904 "tree_bitset.m"
                mercury__tree_bitset__List_11 = mercury__tree_bitset__ListA_7;
#line 1907 "tree_bitset.m"
              else
#line 1914 "tree_bitset.m"
                mercury__tree_bitset__List_11 = mercury__tree_bitset__ListB_8;
#line 1907 "tree_bitset.m"
            else
#line 1907 "tree_bitset.m"
              {
#line 1907 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_103_103 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_101_101, (MR_Integer) 0)));
#line 1908 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_102_102 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_101_101, (MR_Integer) 1)));

#line 1907 "tree_bitset.m"
                if ((mercury__tree_bitset__LeafNodesB_10 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1910 "tree_bitset.m"
                  mercury__tree_bitset__List_11 = mercury__tree_bitset__ListA_7;
#line 1907 "tree_bitset.m"
                else
#line 1916 "tree_bitset.m"
                  {
#line 1916 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__FirstNodeB_18 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodesB_10, (MR_Integer) 0)));
#line 1916 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__ParentInitOffsetA_20;
#line 1916 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__ParentLimitOffsetA_21;
#line 1916 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__ParentInitOffsetB_22;
#line 1916 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__ParentLimitOffsetB_23;
#line 1916 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_41_41 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_103_103, (MR_Integer) 0)));
#line 1916 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_43_43;
#line 1917 "tree_bitset.m"
                    MR_Word mercury__tree_bitset__LaterNodesB_19 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodesB_10, (MR_Integer) 1)));
#line 1918 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_95_95 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_103_103, (MR_Integer) 1)));
#line 1920 "tree_bitset.m"
                    MR_Integer mercury__tree_bitset__V_96_96;

#line 1918 "tree_bitset.m"
                    {
#line 1918 "tree_bitset.m"
                      mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_41_41, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffsetA_20, &mercury__tree_bitset__ParentLimitOffsetA_21);
                    }
#line 1920 "tree_bitset.m"
                    mercury__tree_bitset__V_43_43 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__FirstNodeB_18, (MR_Integer) 0)));
#line 1920 "tree_bitset.m"
                    mercury__tree_bitset__V_96_96 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__FirstNodeB_18, (MR_Integer) 1)));
#line 1920 "tree_bitset.m"
                    {
#line 1920 "tree_bitset.m"
                      mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_43_43, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffsetB_22, &mercury__tree_bitset__ParentLimitOffsetB_23);
                    }
#line 1922 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = (mercury__tree_bitset__ParentInitOffsetA_20 == mercury__tree_bitset__ParentInitOffsetB_22);
#line 1929 "tree_bitset.m"
                    if (mercury__tree_bitset__succeeded)
#line 1926 "tree_bitset.m"
                      {
#line 1926 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__LeafNodes_24;

#line 1924 "tree_bitset.m"
                        {
#line 1924 "tree_bitset.m"
                          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_101_120_112_101_99_116_95_95_104_111_53_53_95_95_91_51_93_95_48_4_p_in__require_0(mercury__tree_bitset__ParentLimitOffsetA_21, mercury__tree_bitset__ParentLimitOffsetB_23, (MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.union\'/2", (MR_String) "limit mismatch");
                        }
#line 1927 "tree_bitset.m"
                        {
#line 1927 "tree_bitset.m"
                          mercury__tree_bitset__leaflist_union_3_p_0(mercury__tree_bitset__V_101_101, mercury__tree_bitset__LeafNodesB_10, &mercury__tree_bitset__LeafNodes_24);
                        }
#line 1928 "tree_bitset.m"
                        {
#line 1928 "tree_bitset.m"
                          mercury__tree_bitset__List_11 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 1928 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, 0) = ((MR_Box) (mercury__tree_bitset__LeafNodes_24));
#line 1928 "tree_bitset.m"
                        }
#line 1926 "tree_bitset.m"
                      }
#line 1929 "tree_bitset.m"
                    else
#line 1931 "tree_bitset.m"
                      {
#line 1931 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__InteriorNodeA_25;
#line 1931 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__InteriorNodeB_26;
#line 1931 "tree_bitset.m"
                        MR_Integer mercury__tree_bitset__Level_27;
#line 1931 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__InteriorNodes_28;
#line 1931 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__V_50_50;
#line 1931 "tree_bitset.m"
                        MR_Word mercury__tree_bitset__V_52_52;
#line 1931 "tree_bitset.m"
                        MR_Integer mercury__tree_bitset__ParentInitOffset_127;
#line 1931 "tree_bitset.m"
                        MR_Integer mercury__tree_bitset__ParentLimitOffset_128;
#line 1931 "tree_bitset.m"
                        MR_Integer mercury__tree_bitset__V_130_130 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_103_103, (MR_Integer) 0)));
#line 1931 "tree_bitset.m"
                        MR_Integer mercury__tree_bitset__ParentInitOffset_137;
#line 1931 "tree_bitset.m"
                        MR_Integer mercury__tree_bitset__ParentLimitOffset_138;
#line 1931 "tree_bitset.m"
                        MR_Integer mercury__tree_bitset__V_140_140;
#line 794 "tree_bitset.m"
                        MR_Integer mercury__tree_bitset__V_133_133 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_103_103, (MR_Integer) 1)));
#line 794 "tree_bitset.m"
                        MR_Integer mercury__tree_bitset__V_143_143;

#line 794 "tree_bitset.m"
                        {
#line 794 "tree_bitset.m"
                          mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_130_130, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffset_127, &mercury__tree_bitset__ParentLimitOffset_128);
                        }
#line 797 "tree_bitset.m"
                        {
#line 797 "tree_bitset.m"
                          mercury__tree_bitset__InteriorNodeA_25 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 797 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeA_25, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffset_127));
#line 797 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeA_25, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffset_128));
#line 797 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeA_25, 2) = ((MR_Box) (mercury__tree_bitset__ListA_7));
#line 797 "tree_bitset.m"
                        }
#line 794 "tree_bitset.m"
                        mercury__tree_bitset__V_140_140 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__FirstNodeB_18, (MR_Integer) 0)));
#line 794 "tree_bitset.m"
                        mercury__tree_bitset__V_143_143 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__FirstNodeB_18, (MR_Integer) 1)));
#line 794 "tree_bitset.m"
                        {
#line 794 "tree_bitset.m"
                          mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_140_140, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffset_137, &mercury__tree_bitset__ParentLimitOffset_138);
                        }
#line 797 "tree_bitset.m"
                        {
#line 797 "tree_bitset.m"
                          mercury__tree_bitset__InteriorNodeB_26 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 797 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_26, 0) = ((MR_Box) (mercury__tree_bitset__ParentInitOffset_137));
#line 797 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_26, 1) = ((MR_Box) (mercury__tree_bitset__ParentLimitOffset_138));
#line 797 "tree_bitset.m"
                          MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNodeB_26, 2) = ((MR_Box) (mercury__tree_bitset__ListB_8));
#line 797 "tree_bitset.m"
                        }
#line 1934 "tree_bitset.m"
                        mercury__tree_bitset__V_50_50 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1934 "tree_bitset.m"
                        mercury__tree_bitset__V_52_52 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1934 "tree_bitset.m"
                        {
#line 1934 "tree_bitset.m"
                          mercury__tree_bitset__interiornode_union_8_p_0((MR_Integer) 1, mercury__tree_bitset__InteriorNodeA_25, mercury__tree_bitset__V_50_50, (MR_Integer) 1, mercury__tree_bitset__InteriorNodeB_26, mercury__tree_bitset__V_52_52, &mercury__tree_bitset__Level_27, &mercury__tree_bitset__InteriorNodes_28);
                        }
#line 1936 "tree_bitset.m"
                        {
#line 1936 "tree_bitset.m"
                          mercury__tree_bitset__List_11 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1936 "tree_bitset.m"
                          MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, 0) = ((MR_Box) (mercury__tree_bitset__Level_27));
#line 1936 "tree_bitset.m"
                          MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_11, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodes_28));
#line 1936 "tree_bitset.m"
                        }
#line 1931 "tree_bitset.m"
                      }
#line 1916 "tree_bitset.m"
                  }
#line 1907 "tree_bitset.m"
              }
#line 1901 "tree_bitset.m"
          }
#line 1939 "tree_bitset.m"
      }
#line 595 "tree_bitset.m"
    mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__List_11;
#line 1897 "tree_bitset.m"
    return mercury__tree_bitset__Set_6;
#line 1897 "tree_bitset.m"
  }
#line 203 "tree_bitset.m"
}

#line 195 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__remove_least_3_p_0(
#line 195 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_23,
#line 195 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__Elem_4,
#line 195 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set0_5,
#line 195 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__Set_6)
#line 195 "tree_bitset.m"
{
#line 1492 "tree_bitset.m"
  {
#line 1492 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1492 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List0_7 = (MR_Word) mercury__tree_bitset__Set0_5;
#line 1492 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__Index_11;
#line 1492 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_13;
#line 1492 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__PolyConst1_24;
#line 565 "tree_bitset.m"
    MR_Box mercury__tree_bitset__Elem0_53;
#line 69946 "tree_bitset.c"
    MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *);
#line 137 "private_builtin.opt"
    MR_Word mercury__tree_bitset__TypeInfo_25_25;

#line 1505 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List0_7)) == (MR_mktag((MR_Integer) 1))))
#line 1506 "tree_bitset.m"
      {
#line 1506 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Level_14 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List0_7, (MR_Integer) 0)));
#line 1506 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes0_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List0_7, (MR_Integer) 1)));
#line 1506 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_18;
#line 1506 "tree_bitset.m"
        MR_Word mercury__tree_bitset__List1_19;

#line 1510 "tree_bitset.m"
        if ((mercury__tree_bitset__InteriorNodes0_15 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1508 "tree_bitset.m"
          {
#line 1509 "tree_bitset.m"
            {
#line 1509 "tree_bitset.m"
              mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.remove_least\'/3", (MR_String) "empty InteriorNodes0");
            }
#line 1508 "tree_bitset.m"
          }
#line 1510 "tree_bitset.m"
        else
#line 1511 "tree_bitset.m"
          {
#line 1511 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InteriorHead_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorNodes0_15, (MR_Integer) 0)));
#line 1511 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InteriorTail_17 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorNodes0_15, (MR_Integer) 1)));

#line 1512 "tree_bitset.m"
            {
#line 1512 "tree_bitset.m"
              mercury__tree_bitset__remove_least_interior_4_p_0(mercury__tree_bitset__InteriorHead_16, mercury__tree_bitset__InteriorTail_17, &mercury__tree_bitset__Index_11, &mercury__tree_bitset__InteriorNodes_18);
            }
#line 1511 "tree_bitset.m"
          }
#line 1515 "tree_bitset.m"
        {
#line 1515 "tree_bitset.m"
          mercury__tree_bitset__List1_19 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1515 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__List1_19, 0) = ((MR_Box) (mercury__tree_bitset__Level_14));
#line 1515 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__List1_19, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodes_18));
#line 1515 "tree_bitset.m"
        }
#line 1516 "tree_bitset.m"
        {
#line 1516 "tree_bitset.m"
          mercury__tree_bitset__prune_top_levels_2_p_0(mercury__tree_bitset__List1_19, &mercury__tree_bitset__List_13);
        }
#line 1506 "tree_bitset.m"
        mercury__tree_bitset__succeeded = MR_TRUE;
#line 1506 "tree_bitset.m"
      }
#line 1505 "tree_bitset.m"
    else
#line 1495 "tree_bitset.m"
      {
#line 1495 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes0_8 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List0_7, (MR_Integer) 0)));
#line 1495 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafHead_9;
#line 1495 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafTail_10;
#line 1495 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_12;
#line 1495 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Bits0_32;
#line 1495 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Offset_33;
#line 1495 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Bit_34;
#line 1495 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Bits_35;
#line 1495 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Size_41;
#line 1495 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__BitNum0_42;
#line 1495 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_46_46;
#line 1495 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_47_47;
#line 1495 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_48_48;

#line 70041 "tree_bitset.c"
        mercury__tree_bitset__succeeded = ((MR_tag((MR_Word) mercury__tree_bitset__LeafNodes0_8)) == (MR_mktag((MR_Integer) 1)));
#line 70043 "tree_bitset.c"
        if (mercury__tree_bitset__succeeded)
#line 70045 "tree_bitset.c"
          {
#line 70047 "tree_bitset.c"
            mercury__tree_bitset__LeafHead_9 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodes0_8, (MR_Integer) 0)));
#line 70049 "tree_bitset.c"
            mercury__tree_bitset__LeafTail_10 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodes0_8, (MR_Integer) 1)));
#line 1569 "tree_bitset.m"
            mercury__tree_bitset__Offset_33 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__LeafHead_9, (MR_Integer) 0)));
#line 1569 "tree_bitset.m"
            mercury__tree_bitset__Bits0_32 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__LeafHead_9, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__remove_least_3_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 70066 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Size_41  = Bits;
#line 171 "int.opt"
}
#line 1584 "tree_bitset.m"
            mercury__tree_bitset__BitNum0_42 = (MR_Integer) 0;
#line 1585 "tree_bitset.m"
            {
#line 1585 "tree_bitset.m"
              mercury__tree_bitset__Bit_34 = mercury__tree_bitset__find_least_bit_2_3_f_0(mercury__tree_bitset__Bits0_32, mercury__tree_bitset__Size_41, mercury__tree_bitset__BitNum0_42);
            }
#line 3637 "tree_bitset.m"
            mercury__tree_bitset__V_48_48 = (MR_Integer) 1;
#line 3637 "tree_bitset.m"
            mercury__tree_bitset__V_47_47 = (mercury__tree_bitset__V_48_48 << mercury__tree_bitset__Bit_34);
#line 3637 "tree_bitset.m"
            mercury__tree_bitset__V_46_46 = ~(mercury__tree_bitset__V_47_47);
#line 3637 "tree_bitset.m"
            mercury__tree_bitset__Bits_35 = (mercury__tree_bitset__Bits0_32 & mercury__tree_bitset__V_46_46);
#line 1573 "tree_bitset.m"
            mercury__tree_bitset__Index_11 = (mercury__tree_bitset__Offset_33 + mercury__tree_bitset__Bit_34);
#line 1574 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Bits_35 == (MR_Integer) 0);
#line 1576 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1575 "tree_bitset.m"
              mercury__tree_bitset__LeafNodes_12 = mercury__tree_bitset__LeafTail_10;
#line 1576 "tree_bitset.m"
            else
#line 1577 "tree_bitset.m"
              {
#line 1577 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_36_36;

#line 547 "tree_bitset.m"
                {
#line 547 "tree_bitset.m"
                  mercury__tree_bitset__V_36_36 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_36_36, 0) = ((MR_Box) (mercury__tree_bitset__Offset_33));
#line 547 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_36_36, 1) = ((MR_Box) (mercury__tree_bitset__Bits_35));
#line 547 "tree_bitset.m"
                }
#line 1577 "tree_bitset.m"
                {
#line 1577 "tree_bitset.m"
                  mercury__tree_bitset__LeafNodes_12 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1577 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodes_12, 0) = ((MR_Box) (mercury__tree_bitset__V_36_36));
#line 1577 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodes_12, 1) = ((MR_Box) (mercury__tree_bitset__LeafTail_10));
#line 1577 "tree_bitset.m"
                }
#line 1577 "tree_bitset.m"
              }
#line 1504 "tree_bitset.m"
            {
#line 1504 "tree_bitset.m"
              mercury__tree_bitset__List_13 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 1504 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_13, 0) = ((MR_Box) (mercury__tree_bitset__LeafNodes_12));
#line 1504 "tree_bitset.m"
            }
#line 1504 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 70135 "tree_bitset.c"
          }
#line 1495 "tree_bitset.m"
      }
#line 1492 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 1492 "tree_bitset.m"
      {
#line 70143 "tree_bitset.c"
        mercury__tree_bitset__func_0 = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), mercury__tree_bitset__TypeClassInfo_for_enum_23, (MR_Integer) 0)), (MR_Integer) 6)));
#line 70145 "tree_bitset.c"
        {
#line 70147 "tree_bitset.c"
          mercury__tree_bitset__succeeded = mercury__tree_bitset__func_0(((MR_Box) mercury__tree_bitset__TypeClassInfo_for_enum_23), ((MR_Box) (mercury__tree_bitset__Index_11)), &mercury__tree_bitset__Elem0_53);
        }
#line 565 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 564 "tree_bitset.m"
          *mercury__tree_bitset__Elem_4 = mercury__tree_bitset__Elem0_53;
#line 565 "tree_bitset.m"
        else
#line 568 "tree_bitset.m"
          {
#line 568 "tree_bitset.m"
            {
#line 568 "tree_bitset.m"
              mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
            }
#line 568 "tree_bitset.m"
          }
#line 70165 "tree_bitset.c"
        mercury__tree_bitset__PolyConst1_24 = (MR_Integer) 1;
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__remove_least_3_p_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_23 ;
	Index =  mercury__tree_bitset__PolyConst1_24 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 70182 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_25_25  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 595 "tree_bitset.m"
        *mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__List_13;
#line 595 "tree_bitset.m"
        mercury__tree_bitset__succeeded = MR_TRUE;
#line 1492 "tree_bitset.m"
      }
#line 1492 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 1492 "tree_bitset.m"
  }
#line 195 "tree_bitset.m"
}

#line 189 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__remove_gt_2_f_0(
#line 189 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 189 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set0_4,
#line 189 "tree_bitset.m"
  MR_Box mercury__tree_bitset__Elem_5)
#line 189 "tree_bitset.m"
{
#line 1411 "tree_bitset.m"
  {
#line 1411 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1411 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Set_6;
#line 1411 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List0_7 = (MR_Word) mercury__tree_bitset__Set0_4;
#line 1411 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__Index_8;
#line 1411 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11;
#line 137 "private_builtin.opt"
    MR_Word mercury__tree_bitset__TypeInfo_18_18;

#line 1413 "tree_bitset.m"
    {
#line 1413 "tree_bitset.m"
      mercury__tree_bitset__Index_8 = mercury__tree_bitset__enum_to_index_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__Elem_5);
    }
#line 1418 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List0_7)) == (MR_mktag((MR_Integer) 1))))
#line 1419 "tree_bitset.m"
      {
#line 1419 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Level_12 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List0_7, (MR_Integer) 0)));
#line 1419 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes0_13 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List0_7, (MR_Integer) 1)));
#line 1419 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_14;
#line 1419 "tree_bitset.m"
        MR_Word mercury__tree_bitset__List1_15;

#line 1420 "tree_bitset.m"
        {
#line 1420 "tree_bitset.m"
          mercury__tree_bitset__remove_gt_interior_3_p_0(mercury__tree_bitset__InteriorNodes0_13, mercury__tree_bitset__Index_8, &mercury__tree_bitset__InteriorNodes_14);
        }
#line 1421 "tree_bitset.m"
        {
#line 1421 "tree_bitset.m"
          mercury__tree_bitset__List1_15 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1421 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__List1_15, 0) = ((MR_Box) (mercury__tree_bitset__Level_12));
#line 1421 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__List1_15, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodes_14));
#line 1421 "tree_bitset.m"
        }
#line 1422 "tree_bitset.m"
        {
#line 1422 "tree_bitset.m"
          mercury__tree_bitset__prune_top_levels_2_p_0(mercury__tree_bitset__List1_15, &mercury__tree_bitset__List_11);
        }
#line 1419 "tree_bitset.m"
      }
#line 1418 "tree_bitset.m"
    else
#line 1415 "tree_bitset.m"
      {
#line 1415 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes0_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List0_7, (MR_Integer) 0)));
#line 1415 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_10;

#line 1416 "tree_bitset.m"
        {
#line 1416 "tree_bitset.m"
          mercury__tree_bitset__remove_gt_leaf_3_p_0(mercury__tree_bitset__LeafNodes0_9, mercury__tree_bitset__Index_8, &mercury__tree_bitset__LeafNodes_10);
        }
#line 1417 "tree_bitset.m"
        {
#line 1417 "tree_bitset.m"
          mercury__tree_bitset__List_11 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 1417 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, 0) = ((MR_Box) (mercury__tree_bitset__LeafNodes_10));
#line 1417 "tree_bitset.m"
        }
#line 1415 "tree_bitset.m"
      }
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__remove_gt_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_16 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 70307 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_18_18  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 595 "tree_bitset.m"
    mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__List_11;
#line 1411 "tree_bitset.m"
    return mercury__tree_bitset__Set_6;
#line 1411 "tree_bitset.m"
  }
#line 189 "tree_bitset.m"
}

#line 182 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__remove_leq_2_f_0(
#line 182 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 182 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set0_4,
#line 182 "tree_bitset.m"
  MR_Box mercury__tree_bitset__Elem_5)
#line 182 "tree_bitset.m"
{
#line 1334 "tree_bitset.m"
  {
#line 1334 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1334 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Set_6;
#line 1334 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List0_7 = (MR_Word) mercury__tree_bitset__Set0_4;
#line 1334 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__Index_8;
#line 1334 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11;
#line 137 "private_builtin.opt"
    MR_Word mercury__tree_bitset__TypeInfo_18_18;

#line 1336 "tree_bitset.m"
    {
#line 1336 "tree_bitset.m"
      mercury__tree_bitset__Index_8 = mercury__tree_bitset__enum_to_index_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__Elem_5);
    }
#line 1341 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List0_7)) == (MR_mktag((MR_Integer) 1))))
#line 1342 "tree_bitset.m"
      {
#line 1342 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Level_12 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List0_7, (MR_Integer) 0)));
#line 1342 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes0_13 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List0_7, (MR_Integer) 1)));
#line 1342 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_14;
#line 1342 "tree_bitset.m"
        MR_Word mercury__tree_bitset__List1_15;

#line 1343 "tree_bitset.m"
        {
#line 1343 "tree_bitset.m"
          mercury__tree_bitset__remove_leq_interior_3_p_0(mercury__tree_bitset__InteriorNodes0_13, mercury__tree_bitset__Index_8, &mercury__tree_bitset__InteriorNodes_14);
        }
#line 1344 "tree_bitset.m"
        {
#line 1344 "tree_bitset.m"
          mercury__tree_bitset__List1_15 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1344 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__List1_15, 0) = ((MR_Box) (mercury__tree_bitset__Level_12));
#line 1344 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__List1_15, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodes_14));
#line 1344 "tree_bitset.m"
        }
#line 1345 "tree_bitset.m"
        {
#line 1345 "tree_bitset.m"
          mercury__tree_bitset__prune_top_levels_2_p_0(mercury__tree_bitset__List1_15, &mercury__tree_bitset__List_11);
        }
#line 1342 "tree_bitset.m"
      }
#line 1341 "tree_bitset.m"
    else
#line 1338 "tree_bitset.m"
      {
#line 1338 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes0_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List0_7, (MR_Integer) 0)));
#line 1338 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_10;

#line 1339 "tree_bitset.m"
        {
#line 1339 "tree_bitset.m"
          mercury__tree_bitset__remove_leq_leaf_3_p_0(mercury__tree_bitset__LeafNodes0_9, mercury__tree_bitset__Index_8, &mercury__tree_bitset__LeafNodes_10);
        }
#line 1340 "tree_bitset.m"
        {
#line 1340 "tree_bitset.m"
          mercury__tree_bitset__List_11 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 1340 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, 0) = ((MR_Box) (mercury__tree_bitset__LeafNodes_10));
#line 1340 "tree_bitset.m"
        }
#line 1338 "tree_bitset.m"
      }
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__remove_leq_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_16 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 70428 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_18_18  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 595 "tree_bitset.m"
    mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__List_11;
#line 1334 "tree_bitset.m"
    return mercury__tree_bitset__Set_6;
#line 1334 "tree_bitset.m"
  }
#line 182 "tree_bitset.m"
}

#line 174 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__remove_list_3_p_0(
#line 174 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_10,
#line 174 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Elems_4,
#line 174 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_Set_0_7,
#line 174 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_Set_8)
#line 174 "tree_bitset.m"
{
#line 1327 "tree_bitset.m"
  {
#line 1327 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1327 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_12_12;
#line 1327 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_13_13;
#line 1327 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_7_17;
#line 1327 "tree_bitset.m"
    MR_Word mercury__tree_bitset__ElemsSet_6;
#line 1327 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_15_15;
#line 1327 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_5_24;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__remove_list_3_p_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_10 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 70489 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_7_17  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 78 "list.opt"
    {
#line 78 "list.opt"
      mercury__list__length_2_3_p_0(mercury__tree_bitset__TypeInfo_7_17, mercury__tree_bitset__Elems_4, (MR_Integer) 0, &mercury__tree_bitset__V_5_24);
    }
#line 832 "list.opt"
    {
#line 832 "list.opt"
      mercury__list__merge_sort_2_3_p_0(mercury__tree_bitset__TypeInfo_7_17, mercury__tree_bitset__V_5_24, mercury__tree_bitset__Elems_4, &mercury__tree_bitset__V_15_15);
    }
#line 1608 "tree_bitset.m"
    {
#line 1608 "tree_bitset.m"
      mercury__tree_bitset__ElemsSet_6 = mercury__tree_bitset__sorted_list_to_set_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_10, mercury__tree_bitset__V_15_15);
    }
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__remove_list_3_p_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_10 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 70526 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_12_12  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 1329 "tree_bitset.m"
    {
#line 1329 "tree_bitset.m"
      mercury__tree_bitset__succeeded = mercury__tree_bitset__subset_2_p_0(mercury__tree_bitset__TypeInfo_12_12, mercury__tree_bitset__ElemsSet_6, mercury__tree_bitset__STATE_VARIABLE_Set_0_7);
    }
#line 1327 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 1327 "tree_bitset.m"
      {
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__remove_list_3_p_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_10 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 70557 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_13_13  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 1330 "tree_bitset.m"
        {
#line 1330 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Set_8 = mercury__tree_bitset__difference_2_f_0(mercury__tree_bitset__TypeInfo_13_13, mercury__tree_bitset__STATE_VARIABLE_Set_0_7, mercury__tree_bitset__ElemsSet_6);
        }
#line 1330 "tree_bitset.m"
        mercury__tree_bitset__succeeded = MR_TRUE;
#line 1327 "tree_bitset.m"
      }
#line 1327 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 1327 "tree_bitset.m"
  }
#line 174 "tree_bitset.m"
}

#line 166 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__remove_3_p_0(
#line 166 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_9,
#line 166 "tree_bitset.m"
  MR_Box mercury__tree_bitset__Elem_4,
#line 166 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_Set_0_6,
#line 166 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_Set_7)
#line 166 "tree_bitset.m"
{
#line 1323 "tree_bitset.m"
  {
#line 1323 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1323 "tree_bitset.m"
    MR_Word mercury__tree_bitset__NodeList_12 = (MR_Word) mercury__tree_bitset__STATE_VARIABLE_Set_0_6;
#line 1323 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__Index_13;

#line 1793 "tree_bitset.m"
    {
#line 1793 "tree_bitset.m"
      mercury__tree_bitset__Index_13 = mercury__tree_bitset__enum_to_index_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_9, mercury__tree_bitset__Elem_4);
    }
#line 1797 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__NodeList_12)) == (MR_mktag((MR_Integer) 1))))
#line 1798 "tree_bitset.m"
      {
#line 1798 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_12, (MR_Integer) 1)));
#line 1798 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_15_15 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_12, (MR_Integer) 0)));

#line 1799 "tree_bitset.m"
        {
#line 1799 "tree_bitset.m"
          mercury__tree_bitset__succeeded = mercury__tree_bitset__interiorlist_contains_2_p_0(mercury__tree_bitset__InteriorNodes_16, mercury__tree_bitset__Index_13);
        }
#line 1798 "tree_bitset.m"
      }
#line 1797 "tree_bitset.m"
    else
#line 1795 "tree_bitset.m"
      {
#line 1795 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__NodeList_12, (MR_Integer) 0)));

#line 1796 "tree_bitset.m"
        {
#line 1796 "tree_bitset.m"
          mercury__tree_bitset__succeeded = mercury__tree_bitset__leaflist_contains_2_p_0(mercury__tree_bitset__LeafNodes_14, mercury__tree_bitset__Index_13);
        }
#line 1795 "tree_bitset.m"
      }
#line 1323 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 1323 "tree_bitset.m"
      {
#line 1325 "tree_bitset.m"
        {
#line 1325 "tree_bitset.m"
          *mercury__tree_bitset__STATE_VARIABLE_Set_7 = mercury__tree_bitset__delete_2_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_9, mercury__tree_bitset__STATE_VARIABLE_Set_0_6, mercury__tree_bitset__Elem_4);
        }
#line 1325 "tree_bitset.m"
        mercury__tree_bitset__succeeded = MR_TRUE;
#line 1323 "tree_bitset.m"
      }
#line 1323 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 1323 "tree_bitset.m"
  }
#line 166 "tree_bitset.m"
}

#line 159 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__delete_list_3_p_0(
#line 159 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_9,
#line 159 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Elems_4,
#line 159 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_Set_0_6,
#line 159 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_Set_7)
#line 159 "tree_bitset.m"
{
#line 3659 "tree_bitset.m"
  {
#line 3659 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3659 "tree_bitset.m"
    {
#line 3659 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Set_7 = mercury__tree_bitset__delete_list_2_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_9, mercury__tree_bitset__STATE_VARIABLE_Set_0_6, mercury__tree_bitset__Elems_4);
    }
#line 3659 "tree_bitset.m"
  }
#line 159 "tree_bitset.m"
}

#line 158 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__delete_list_2_f_0(
#line 158 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_7,
#line 158 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_4,
#line 158 "tree_bitset.m"
  MR_Word mercury__tree_bitset__List_5)
#line 158 "tree_bitset.m"
{
#line 1321 "tree_bitset.m"
  {
#line 1321 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1321 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__3_3;
#line 1321 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_9_9;
#line 1321 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_7_13;
#line 1321 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_6_6;
#line 1321 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_11_11;
#line 1321 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_5_20;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__delete_list_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_7 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 70728 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_9_9  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__delete_list_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_7 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 70750 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_7_13  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 78 "list.opt"
    {
#line 78 "list.opt"
      mercury__list__length_2_3_p_0(mercury__tree_bitset__TypeInfo_7_13, mercury__tree_bitset__List_5, (MR_Integer) 0, &mercury__tree_bitset__V_5_20);
    }
#line 832 "list.opt"
    {
#line 832 "list.opt"
      mercury__list__merge_sort_2_3_p_0(mercury__tree_bitset__TypeInfo_7_13, mercury__tree_bitset__V_5_20, mercury__tree_bitset__List_5, &mercury__tree_bitset__V_11_11);
    }
#line 1608 "tree_bitset.m"
    {
#line 1608 "tree_bitset.m"
      mercury__tree_bitset__V_6_6 = mercury__tree_bitset__sorted_list_to_set_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_7, mercury__tree_bitset__V_11_11);
    }
#line 1321 "tree_bitset.m"
    {
#line 1321 "tree_bitset.m"
      return mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__difference_2_f_0(mercury__tree_bitset__TypeInfo_9_9, mercury__tree_bitset__Set_4, mercury__tree_bitset__V_6_6);
    }
#line 1321 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__3_3;
#line 1321 "tree_bitset.m"
  }
#line 158 "tree_bitset.m"
}

#line 151 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__delete_3_p_0(
#line 151 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_9,
#line 151 "tree_bitset.m"
  MR_Box mercury__tree_bitset__Elem_4,
#line 151 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_Set_0_6,
#line 151 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_Set_7)
#line 151 "tree_bitset.m"
{
#line 3656 "tree_bitset.m"
  {
#line 3656 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3656 "tree_bitset.m"
    {
#line 3656 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Set_7 = mercury__tree_bitset__delete_2_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_9, mercury__tree_bitset__STATE_VARIABLE_Set_0_6, mercury__tree_bitset__Elem_4);
    }
#line 3656 "tree_bitset.m"
  }
#line 151 "tree_bitset.m"
}

#line 150 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__delete_2_f_0(
#line 150 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_16,
#line 150 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set0_4,
#line 150 "tree_bitset.m"
  MR_Box mercury__tree_bitset__Elem_5)
#line 150 "tree_bitset.m"
{
#line 1243 "tree_bitset.m"
  {
#line 1243 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1243 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Set_6;
#line 1243 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List0_7 = (MR_Word) mercury__tree_bitset__Set0_4;
#line 1243 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__Index_8;
#line 1243 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_11;
#line 137 "private_builtin.opt"
    MR_Word mercury__tree_bitset__TypeInfo_18_18;

#line 1245 "tree_bitset.m"
    {
#line 1245 "tree_bitset.m"
      mercury__tree_bitset__Index_8 = mercury__tree_bitset__enum_to_index_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_16, mercury__tree_bitset__Elem_5);
    }
#line 1250 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List0_7)) == (MR_mktag((MR_Integer) 1))))
#line 1251 "tree_bitset.m"
      {
#line 1251 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__Level_12 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List0_7, (MR_Integer) 0)));
#line 1251 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes0_13 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List0_7, (MR_Integer) 1)));
#line 1251 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_14;
#line 1251 "tree_bitset.m"
        MR_Word mercury__tree_bitset__List1_15;

#line 1252 "tree_bitset.m"
        {
#line 1252 "tree_bitset.m"
          mercury__tree_bitset__interiorlist_delete_3_p_0(mercury__tree_bitset__InteriorNodes0_13, mercury__tree_bitset__Index_8, &mercury__tree_bitset__InteriorNodes_14);
        }
#line 1253 "tree_bitset.m"
        {
#line 1253 "tree_bitset.m"
          mercury__tree_bitset__List1_15 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1253 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__List1_15, 0) = ((MR_Box) (mercury__tree_bitset__Level_12));
#line 1253 "tree_bitset.m"
          MR_hl_field(MR_mktag(1), mercury__tree_bitset__List1_15, 1) = ((MR_Box) (mercury__tree_bitset__InteriorNodes_14));
#line 1253 "tree_bitset.m"
        }
#line 1254 "tree_bitset.m"
        {
#line 1254 "tree_bitset.m"
          mercury__tree_bitset__prune_top_levels_2_p_0(mercury__tree_bitset__List1_15, &mercury__tree_bitset__List_11);
        }
#line 1251 "tree_bitset.m"
      }
#line 1250 "tree_bitset.m"
    else
#line 1247 "tree_bitset.m"
      {
#line 1247 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes0_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List0_7, (MR_Integer) 0)));
#line 1247 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_10;

#line 1248 "tree_bitset.m"
        {
#line 1248 "tree_bitset.m"
          mercury__tree_bitset__leaflist_delete_3_p_0(mercury__tree_bitset__LeafNodes0_9, mercury__tree_bitset__Index_8, &mercury__tree_bitset__LeafNodes_10);
        }
#line 1249 "tree_bitset.m"
        {
#line 1249 "tree_bitset.m"
          mercury__tree_bitset__List_11 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 1249 "tree_bitset.m"
          MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_11, 0) = ((MR_Box) (mercury__tree_bitset__LeafNodes_10));
#line 1249 "tree_bitset.m"
        }
#line 1247 "tree_bitset.m"
      }
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__delete_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_16 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 70917 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_18_18  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 595 "tree_bitset.m"
    mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__List_11;
#line 1243 "tree_bitset.m"
    return mercury__tree_bitset__Set_6;
#line 1243 "tree_bitset.m"
  }
#line 150 "tree_bitset.m"
}

#line 144 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__insert_list_3_p_0(
#line 144 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_9,
#line 144 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Elems_4,
#line 144 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_Set_0_6,
#line 144 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_Set_7)
#line 144 "tree_bitset.m"
{
#line 3653 "tree_bitset.m"
  {
#line 3653 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3653 "tree_bitset.m"
    {
#line 3653 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Set_7 = mercury__tree_bitset__insert_list_2_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_9, mercury__tree_bitset__STATE_VARIABLE_Set_0_6, mercury__tree_bitset__Elems_4);
    }
#line 3653 "tree_bitset.m"
  }
#line 144 "tree_bitset.m"
}

#line 143 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__insert_list_2_f_0(
#line 143 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_7,
#line 143 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_4,
#line 143 "tree_bitset.m"
  MR_Word mercury__tree_bitset__List_5)
#line 143 "tree_bitset.m"
{
#line 1239 "tree_bitset.m"
  {
#line 1239 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1239 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__3_3;
#line 1239 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_9_9;
#line 1239 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_7_13;
#line 1239 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_6_6;
#line 1239 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_11_11;
#line 1239 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_5_20;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__insert_list_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_7 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 71004 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_9_9  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__insert_list_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_7 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 71026 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_7_13  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 78 "list.opt"
    {
#line 78 "list.opt"
      mercury__list__length_2_3_p_0(mercury__tree_bitset__TypeInfo_7_13, mercury__tree_bitset__List_5, (MR_Integer) 0, &mercury__tree_bitset__V_5_20);
    }
#line 832 "list.opt"
    {
#line 832 "list.opt"
      mercury__list__merge_sort_2_3_p_0(mercury__tree_bitset__TypeInfo_7_13, mercury__tree_bitset__V_5_20, mercury__tree_bitset__List_5, &mercury__tree_bitset__V_11_11);
    }
#line 1608 "tree_bitset.m"
    {
#line 1608 "tree_bitset.m"
      mercury__tree_bitset__V_6_6 = mercury__tree_bitset__sorted_list_to_set_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_7, mercury__tree_bitset__V_11_11);
    }
#line 1239 "tree_bitset.m"
    {
#line 1239 "tree_bitset.m"
      return mercury__tree_bitset__HeadVar__3_3 = mercury__tree_bitset__union_2_f_0(mercury__tree_bitset__TypeInfo_9_9, mercury__tree_bitset__V_6_6, mercury__tree_bitset__Set_4);
    }
#line 1239 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__3_3;
#line 1239 "tree_bitset.m"
  }
#line 143 "tree_bitset.m"
}

#line 136 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__insert_new_3_p_0(
#line 136 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_70,
#line 136 "tree_bitset.m"
  MR_Box mercury__tree_bitset__Elem_4,
#line 136 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set0_5,
#line 136 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__Set_6)
#line 136 "tree_bitset.m"
{
#line 1113 "tree_bitset.m"
  {
#line 1113 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1113 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List0_7 = (MR_Word) mercury__tree_bitset__Set0_5;
#line 1113 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__Index_8;

#line 1115 "tree_bitset.m"
    {
#line 1115 "tree_bitset.m"
      mercury__tree_bitset__Index_8 = mercury__tree_bitset__enum_to_index_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_70, mercury__tree_bitset__Elem_4);
    }
#line 1142 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List0_7)) == (MR_mktag((MR_Integer) 1))))
#line 1143 "tree_bitset.m"
      {
#line 1143 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__InteriorLevel_20 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List0_7, (MR_Integer) 0)));
#line 1143 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorList0_21 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List0_7, (MR_Integer) 1)));

#line 1149 "tree_bitset.m"
        if ((mercury__tree_bitset__InteriorList0_21 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1145 "tree_bitset.m"
          {
#line 1147 "tree_bitset.m"
            {
#line 1147 "tree_bitset.m"
              mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "predicate \140tree_bitset.insert_new\'/3", (MR_String) "insert_new into empty list of interior nodes");
            }
#line 1145 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 1145 "tree_bitset.m"
          }
#line 1149 "tree_bitset.m"
        else
#line 1150 "tree_bitset.m"
          {
#line 1150 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InteriorNode0_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorList0_21, (MR_Integer) 0)));
#line 1150 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNode0_22, (MR_Integer) 0)));
#line 1150 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentInitOffset_52;
#line 1150 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentLimitOffset_53;
#line 1150 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_23_23 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorList0_21, (MR_Integer) 1)));
#line 1151 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_68_68 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNode0_22, (MR_Integer) 1)));
#line 1151 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_69_69 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNode0_22, (MR_Integer) 2)));

#line 1151 "tree_bitset.m"
            {
#line 1151 "tree_bitset.m"
              mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_24_24, mercury__tree_bitset__InteriorLevel_20, &mercury__tree_bitset__ParentInitOffset_52, &mercury__tree_bitset__ParentLimitOffset_53);
            }
#line 1154 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__ParentInitOffset_52 <= mercury__tree_bitset__Index_8);
#line 1154 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1155 "tree_bitset.m"
              mercury__tree_bitset__succeeded = (mercury__tree_bitset__Index_8 < mercury__tree_bitset__ParentLimitOffset_53);
#line 1161 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1158 "tree_bitset.m"
              {
#line 1158 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_25_25;
#line 1158 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorList_45;
#line 1158 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__PolyConst1_77;
#line 137 "private_builtin.opt"
                MR_Word mercury__tree_bitset__TypeInfo_78_78;

#line 1157 "tree_bitset.m"
                {
#line 1157 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__interiorlist_insert_new_4_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__InteriorLevel_20, mercury__tree_bitset__InteriorList0_21, &mercury__tree_bitset__InteriorList_45);
                }
#line 1158 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 1158 "tree_bitset.m"
                  {
#line 71161 "tree_bitset.c"
                    mercury__tree_bitset__PolyConst1_77 = (MR_Integer) 1;
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__insert_new_3_p_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_70 ;
	Index =  mercury__tree_bitset__PolyConst1_77 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 71178 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_78_78  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 1159 "tree_bitset.m"
                    {
#line 1159 "tree_bitset.m"
                      mercury__tree_bitset__V_25_25 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1159 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_25_25, 0) = ((MR_Box) (mercury__tree_bitset__InteriorLevel_20));
#line 1159 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_25_25, 1) = ((MR_Box) (mercury__tree_bitset__InteriorList_45));
#line 1159 "tree_bitset.m"
                    }
#line 595 "tree_bitset.m"
                    *mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__V_25_25;
#line 595 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 1158 "tree_bitset.m"
                  }
#line 1158 "tree_bitset.m"
              }
#line 1161 "tree_bitset.m"
            else
#line 1164 "tree_bitset.m"
              {
#line 1164 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_26_26 = (mercury__tree_bitset__InteriorLevel_20 + (MR_Integer) 1);
#line 1164 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_28_28;
#line 1164 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_29_29;
#line 1164 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_30_30;
#line 1164 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNode1_46;
#line 1164 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__InteriorLevel1_47;
#line 1164 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorList_48;
#line 1164 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__PolyConst1_79;
#line 137 "private_builtin.opt"
                MR_Word mercury__tree_bitset__TypeInfo_80_80;

#line 1162 "tree_bitset.m"
                {
#line 1162 "tree_bitset.m"
                  mercury__tree_bitset__expand_range_7_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__List0_7, mercury__tree_bitset__V_26_26, mercury__tree_bitset__ParentInitOffset_52, mercury__tree_bitset__ParentLimitOffset_53, &mercury__tree_bitset__InteriorNode1_46, &mercury__tree_bitset__InteriorLevel1_47);
                }
#line 1166 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1165 "tree_bitset.m"
                {
#line 1165 "tree_bitset.m"
                  mercury__tree_bitset__V_28_28 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1165 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_28_28, 0) = ((MR_Box) (mercury__tree_bitset__InteriorNode1_46));
#line 1165 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_28_28, 1) = ((MR_Box) (mercury__tree_bitset__V_29_29));
#line 1165 "tree_bitset.m"
                }
#line 1165 "tree_bitset.m"
                {
#line 1165 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__interiorlist_insert_new_4_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__InteriorLevel1_47, mercury__tree_bitset__V_28_28, &mercury__tree_bitset__InteriorList_48);
                }
#line 1164 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 1164 "tree_bitset.m"
                  {
#line 71252 "tree_bitset.c"
                    mercury__tree_bitset__PolyConst1_79 = (MR_Integer) 1;
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__insert_new_3_p_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_70 ;
	Index =  mercury__tree_bitset__PolyConst1_79 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 71269 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_80_80  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 1167 "tree_bitset.m"
                    {
#line 1167 "tree_bitset.m"
                      mercury__tree_bitset__V_30_30 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1167 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_30_30, 0) = ((MR_Box) (mercury__tree_bitset__InteriorLevel1_47));
#line 1167 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_30_30, 1) = ((MR_Box) (mercury__tree_bitset__InteriorList_48));
#line 1167 "tree_bitset.m"
                    }
#line 595 "tree_bitset.m"
                    *mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__V_30_30;
#line 595 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 1164 "tree_bitset.m"
                  }
#line 1164 "tree_bitset.m"
              }
#line 1150 "tree_bitset.m"
          }
#line 1143 "tree_bitset.m"
      }
#line 1142 "tree_bitset.m"
    else
#line 1117 "tree_bitset.m"
      {
#line 1117 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafList0_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List0_7, (MR_Integer) 0)));

#line 1122 "tree_bitset.m"
        if ((mercury__tree_bitset__LeafList0_9 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1119 "tree_bitset.m"
          {
#line 1119 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Offset_10;
#line 1119 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Bits_11;
#line 1119 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_41_41;
#line 1119 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_42_42;
#line 1119 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_43_43;
#line 1119 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_44_44;
#line 1119 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__BitToSet_98;
#line 1119 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Trunc_5_102;
#line 1119 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Floor0_6_103;
#line 1119 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_108_108;
#line 71329 "tree_bitset.c"
            MR_Word mercury__tree_bitset__TypeInfo_72_72;

#line 282 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__insert_new_3_p_0

	MR_Integer Int;
	MR_Integer Div;

	Int =  mercury__tree_bitset__Index_8 ;
		{
#line 282 "int.opt"

    Div = Int / ML_BITS_PER_INT;

#line 71345 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Trunc_5_102  = Div;
#line 282 "int.opt"
}
#line 285 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__insert_new_3_p_0

	MR_Integer Int;
	MR_Integer Result;

	Int =  mercury__tree_bitset__Trunc_5_102 ;
		{
#line 285 "int.opt"

    Result = Int * ML_BITS_PER_INT;

#line 71365 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Floor0_6_103  = Result;
#line 285 "int.opt"
}
#line 275 "int.opt"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Floor0_6_103 > mercury__tree_bitset__Index_8);
#line 279 "int.opt"
            if (mercury__tree_bitset__succeeded)
#line 277 "int.opt"
              {
#line 277 "int.opt"
                MR_Integer mercury__tree_bitset__V_7_104;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__insert_new_3_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 71392 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_7_104  = Bits;
#line 171 "int.opt"
}
#line 277 "int.opt"
                mercury__tree_bitset__Offset_10 = (mercury__tree_bitset__Floor0_6_103 - mercury__tree_bitset__V_7_104);
#line 277 "int.opt"
              }
#line 279 "int.opt"
            else
#line 280 "int.opt"
              mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Floor0_6_103;
#line 3621 "tree_bitset.m"
            mercury__tree_bitset__BitToSet_98 = (mercury__tree_bitset__Index_8 - mercury__tree_bitset__Offset_10);
#line 3632 "tree_bitset.m"
            mercury__tree_bitset__V_108_108 = ((MR_Integer) 1 << mercury__tree_bitset__BitToSet_98);
#line 3632 "tree_bitset.m"
            mercury__tree_bitset__Bits_11 = ((MR_Integer) 0 | mercury__tree_bitset__V_108_108);
#line 71413 "tree_bitset.c"
            {
#line 71415 "tree_bitset.c"
              mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_70, (MR_Integer) 1, &mercury__tree_bitset__TypeInfo_72_72);
            }
#line 547 "tree_bitset.m"
            {
#line 547 "tree_bitset.m"
              mercury__tree_bitset__V_43_43 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_43_43, 0) = ((MR_Box) (mercury__tree_bitset__Offset_10));
#line 547 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_43_43, 1) = ((MR_Box) (mercury__tree_bitset__Bits_11));
#line 547 "tree_bitset.m"
            }
#line 1121 "tree_bitset.m"
            mercury__tree_bitset__V_44_44 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1121 "tree_bitset.m"
            {
#line 1121 "tree_bitset.m"
              mercury__tree_bitset__V_42_42 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1121 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_42_42, 0) = ((MR_Box) (mercury__tree_bitset__V_43_43));
#line 1121 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_42_42, 1) = ((MR_Box) (mercury__tree_bitset__V_44_44));
#line 1121 "tree_bitset.m"
            }
#line 1121 "tree_bitset.m"
            {
#line 1121 "tree_bitset.m"
              mercury__tree_bitset__V_41_41 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 1121 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_41_41, 0) = ((MR_Box) (mercury__tree_bitset__V_42_42));
#line 1121 "tree_bitset.m"
            }
#line 595 "tree_bitset.m"
            *mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__V_41_41;
#line 1119 "tree_bitset.m"
            mercury__tree_bitset__succeeded = MR_TRUE;
#line 1119 "tree_bitset.m"
          }
#line 1122 "tree_bitset.m"
        else
#line 1123 "tree_bitset.m"
          {
#line 1123 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Leaf0_12 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafList0_9, (MR_Integer) 0)));
#line 1123 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentInitOffset_14;
#line 1123 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentLimitOffset_15;
#line 1123 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Leaf0_12, (MR_Integer) 0)));
#line 1123 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_13_13 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafList0_9, (MR_Integer) 1)));
#line 1124 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_67_67 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Leaf0_12, (MR_Integer) 1)));

#line 1124 "tree_bitset.m"
            {
#line 1124 "tree_bitset.m"
              mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_34_34, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffset_14, &mercury__tree_bitset__ParentLimitOffset_15);
            }
#line 1127 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__ParentInitOffset_14 <= mercury__tree_bitset__Index_8);
#line 1127 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1128 "tree_bitset.m"
              mercury__tree_bitset__succeeded = (mercury__tree_bitset__Index_8 < mercury__tree_bitset__ParentLimitOffset_15);
#line 1132 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1130 "tree_bitset.m"
              {
#line 1130 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafList_16;
#line 1130 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_36_36;
#line 1130 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__PolyConst1_73;
#line 71492 "tree_bitset.c"
                MR_Word mercury__tree_bitset__TypeInfo_74_74;

#line 1130 "tree_bitset.m"
                {
#line 1130 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__leaflist_insert_new_3_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__LeafList0_9, &mercury__tree_bitset__LeafList_16);
                }
#line 1130 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 1130 "tree_bitset.m"
                  {
#line 71504 "tree_bitset.c"
                    mercury__tree_bitset__PolyConst1_73 = (MR_Integer) 1;
#line 71506 "tree_bitset.c"
                    {
#line 71508 "tree_bitset.c"
                      mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_70, mercury__tree_bitset__PolyConst1_73, &mercury__tree_bitset__TypeInfo_74_74);
                    }
#line 1131 "tree_bitset.m"
                    {
#line 1131 "tree_bitset.m"
                      mercury__tree_bitset__V_36_36 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 1131 "tree_bitset.m"
                      MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_36_36, 0) = ((MR_Box) (mercury__tree_bitset__LeafList_16));
#line 1131 "tree_bitset.m"
                    }
#line 595 "tree_bitset.m"
                    *mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__V_36_36;
#line 595 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 1130 "tree_bitset.m"
                  }
#line 1130 "tree_bitset.m"
              }
#line 1132 "tree_bitset.m"
            else
#line 1135 "tree_bitset.m"
              {
#line 1135 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNode1_17;
#line 1135 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__InteriorLevel1_18;
#line 1135 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorList_19;
#line 1135 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_38_38;
#line 1135 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_39_39;
#line 1135 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_40_40;
#line 1135 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__PolyConst1_75;
#line 71545 "tree_bitset.c"
                MR_Word mercury__tree_bitset__TypeInfo_76_76;

#line 1133 "tree_bitset.m"
                {
#line 1133 "tree_bitset.m"
                  mercury__tree_bitset__expand_range_7_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__List0_7, (MR_Integer) 1, mercury__tree_bitset__ParentInitOffset_14, mercury__tree_bitset__ParentLimitOffset_15, &mercury__tree_bitset__InteriorNode1_17, &mercury__tree_bitset__InteriorLevel1_18);
                }
#line 1137 "tree_bitset.m"
                mercury__tree_bitset__V_39_39 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1136 "tree_bitset.m"
                {
#line 1136 "tree_bitset.m"
                  mercury__tree_bitset__V_38_38 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1136 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_38_38, 0) = ((MR_Box) (mercury__tree_bitset__InteriorNode1_17));
#line 1136 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_38_38, 1) = ((MR_Box) (mercury__tree_bitset__V_39_39));
#line 1136 "tree_bitset.m"
                }
#line 1136 "tree_bitset.m"
                {
#line 1136 "tree_bitset.m"
                  mercury__tree_bitset__succeeded = mercury__tree_bitset__interiorlist_insert_new_4_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__InteriorLevel1_18, mercury__tree_bitset__V_38_38, &mercury__tree_bitset__InteriorList_19);
                }
#line 1135 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 1135 "tree_bitset.m"
                  {
#line 71574 "tree_bitset.c"
                    mercury__tree_bitset__PolyConst1_75 = (MR_Integer) 1;
#line 71576 "tree_bitset.c"
                    {
#line 71578 "tree_bitset.c"
                      mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_70, mercury__tree_bitset__PolyConst1_75, &mercury__tree_bitset__TypeInfo_76_76);
                    }
#line 1138 "tree_bitset.m"
                    {
#line 1138 "tree_bitset.m"
                      mercury__tree_bitset__V_40_40 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1138 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_40_40, 0) = ((MR_Box) (mercury__tree_bitset__InteriorLevel1_18));
#line 1138 "tree_bitset.m"
                      MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_40_40, 1) = ((MR_Box) (mercury__tree_bitset__InteriorList_19));
#line 1138 "tree_bitset.m"
                    }
#line 595 "tree_bitset.m"
                    *mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__V_40_40;
#line 595 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = MR_TRUE;
#line 1135 "tree_bitset.m"
                  }
#line 1135 "tree_bitset.m"
              }
#line 1123 "tree_bitset.m"
          }
#line 1117 "tree_bitset.m"
      }
#line 1113 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 1113 "tree_bitset.m"
  }
#line 136 "tree_bitset.m"
}

#line 129 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__insert_3_p_0(
#line 129 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_9,
#line 129 "tree_bitset.m"
  MR_Box mercury__tree_bitset__Elem_4,
#line 129 "tree_bitset.m"
  MR_Word mercury__tree_bitset__STATE_VARIABLE_Set_0_6,
#line 129 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__STATE_VARIABLE_Set_7)
#line 129 "tree_bitset.m"
{
#line 3650 "tree_bitset.m"
  {
#line 3650 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 3650 "tree_bitset.m"
    {
#line 3650 "tree_bitset.m"
      *mercury__tree_bitset__STATE_VARIABLE_Set_7 = mercury__tree_bitset__insert_2_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_9, mercury__tree_bitset__STATE_VARIABLE_Set_0_6, mercury__tree_bitset__Elem_4);
    }
#line 3650 "tree_bitset.m"
  }
#line 129 "tree_bitset.m"
}

#line 128 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__insert_2_f_0(
#line 128 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_70,
#line 128 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set0_4,
#line 128 "tree_bitset.m"
  MR_Box mercury__tree_bitset__Elem_5)
#line 128 "tree_bitset.m"
{
#line 987 "tree_bitset.m"
  {
#line 987 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 987 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Set_6;
#line 987 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List0_7 = (MR_Word) mercury__tree_bitset__Set0_4;
#line 987 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__Index_8;

#line 989 "tree_bitset.m"
    {
#line 989 "tree_bitset.m"
      mercury__tree_bitset__Index_8 = mercury__tree_bitset__enum_to_index_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_70, mercury__tree_bitset__Elem_5);
    }
#line 1016 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List0_7)) == (MR_mktag((MR_Integer) 1))))
#line 1017 "tree_bitset.m"
      {
#line 1017 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__InteriorLevel_20 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List0_7, (MR_Integer) 0)));
#line 1017 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorList0_21 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List0_7, (MR_Integer) 1)));

#line 1023 "tree_bitset.m"
        if ((mercury__tree_bitset__InteriorList0_21 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1019 "tree_bitset.m"
          {
#line 1021 "tree_bitset.m"
            {
#line 1021 "tree_bitset.m"
              mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.insert\'/2", (MR_String) "insert into empty list of interior nodes");
            }
#line 1019 "tree_bitset.m"
          }
#line 1023 "tree_bitset.m"
        else
#line 1024 "tree_bitset.m"
          {
#line 1024 "tree_bitset.m"
            MR_Word mercury__tree_bitset__InteriorNode0_22 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorList0_21, (MR_Integer) 0)));
#line 1024 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNode0_22, (MR_Integer) 0)));
#line 1024 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentInitOffset_52;
#line 1024 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentLimitOffset_53;
#line 1024 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_23_23 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorList0_21, (MR_Integer) 1)));
#line 1025 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_68_68 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNode0_22, (MR_Integer) 1)));
#line 1025 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_69_69 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__InteriorNode0_22, (MR_Integer) 2)));

#line 1025 "tree_bitset.m"
            {
#line 1025 "tree_bitset.m"
              mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_24_24, mercury__tree_bitset__InteriorLevel_20, &mercury__tree_bitset__ParentInitOffset_52, &mercury__tree_bitset__ParentLimitOffset_53);
            }
#line 1028 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__ParentInitOffset_52 <= mercury__tree_bitset__Index_8);
#line 1028 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1029 "tree_bitset.m"
              mercury__tree_bitset__succeeded = (mercury__tree_bitset__Index_8 < mercury__tree_bitset__ParentLimitOffset_53);
#line 1035 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1032 "tree_bitset.m"
              {
#line 1032 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_25_25;
#line 1032 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorList_45;
#line 137 "private_builtin.opt"
                MR_Word mercury__tree_bitset__TypeInfo_78_78;

#line 1031 "tree_bitset.m"
                {
#line 1031 "tree_bitset.m"
                  mercury__tree_bitset__interiorlist_insert_4_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__InteriorLevel_20, mercury__tree_bitset__InteriorList0_21, &mercury__tree_bitset__InteriorList_45);
                }
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__insert_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_70 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 71746 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_78_78  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 1033 "tree_bitset.m"
                {
#line 1033 "tree_bitset.m"
                  mercury__tree_bitset__V_25_25 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1033 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_25_25, 0) = ((MR_Box) (mercury__tree_bitset__InteriorLevel_20));
#line 1033 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_25_25, 1) = ((MR_Box) (mercury__tree_bitset__InteriorList_45));
#line 1033 "tree_bitset.m"
                }
#line 595 "tree_bitset.m"
                mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__V_25_25;
#line 1032 "tree_bitset.m"
              }
#line 1035 "tree_bitset.m"
            else
#line 1038 "tree_bitset.m"
              {
#line 1038 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_26_26 = (mercury__tree_bitset__InteriorLevel_20 + (MR_Integer) 1);
#line 1038 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_28_28;
#line 1038 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_29_29;
#line 1038 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_30_30;
#line 1038 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNode1_46;
#line 1038 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__InteriorLevel1_47;
#line 1038 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorList_48;
#line 137 "private_builtin.opt"
                MR_Word mercury__tree_bitset__TypeInfo_80_80;

#line 1036 "tree_bitset.m"
                {
#line 1036 "tree_bitset.m"
                  mercury__tree_bitset__expand_range_7_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__List0_7, mercury__tree_bitset__V_26_26, mercury__tree_bitset__ParentInitOffset_52, mercury__tree_bitset__ParentLimitOffset_53, &mercury__tree_bitset__InteriorNode1_46, &mercury__tree_bitset__InteriorLevel1_47);
                }
#line 1040 "tree_bitset.m"
                mercury__tree_bitset__V_29_29 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1039 "tree_bitset.m"
                {
#line 1039 "tree_bitset.m"
                  mercury__tree_bitset__V_28_28 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1039 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_28_28, 0) = ((MR_Box) (mercury__tree_bitset__InteriorNode1_46));
#line 1039 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_28_28, 1) = ((MR_Box) (mercury__tree_bitset__V_29_29));
#line 1039 "tree_bitset.m"
                }
#line 1039 "tree_bitset.m"
                {
#line 1039 "tree_bitset.m"
                  mercury__tree_bitset__interiorlist_insert_4_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__InteriorLevel1_47, mercury__tree_bitset__V_28_28, &mercury__tree_bitset__InteriorList_48);
                }
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__insert_2_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_70 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 71825 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_80_80  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 1041 "tree_bitset.m"
                {
#line 1041 "tree_bitset.m"
                  mercury__tree_bitset__V_30_30 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1041 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_30_30, 0) = ((MR_Box) (mercury__tree_bitset__InteriorLevel1_47));
#line 1041 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_30_30, 1) = ((MR_Box) (mercury__tree_bitset__InteriorList_48));
#line 1041 "tree_bitset.m"
                }
#line 595 "tree_bitset.m"
                mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__V_30_30;
#line 1038 "tree_bitset.m"
              }
#line 1024 "tree_bitset.m"
          }
#line 1017 "tree_bitset.m"
      }
#line 1016 "tree_bitset.m"
    else
#line 991 "tree_bitset.m"
      {
#line 991 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafList0_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List0_7, (MR_Integer) 0)));

#line 996 "tree_bitset.m"
        if ((mercury__tree_bitset__LeafList0_9 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 993 "tree_bitset.m"
          {
#line 993 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Offset_10;
#line 993 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Bits_11;
#line 993 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_41_41;
#line 993 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_42_42;
#line 993 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_43_43;
#line 993 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_44_44;
#line 993 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__BitToSet_98;
#line 993 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Trunc_5_102;
#line 993 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__Floor0_6_103;
#line 993 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_108_108;
#line 71881 "tree_bitset.c"
            MR_Word mercury__tree_bitset__TypeInfo_72_72;

#line 282 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__insert_2_f_0

	MR_Integer Int;
	MR_Integer Div;

	Int =  mercury__tree_bitset__Index_8 ;
		{
#line 282 "int.opt"

    Div = Int / ML_BITS_PER_INT;

#line 71897 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Trunc_5_102  = Div;
#line 282 "int.opt"
}
#line 285 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__insert_2_f_0

	MR_Integer Int;
	MR_Integer Result;

	Int =  mercury__tree_bitset__Trunc_5_102 ;
		{
#line 285 "int.opt"

    Result = Int * ML_BITS_PER_INT;

#line 71917 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__Floor0_6_103  = Result;
#line 285 "int.opt"
}
#line 275 "int.opt"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__Floor0_6_103 > mercury__tree_bitset__Index_8);
#line 279 "int.opt"
            if (mercury__tree_bitset__succeeded)
#line 277 "int.opt"
              {
#line 277 "int.opt"
                MR_Integer mercury__tree_bitset__V_7_104;

#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__insert_2_f_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 71944 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_7_104  = Bits;
#line 171 "int.opt"
}
#line 277 "int.opt"
                mercury__tree_bitset__Offset_10 = (mercury__tree_bitset__Floor0_6_103 - mercury__tree_bitset__V_7_104);
#line 277 "int.opt"
              }
#line 279 "int.opt"
            else
#line 280 "int.opt"
              mercury__tree_bitset__Offset_10 = mercury__tree_bitset__Floor0_6_103;
#line 3621 "tree_bitset.m"
            mercury__tree_bitset__BitToSet_98 = (mercury__tree_bitset__Index_8 - mercury__tree_bitset__Offset_10);
#line 3632 "tree_bitset.m"
            mercury__tree_bitset__V_108_108 = ((MR_Integer) 1 << mercury__tree_bitset__BitToSet_98);
#line 3632 "tree_bitset.m"
            mercury__tree_bitset__Bits_11 = ((MR_Integer) 0 | mercury__tree_bitset__V_108_108);
#line 71965 "tree_bitset.c"
            {
#line 71967 "tree_bitset.c"
              mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_70, (MR_Integer) 1, &mercury__tree_bitset__TypeInfo_72_72);
            }
#line 547 "tree_bitset.m"
            {
#line 547 "tree_bitset.m"
              mercury__tree_bitset__V_43_43 = (MR_Word) MR_new_object_atomic(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 547 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_43_43, 0) = ((MR_Box) (mercury__tree_bitset__Offset_10));
#line 547 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_43_43, 1) = ((MR_Box) (mercury__tree_bitset__Bits_11));
#line 547 "tree_bitset.m"
            }
#line 995 "tree_bitset.m"
            mercury__tree_bitset__V_44_44 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 995 "tree_bitset.m"
            {
#line 995 "tree_bitset.m"
              mercury__tree_bitset__V_42_42 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 995 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_42_42, 0) = ((MR_Box) (mercury__tree_bitset__V_43_43));
#line 995 "tree_bitset.m"
              MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_42_42, 1) = ((MR_Box) (mercury__tree_bitset__V_44_44));
#line 995 "tree_bitset.m"
            }
#line 995 "tree_bitset.m"
            {
#line 995 "tree_bitset.m"
              mercury__tree_bitset__V_41_41 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 995 "tree_bitset.m"
              MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_41_41, 0) = ((MR_Box) (mercury__tree_bitset__V_42_42));
#line 995 "tree_bitset.m"
            }
#line 595 "tree_bitset.m"
            mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__V_41_41;
#line 993 "tree_bitset.m"
          }
#line 996 "tree_bitset.m"
        else
#line 997 "tree_bitset.m"
          {
#line 997 "tree_bitset.m"
            MR_Word mercury__tree_bitset__Leaf0_12 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafList0_9, (MR_Integer) 0)));
#line 997 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentInitOffset_14;
#line 997 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__ParentLimitOffset_15;
#line 997 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_34_34 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Leaf0_12, (MR_Integer) 0)));
#line 997 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_13_13 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafList0_9, (MR_Integer) 1)));
#line 998 "tree_bitset.m"
            MR_Integer mercury__tree_bitset__V_67_67 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Leaf0_12, (MR_Integer) 1)));

#line 998 "tree_bitset.m"
            {
#line 998 "tree_bitset.m"
              mercury__tree_bitset__range_of_parent_node_4_p_0(mercury__tree_bitset__V_34_34, (MR_Integer) 0, &mercury__tree_bitset__ParentInitOffset_14, &mercury__tree_bitset__ParentLimitOffset_15);
            }
#line 1001 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__ParentInitOffset_14 <= mercury__tree_bitset__Index_8);
#line 1001 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1002 "tree_bitset.m"
              mercury__tree_bitset__succeeded = (mercury__tree_bitset__Index_8 < mercury__tree_bitset__ParentLimitOffset_15);
#line 1006 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 1004 "tree_bitset.m"
              {
#line 1004 "tree_bitset.m"
                MR_Word mercury__tree_bitset__LeafList_16;
#line 1004 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_36_36;
#line 72040 "tree_bitset.c"
                MR_Word mercury__tree_bitset__TypeInfo_74_74;

#line 1004 "tree_bitset.m"
                {
#line 1004 "tree_bitset.m"
                  mercury__tree_bitset__leaflist_insert_3_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__LeafList0_9, &mercury__tree_bitset__LeafList_16);
                }
#line 72048 "tree_bitset.c"
                {
#line 72050 "tree_bitset.c"
                  mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_70, (MR_Integer) 1, &mercury__tree_bitset__TypeInfo_74_74);
                }
#line 1005 "tree_bitset.m"
                {
#line 1005 "tree_bitset.m"
                  mercury__tree_bitset__V_36_36 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 1005 "tree_bitset.m"
                  MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_36_36, 0) = ((MR_Box) (mercury__tree_bitset__LeafList_16));
#line 1005 "tree_bitset.m"
                }
#line 595 "tree_bitset.m"
                mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__V_36_36;
#line 1004 "tree_bitset.m"
              }
#line 1006 "tree_bitset.m"
            else
#line 1009 "tree_bitset.m"
              {
#line 1009 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorNode1_17;
#line 1009 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__InteriorLevel1_18;
#line 1009 "tree_bitset.m"
                MR_Word mercury__tree_bitset__InteriorList_19;
#line 1009 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_38_38;
#line 1009 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_39_39;
#line 1009 "tree_bitset.m"
                MR_Word mercury__tree_bitset__V_40_40;
#line 72081 "tree_bitset.c"
                MR_Word mercury__tree_bitset__TypeInfo_76_76;

#line 1007 "tree_bitset.m"
                {
#line 1007 "tree_bitset.m"
                  mercury__tree_bitset__expand_range_7_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__List0_7, (MR_Integer) 1, mercury__tree_bitset__ParentInitOffset_14, mercury__tree_bitset__ParentLimitOffset_15, &mercury__tree_bitset__InteriorNode1_17, &mercury__tree_bitset__InteriorLevel1_18);
                }
#line 1011 "tree_bitset.m"
                mercury__tree_bitset__V_39_39 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1010 "tree_bitset.m"
                {
#line 1010 "tree_bitset.m"
                  mercury__tree_bitset__V_38_38 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1010 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_38_38, 0) = ((MR_Box) (mercury__tree_bitset__InteriorNode1_17));
#line 1010 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_38_38, 1) = ((MR_Box) (mercury__tree_bitset__V_39_39));
#line 1010 "tree_bitset.m"
                }
#line 1010 "tree_bitset.m"
                {
#line 1010 "tree_bitset.m"
                  mercury__tree_bitset__interiorlist_insert_4_p_0(mercury__tree_bitset__Index_8, mercury__tree_bitset__InteriorLevel1_18, mercury__tree_bitset__V_38_38, &mercury__tree_bitset__InteriorList_19);
                }
#line 72106 "tree_bitset.c"
                {
#line 72108 "tree_bitset.c"
                  mercury__private_builtin__type_info_from_typeclass_info_3_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_70, (MR_Integer) 1, &mercury__tree_bitset__TypeInfo_76_76);
                }
#line 1012 "tree_bitset.m"
                {
#line 1012 "tree_bitset.m"
                  mercury__tree_bitset__V_40_40 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1012 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_40_40, 0) = ((MR_Box) (mercury__tree_bitset__InteriorLevel1_18));
#line 1012 "tree_bitset.m"
                  MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_40_40, 1) = ((MR_Box) (mercury__tree_bitset__InteriorList_19));
#line 1012 "tree_bitset.m"
                }
#line 595 "tree_bitset.m"
                mercury__tree_bitset__Set_6 = (MR_Word) mercury__tree_bitset__V_40_40;
#line 1009 "tree_bitset.m"
              }
#line 997 "tree_bitset.m"
          }
#line 991 "tree_bitset.m"
      }
#line 987 "tree_bitset.m"
    return mercury__tree_bitset__Set_6;
#line 987 "tree_bitset.m"
  }
#line 128 "tree_bitset.m"
}

#line 1836 "tree_bitset.m"
static void MR_CALL 
mercury__tree_bitset__member_2_p_1_1(
#line 1836 "tree_bitset.m"
  void * mercury__tree_bitset__env_ptr_arg)
#line 1836 "tree_bitset.m"
{
#line 1836 "tree_bitset.m"
  {
#line 1836 "tree_bitset.m"
    struct mercury__tree_bitset__member_2_p_1_env_0_s * mercury__tree_bitset__env_ptr = (struct mercury__tree_bitset__member_2_p_1_env_0_s *) mercury__tree_bitset__env_ptr_arg;

#line 1836 "tree_bitset.m"
    {
#line 565 "tree_bitset.m"
      MR_Box mercury__tree_bitset__Elem0_15;
#line 72152 "tree_bitset.c"
      MR_bool MR_CALL (* mercury__tree_bitset__func_0)(MR_Box, MR_Box, MR_Box *) = ((MR_bool MR_CALL (*)(MR_Box, MR_Box, MR_Box *)) (MR_hl_field(MR_mktag(0), (MR_hl_field(MR_mktag(0), (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__member_2_p_1_env_0__TypeClassInfo_for_enum_12, (MR_Integer) 0)), (MR_Integer) 6)));

#line 72155 "tree_bitset.c"
      {
#line 72157 "tree_bitset.c"
        (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__member_2_p_1_env_0__succeeded = mercury__tree_bitset__func_0(((MR_Box) (mercury__tree_bitset__env_ptr)->mercury__tree_bitset__member_2_p_1_env_0__TypeClassInfo_for_enum_12), ((MR_Box) ((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__member_2_p_1_env_0__Index_9)), &mercury__tree_bitset__Elem0_15);
      }
#line 565 "tree_bitset.m"
      if ((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__member_2_p_1_env_0__succeeded)
#line 564 "tree_bitset.m"
        *((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__member_2_p_1_env_0__Elem_1) = mercury__tree_bitset__Elem0_15;
#line 565 "tree_bitset.m"
      else
#line 568 "tree_bitset.m"
        {
#line 568 "tree_bitset.m"
          {
#line 568 "tree_bitset.m"
            mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.index_to_enum\'/1", (MR_String) "\140enum.from_int/1\' failed");
#line 568 "tree_bitset.m"
            return;
          }
#line 568 "tree_bitset.m"
        }
#line 565 "tree_bitset.m"
      {
#line 565 "tree_bitset.m"
        ((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__member_2_p_1_env_0__cont)((mercury__tree_bitset__env_ptr)->mercury__tree_bitset__member_2_p_1_env_0__cont_env_ptr);
#line 565 "tree_bitset.m"
        return;
      }
#line 1836 "tree_bitset.m"
    }
#line 1836 "tree_bitset.m"
  }
#line 1836 "tree_bitset.m"
}

#line 123 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__member_2_p_1(
#line 123 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_12,
#line 123 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__Elem_1,
#line 123 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_2,
#line 123 "tree_bitset.m"
  MR_Cont mercury__tree_bitset__cont,
#line 123 "tree_bitset.m"
  void * mercury__tree_bitset__cont_env_ptr)
#line 123 "tree_bitset.m"
{
#line 123 "tree_bitset.m"
  {
#line 123 "tree_bitset.m"
    struct mercury__tree_bitset__member_2_p_1_env_0_s mercury__tree_bitset__env;

#line 123 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__member_2_p_1_env_0__TypeClassInfo_for_enum_12 = mercury__tree_bitset__TypeClassInfo_for_enum_12;
#line 123 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__member_2_p_1_env_0__Elem_1 = mercury__tree_bitset__Elem_1;
#line 123 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__member_2_p_1_env_0__cont = mercury__tree_bitset__cont;
#line 123 "tree_bitset.m"
    (mercury__tree_bitset__env).mercury__tree_bitset__member_2_p_1_env_0__cont_env_ptr = mercury__tree_bitset__cont_env_ptr;
#line 1836 "tree_bitset.m"
    {
#line 1836 "tree_bitset.m"
      MR_Word mercury__tree_bitset__NodeList_7 = (MR_Word) mercury__tree_bitset__Set_2;

#line 1841 "tree_bitset.m"
      if (((MR_tag((MR_Word) mercury__tree_bitset__NodeList_7)) == (MR_mktag((MR_Integer) 1))))
#line 1842 "tree_bitset.m"
        {
#line 1842 "tree_bitset.m"
          MR_Word mercury__tree_bitset__InteriorNodes_11 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_7, (MR_Integer) 1)));
#line 1842 "tree_bitset.m"
          MR_Integer mercury__tree_bitset__V_10_10 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_7, (MR_Integer) 0)));

#line 1843 "tree_bitset.m"
          {
#line 1843 "tree_bitset.m"
            mercury__tree_bitset__interiorlist_member_2_p_0(&(mercury__tree_bitset__env).mercury__tree_bitset__member_2_p_1_env_0__Index_9, mercury__tree_bitset__InteriorNodes_11, mercury__tree_bitset__member_2_p_1_1, &mercury__tree_bitset__env);
          }
#line 1842 "tree_bitset.m"
        }
#line 1841 "tree_bitset.m"
      else
#line 1839 "tree_bitset.m"
        {
#line 1839 "tree_bitset.m"
          MR_Word mercury__tree_bitset__LeafNodes_8 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__NodeList_7, (MR_Integer) 0)));

#line 1840 "tree_bitset.m"
          {
#line 1840 "tree_bitset.m"
            mercury__tree_bitset__leaflist_member_2_p_0(&(mercury__tree_bitset__env).mercury__tree_bitset__member_2_p_1_env_0__Index_9, mercury__tree_bitset__LeafNodes_8, mercury__tree_bitset__member_2_p_1_1, &mercury__tree_bitset__env);
          }
#line 1839 "tree_bitset.m"
        }
#line 1836 "tree_bitset.m"
    }
#line 123 "tree_bitset.m"
  }
#line 123 "tree_bitset.m"
}

#line 122 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__member_2_p_0(
#line 122 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_12,
#line 122 "tree_bitset.m"
  MR_Box mercury__tree_bitset__Elem_1,
#line 122 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_2)
#line 122 "tree_bitset.m"
{
#line 1791 "tree_bitset.m"
  {
#line 1791 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1791 "tree_bitset.m"
    MR_Word mercury__tree_bitset__NodeList_15 = (MR_Word) mercury__tree_bitset__Set_2;
#line 1791 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__Index_16;

#line 1793 "tree_bitset.m"
    {
#line 1793 "tree_bitset.m"
      mercury__tree_bitset__Index_16 = mercury__tree_bitset__enum_to_index_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_12, mercury__tree_bitset__Elem_1);
    }
#line 1797 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__NodeList_15)) == (MR_mktag((MR_Integer) 1))))
#line 1798 "tree_bitset.m"
      {
#line 1798 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_19 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_15, (MR_Integer) 1)));
#line 1798 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_18_18 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_15, (MR_Integer) 0)));

#line 1799 "tree_bitset.m"
        {
#line 1799 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__interiorlist_contains_2_p_0(mercury__tree_bitset__InteriorNodes_19, mercury__tree_bitset__Index_16);
        }
#line 1798 "tree_bitset.m"
      }
#line 1797 "tree_bitset.m"
    else
#line 1795 "tree_bitset.m"
      {
#line 1795 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_17 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__NodeList_15, (MR_Integer) 0)));

#line 1796 "tree_bitset.m"
        {
#line 1796 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__leaflist_contains_2_p_0(mercury__tree_bitset__LeafNodes_17, mercury__tree_bitset__Index_16);
        }
#line 1795 "tree_bitset.m"
      }
#line 1791 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 1791 "tree_bitset.m"
  }
#line 122 "tree_bitset.m"
}

#line 116 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__contains_2_p_0(
#line 116 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_10,
#line 116 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_3,
#line 116 "tree_bitset.m"
  MR_Box mercury__tree_bitset__Elem_4)
#line 116 "tree_bitset.m"
{
#line 1791 "tree_bitset.m"
  {
#line 1791 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1791 "tree_bitset.m"
    MR_Word mercury__tree_bitset__NodeList_5 = (MR_Word) mercury__tree_bitset__Set_3;
#line 1791 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__Index_6;

#line 1793 "tree_bitset.m"
    {
#line 1793 "tree_bitset.m"
      mercury__tree_bitset__Index_6 = mercury__tree_bitset__enum_to_index_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_10, mercury__tree_bitset__Elem_4);
    }
#line 1797 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__NodeList_5)) == (MR_mktag((MR_Integer) 1))))
#line 1798 "tree_bitset.m"
      {
#line 1798 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_9 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_5, (MR_Integer) 1)));
#line 1798 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_8_8 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__NodeList_5, (MR_Integer) 0)));

#line 1799 "tree_bitset.m"
        {
#line 1799 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__interiorlist_contains_2_p_0(mercury__tree_bitset__InteriorNodes_9, mercury__tree_bitset__Index_6);
        }
#line 1798 "tree_bitset.m"
      }
#line 1797 "tree_bitset.m"
    else
#line 1795 "tree_bitset.m"
      {
#line 1795 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_7 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__NodeList_5, (MR_Integer) 0)));

#line 1796 "tree_bitset.m"
        {
#line 1796 "tree_bitset.m"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset__leaflist_contains_2_p_0(mercury__tree_bitset__LeafNodes_7, mercury__tree_bitset__Index_6);
        }
#line 1795 "tree_bitset.m"
      }
#line 1791 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 1791 "tree_bitset.m"
  }
#line 116 "tree_bitset.m"
}

#line 111 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__superset_2_p_0(
#line 111 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_5,
#line 111 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Superset_3,
#line 111 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_4)
#line 111 "tree_bitset.m"
{
#line 1787 "tree_bitset.m"
  {
#line 1787 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 1787 "tree_bitset.m"
    {
#line 1787 "tree_bitset.m"
      return mercury__tree_bitset__succeeded = mercury__tree_bitset__subset_2_p_0(mercury__tree_bitset__TypeInfo_for_T_5, mercury__tree_bitset__Set_4, mercury__tree_bitset__Superset_3);
    }
#line 1787 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 1787 "tree_bitset.m"
  }
#line 111 "tree_bitset.m"
}

#line 106 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__subset_2_p_0(
#line 106 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_6,
#line 106 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Subset_3,
#line 106 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_4)
#line 106 "tree_bitset.m"
{
#line 1783 "tree_bitset.m"
  {
#line 1783 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1783 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_7_7;
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastX_12;
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastY_13;

#line 3663 "tree_bitset.m"
    {
#line 3663 "tree_bitset.m"
      mercury__tree_bitset__V_7_7 = mercury__tree_bitset__intersect_2_f_0(mercury__tree_bitset__TypeInfo_for_T_6, mercury__tree_bitset__Set_4, mercury__tree_bitset__Subset_3);
    }
#line 499 "tree_bitset.m"
    mercury__tree_bitset__CastX_12 = (MR_Integer) mercury__tree_bitset__Subset_3;
#line 499 "tree_bitset.m"
    mercury__tree_bitset__CastY_13 = (MR_Integer) mercury__tree_bitset__V_7_7;
#line 499 "tree_bitset.m"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__CastX_12 == mercury__tree_bitset__CastY_13);
#line 499 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 499 "tree_bitset.m"
      mercury__tree_bitset__succeeded = MR_TRUE;
#line 499 "tree_bitset.m"
    else
#line 499 "tree_bitset.m"
      {
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_10_10 = (MR_Word) mercury__tree_bitset__Subset_3;
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_11_11 = (MR_Word) mercury__tree_bitset__V_7_7;

#line 72459 "tree_bitset.c"
        {
#line 72461 "tree_bitset.c"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset____Unify____node_list_0_0(mercury__tree_bitset__V_10_10, mercury__tree_bitset__V_11_11);
        }
#line 499 "tree_bitset.m"
      }
#line 1783 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 1783 "tree_bitset.m"
  }
#line 106 "tree_bitset.m"
}

#line 101 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__is_singleton_2_p_0(
#line 101 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_19,
#line 101 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_3,
#line 101 "tree_bitset.m"
  MR_Box * mercury__tree_bitset__Elem_4)
#line 101 "tree_bitset.m"
{
#line 978 "tree_bitset.m"
  {
#line 978 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 978 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List0_5 = (MR_Word) mercury__tree_bitset__Set_3;
#line 978 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Leaf_6;
#line 978 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_7;
#line 978 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_8_8;
#line 978 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_9_9;
#line 978 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_10_10;
#line 978 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_12_12;
#line 978 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_14_14;
#line 978 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_15_15;
#line 978 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_16_16;
#line 978 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_17_17;

#line 980 "tree_bitset.m"
    mercury__tree_bitset__succeeded = ((MR_tag((MR_Word) mercury__tree_bitset__List0_5)) == (MR_mktag((MR_Integer) 0)));
#line 980 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 980 "tree_bitset.m"
      {
#line 980 "tree_bitset.m"
        mercury__tree_bitset__V_8_8 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List0_5, (MR_Integer) 0)));
#line 980 "tree_bitset.m"
        mercury__tree_bitset__succeeded = ((MR_tag((MR_Word) mercury__tree_bitset__V_8_8)) == (MR_mktag((MR_Integer) 1)));
#line 980 "tree_bitset.m"
        if (mercury__tree_bitset__succeeded)
#line 980 "tree_bitset.m"
          {
#line 980 "tree_bitset.m"
            mercury__tree_bitset__Leaf_6 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_8_8, (MR_Integer) 0)));
#line 980 "tree_bitset.m"
            mercury__tree_bitset__V_9_9 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_8_8, (MR_Integer) 1)));
#line 980 "tree_bitset.m"
            mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_9_9 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 978 "tree_bitset.m"
            if (mercury__tree_bitset__succeeded)
#line 978 "tree_bitset.m"
              {
#line 981 "tree_bitset.m"
                mercury__tree_bitset__V_10_10 = (MR_Integer) 1;
#line 981 "tree_bitset.m"
                mercury__tree_bitset__V_12_12 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Leaf_6, (MR_Integer) 0)));
#line 981 "tree_bitset.m"
                mercury__tree_bitset__V_17_17 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__Leaf_6, (MR_Integer) 1)));
#line 171 "int.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__is_singleton_2_p_0

	MR_Integer Bits;

		{
#line 171 "int.opt"

    Bits = ML_BITS_PER_INT;

#line 72552 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__V_14_14  = Bits;
#line 171 "int.opt"
}
#line 981 "tree_bitset.m"
                mercury__tree_bitset__V_15_15 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 981 "tree_bitset.m"
                {
#line 981 "tree_bitset.m"
                  mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_102_111_108_100_95_98_105_116_115_95_95_104_111_53_54_95_95_91_49_44_32_51_44_32_54_93_95_48_7_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_19, mercury__tree_bitset__TypeClassInfo_for_enum_19, mercury__tree_bitset__V_10_10, mercury__tree_bitset__V_12_12, mercury__tree_bitset__V_17_17, mercury__tree_bitset__V_14_14, mercury__tree_bitset__V_15_15, &mercury__tree_bitset__List_7);
                }
#line 983 "tree_bitset.m"
                mercury__tree_bitset__succeeded = ((MR_tag((MR_Word) mercury__tree_bitset__List_7)) == (MR_mktag((MR_Integer) 1)));
#line 983 "tree_bitset.m"
                if (mercury__tree_bitset__succeeded)
#line 983 "tree_bitset.m"
                  {
#line 983 "tree_bitset.m"
                    *mercury__tree_bitset__Elem_4 = (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_7, (MR_Integer) 0));
#line 983 "tree_bitset.m"
                    mercury__tree_bitset__V_16_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_7, (MR_Integer) 1)));
#line 983 "tree_bitset.m"
                    mercury__tree_bitset__succeeded = (mercury__tree_bitset__V_16_16 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 983 "tree_bitset.m"
                  }
#line 978 "tree_bitset.m"
              }
#line 980 "tree_bitset.m"
          }
#line 980 "tree_bitset.m"
      }
#line 978 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 978 "tree_bitset.m"
  }
#line 101 "tree_bitset.m"
}

#line 97 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__make_singleton_set_1_f_0(
#line 97 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_5,
#line 97 "tree_bitset.m"
  MR_Box mercury__tree_bitset__A_3)
#line 97 "tree_bitset.m"
{
#line 976 "tree_bitset.m"
  {
#line 976 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 976 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__2_2;
#line 976 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_4_4;
#line 976 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_8_8;
#line 976 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_9_9;
#line 137 "private_builtin.opt"
    MR_Word mercury__tree_bitset__TypeInfo_7_7;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__make_singleton_set_1_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_5 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 72632 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_7_7  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 915 "tree_bitset.m"
    mercury__tree_bitset__V_9_9 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 915 "tree_bitset.m"
    mercury__tree_bitset__V_8_8 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 595 "tree_bitset.m"
    mercury__tree_bitset__V_4_4 = (MR_Word) ((MR_Box) (&mercury__tree_bitset_scalar_common_5[0]));
#line 976 "tree_bitset.m"
    {
#line 976 "tree_bitset.m"
      return mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__insert_2_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_5, mercury__tree_bitset__V_4_4, mercury__tree_bitset__A_3);
    }
#line 976 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__2_2;
#line 976 "tree_bitset.m"
  }
#line 97 "tree_bitset.m"
}

#line 92 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__to_set_1_f_0(
#line 92 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_5,
#line 92 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_3)
#line 92 "tree_bitset.m"
{
#line 949 "tree_bitset.m"
  {
#line 949 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 949 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__2_2;
#line 949 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_7_7;
#line 949 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_4_4;
#line 949 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_4_13;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__to_set_1_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_5 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 72694 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_7_7  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 949 "tree_bitset.m"
    {
#line 949 "tree_bitset.m"
      mercury__tree_bitset__V_4_4 = mercury__tree_bitset__to_sorted_list_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_5, mercury__tree_bitset__Set_3);
    }
#line 58 "list.opt"
    if ((mercury__tree_bitset__V_4_4 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 58 "list.opt"
      mercury__tree_bitset__List_4_13 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 58 "list.opt"
    else
#line 59 "list.opt"
      {
#line 59 "list.opt"
        MR_Box mercury__tree_bitset__X_3_14 = (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_4_4, (MR_Integer) 0));
#line 59 "list.opt"
        MR_Word mercury__tree_bitset__Xs_4_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__V_4_4, (MR_Integer) 1)));

#line 60 "list.opt"
        {
#line 60 "list.opt"
          mercury__list__remove_adjacent_dups_2_3_p_0(mercury__tree_bitset__TypeInfo_7_7, mercury__tree_bitset__Xs_4_15, mercury__tree_bitset__X_3_14, &mercury__tree_bitset__List_4_13);
        }
#line 59 "list.opt"
      }
#line 32 "set_ordlist.opt"
    mercury__tree_bitset__HeadVar__2_2 = (MR_Word) mercury__tree_bitset__List_4_13;
#line 949 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__2_2;
#line 949 "tree_bitset.m"
  }
#line 92 "tree_bitset.m"
}

#line 87 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__to_sorted_list_2_p_0(
#line 87 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_5,
#line 87 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_3,
#line 87 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__List_4)
#line 87 "tree_bitset.m"
{
#line 947 "tree_bitset.m"
  {
#line 947 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 947 "tree_bitset.m"
    {
#line 947 "tree_bitset.m"
      *mercury__tree_bitset__List_4 = mercury__tree_bitset__to_sorted_list_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_5, mercury__tree_bitset__Set_3);
    }
#line 947 "tree_bitset.m"
  }
#line 87 "tree_bitset.m"
}

#line 86 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__to_sorted_list_1_f_0(
#line 86 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_6,
#line 86 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_3)
#line 86 "tree_bitset.m"
{
#line 944 "tree_bitset.m"
  {
#line 944 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 944 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__2_2;
#line 944 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_5_5 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 944 "tree_bitset.m"
    MR_Word mercury__tree_bitset__List_36 = (MR_Word) mercury__tree_bitset__Set_3;

#line 3820 "tree_bitset.m"
    if (((MR_tag((MR_Word) mercury__tree_bitset__List_36)) == (MR_mktag((MR_Integer) 1))))
#line 3821 "tree_bitset.m"
      {
#line 3821 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes_39 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_36, (MR_Integer) 1)));
#line 3821 "tree_bitset.m"
        MR_Integer mercury__tree_bitset__V_38_38 = ((MR_Integer) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__List_36, (MR_Integer) 0)));

#line 3822 "tree_bitset.m"
        {
#line 3822 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_100_111_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_55_49_95_95_91_49_44_32_50_44_32_51_44_32_52_44_32_53_44_32_55_44_32_57_93_95_48_4_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_6, mercury__tree_bitset__TypeClassInfo_for_enum_6, mercury__tree_bitset__InteriorNodes_39, mercury__tree_bitset__V_5_5, &mercury__tree_bitset__HeadVar__2_2);
        }
#line 3821 "tree_bitset.m"
      }
#line 3820 "tree_bitset.m"
    else
#line 3818 "tree_bitset.m"
      {
#line 3818 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafNodes_37 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__List_36, (MR_Integer) 0)));

#line 3819 "tree_bitset.m"
        {
#line 3819 "tree_bitset.m"
          mercury__tree_bitset__f_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_108_101_97_102_95_102_111_108_100_114_95_112_114_101_100_95_95_104_111_55_48_95_95_91_49_44_32_50_44_32_51_44_32_52_44_32_53_44_32_55_44_32_57_93_95_48_4_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_6, mercury__tree_bitset__TypeClassInfo_for_enum_6, mercury__tree_bitset__LeafNodes_37, mercury__tree_bitset__V_5_5, &mercury__tree_bitset__HeadVar__2_2);
        }
#line 3818 "tree_bitset.m"
      }
#line 944 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__2_2;
#line 944 "tree_bitset.m"
  }
#line 86 "tree_bitset.m"
}

#line 81 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__from_set_1_f_0(
#line 81 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_5,
#line 81 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_3)
#line 81 "tree_bitset.m"
{
#line 951 "tree_bitset.m"
  {
#line 951 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 951 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__2_2;
#line 951 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_4_4;
#line 137 "private_builtin.opt"
    MR_Word mercury__tree_bitset__TypeInfo_7_7;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__from_set_1_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_5 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 72853 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_7_7  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 38 "set_ordlist.opt"
    mercury__tree_bitset__V_4_4 = (MR_Word) mercury__tree_bitset__Set_3;
#line 951 "tree_bitset.m"
    {
#line 951 "tree_bitset.m"
      return mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__sorted_list_to_set_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_5, mercury__tree_bitset__V_4_4);
    }
#line 951 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__2_2;
#line 951 "tree_bitset.m"
  }
#line 81 "tree_bitset.m"
}

#line 76 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__sorted_list_to_set_2_p_0(
#line 76 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_5,
#line 76 "tree_bitset.m"
  MR_Word mercury__tree_bitset__List_3,
#line 76 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__Set_4)
#line 76 "tree_bitset.m"
{
#line 1641 "tree_bitset.m"
  {
#line 1641 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 1641 "tree_bitset.m"
    {
#line 1641 "tree_bitset.m"
      *mercury__tree_bitset__Set_4 = mercury__tree_bitset__sorted_list_to_set_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_5, mercury__tree_bitset__List_3);
    }
#line 1641 "tree_bitset.m"
  }
#line 76 "tree_bitset.m"
}

#line 75 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__sorted_list_to_set_1_f_0(
#line 75 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_25,
#line 75 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Elems_3)
#line 75 "tree_bitset.m"
{
#line 1615 "tree_bitset.m"
  {
#line 1615 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1615 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Set_4;
#line 1615 "tree_bitset.m"
    MR_Word mercury__tree_bitset__Indexes_5;
#line 1615 "tree_bitset.m"
    MR_Word mercury__tree_bitset__LeafNodes_6;

#line 1616 "tree_bitset.m"
    {
#line 1616 "tree_bitset.m"
      mercury__tree_bitset__items_to_index_2_p_0(mercury__tree_bitset__TypeClassInfo_for_enum_25, mercury__tree_bitset__Elems_3, &mercury__tree_bitset__Indexes_5);
    }
#line 1619 "tree_bitset.m"
    {
#line 1619 "tree_bitset.m"
      mercury__tree_bitset__LeafNodes_6 = mercury__tree_bitset__sorted_list_to_leaf_nodes_1_f_0(mercury__tree_bitset__Indexes_5);
    }
#line 1624 "tree_bitset.m"
    if ((mercury__tree_bitset__LeafNodes_6 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1621 "tree_bitset.m"
      {
#line 1621 "tree_bitset.m"
        MR_Word mercury__tree_bitset__List_7 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 1621 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_21_21 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 137 "private_builtin.opt"
        MR_Word mercury__tree_bitset__TypeInfo_27_27;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__sorted_list_to_set_1_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_25 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 72956 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_27_27  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 595 "tree_bitset.m"
        mercury__tree_bitset__Set_4 = (MR_Word) ((MR_Box) (&mercury__tree_bitset_scalar_common_5[0]));
#line 1621 "tree_bitset.m"
      }
#line 1624 "tree_bitset.m"
    else
#line 1625 "tree_bitset.m"
      {
#line 1625 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafHead_8 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodes_6, (MR_Integer) 0)));
#line 1625 "tree_bitset.m"
        MR_Word mercury__tree_bitset__LeafTail_9 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__LeafNodes_6, (MR_Integer) 1)));
#line 1625 "tree_bitset.m"
        MR_Word mercury__tree_bitset__InteriorNodes0_10;
#line 1625 "tree_bitset.m"
        MR_Word mercury__tree_bitset__List_22;
#line 137 "private_builtin.opt"
        MR_Word mercury__tree_bitset__TypeInfo_29_29;

#line 1626 "tree_bitset.m"
        {
#line 1626 "tree_bitset.m"
          mercury__tree_bitset__group_leaf_nodes_3_p_0(mercury__tree_bitset__LeafHead_8, mercury__tree_bitset__LeafTail_9, &mercury__tree_bitset__InteriorNodes0_10);
        }
#line 1630 "tree_bitset.m"
        if ((mercury__tree_bitset__InteriorNodes0_10 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1628 "tree_bitset.m"
          {
#line 1629 "tree_bitset.m"
            {
#line 1629 "tree_bitset.m"
              mercury__require__unexpected_3_p_0((MR_String) "tree_bitset", (MR_String) "function \140tree_bitset.sorted_list_to_set\'/1", (MR_String) "empty InteriorNodes0");
            }
#line 1628 "tree_bitset.m"
          }
#line 1630 "tree_bitset.m"
        else
#line 1630 "tree_bitset.m"
          {
#line 1630 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_30_30 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorNodes0_10, (MR_Integer) 1)));
#line 1630 "tree_bitset.m"
            MR_Word mercury__tree_bitset__V_31_31 = ((MR_Word) (MR_hl_field(MR_mktag(1), mercury__tree_bitset__InteriorNodes0_10, (MR_Integer) 0)));

#line 1630 "tree_bitset.m"
            if ((mercury__tree_bitset__V_30_30 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1632 "tree_bitset.m"
              {
#line 1632 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_31_31, (MR_Integer) 0)));
#line 1632 "tree_bitset.m"
                MR_Integer mercury__tree_bitset__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_31_31, (MR_Integer) 1)));

#line 1632 "tree_bitset.m"
                mercury__tree_bitset__List_22 = ((MR_Word) (MR_hl_field(MR_mktag(0), mercury__tree_bitset__V_31_31, (MR_Integer) 2)));
#line 1632 "tree_bitset.m"
              }
#line 1630 "tree_bitset.m"
            else
#line 1634 "tree_bitset.m"
              {
#line 1635 "tree_bitset.m"
                {
#line 1635 "tree_bitset.m"
                  mercury__tree_bitset__recursively_group_interior_nodes_3_p_0((MR_Integer) 1, mercury__tree_bitset__InteriorNodes0_10, &mercury__tree_bitset__List_22);
                }
#line 1634 "tree_bitset.m"
              }
#line 1630 "tree_bitset.m"
          }
#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__sorted_list_to_set_1_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_25 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 73048 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_29_29  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 595 "tree_bitset.m"
        mercury__tree_bitset__Set_4 = (MR_Word) mercury__tree_bitset__List_22;
#line 1625 "tree_bitset.m"
      }
#line 1615 "tree_bitset.m"
    return mercury__tree_bitset__Set_4;
#line 1615 "tree_bitset.m"
  }
#line 75 "tree_bitset.m"
}

#line 70 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__list_to_set_2_p_0(
#line 70 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_5,
#line 70 "tree_bitset.m"
  MR_Word mercury__tree_bitset__List_3,
#line 70 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__Set_4)
#line 70 "tree_bitset.m"
{
#line 1608 "tree_bitset.m"
  {
#line 1608 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1608 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_7_9;
#line 1608 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_7_7;
#line 1608 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_5_16;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__list_to_set_2_p_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_5 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 73103 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_7_9  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 78 "list.opt"
    {
#line 78 "list.opt"
      mercury__list__length_2_3_p_0(mercury__tree_bitset__TypeInfo_7_9, mercury__tree_bitset__List_3, (MR_Integer) 0, &mercury__tree_bitset__V_5_16);
    }
#line 832 "list.opt"
    {
#line 832 "list.opt"
      mercury__list__merge_sort_2_3_p_0(mercury__tree_bitset__TypeInfo_7_9, mercury__tree_bitset__V_5_16, mercury__tree_bitset__List_3, &mercury__tree_bitset__V_7_7);
    }
#line 1608 "tree_bitset.m"
    {
#line 1608 "tree_bitset.m"
      *mercury__tree_bitset__Set_4 = mercury__tree_bitset__sorted_list_to_set_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_5, mercury__tree_bitset__V_7_7);
    }
#line 1608 "tree_bitset.m"
  }
#line 70 "tree_bitset.m"
}

#line 69 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__list_to_set_1_f_0(
#line 69 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_5,
#line 69 "tree_bitset.m"
  MR_Word mercury__tree_bitset__List_3)
#line 69 "tree_bitset.m"
{
#line 1608 "tree_bitset.m"
  {
#line 1608 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 1608 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__2_2;
#line 1608 "tree_bitset.m"
    MR_Word mercury__tree_bitset__TypeInfo_7_7;
#line 1608 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_4_4;
#line 1608 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__V_5_14;

#line 137 "private_builtin.opt"
{
#define MR_PROC_LABEL mercury__tree_bitset__list_to_set_1_f_0

	MR_Word TypeClassInfo;
	MR_Integer Index;
	MR_Word TypeInfo;

	TypeClassInfo =  mercury__tree_bitset__TypeClassInfo_for_enum_5 ;
	Index =  (MR_Integer) 1 ;
		{
#line 137 "private_builtin.opt"

    TypeInfo = MR_typeclass_info_param_type_info(TypeClassInfo, Index);

#line 73167 "tree_bitset.c"

		;}
#undef MR_PROC_LABEL
	 mercury__tree_bitset__TypeInfo_7_7  = TypeInfo;
#line 137 "private_builtin.opt"
}
#line 78 "list.opt"
    {
#line 78 "list.opt"
      mercury__list__length_2_3_p_0(mercury__tree_bitset__TypeInfo_7_7, mercury__tree_bitset__List_3, (MR_Integer) 0, &mercury__tree_bitset__V_5_14);
    }
#line 832 "list.opt"
    {
#line 832 "list.opt"
      mercury__list__merge_sort_2_3_p_0(mercury__tree_bitset__TypeInfo_7_7, mercury__tree_bitset__V_5_14, mercury__tree_bitset__List_3, &mercury__tree_bitset__V_4_4);
    }
#line 1608 "tree_bitset.m"
    {
#line 1608 "tree_bitset.m"
      return mercury__tree_bitset__HeadVar__2_2 = mercury__tree_bitset__sorted_list_to_set_1_f_0(mercury__tree_bitset__TypeClassInfo_for_enum_5, mercury__tree_bitset__V_4_4);
    }
#line 1608 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__2_2;
#line 1608 "tree_bitset.m"
  }
#line 69 "tree_bitset.m"
}

#line 64 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__equal_2_p_0(
#line 64 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeClassInfo_for_enum_10,
#line 64 "tree_bitset.m"
  MR_Word mercury__tree_bitset__SetA_3,
#line 64 "tree_bitset.m"
  MR_Word mercury__tree_bitset__SetB_4)
#line 64 "tree_bitset.m"
{
#line 499 "tree_bitset.m"
  {
#line 499 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastX_27 = (MR_Integer) mercury__tree_bitset__SetA_3;
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastY_28 = (MR_Integer) mercury__tree_bitset__SetB_4;

#line 499 "tree_bitset.m"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__CastX_27 == mercury__tree_bitset__CastY_28);
#line 499 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 499 "tree_bitset.m"
      mercury__tree_bitset__succeeded = MR_TRUE;
#line 499 "tree_bitset.m"
    else
#line 499 "tree_bitset.m"
      {
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_25_25 = (MR_Word) mercury__tree_bitset__SetA_3;
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_26_26 = (MR_Word) mercury__tree_bitset__SetB_4;

#line 73231 "tree_bitset.c"
        {
#line 73233 "tree_bitset.c"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset____Unify____node_list_0_0(mercury__tree_bitset__V_25_25, mercury__tree_bitset__V_26_26);
        }
#line 499 "tree_bitset.m"
      }
#line 499 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 499 "tree_bitset.m"
  }
#line 64 "tree_bitset.m"
}

#line 59 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__is_non_empty_1_p_0(
#line 59 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_3,
#line 59 "tree_bitset.m"
  MR_Word mercury__tree_bitset__Set_2)
#line 59 "tree_bitset.m"
{
#line 922 "tree_bitset.m"
  {
#line 922 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;

#line 922 "tree_bitset.m"
    {
#line 922 "tree_bitset.m"
      mercury__tree_bitset__succeeded = mercury__tree_bitset__is_empty_1_p_0(mercury__tree_bitset__TypeInfo_for_T_3, mercury__tree_bitset__Set_2);
    }
#line 922 "tree_bitset.m"
    mercury__tree_bitset__succeeded = !(mercury__tree_bitset__succeeded);
#line 922 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 922 "tree_bitset.m"
  }
#line 59 "tree_bitset.m"
}

#line 57 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__is_empty_1_p_0(
#line 57 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_2,
#line 57 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1)
#line 57 "tree_bitset.m"
{
#line 919 "tree_bitset.m"
  {
#line 919 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 919 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_3_3 = (MR_Word) ((MR_Box) (&mercury__tree_bitset_scalar_common_5[0]));
#line 919 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_4_4 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 919 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_5_5 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastX_15 = (MR_Integer) mercury__tree_bitset__HeadVar__1_1;
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastY_16 = (MR_Integer) mercury__tree_bitset__V_3_3;

#line 499 "tree_bitset.m"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__CastX_15 == mercury__tree_bitset__CastY_16);
#line 499 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 499 "tree_bitset.m"
      mercury__tree_bitset__succeeded = MR_TRUE;
#line 499 "tree_bitset.m"
    else
#line 499 "tree_bitset.m"
      {
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_13_13 = (MR_Word) mercury__tree_bitset__HeadVar__1_1;
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_14_14 = (MR_Word) mercury__tree_bitset__V_3_3;

#line 73312 "tree_bitset.c"
        {
#line 73314 "tree_bitset.c"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset____Unify____node_list_0_0(mercury__tree_bitset__V_13_13, mercury__tree_bitset__V_14_14);
        }
#line 499 "tree_bitset.m"
      }
#line 919 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 919 "tree_bitset.m"
  }
#line 57 "tree_bitset.m"
}

#line 55 "tree_bitset.m"
void MR_CALL 
mercury__tree_bitset__empty_1_p_1(
#line 55 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_2,
#line 55 "tree_bitset.m"
  MR_Word * mercury__tree_bitset__HeadVar__1_1)
#line 55 "tree_bitset.m"
{
#line 915 "tree_bitset.m"
  {
#line 915 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 915 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_3_3 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 915 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_4_4 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));

#line 595 "tree_bitset.m"
    *mercury__tree_bitset__HeadVar__1_1 = (MR_Word) ((MR_Box) (&mercury__tree_bitset_scalar_common_5[0]));
#line 915 "tree_bitset.m"
  }
#line 55 "tree_bitset.m"
}

#line 54 "tree_bitset.m"
MR_bool MR_CALL 
mercury__tree_bitset__empty_1_p_0(
#line 54 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_2,
#line 54 "tree_bitset.m"
  MR_Word mercury__tree_bitset__HeadVar__1_1)
#line 54 "tree_bitset.m"
{
#line 917 "tree_bitset.m"
  {
#line 917 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 917 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_3_3 = (MR_Word) ((MR_Box) (&mercury__tree_bitset_scalar_common_5[0]));
#line 917 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_4_4 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 917 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_5_5 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastX_15 = (MR_Integer) mercury__tree_bitset__HeadVar__1_1;
#line 499 "tree_bitset.m"
    MR_Integer mercury__tree_bitset__CastY_16 = (MR_Integer) mercury__tree_bitset__V_3_3;

#line 499 "tree_bitset.m"
    mercury__tree_bitset__succeeded = (mercury__tree_bitset__CastX_15 == mercury__tree_bitset__CastY_16);
#line 499 "tree_bitset.m"
    if (mercury__tree_bitset__succeeded)
#line 499 "tree_bitset.m"
      mercury__tree_bitset__succeeded = MR_TRUE;
#line 499 "tree_bitset.m"
    else
#line 499 "tree_bitset.m"
      {
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_13_13 = (MR_Word) mercury__tree_bitset__HeadVar__1_1;
#line 499 "tree_bitset.m"
        MR_Word mercury__tree_bitset__V_14_14 = (MR_Word) mercury__tree_bitset__V_3_3;

#line 73390 "tree_bitset.c"
        {
#line 73392 "tree_bitset.c"
          return mercury__tree_bitset__succeeded = mercury__tree_bitset____Unify____node_list_0_0(mercury__tree_bitset__V_13_13, mercury__tree_bitset__V_14_14);
        }
#line 499 "tree_bitset.m"
      }
#line 917 "tree_bitset.m"
    return mercury__tree_bitset__succeeded;
#line 917 "tree_bitset.m"
  }
#line 54 "tree_bitset.m"
}

#line 51 "tree_bitset.m"
MR_Word MR_CALL 
mercury__tree_bitset__init_0_f_0(
#line 51 "tree_bitset.m"
  MR_Word mercury__tree_bitset__TypeInfo_for_T_4)
#line 51 "tree_bitset.m"
{
#line 915 "tree_bitset.m"
  {
#line 915 "tree_bitset.m"
    MR_bool mercury__tree_bitset__succeeded;
#line 915 "tree_bitset.m"
    MR_Word mercury__tree_bitset__HeadVar__1_1 = (MR_Word) ((MR_Box) (&mercury__tree_bitset_scalar_common_5[0]));
#line 915 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_2_2 = (MR_Word) &mercury__tree_bitset_scalar_common_5[0];
#line 915 "tree_bitset.m"
    MR_Word mercury__tree_bitset__V_3_3 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));

#line 915 "tree_bitset.m"
    return mercury__tree_bitset__HeadVar__1_1;
#line 915 "tree_bitset.m"
  }
#line 51 "tree_bitset.m"
}

void mercury__tree_bitset__init(void)
{
}

void mercury__tree_bitset__init_type_tables(void)
{
	static MR_bool initialised = MR_FALSE;
	if (initialised) return;
	initialised = MR_TRUE;

	MR_register_type_ctor_info(&mercury__tree_bitset__tree_bitset__type_ctor_info_fold_direction_0);
	MR_register_type_ctor_info(&mercury__tree_bitset__tree_bitset__type_ctor_info_interior_node_0);
	MR_register_type_ctor_info(&mercury__tree_bitset__tree_bitset__type_ctor_info_leaf_node_0);
	MR_register_type_ctor_info(&mercury__tree_bitset__tree_bitset__type_ctor_info_node_list_0);
	MR_register_type_ctor_info(&mercury__tree_bitset__tree_bitset__type_ctor_info_tree_bitset_1);
}

void mercury__tree_bitset__init_debugger(void)
{
	MR_fatal_error("debugger initialization in MLDS grade");
}

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

/* :- end_module tree_bitset. */
