/*
** Automatically generated from `query.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 query. */
/* :- implementation. */

/*
INIT mercury__query__init
ENDINIT
*/

#include "query.mih"


#include "analysis_utils.mih"
#include "array.mih"
#include "assoc_list.mih"
#include "bimap.mih"
#include "bitmap.mih"
#include "bool.mih"
#include "builtin.mih"
#include "char.mih"
#include "construct.mih"
#include "cord.mih"
#include "coverage.mih"
#include "create_report.mih"
#include "deconstruct.mih"
#include "display.mih"
#include "display_report.mih"
#include "enum.mih"
#include "exception.mih"
#include "exclude.mih"
#include "html_format.mih"
#include "int.mih"
#include "io.mih"
#include "list.mih"
#include "map.mih"
#include "math.mih"
#include "maybe.mih"
#include "mdbcomp.mih"
#include "measurement_units.mih"
#include "measurements.mih"
#include "ops.mih"
#include "pair.mih"
#include "pretty_printer.mih"
#include "private_builtin.mih"
#include "profile.mih"
#include "random.mih"
#include "report.mih"
#include "rtti_implementation.mih"
#include "set.mih"
#include "set_ordlist.mih"
#include "stm_builtin.mih"
#include "store.mih"
#include "stream.mih"
#include "string.mih"
#include "table_builtin.mih"
#include "term.mih"
#include "time.mih"
#include "tree234.mih"
#include "type_desc.mih"
#include "unit.mih"
#include "univ.mih"
#include "util.mih"
#include "var_use_analysis.mih"
#include "mdbcomp.feedback.mih"
#include "mdbcomp.goal_path.mih"
#include "mdbcomp.prim_data.mih"
#include "mdbcomp.program_representation.mih"
#include "mdbcomp.rtti_access.mih"
#include "mdbcomp.trace_counts.mih"
#include "mdbcomp.feedback.automatic_parallelism.mih"




#line 93 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_alloc_fields_0_0;

#line 96 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_alloc_fields_0_1;

#line 99 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_alloc_fields_0_2;

#line 102 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_alloc_fields_0[3];

#line 105 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_alloc_fields_0[3];

#line 108 "query.c"
static const MR_Integer query__query__functor_number_map_alloc_fields_0[3];

#line 111 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_box_tables_0_0;

#line 114 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_box_tables_0_1;

#line 117 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_box_tables_0[2];

#line 120 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_box_tables_0[2];

#line 123 "query.c"
static const MR_Integer query__query__functor_number_map_box_tables_0[2];

#line 126 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_caller_groups_0_0;

#line 129 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_caller_groups_0_1;

#line 132 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_caller_groups_0_2;

#line 135 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_caller_groups_0_3;

#line 138 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_caller_groups_0[4];

#line 141 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_caller_groups_0[4];

#line 144 "query.c"
static const MR_Integer query__query__functor_number_map_caller_groups_0[4];

#line 147 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_callseqs_fields_0_0;

#line 150 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_callseqs_fields_0_1;

#line 153 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_callseqs_fields_0_2;

#line 156 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_callseqs_fields_0[3];

#line 159 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_callseqs_fields_0[3];

#line 162 "query.c"
static const MR_Integer query__query__functor_number_map_callseqs_fields_0[3];

#line 165 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_0;

#line 168 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_1;

#line 171 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_2[1];

#line 174 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_2[1];

#line 177 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_2;

#line 180 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_3;

#line 183 "query.c"
static const MR_FA_TypeInfo_Struct1 query__maybe__ti_maybe_1builtin__type_ctor_info_int_0;

#line 186 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_4[1];

#line 189 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_4[1];

#line 192 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_4;

#line 195 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_5[1];

#line 198 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_5[1];

#line 201 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_5;

#line 204 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_6[1];

#line 207 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_6[1];

#line 210 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_6;

#line 213 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_7;

#line 216 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_8[1];

#line 219 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_8[1];

#line 222 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_8;

#line 225 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_9[5];

#line 228 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_9[5];

#line 231 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_9;

#line 234 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_10;

#line 237 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_11[1];

#line 240 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_11[1];

#line 243 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_11;

#line 246 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_12[1];

#line 249 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_12[1];

#line 252 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_12;

#line 255 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_13[1];

#line 258 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_13[1];

#line 261 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_13;

#line 264 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_14[4];

#line 267 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_14[4];

#line 270 "query.c"
static const MR_DuArgLocn query__query__field_locns_cmd_0_14[4];

#line 273 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_14;

#line 276 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_15[1];

#line 279 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_15[1];

#line 282 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_15;

#line 285 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_16[1];

#line 288 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_16[1];

#line 291 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_16;

#line 294 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_17[1];

#line 297 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_17[1];

#line 300 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_17;

#line 303 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_18[1];

#line 306 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_18[1];

#line 309 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_18;

#line 312 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_19[1];

#line 315 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_19[1];

#line 318 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_19;

#line 321 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_20[1];

#line 324 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_20[1];

#line 327 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_20;

#line 330 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_21[1];

#line 333 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_21[1];

#line 336 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_21;

#line 339 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_22[1];

#line 342 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_22[1];

#line 345 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_22;

#line 348 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_cmd_0_0[5];

#line 351 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_cmd_0_1[1];

#line 354 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_cmd_0_2[1];

#line 357 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_cmd_0_3[16];

#line 360 "query.c"
static const MR_DuPtagLayout query__query__du_ptag_ordered_cmd_0[4];

#line 363 "query.c"
static const MR_DuFunctorDescPtr query__query__du_name_ordered_cmd_0[23];

#line 366 "query.c"
static const MR_Integer query__query__functor_number_map_cmd_0[23];

#line 369 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_colour_column_groups_0_0;

#line 372 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_colour_column_groups_0_1;

#line 375 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_colour_column_groups_0[2];

#line 378 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_colour_column_groups_0[2];

#line 381 "query.c"
static const MR_Integer query__query__functor_number_map_colour_column_groups_0[2];

#line 384 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_contour_exclusion_0_0;

#line 387 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_contour_exclusion_0_1;

#line 390 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_contour_exclusion_0[2];

#line 393 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_contour_exclusion_0[2];

#line 396 "query.c"
static const MR_Integer query__query__functor_number_map_contour_exclusion_0[2];

#line 399 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_cost_kind_0_0;

#line 402 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_cost_kind_0_1;

#line 405 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_cost_kind_0_2;

#line 408 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_cost_kind_0_3;

#line 411 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_cost_kind_0_4;

#line 414 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_cost_kind_0_5;

#line 417 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_cost_kind_0[6];

#line 420 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_cost_kind_0[6];

#line 423 "query.c"
static const MR_Integer query__query__functor_number_map_cost_kind_0[6];

#line 426 "query.c"
static const MR_FA_TypeInfo_Struct1 query__maybe__ti_maybe_1query__type_ctor_info_cmd_0;

#line 429 "query.c"
static const MR_FA_TypeInfo_Struct1 query__maybe__ti_maybe_1query__type_ctor_info_preferences_0;

#line 432 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_deep_query_0_0[3];

#line 435 "query.c"
static const MR_ConstString query__query__field_names_deep_query_0_0[3];

#line 438 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_deep_query_0_0;

#line 441 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_deep_query_0_0[1];

#line 444 "query.c"
static const MR_DuPtagLayout query__query__du_ptag_ordered_deep_query_0[1];

#line 447 "query.c"
static const MR_DuFunctorDescPtr query__query__du_name_ordered_deep_query_0[1];

#line 450 "query.c"
static const MR_Integer query__query__functor_number_map_deep_query_0[1];

#line 453 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_descendants_meaningful_0_0;

#line 456 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_descendants_meaningful_0_1;

#line 459 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_descendants_meaningful_0[2];

#line 462 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_descendants_meaningful_0[2];

#line 465 "query.c"
static const MR_Integer query__query__functor_number_map_descendants_meaningful_0[2];

#line 468 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_developer_mode_0_0;

#line 471 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_developer_mode_0_1;

#line 474 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_developer_mode_0[2];

#line 477 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_developer_mode_0[2];

#line 480 "query.c"
static const MR_Integer query__query__functor_number_map_developer_mode_0[2];

#line 483 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_display_limit_0_0[2];

#line 486 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_display_limit_0_0;

#line 489 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_display_limit_0_1[1];

#line 492 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_display_limit_0_1;

#line 495 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_display_limit_0_2[1];

#line 498 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_display_limit_0_2;

#line 501 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_display_limit_0_0[1];

#line 504 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_display_limit_0_1[1];

#line 507 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_display_limit_0_2[1];

#line 510 "query.c"
static const MR_DuPtagLayout query__query__du_ptag_ordered_display_limit_0[3];

#line 513 "query.c"
static const MR_DuFunctorDescPtr query__query__du_name_ordered_display_limit_0[3];

#line 516 "query.c"
static const MR_Integer query__query__functor_number_map_display_limit_0[3];

#line 519 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_fields_0_0[5];

#line 522 "query.c"
static const MR_ConstString query__query__field_names_fields_0_0[5];

#line 525 "query.c"
static const MR_DuArgLocn query__query__field_locns_fields_0_0[5];

#line 528 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_fields_0_0;

#line 531 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_fields_0_0[1];

#line 534 "query.c"
static const MR_DuPtagLayout query__query__du_ptag_ordered_fields_0[1];

#line 537 "query.c"
static const MR_DuFunctorDescPtr query__query__du_name_ordered_fields_0[1];

#line 540 "query.c"
static const MR_Integer query__query__functor_number_map_fields_0[1];

#line 543 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_inactive_items_0_0[3];

#line 546 "query.c"
static const MR_ConstString query__query__field_names_inactive_items_0_0[3];

#line 549 "query.c"
static const MR_DuArgLocn query__query__field_locns_inactive_items_0_0[3];

#line 552 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_inactive_items_0_0;

#line 555 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_inactive_items_0_0[1];

#line 558 "query.c"
static const MR_DuPtagLayout query__query__du_ptag_ordered_inactive_items_0[1];

#line 561 "query.c"
static const MR_DuFunctorDescPtr query__query__du_name_ordered_inactive_items_0[1];

#line 564 "query.c"
static const MR_Integer query__query__functor_number_map_inactive_items_0[1];

#line 567 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_inactive_status_0_0;

#line 570 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_inactive_status_0_1;

#line 573 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_inactive_status_0[2];

#line 576 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_inactive_status_0[2];

#line 579 "query.c"
static const MR_Integer query__query__functor_number_map_inactive_status_0[2];

#line 582 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_include_descendants_0_0;

#line 585 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_include_descendants_0_1;

#line 588 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_include_descendants_0[2];

#line 591 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_include_descendants_0[2];

#line 594 "query.c"
static const MR_Integer query__query__functor_number_map_include_descendants_0[2];

#line 597 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_measurement_scope_0_0;

#line 600 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_measurement_scope_0_1;

#line 603 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_measurement_scope_0[2];

#line 606 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_measurement_scope_0[2];

#line 609 "query.c"
static const MR_Integer query__query__functor_number_map_measurement_scope_0[2];

#line 612 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_memory_fields_0_0;

#line 615 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_memory_fields_0_1[1];

#line 618 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_memory_fields_0_1;

#line 621 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_memory_fields_0_2[1];

#line 624 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_memory_fields_0_2;

#line 627 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_memory_fields_0_0[1];

#line 630 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_memory_fields_0_1[1];

#line 633 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_memory_fields_0_2[1];

#line 636 "query.c"
static const MR_DuPtagLayout query__query__du_ptag_ordered_memory_fields_0[3];

#line 639 "query.c"
static const MR_DuFunctorDescPtr query__query__du_name_ordered_memory_fields_0[3];

#line 642 "query.c"
static const MR_Integer query__query__functor_number_map_memory_fields_0[3];

#line 645 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_module_qual_0_0;

#line 648 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_module_qual_0_1;

#line 651 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_module_qual_0_2;

#line 654 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_module_qual_0[3];

#line 657 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_module_qual_0[3];

#line 660 "query.c"
static const MR_Integer query__query__functor_number_map_module_qual_0[3];

#line 663 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_order_criteria_0_0;

#line 666 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_order_criteria_0_1;

#line 669 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_order_criteria_0_2[3];

#line 672 "query.c"
static const MR_DuArgLocn query__query__field_locns_order_criteria_0_2[3];

#line 675 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_order_criteria_0_2;

#line 678 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_order_criteria_0_0[2];

#line 681 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_order_criteria_0_1[1];

#line 684 "query.c"
static const MR_DuPtagLayout query__query__du_ptag_ordered_order_criteria_0[2];

#line 687 "query.c"
static const MR_DuFunctorDescPtr query__query__du_name_ordered_order_criteria_0[3];

#line 690 "query.c"
static const MR_Integer query__query__functor_number_map_order_criteria_0[3];

#line 693 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_port_fields_0_0;

#line 696 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_port_fields_0_1;

#line 699 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_port_fields_0[2];

#line 702 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_port_fields_0[2];

#line 705 "query.c"
static const MR_Integer query__query__functor_number_map_port_fields_0[2];

#line 708 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_preferences_0_0[12];

#line 711 "query.c"
static const MR_ConstString query__query__field_names_preferences_0_0[12];

#line 714 "query.c"
static const MR_DuArgLocn query__query__field_locns_preferences_0_0[12];

#line 717 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_preferences_0_0;

#line 720 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_preferences_0_0[1];

#line 723 "query.c"
static const MR_DuPtagLayout query__query__du_ptag_ordered_preferences_0[1];

#line 726 "query.c"
static const MR_DuFunctorDescPtr query__query__du_name_ordered_preferences_0[1];

#line 729 "query.c"
static const MR_Integer query__query__functor_number_map_preferences_0[1];

#line 732 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_preferences_indication_0_0[1];

#line 735 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_preferences_indication_0_0;

#line 738 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_preferences_indication_0_1;

#line 741 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_preferences_indication_0_2;

#line 744 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_preferences_indication_0_0[2];

#line 747 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_preferences_indication_0_1[1];

#line 750 "query.c"
static const MR_DuPtagLayout query__query__du_ptag_ordered_preferences_indication_0[2];

#line 753 "query.c"
static const MR_DuFunctorDescPtr query__query__du_name_ordered_preferences_indication_0[3];

#line 756 "query.c"
static const MR_Integer query__query__functor_number_map_preferences_indication_0[3];

#line 759 "query.c"
static const MR_Integer query__query__functor_number_map_resp_0[1];

#line 762 "query.c"
static const MR_NotagFunctorDesc query__query__notag_functor_desc_resp_0;

#line 765 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_summarize_ho_call_sites_0_0;

#line 768 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_summarize_ho_call_sites_0_1;

#line 771 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_summarize_ho_call_sites_0[2];

#line 774 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_summarize_ho_call_sites_0[2];

#line 777 "query.c"
static const MR_Integer query__query__functor_number_map_summarize_ho_call_sites_0[2];

#line 780 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_time_fields_0_0;

#line 783 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_time_fields_0_1;

#line 786 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_time_fields_0_2;

#line 789 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_time_fields_0_3;

#line 792 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_time_fields_0_4;

#line 795 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_time_fields_0_5;

#line 798 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_time_fields_0[6];

#line 801 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_time_fields_0[6];

#line 804 "query.c"
static const MR_Integer query__query__functor_number_map_time_fields_0[6];

#line 807 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_time_format_0_0;

#line 810 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_time_format_0_1;

#line 813 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_time_format_0_2;

#line 816 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_time_format_0[3];

#line 819 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_time_format_0[3];

#line 822 "query.c"
static const MR_Integer query__query__functor_number_map_time_format_0[3];

#line 825 "query.c"
static MR_bool MR_CALL 
query____Unify____alloc_fields_0_0_10001(
#line 828 "query.c"
  MR_Box query__wrapper_arg_1,
#line 830 "query.c"
  MR_Box query__wrapper_arg_2);

#line 833 "query.c"
static void MR_CALL 
query____Compare____alloc_fields_0_0_10001(
#line 836 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 838 "query.c"
  MR_Box query__wrapper_arg_2,
#line 840 "query.c"
  MR_Box query__wrapper_arg_3);

#line 843 "query.c"
static MR_bool MR_CALL 
query____Unify____box_tables_0_0_10001(
#line 846 "query.c"
  MR_Box query__wrapper_arg_1,
#line 848 "query.c"
  MR_Box query__wrapper_arg_2);

#line 851 "query.c"
static void MR_CALL 
query____Compare____box_tables_0_0_10001(
#line 854 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 856 "query.c"
  MR_Box query__wrapper_arg_2,
#line 858 "query.c"
  MR_Box query__wrapper_arg_3);

#line 861 "query.c"
static MR_bool MR_CALL 
query____Unify____caller_groups_0_0_10001(
#line 864 "query.c"
  MR_Box query__wrapper_arg_1,
#line 866 "query.c"
  MR_Box query__wrapper_arg_2);

#line 869 "query.c"
static void MR_CALL 
query____Compare____caller_groups_0_0_10001(
#line 872 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 874 "query.c"
  MR_Box query__wrapper_arg_2,
#line 876 "query.c"
  MR_Box query__wrapper_arg_3);

#line 879 "query.c"
static MR_bool MR_CALL 
query____Unify____callseqs_fields_0_0_10001(
#line 882 "query.c"
  MR_Box query__wrapper_arg_1,
#line 884 "query.c"
  MR_Box query__wrapper_arg_2);

#line 887 "query.c"
static void MR_CALL 
query____Compare____callseqs_fields_0_0_10001(
#line 890 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 892 "query.c"
  MR_Box query__wrapper_arg_2,
#line 894 "query.c"
  MR_Box query__wrapper_arg_3);

#line 897 "query.c"
static MR_bool MR_CALL 
query____Unify____cmd_0_0_10001(
#line 900 "query.c"
  MR_Box query__wrapper_arg_1,
#line 902 "query.c"
  MR_Box query__wrapper_arg_2);

#line 905 "query.c"
static void MR_CALL 
query____Compare____cmd_0_0_10001(
#line 908 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 910 "query.c"
  MR_Box query__wrapper_arg_2,
#line 912 "query.c"
  MR_Box query__wrapper_arg_3);

#line 915 "query.c"
static MR_bool MR_CALL 
query____Unify____colour_column_groups_0_0_10001(
#line 918 "query.c"
  MR_Box query__wrapper_arg_1,
#line 920 "query.c"
  MR_Box query__wrapper_arg_2);

#line 923 "query.c"
static void MR_CALL 
query____Compare____colour_column_groups_0_0_10001(
#line 926 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 928 "query.c"
  MR_Box query__wrapper_arg_2,
#line 930 "query.c"
  MR_Box query__wrapper_arg_3);

#line 933 "query.c"
static MR_bool MR_CALL 
query____Unify____contour_exclusion_0_0_10001(
#line 936 "query.c"
  MR_Box query__wrapper_arg_1,
#line 938 "query.c"
  MR_Box query__wrapper_arg_2);

#line 941 "query.c"
static void MR_CALL 
query____Compare____contour_exclusion_0_0_10001(
#line 944 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 946 "query.c"
  MR_Box query__wrapper_arg_2,
#line 948 "query.c"
  MR_Box query__wrapper_arg_3);

#line 951 "query.c"
static MR_bool MR_CALL 
query____Unify____cost_kind_0_0_10001(
#line 954 "query.c"
  MR_Box query__wrapper_arg_1,
#line 956 "query.c"
  MR_Box query__wrapper_arg_2);

#line 959 "query.c"
static void MR_CALL 
query____Compare____cost_kind_0_0_10001(
#line 962 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 964 "query.c"
  MR_Box query__wrapper_arg_2,
#line 966 "query.c"
  MR_Box query__wrapper_arg_3);

#line 969 "query.c"
static MR_bool MR_CALL 
query____Unify____deep_query_0_0_10001(
#line 972 "query.c"
  MR_Box query__wrapper_arg_1,
#line 974 "query.c"
  MR_Box query__wrapper_arg_2);

#line 977 "query.c"
static void MR_CALL 
query____Compare____deep_query_0_0_10001(
#line 980 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 982 "query.c"
  MR_Box query__wrapper_arg_2,
#line 984 "query.c"
  MR_Box query__wrapper_arg_3);

#line 987 "query.c"
static MR_bool MR_CALL 
query____Unify____descendants_meaningful_0_0_10001(
#line 990 "query.c"
  MR_Box query__wrapper_arg_1,
#line 992 "query.c"
  MR_Box query__wrapper_arg_2);

#line 995 "query.c"
static void MR_CALL 
query____Compare____descendants_meaningful_0_0_10001(
#line 998 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 1000 "query.c"
  MR_Box query__wrapper_arg_2,
#line 1002 "query.c"
  MR_Box query__wrapper_arg_3);

#line 1005 "query.c"
static MR_bool MR_CALL 
query____Unify____developer_mode_0_0_10001(
#line 1008 "query.c"
  MR_Box query__wrapper_arg_1,
#line 1010 "query.c"
  MR_Box query__wrapper_arg_2);

#line 1013 "query.c"
static void MR_CALL 
query____Compare____developer_mode_0_0_10001(
#line 1016 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 1018 "query.c"
  MR_Box query__wrapper_arg_2,
#line 1020 "query.c"
  MR_Box query__wrapper_arg_3);

#line 1023 "query.c"
static MR_bool MR_CALL 
query____Unify____display_limit_0_0_10001(
#line 1026 "query.c"
  MR_Box query__wrapper_arg_1,
#line 1028 "query.c"
  MR_Box query__wrapper_arg_2);

#line 1031 "query.c"
static void MR_CALL 
query____Compare____display_limit_0_0_10001(
#line 1034 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 1036 "query.c"
  MR_Box query__wrapper_arg_2,
#line 1038 "query.c"
  MR_Box query__wrapper_arg_3);

#line 1041 "query.c"
static MR_bool MR_CALL 
query____Unify____fields_0_0_10001(
#line 1044 "query.c"
  MR_Box query__wrapper_arg_1,
#line 1046 "query.c"
  MR_Box query__wrapper_arg_2);

#line 1049 "query.c"
static void MR_CALL 
query____Compare____fields_0_0_10001(
#line 1052 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 1054 "query.c"
  MR_Box query__wrapper_arg_2,
#line 1056 "query.c"
  MR_Box query__wrapper_arg_3);

#line 1059 "query.c"
static MR_bool MR_CALL 
query____Unify____inactive_items_0_0_10001(
#line 1062 "query.c"
  MR_Box query__wrapper_arg_1,
#line 1064 "query.c"
  MR_Box query__wrapper_arg_2);

#line 1067 "query.c"
static void MR_CALL 
query____Compare____inactive_items_0_0_10001(
#line 1070 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 1072 "query.c"
  MR_Box query__wrapper_arg_2,
#line 1074 "query.c"
  MR_Box query__wrapper_arg_3);

#line 1077 "query.c"
static MR_bool MR_CALL 
query____Unify____inactive_status_0_0_10001(
#line 1080 "query.c"
  MR_Box query__wrapper_arg_1,
#line 1082 "query.c"
  MR_Box query__wrapper_arg_2);

#line 1085 "query.c"
static void MR_CALL 
query____Compare____inactive_status_0_0_10001(
#line 1088 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 1090 "query.c"
  MR_Box query__wrapper_arg_2,
#line 1092 "query.c"
  MR_Box query__wrapper_arg_3);

#line 1095 "query.c"
static MR_bool MR_CALL 
query____Unify____include_descendants_0_0_10001(
#line 1098 "query.c"
  MR_Box query__wrapper_arg_1,
#line 1100 "query.c"
  MR_Box query__wrapper_arg_2);

#line 1103 "query.c"
static void MR_CALL 
query____Compare____include_descendants_0_0_10001(
#line 1106 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 1108 "query.c"
  MR_Box query__wrapper_arg_2,
#line 1110 "query.c"
  MR_Box query__wrapper_arg_3);

#line 1113 "query.c"
static MR_bool MR_CALL 
query____Unify____measurement_scope_0_0_10001(
#line 1116 "query.c"
  MR_Box query__wrapper_arg_1,
#line 1118 "query.c"
  MR_Box query__wrapper_arg_2);

#line 1121 "query.c"
static void MR_CALL 
query____Compare____measurement_scope_0_0_10001(
#line 1124 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 1126 "query.c"
  MR_Box query__wrapper_arg_2,
#line 1128 "query.c"
  MR_Box query__wrapper_arg_3);

#line 1131 "query.c"
static MR_bool MR_CALL 
query____Unify____memory_fields_0_0_10001(
#line 1134 "query.c"
  MR_Box query__wrapper_arg_1,
#line 1136 "query.c"
  MR_Box query__wrapper_arg_2);

#line 1139 "query.c"
static void MR_CALL 
query____Compare____memory_fields_0_0_10001(
#line 1142 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 1144 "query.c"
  MR_Box query__wrapper_arg_2,
#line 1146 "query.c"
  MR_Box query__wrapper_arg_3);

#line 1149 "query.c"
static MR_bool MR_CALL 
query____Unify____module_qual_0_0_10001(
#line 1152 "query.c"
  MR_Box query__wrapper_arg_1,
#line 1154 "query.c"
  MR_Box query__wrapper_arg_2);

#line 1157 "query.c"
static void MR_CALL 
query____Compare____module_qual_0_0_10001(
#line 1160 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 1162 "query.c"
  MR_Box query__wrapper_arg_2,
#line 1164 "query.c"
  MR_Box query__wrapper_arg_3);

#line 1167 "query.c"
static MR_bool MR_CALL 
query____Unify____order_criteria_0_0_10001(
#line 1170 "query.c"
  MR_Box query__wrapper_arg_1,
#line 1172 "query.c"
  MR_Box query__wrapper_arg_2);

#line 1175 "query.c"
static void MR_CALL 
query____Compare____order_criteria_0_0_10001(
#line 1178 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 1180 "query.c"
  MR_Box query__wrapper_arg_2,
#line 1182 "query.c"
  MR_Box query__wrapper_arg_3);

#line 1185 "query.c"
static MR_bool MR_CALL 
query____Unify____port_fields_0_0_10001(
#line 1188 "query.c"
  MR_Box query__wrapper_arg_1,
#line 1190 "query.c"
  MR_Box query__wrapper_arg_2);

#line 1193 "query.c"
static void MR_CALL 
query____Compare____port_fields_0_0_10001(
#line 1196 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 1198 "query.c"
  MR_Box query__wrapper_arg_2,
#line 1200 "query.c"
  MR_Box query__wrapper_arg_3);

#line 1203 "query.c"
static MR_bool MR_CALL 
query____Unify____preferences_0_0_10001(
#line 1206 "query.c"
  MR_Box query__wrapper_arg_1,
#line 1208 "query.c"
  MR_Box query__wrapper_arg_2);

#line 1211 "query.c"
static void MR_CALL 
query____Compare____preferences_0_0_10001(
#line 1214 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 1216 "query.c"
  MR_Box query__wrapper_arg_2,
#line 1218 "query.c"
  MR_Box query__wrapper_arg_3);

#line 1221 "query.c"
static MR_bool MR_CALL 
query____Unify____preferences_indication_0_0_10001(
#line 1224 "query.c"
  MR_Box query__wrapper_arg_1,
#line 1226 "query.c"
  MR_Box query__wrapper_arg_2);

#line 1229 "query.c"
static void MR_CALL 
query____Compare____preferences_indication_0_0_10001(
#line 1232 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 1234 "query.c"
  MR_Box query__wrapper_arg_2,
#line 1236 "query.c"
  MR_Box query__wrapper_arg_3);

#line 1239 "query.c"
static MR_bool MR_CALL 
query____Unify____resp_0_0_10001(
#line 1242 "query.c"
  MR_Box query__wrapper_arg_1,
#line 1244 "query.c"
  MR_Box query__wrapper_arg_2);

#line 1247 "query.c"
static void MR_CALL 
query____Compare____resp_0_0_10001(
#line 1250 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 1252 "query.c"
  MR_Box query__wrapper_arg_2,
#line 1254 "query.c"
  MR_Box query__wrapper_arg_3);

#line 1257 "query.c"
static MR_bool MR_CALL 
query____Unify____summarize_ho_call_sites_0_0_10001(
#line 1260 "query.c"
  MR_Box query__wrapper_arg_1,
#line 1262 "query.c"
  MR_Box query__wrapper_arg_2);

#line 1265 "query.c"
static void MR_CALL 
query____Compare____summarize_ho_call_sites_0_0_10001(
#line 1268 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 1270 "query.c"
  MR_Box query__wrapper_arg_2,
#line 1272 "query.c"
  MR_Box query__wrapper_arg_3);

#line 1275 "query.c"
static MR_bool MR_CALL 
query____Unify____time_fields_0_0_10001(
#line 1278 "query.c"
  MR_Box query__wrapper_arg_1,
#line 1280 "query.c"
  MR_Box query__wrapper_arg_2);

#line 1283 "query.c"
static void MR_CALL 
query____Compare____time_fields_0_0_10001(
#line 1286 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 1288 "query.c"
  MR_Box query__wrapper_arg_2,
#line 1290 "query.c"
  MR_Box query__wrapper_arg_3);

#line 1293 "query.c"
static MR_bool MR_CALL 
query____Unify____time_format_0_0_10001(
#line 1296 "query.c"
  MR_Box query__wrapper_arg_1,
#line 1298 "query.c"
  MR_Box query__wrapper_arg_2);

#line 1301 "query.c"
static void MR_CALL 
query____Compare____time_format_0_0_10001(
#line 1304 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 1306 "query.c"
  MR_Box query__wrapper_arg_2,
#line 1308 "query.c"
  MR_Box query__wrapper_arg_3);

#line 437 "query.m"
static /* sealed */ const MR_TableStepDesc query__table_input_steps_for_create_and_memoize_report_3_p_0[2];

#line 437 "query.m"
static /* sealed */ MR_TableStepStats query__table_call_step_stats_for_create_and_memoize_report_3_p_0[2];

#line 437 "query.m"
static /* sealed */ MR_TableStepStats query__table_prev_call_step_stats_for_create_and_memoize_report_3_p_0[2];

#line 437 "query.m"
static /* sealed */ MR_TableStepStats query__table_answer_step_stats_for_create_and_memoize_report_3_p_0[2];

#line 437 "query.m"
static /* sealed */ MR_TableStepStats query__table_prev_answer_step_stats_for_create_and_memoize_report_3_p_0[2];

#line 437 "query.m"
static /* sealed */ MR_ProcTableInfo query__table_info_for_create_and_memoize_report_3_p_0;

#line 1365 "query.m"
static MR_String MR_CALL 
query__cmd_str_call_site_dynamic_var_use_0_f_0(void);

#line 1362 "query.m"
static MR_String MR_CALL 
query__cmd_str_dump_raw_clique_0_f_0(void);

#line 1359 "query.m"
static MR_String MR_CALL 
query__cmd_str_dump_call_site_dynamic_0_f_0(void);

#line 1356 "query.m"
static MR_String MR_CALL 
query__cmd_str_dump_call_site_static_0_f_0(void);

#line 1353 "query.m"
static MR_String MR_CALL 
query__cmd_str_dump_proc_dynamic_0_f_0(void);

#line 1350 "query.m"
static MR_String MR_CALL 
query__cmd_str_dump_proc_static_0_f_0(void);

#line 1347 "query.m"
static MR_String MR_CALL 
query__cmd_str_dynamic_coverage_0_f_0(void);

#line 1344 "query.m"
static MR_String MR_CALL 
query__cmd_str_static_coverage_0_f_0(void);

#line 1341 "query.m"
static MR_String MR_CALL 
query__cmd_str_top_procs_0_f_0(void);

#line 1338 "query.m"
static MR_String MR_CALL 
query__cmd_str_module_rep_0_f_0(void);

#line 1335 "query.m"
static MR_String MR_CALL 
query__cmd_str_module_getter_setters_0_f_0(void);

#line 1332 "query.m"
static MR_String MR_CALL 
query__cmd_str_module_0_f_0(void);

#line 1329 "query.m"
static MR_String MR_CALL 
query__cmd_str_program_modules_0_f_0(void);

#line 1326 "query.m"
static MR_String MR_CALL 
query__cmd_str_proc_callers_0_f_0(void);

#line 1323 "query.m"
static MR_String MR_CALL 
query__cmd_str_proc_0_f_0(void);

#line 1320 "query.m"
static MR_String MR_CALL 
query__cmd_str_recursion_types_frequency_0_f_0(void);

#line 1317 "query.m"
static MR_String MR_CALL 
query__cmd_str_clique_recursive_costs_0_f_0(void);

#line 1314 "query.m"
static MR_String MR_CALL 
query__cmd_str_clique_0_f_0(void);

#line 1311 "query.m"
static MR_String MR_CALL 
query__cmd_str_root_0_f_0(void);

#line 1308 "query.m"
static MR_String MR_CALL 
query__cmd_str_menu_0_f_0(void);

#line 1305 "query.m"
static MR_String MR_CALL 
query__cmd_str_timeout_0_f_0(void);

#line 1302 "query.m"
static MR_String MR_CALL 
query__cmd_str_restart_0_f_0(void);

#line 1299 "query.m"
static MR_String MR_CALL 
query__cmd_str_quit_0_f_0(void);

#line 1285 "query.m"
static MR_String MR_CALL 
query__box_to_string_1_f_0(
#line 1285 "query.m"
  MR_Word query__Box_3);

#line 1273 "query.m"
static MR_String MR_CALL 
query__colour_scheme_to_string_1_f_0(
#line 1273 "query.m"
  MR_Word query__Scheme_3);

#line 1261 "query.m"
static MR_String MR_CALL 
query__developer_mode_to_string_1_f_0(
#line 1261 "query.m"
  MR_Word query__DevMode_3);

#line 1241 "query.m"
static MR_bool MR_CALL 
query__string_to_inactive_items_2_p_0(
#line 1241 "query.m"
  MR_String query__HeadVar__1_1,
#line 1241 "query.m"
  MR_Word * query__HeadVar__2_2);

#line 1235 "query.m"
static MR_String MR_CALL 
query__inactive_items_to_string_1_f_0(
#line 1235 "query.m"
  MR_Word query__Items_3);

#line 1221 "query.m"
static MR_String MR_CALL 
query__time_format_to_string_1_f_0(
#line 1221 "query.m"
  MR_Word query__HeadVar__1_1);

#line 1215 "query.m"
static MR_bool MR_CALL 
query__string_to_contour_exclusion_2_p_0(
#line 1215 "query.m"
  MR_String query__HeadVar__1_1,
#line 1215 "query.m"
  MR_Word * query__HeadVar__2_2);

#line 1209 "query.m"
static MR_String MR_CALL 
query__contour_exclusion_to_string_1_f_0(
#line 1209 "query.m"
  MR_Word query__Contour_3);

#line 1203 "query.m"
static MR_bool MR_CALL 
query__string_to_scope_2_p_0(
#line 1203 "query.m"
  MR_String query__HeadVar__1_1,
#line 1203 "query.m"
  MR_Word * query__HeadVar__2_2);

#line 1197 "query.m"
static MR_String MR_CALL 
query__scope_to_string_1_f_0(
#line 1197 "query.m"
  MR_Word query__Scope_3);

#line 1161 "query.m"
static MR_String MR_CALL 
query__order_criteria_to_string_1_f_0(
#line 1161 "query.m"
  MR_Word query__HeadVar__1_1);

#line 1149 "query.m"
static MR_String MR_CALL 
query__module_qual_to_string_1_f_0(
#line 1149 "query.m"
  MR_Word query__HeadVar__1_1);

#line 1138 "query.m"
static MR_String MR_CALL 
query__summarize_to_string_1_f_0(
#line 1138 "query.m"
  MR_Word query__HeadVar__1_1);

#line 1114 "query.m"
static MR_bool MR_CALL 
query__string_to_limit_2_p_0(
#line 1114 "query.m"
  MR_String query__LimitStr_3,
#line 1114 "query.m"
  MR_Word * query__Limit_4);

#line 1105 "query.m"
static MR_String MR_CALL 
query__limit_to_string_1_f_0(
#line 1105 "query.m"
  MR_Word query__HeadVar__1_1);

#line 1099 "query.m"
static MR_bool MR_CALL 
query__string_to_incl_desc_2_p_0(
#line 1099 "query.m"
  MR_String query__HeadVar__1_1,
#line 1099 "query.m"
  MR_Word * query__HeadVar__2_2);

#line 1093 "query.m"
static MR_String MR_CALL 
query__incl_desc_to_string_1_f_0(
#line 1093 "query.m"
  MR_Word query__InclDesc_3);

#line 1083 "query.m"
static MR_bool MR_CALL 
query__string_to_cost_kind_2_p_0(
#line 1083 "query.m"
  MR_String query__HeadVar__1_1,
#line 1083 "query.m"
  MR_Word * query__HeadVar__2_2);

#line 1077 "query.m"
static MR_String MR_CALL 
query__cost_kind_to_string_1_f_0(
#line 1077 "query.m"
  MR_Word query__CostKind_3);

#line 1069 "query.m"
static MR_bool MR_CALL 
query__string_to_caller_groups_2_p_0(
#line 1069 "query.m"
  MR_String query__HeadVar__1_1,
#line 1069 "query.m"
  MR_Word * query__HeadVar__2_2);

#line 1063 "query.m"
static MR_String MR_CALL 
query__caller_groups_to_string_1_f_0(
#line 1063 "query.m"
  MR_Word query__CallerGroups_3);

#line 1033 "query.m"
static MR_String MR_CALL 
query__fields_to_string_1_f_0(
#line 1033 "query.m"
  MR_Word query__HeadVar__1_1);

#line 666 "query.m"
static MR_String MR_CALL 
query__preferences_to_string_1_f_0(
#line 666 "query.m"
  MR_Word query__Pref_3);

#line 535 "query.m"
static MR_String MR_CALL 
query__cmd_to_string_1_f_0(
#line 535 "query.m"
  MR_Word query__Cmd_3);

#line 521 "query.m"
static MR_Char MR_CALL 
query__pref_separator_char_0_f_0(void);

#line 520 "query.m"
static MR_Char MR_CALL 
query__cmd_separator_char_0_f_0(void);

#line 437 "query.m"
static void MR_CALL 
query__create_and_memoize_report_3_p_0(
#line 437 "query.m"
  MR_Word query__Cmd_4,
#line 437 "query.m"
  MR_Word query__Deep_5,
#line 437 "query.m"
  MR_Word * query__Report_6);

#line 415 "query.m"
static void MR_CALL 
query__exec_6_p_0(
#line 415 "query.m"
  MR_Word query__Cmd_7,
#line 415 "query.m"
  MR_Word query__Prefs_8,
#line 415 "query.m"
  MR_Word query__Deep_9,
#line 415 "query.m"
  MR_String * query__HTMLStr_10);

#line 386 "query.m"
static void MR_CALL 
query__try_exec_6_p_0_1(
#line 386 "query.m"
  MR_Box query__closure_arg,
#line 386 "query.m"
  MR_Box * query__wrapper_arg_1,
#line 386 "query.m"
  MR_Box query__wrapper_arg_2,
#line 386 "query.m"
  MR_Box * query__wrapper_arg_3);


static /* final */ const MR_Box query_scalar_common_1[4][2];

static /* final */ const MR_Box query_scalar_common_2[16][1];

static /* final */ const MR_Box query_scalar_common_3[1][9];




static /* final */ const MR_Box query_scalar_common_1[4][2] = {
  /* row 0 */
  {
    ((MR_Box) (&mercury__maybe__maybe__type_ctor_info_maybe_1)),
    ((MR_Box) (&mercury__builtin__builtin__type_ctor_info_int_0))
  },
  /* row 1 */
  {
    ((MR_Box) (&mercury__maybe__maybe__type_ctor_info_maybe_1)),
    ((MR_Box) (&query__query__type_ctor_info_cmd_0))
  },
  /* row 2 */
  {
    ((MR_Box) (&mercury__maybe__maybe__type_ctor_info_maybe_1)),
    ((MR_Box) (&query__query__type_ctor_info_preferences_0))
  },
  /* row 3 */
  {
    ((MR_Box) (((MR_Integer) 1 | (((((MR_Integer) 5 << (MR_Integer) 1)) | (((((MR_Integer) 2 << (MR_Integer) 4)) | (((MR_Integer) 1 << (MR_Integer) 6))))))))),
    ((MR_Box) (MR_mkword(MR_mktag(1), &query_scalar_common_2[0])))
  },
};

static /* final */ const MR_Box query_scalar_common_2[16][1] = {
  /* row 0 */
  {
    ((MR_Box) ((MR_Integer) 0))
  },
  /* row 1 */
  {
    ((MR_Box) (MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 3))))
  },
  /* row 2 */
  {
    ((MR_Box) (MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 4))))
  },
  /* row 3 */
  {
    ((MR_Box) (MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 2))))
  },
  /* row 4 */
  {
    ((MR_Box) (MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 1))))
  },
  /* row 5 */
  {
    ((MR_Box) (MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))))
  },
  /* row 6 */
  {
    ((MR_Box) ((MR_Integer) 1))
  },
  /* row 7 */
  {
    ((MR_Box) ((MR_Integer) 5))
  },
  /* row 8 */
  {
    ((MR_Box) (((MR_Integer) 0 | (((((MR_Integer) 0 << (MR_Integer) 1)) | (((MR_Integer) 0 << (MR_Integer) 2)))))))
  },
  /* row 9 */
  {
    ((MR_Box) (((MR_Integer) 0 | (((((MR_Integer) 0 << (MR_Integer) 1)) | (((MR_Integer) 1 << (MR_Integer) 2)))))))
  },
  /* row 10 */
  {
    ((MR_Box) (((MR_Integer) 0 | (((((MR_Integer) 1 << (MR_Integer) 1)) | (((MR_Integer) 0 << (MR_Integer) 2)))))))
  },
  /* row 11 */
  {
    ((MR_Box) (((MR_Integer) 0 | (((((MR_Integer) 1 << (MR_Integer) 1)) | (((MR_Integer) 1 << (MR_Integer) 2)))))))
  },
  /* row 12 */
  {
    ((MR_Box) (((MR_Integer) 1 | (((((MR_Integer) 0 << (MR_Integer) 1)) | (((MR_Integer) 0 << (MR_Integer) 2)))))))
  },
  /* row 13 */
  {
    ((MR_Box) (((MR_Integer) 1 | (((((MR_Integer) 0 << (MR_Integer) 1)) | (((MR_Integer) 1 << (MR_Integer) 2)))))))
  },
  /* row 14 */
  {
    ((MR_Box) (((MR_Integer) 1 | (((((MR_Integer) 1 << (MR_Integer) 1)) | (((MR_Integer) 0 << (MR_Integer) 2)))))))
  },
  /* row 15 */
  {
    ((MR_Box) (((MR_Integer) 1 | (((((MR_Integer) 1 << (MR_Integer) 1)) | (((MR_Integer) 1 << (MR_Integer) 2)))))))
  },
};

static /* final */ const MR_Box query_scalar_common_3[1][9] = {
  /* row 0 */
  {
    NULL,
    ((MR_Box) (NULL)),
    ((MR_Box) (MR_Word) ((MR_Integer) 6)),
    ((MR_Box) (&query__query__type_ctor_info_cmd_0)),
    ((MR_Box) (&query__query__type_ctor_info_preferences_0)),
    ((MR_Box) (&profile__profile__type_ctor_info_deep_0)),
    ((MR_Box) (&mercury__builtin__builtin__type_ctor_info_string_0)),
    ((MR_Box) (&mercury__io__io__type_ctor_info_state_0)),
    ((MR_Box) (&mercury__io__io__type_ctor_info_state_0))
  },
};



#include "io.mh"
#include "io.mh"
#include "time.mh"
#include "string.mh"
#include "profile.mh"
#include "profile.mh"
#include "table_builtin.mh"
#include "table_builtin.mh"
#include "bitmap.mh"
#include "bitmap.mh"
#include "time.mh"
#include "time.mh"
#include "array.mh"
#include "array.mh"
#include "mdbcomp.rtti_access.mh"
#include "mdbcomp.rtti_access.mh"
#include "stm_builtin.mh"
#include "stm_builtin.mh"
#include "store.mh"
#include "store.mh"



#line 1761 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_alloc_fields_0_0 = {
  (MR_String) "no_alloc",
  (MR_Integer) 0
};

#line 1767 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_alloc_fields_0_1 = {
  (MR_String) "alloc",
  (MR_Integer) 1
};

#line 1773 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_alloc_fields_0_2 = {
  (MR_String) "alloc_and_percall",
  (MR_Integer) 2
};

#line 1779 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_alloc_fields_0[3] = {
  &query__query__enum_functor_desc_alloc_fields_0_0,
  &query__query__enum_functor_desc_alloc_fields_0_1,
  &query__query__enum_functor_desc_alloc_fields_0_2
};

#line 1786 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_alloc_fields_0[3] = {
  &query__query__enum_functor_desc_alloc_fields_0_1,
  &query__query__enum_functor_desc_alloc_fields_0_2,
  &query__query__enum_functor_desc_alloc_fields_0_0
};

#line 1793 "query.c"
static const MR_Integer query__query__functor_number_map_alloc_fields_0[3] = {
  (MR_Integer) 2,
  (MR_Integer) 0,
  (MR_Integer) 1
};

#line 1800 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_alloc_fields_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) -1,
  mercury__private_builtin__MR_TYPECTOR_REP_ENUM,
  ((MR_Box) (query____Unify____alloc_fields_0_0_10001)),
  ((MR_Box) (query____Compare____alloc_fields_0_0_10001)),
  (MR_String) "query",
  (MR_String) "alloc_fields",
  {
    query__query__enum_name_ordered_alloc_fields_0
  },
  {
    query__query__enum_value_ordered_alloc_fields_0
  },
  (MR_Integer) 3,
  (MR_Integer) 4,
  query__query__functor_number_map_alloc_fields_0
};

#line 1821 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_box_tables_0_0 = {
  (MR_String) "box_tables",
  (MR_Integer) 0
};

#line 1827 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_box_tables_0_1 = {
  (MR_String) "do_not_box_tables",
  (MR_Integer) 1
};

#line 1833 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_box_tables_0[2] = {
  &query__query__enum_functor_desc_box_tables_0_0,
  &query__query__enum_functor_desc_box_tables_0_1
};

#line 1839 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_box_tables_0[2] = {
  &query__query__enum_functor_desc_box_tables_0_0,
  &query__query__enum_functor_desc_box_tables_0_1
};

#line 1845 "query.c"
static const MR_Integer query__query__functor_number_map_box_tables_0[2] = {
  (MR_Integer) 0,
  (MR_Integer) 1
};

#line 1851 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_box_tables_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) -1,
  mercury__private_builtin__MR_TYPECTOR_REP_ENUM,
  ((MR_Box) (query____Unify____box_tables_0_0_10001)),
  ((MR_Box) (query____Compare____box_tables_0_0_10001)),
  (MR_String) "query",
  (MR_String) "box_tables",
  {
    query__query__enum_name_ordered_box_tables_0
  },
  {
    query__query__enum_value_ordered_box_tables_0
  },
  (MR_Integer) 2,
  (MR_Integer) 4,
  query__query__functor_number_map_box_tables_0
};

#line 1872 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_caller_groups_0_0 = {
  (MR_String) "group_by_call_site",
  (MR_Integer) 0
};

#line 1878 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_caller_groups_0_1 = {
  (MR_String) "group_by_proc",
  (MR_Integer) 1
};

#line 1884 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_caller_groups_0_2 = {
  (MR_String) "group_by_module",
  (MR_Integer) 2
};

#line 1890 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_caller_groups_0_3 = {
  (MR_String) "group_by_clique",
  (MR_Integer) 3
};

#line 1896 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_caller_groups_0[4] = {
  &query__query__enum_functor_desc_caller_groups_0_0,
  &query__query__enum_functor_desc_caller_groups_0_1,
  &query__query__enum_functor_desc_caller_groups_0_2,
  &query__query__enum_functor_desc_caller_groups_0_3
};

#line 1904 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_caller_groups_0[4] = {
  &query__query__enum_functor_desc_caller_groups_0_0,
  &query__query__enum_functor_desc_caller_groups_0_3,
  &query__query__enum_functor_desc_caller_groups_0_2,
  &query__query__enum_functor_desc_caller_groups_0_1
};

#line 1912 "query.c"
static const MR_Integer query__query__functor_number_map_caller_groups_0[4] = {
  (MR_Integer) 0,
  (MR_Integer) 3,
  (MR_Integer) 2,
  (MR_Integer) 1
};

#line 1920 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_caller_groups_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) -1,
  mercury__private_builtin__MR_TYPECTOR_REP_ENUM,
  ((MR_Box) (query____Unify____caller_groups_0_0_10001)),
  ((MR_Box) (query____Compare____caller_groups_0_0_10001)),
  (MR_String) "query",
  (MR_String) "caller_groups",
  {
    query__query__enum_name_ordered_caller_groups_0
  },
  {
    query__query__enum_value_ordered_caller_groups_0
  },
  (MR_Integer) 4,
  (MR_Integer) 4,
  query__query__functor_number_map_caller_groups_0
};

#line 1941 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_callseqs_fields_0_0 = {
  (MR_String) "no_callseqs",
  (MR_Integer) 0
};

#line 1947 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_callseqs_fields_0_1 = {
  (MR_String) "callseqs",
  (MR_Integer) 1
};

#line 1953 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_callseqs_fields_0_2 = {
  (MR_String) "callseqs_and_percall",
  (MR_Integer) 2
};

#line 1959 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_callseqs_fields_0[3] = {
  &query__query__enum_functor_desc_callseqs_fields_0_0,
  &query__query__enum_functor_desc_callseqs_fields_0_1,
  &query__query__enum_functor_desc_callseqs_fields_0_2
};

#line 1966 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_callseqs_fields_0[3] = {
  &query__query__enum_functor_desc_callseqs_fields_0_1,
  &query__query__enum_functor_desc_callseqs_fields_0_2,
  &query__query__enum_functor_desc_callseqs_fields_0_0
};

#line 1973 "query.c"
static const MR_Integer query__query__functor_number_map_callseqs_fields_0[3] = {
  (MR_Integer) 2,
  (MR_Integer) 0,
  (MR_Integer) 1
};

#line 1980 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_callseqs_fields_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) -1,
  mercury__private_builtin__MR_TYPECTOR_REP_ENUM,
  ((MR_Box) (query____Unify____callseqs_fields_0_0_10001)),
  ((MR_Box) (query____Compare____callseqs_fields_0_0_10001)),
  (MR_String) "query",
  (MR_String) "callseqs_fields",
  {
    query__query__enum_name_ordered_callseqs_fields_0
  },
  {
    query__query__enum_value_ordered_callseqs_fields_0
  },
  (MR_Integer) 3,
  (MR_Integer) 4,
  query__query__functor_number_map_callseqs_fields_0
};

#line 2001 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_0 = {
  (MR_String) "deep_cmd_quit",
  (MR_Integer) 0,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_LOCAL,
  (MR_Integer) 0,
  (MR_Integer) 0,
  (MR_Integer) 0,
  NULL,
  NULL,
  NULL,
  NULL
};

#line 2016 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_1 = {
  (MR_String) "deep_cmd_restart",
  (MR_Integer) 0,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_LOCAL,
  (MR_Integer) 0,
  (MR_Integer) 1,
  (MR_Integer) 1,
  NULL,
  NULL,
  NULL,
  NULL
};

#line 2031 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_2[1] = {
  (MR_PseudoTypeInfo) &mercury__builtin__builtin__type_ctor_info_int_0
};

#line 2036 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_2[1] = {
  (MR_String) "cmd_timeout_minutes"
};

#line 2041 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_2 = {
  (MR_String) "deep_cmd_timeout",
  (MR_Integer) 1,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_NONE,
  (MR_Integer) 1,
  (MR_Integer) -1,
  (MR_Integer) 2,
  query__query__field_types_cmd_0_2,
  query__query__field_names_cmd_0_2,
  NULL,
  NULL
};

#line 2056 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_3 = {
  (MR_String) "deep_cmd_menu",
  (MR_Integer) 0,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_LOCAL,
  (MR_Integer) 0,
  (MR_Integer) 2,
  (MR_Integer) 3,
  NULL,
  NULL,
  NULL,
  NULL
};

#line 2071 "query.c"
static const MR_FA_TypeInfo_Struct1 query__maybe__ti_maybe_1builtin__type_ctor_info_int_0 = {
  &mercury__maybe__maybe__type_ctor_info_maybe_1,
  {
    (MR_TypeInfo) &mercury__builtin__builtin__type_ctor_info_int_0
  }
};

#line 2079 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_4[1] = {
  (MR_PseudoTypeInfo) &query__maybe__ti_maybe_1builtin__type_ctor_info_int_0
};

#line 2084 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_4[1] = {
  (MR_String) "cmd_root_maybe_action"
};

#line 2089 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_4 = {
  (MR_String) "deep_cmd_root",
  (MR_Integer) 1,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_NONE,
  (MR_Integer) 2,
  (MR_Integer) -1,
  (MR_Integer) 4,
  query__query__field_types_cmd_0_4,
  query__query__field_names_cmd_0_4,
  NULL,
  NULL
};

#line 2104 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_5[1] = {
  (MR_PseudoTypeInfo) &profile__profile__type_ctor_info_clique_ptr_0
};

#line 2109 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_5[1] = {
  (MR_String) "cmd_clique_clique_id"
};

#line 2114 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_5 = {
  (MR_String) "deep_cmd_clique",
  (MR_Integer) 1,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_REMOTE,
  (MR_Integer) 3,
  (MR_Integer) 0,
  (MR_Integer) 5,
  query__query__field_types_cmd_0_5,
  query__query__field_names_cmd_0_5,
  NULL,
  NULL
};

#line 2129 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_6[1] = {
  (MR_PseudoTypeInfo) &profile__profile__type_ctor_info_clique_ptr_0
};

#line 2134 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_6[1] = {
  (MR_String) "cmd_crc_clique_id"
};

#line 2139 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_6 = {
  (MR_String) "deep_cmd_clique_recursive_costs",
  (MR_Integer) 1,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_REMOTE,
  (MR_Integer) 3,
  (MR_Integer) 1,
  (MR_Integer) 6,
  query__query__field_types_cmd_0_6,
  query__query__field_names_cmd_0_6,
  NULL,
  NULL
};

#line 2154 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_7 = {
  (MR_String) "deep_cmd_recursion_types_frequency",
  (MR_Integer) 0,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_LOCAL,
  (MR_Integer) 0,
  (MR_Integer) 3,
  (MR_Integer) 7,
  NULL,
  NULL,
  NULL,
  NULL
};

#line 2169 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_8[1] = {
  (MR_PseudoTypeInfo) &profile__profile__type_ctor_info_proc_static_ptr_0
};

#line 2174 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_8[1] = {
  (MR_String) "cmd_proc_proc_id"
};

#line 2179 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_8 = {
  (MR_String) "deep_cmd_proc",
  (MR_Integer) 1,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_REMOTE,
  (MR_Integer) 3,
  (MR_Integer) 2,
  (MR_Integer) 8,
  query__query__field_types_cmd_0_8,
  query__query__field_names_cmd_0_8,
  NULL,
  NULL
};

#line 2194 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_9[5] = {
  (MR_PseudoTypeInfo) &profile__profile__type_ctor_info_proc_static_ptr_0,
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_caller_groups_0,
  (MR_PseudoTypeInfo) &mercury__builtin__builtin__type_ctor_info_int_0,
  (MR_PseudoTypeInfo) &mercury__builtin__builtin__type_ctor_info_int_0,
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_contour_exclusion_0
};

#line 2203 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_9[5] = {
  (MR_String) "cmd_pc_proc_id",
  (MR_String) "cmd_pc_called_groups",
  (MR_String) "cmd_pc_bunch_number",
  (MR_String) "cmd_pc_callers_per_bunch",
  (MR_String) "cmd_pc_contour_exclusion"
};

#line 2212 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_9 = {
  (MR_String) "deep_cmd_proc_callers",
  (MR_Integer) 5,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_REMOTE,
  (MR_Integer) 3,
  (MR_Integer) 3,
  (MR_Integer) 9,
  query__query__field_types_cmd_0_9,
  query__query__field_names_cmd_0_9,
  NULL,
  NULL
};

#line 2227 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_10 = {
  (MR_String) "deep_cmd_program_modules",
  (MR_Integer) 0,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_LOCAL,
  (MR_Integer) 0,
  (MR_Integer) 4,
  (MR_Integer) 10,
  NULL,
  NULL,
  NULL,
  NULL
};

#line 2242 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_11[1] = {
  (MR_PseudoTypeInfo) &mercury__builtin__builtin__type_ctor_info_string_0
};

#line 2247 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_11[1] = {
  (MR_String) "cmd_module_module_name"
};

#line 2252 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_11 = {
  (MR_String) "deep_cmd_module",
  (MR_Integer) 1,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_REMOTE,
  (MR_Integer) 3,
  (MR_Integer) 4,
  (MR_Integer) 11,
  query__query__field_types_cmd_0_11,
  query__query__field_names_cmd_0_11,
  NULL,
  NULL
};

#line 2267 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_12[1] = {
  (MR_PseudoTypeInfo) &mercury__builtin__builtin__type_ctor_info_string_0
};

#line 2272 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_12[1] = {
  (MR_String) "cmd_mgs_module_name"
};

#line 2277 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_12 = {
  (MR_String) "deep_cmd_module_getter_setters",
  (MR_Integer) 1,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_REMOTE,
  (MR_Integer) 3,
  (MR_Integer) 5,
  (MR_Integer) 12,
  query__query__field_types_cmd_0_12,
  query__query__field_names_cmd_0_12,
  NULL,
  NULL
};

#line 2292 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_13[1] = {
  (MR_PseudoTypeInfo) &mercury__builtin__builtin__type_ctor_info_string_0
};

#line 2297 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_13[1] = {
  (MR_String) "cmd_mr_module_name"
};

#line 2302 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_13 = {
  (MR_String) "deep_cmd_module_rep",
  (MR_Integer) 1,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_REMOTE,
  (MR_Integer) 3,
  (MR_Integer) 6,
  (MR_Integer) 13,
  query__query__field_types_cmd_0_13,
  query__query__field_names_cmd_0_13,
  NULL,
  NULL
};

#line 2317 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_14[4] = {
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_display_limit_0,
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_cost_kind_0,
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_include_descendants_0,
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_measurement_scope_0
};

#line 2325 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_14[4] = {
  (MR_String) "cmd_tp_display_limit",
  (MR_String) "cmd_tp_sort_cost_kind",
  (MR_String) "cmd_tp_incl_desc",
  (MR_String) "cmd_tp_scope"
};

#line 2333 "query.c"
static const MR_DuArgLocn query__query__field_locns_cmd_0_14[4] = {
  {
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0
  },
  {
    (MR_Integer) 1,
    (MR_Integer) 0,
    (MR_Integer) 3
  },
  {
    (MR_Integer) 1,
    (MR_Integer) 3,
    (MR_Integer) 1
  },
  {
    (MR_Integer) 1,
    (MR_Integer) 4,
    (MR_Integer) 1
  }
};

#line 2357 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_14 = {
  (MR_String) "deep_cmd_top_procs",
  (MR_Integer) 4,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_REMOTE,
  (MR_Integer) 3,
  (MR_Integer) 7,
  (MR_Integer) 14,
  query__query__field_types_cmd_0_14,
  query__query__field_names_cmd_0_14,
  query__query__field_locns_cmd_0_14,
  NULL
};

#line 2372 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_15[1] = {
  (MR_PseudoTypeInfo) &profile__profile__type_ctor_info_proc_static_ptr_0
};

#line 2377 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_15[1] = {
  (MR_String) "cmd_static_coverage_ps"
};

#line 2382 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_15 = {
  (MR_String) "deep_cmd_static_procrep_coverage",
  (MR_Integer) 1,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_REMOTE,
  (MR_Integer) 3,
  (MR_Integer) 8,
  (MR_Integer) 15,
  query__query__field_types_cmd_0_15,
  query__query__field_names_cmd_0_15,
  NULL,
  NULL
};

#line 2397 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_16[1] = {
  (MR_PseudoTypeInfo) &profile__profile__type_ctor_info_proc_dynamic_ptr_0
};

#line 2402 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_16[1] = {
  (MR_String) "cmd_dynamic_coverage_pd"
};

#line 2407 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_16 = {
  (MR_String) "deep_cmd_dynamic_procrep_coverage",
  (MR_Integer) 1,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_REMOTE,
  (MR_Integer) 3,
  (MR_Integer) 9,
  (MR_Integer) 16,
  query__query__field_types_cmd_0_16,
  query__query__field_names_cmd_0_16,
  NULL,
  NULL
};

#line 2422 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_17[1] = {
  (MR_PseudoTypeInfo) &profile__profile__type_ctor_info_proc_static_ptr_0
};

#line 2427 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_17[1] = {
  (MR_String) "cmd_dps_id"
};

#line 2432 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_17 = {
  (MR_String) "deep_cmd_dump_proc_static",
  (MR_Integer) 1,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_REMOTE,
  (MR_Integer) 3,
  (MR_Integer) 10,
  (MR_Integer) 17,
  query__query__field_types_cmd_0_17,
  query__query__field_names_cmd_0_17,
  NULL,
  NULL
};

#line 2447 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_18[1] = {
  (MR_PseudoTypeInfo) &profile__profile__type_ctor_info_proc_dynamic_ptr_0
};

#line 2452 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_18[1] = {
  (MR_String) "cmd_dpd_id"
};

#line 2457 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_18 = {
  (MR_String) "deep_cmd_dump_proc_dynamic",
  (MR_Integer) 1,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_REMOTE,
  (MR_Integer) 3,
  (MR_Integer) 11,
  (MR_Integer) 18,
  query__query__field_types_cmd_0_18,
  query__query__field_names_cmd_0_18,
  NULL,
  NULL
};

#line 2472 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_19[1] = {
  (MR_PseudoTypeInfo) &profile__profile__type_ctor_info_call_site_static_ptr_0
};

#line 2477 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_19[1] = {
  (MR_String) "cmd_dcss_id"
};

#line 2482 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_19 = {
  (MR_String) "deep_cmd_dump_call_site_static",
  (MR_Integer) 1,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_REMOTE,
  (MR_Integer) 3,
  (MR_Integer) 12,
  (MR_Integer) 19,
  query__query__field_types_cmd_0_19,
  query__query__field_names_cmd_0_19,
  NULL,
  NULL
};

#line 2497 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_20[1] = {
  (MR_PseudoTypeInfo) &profile__profile__type_ctor_info_call_site_dynamic_ptr_0
};

#line 2502 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_20[1] = {
  (MR_String) "cmd_dcsd_id"
};

#line 2507 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_20 = {
  (MR_String) "deep_cmd_dump_call_site_dynamic",
  (MR_Integer) 1,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_REMOTE,
  (MR_Integer) 3,
  (MR_Integer) 13,
  (MR_Integer) 20,
  query__query__field_types_cmd_0_20,
  query__query__field_names_cmd_0_20,
  NULL,
  NULL
};

#line 2522 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_21[1] = {
  (MR_PseudoTypeInfo) &profile__profile__type_ctor_info_clique_ptr_0
};

#line 2527 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_21[1] = {
  (MR_String) "cmd_dcl_id"
};

#line 2532 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_21 = {
  (MR_String) "deep_cmd_dump_clique",
  (MR_Integer) 1,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_REMOTE,
  (MR_Integer) 3,
  (MR_Integer) 14,
  (MR_Integer) 21,
  query__query__field_types_cmd_0_21,
  query__query__field_names_cmd_0_21,
  NULL,
  NULL
};

#line 2547 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_cmd_0_22[1] = {
  (MR_PseudoTypeInfo) &profile__profile__type_ctor_info_call_site_dynamic_ptr_0
};

#line 2552 "query.c"
static const MR_ConstString query__query__field_names_cmd_0_22[1] = {
  (MR_String) "cmd_csdvu_id"
};

#line 2557 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_cmd_0_22 = {
  (MR_String) "deep_cmd_call_site_dynamic_var_use",
  (MR_Integer) 1,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_REMOTE,
  (MR_Integer) 3,
  (MR_Integer) 15,
  (MR_Integer) 22,
  query__query__field_types_cmd_0_22,
  query__query__field_names_cmd_0_22,
  NULL,
  NULL
};

#line 2572 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_cmd_0_0[5] = {
  &query__query__du_functor_desc_cmd_0_0,
  &query__query__du_functor_desc_cmd_0_1,
  &query__query__du_functor_desc_cmd_0_3,
  &query__query__du_functor_desc_cmd_0_7,
  &query__query__du_functor_desc_cmd_0_10
};

#line 2581 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_cmd_0_1[1] = {
  &query__query__du_functor_desc_cmd_0_2
};

#line 2586 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_cmd_0_2[1] = {
  &query__query__du_functor_desc_cmd_0_4
};

#line 2591 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_cmd_0_3[16] = {
  &query__query__du_functor_desc_cmd_0_5,
  &query__query__du_functor_desc_cmd_0_6,
  &query__query__du_functor_desc_cmd_0_8,
  &query__query__du_functor_desc_cmd_0_9,
  &query__query__du_functor_desc_cmd_0_11,
  &query__query__du_functor_desc_cmd_0_12,
  &query__query__du_functor_desc_cmd_0_13,
  &query__query__du_functor_desc_cmd_0_14,
  &query__query__du_functor_desc_cmd_0_15,
  &query__query__du_functor_desc_cmd_0_16,
  &query__query__du_functor_desc_cmd_0_17,
  &query__query__du_functor_desc_cmd_0_18,
  &query__query__du_functor_desc_cmd_0_19,
  &query__query__du_functor_desc_cmd_0_20,
  &query__query__du_functor_desc_cmd_0_21,
  &query__query__du_functor_desc_cmd_0_22
};

#line 2611 "query.c"
static const MR_DuPtagLayout query__query__du_ptag_ordered_cmd_0[4] = {
  {
    (MR_Integer) 5,
    mercury__private_builtin__MR_SECTAG_LOCAL,
    query__query__du_stag_ordered_cmd_0_0
  },
  {
    (MR_Integer) 1,
    mercury__private_builtin__MR_SECTAG_NONE,
    query__query__du_stag_ordered_cmd_0_1
  },
  {
    (MR_Integer) 1,
    mercury__private_builtin__MR_SECTAG_NONE,
    query__query__du_stag_ordered_cmd_0_2
  },
  {
    (MR_Integer) 16,
    mercury__private_builtin__MR_SECTAG_REMOTE,
    query__query__du_stag_ordered_cmd_0_3
  }
};

#line 2635 "query.c"
static const MR_DuFunctorDescPtr query__query__du_name_ordered_cmd_0[23] = {
  &query__query__du_functor_desc_cmd_0_22,
  &query__query__du_functor_desc_cmd_0_5,
  &query__query__du_functor_desc_cmd_0_6,
  &query__query__du_functor_desc_cmd_0_20,
  &query__query__du_functor_desc_cmd_0_19,
  &query__query__du_functor_desc_cmd_0_21,
  &query__query__du_functor_desc_cmd_0_18,
  &query__query__du_functor_desc_cmd_0_17,
  &query__query__du_functor_desc_cmd_0_16,
  &query__query__du_functor_desc_cmd_0_3,
  &query__query__du_functor_desc_cmd_0_11,
  &query__query__du_functor_desc_cmd_0_12,
  &query__query__du_functor_desc_cmd_0_13,
  &query__query__du_functor_desc_cmd_0_8,
  &query__query__du_functor_desc_cmd_0_9,
  &query__query__du_functor_desc_cmd_0_10,
  &query__query__du_functor_desc_cmd_0_0,
  &query__query__du_functor_desc_cmd_0_7,
  &query__query__du_functor_desc_cmd_0_1,
  &query__query__du_functor_desc_cmd_0_4,
  &query__query__du_functor_desc_cmd_0_15,
  &query__query__du_functor_desc_cmd_0_2,
  &query__query__du_functor_desc_cmd_0_14
};

#line 2662 "query.c"
static const MR_Integer query__query__functor_number_map_cmd_0[23] = {
  (MR_Integer) 16,
  (MR_Integer) 18,
  (MR_Integer) 21,
  (MR_Integer) 9,
  (MR_Integer) 19,
  (MR_Integer) 1,
  (MR_Integer) 2,
  (MR_Integer) 17,
  (MR_Integer) 13,
  (MR_Integer) 14,
  (MR_Integer) 15,
  (MR_Integer) 10,
  (MR_Integer) 11,
  (MR_Integer) 12,
  (MR_Integer) 22,
  (MR_Integer) 20,
  (MR_Integer) 8,
  (MR_Integer) 7,
  (MR_Integer) 6,
  (MR_Integer) 4,
  (MR_Integer) 3,
  (MR_Integer) 5,
  (MR_Integer) 0
};

#line 2689 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_cmd_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) 4,
  mercury__private_builtin__MR_TYPECTOR_REP_DU,
  ((MR_Box) (query____Unify____cmd_0_0_10001)),
  ((MR_Box) (query____Compare____cmd_0_0_10001)),
  (MR_String) "query",
  (MR_String) "cmd",
  {
    query__query__du_name_ordered_cmd_0
  },
  {
    query__query__du_ptag_ordered_cmd_0
  },
  (MR_Integer) 23,
  (MR_Integer) 4,
  query__query__functor_number_map_cmd_0
};

#line 2710 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_colour_column_groups_0_0 = {
  (MR_String) "colour_column_groups",
  (MR_Integer) 0
};

#line 2716 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_colour_column_groups_0_1 = {
  (MR_String) "do_not_colour_column_groups",
  (MR_Integer) 1
};

#line 2722 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_colour_column_groups_0[2] = {
  &query__query__enum_functor_desc_colour_column_groups_0_0,
  &query__query__enum_functor_desc_colour_column_groups_0_1
};

#line 2728 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_colour_column_groups_0[2] = {
  &query__query__enum_functor_desc_colour_column_groups_0_0,
  &query__query__enum_functor_desc_colour_column_groups_0_1
};

#line 2734 "query.c"
static const MR_Integer query__query__functor_number_map_colour_column_groups_0[2] = {
  (MR_Integer) 0,
  (MR_Integer) 1
};

#line 2740 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_colour_column_groups_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) -1,
  mercury__private_builtin__MR_TYPECTOR_REP_ENUM,
  ((MR_Box) (query____Unify____colour_column_groups_0_0_10001)),
  ((MR_Box) (query____Compare____colour_column_groups_0_0_10001)),
  (MR_String) "query",
  (MR_String) "colour_column_groups",
  {
    query__query__enum_name_ordered_colour_column_groups_0
  },
  {
    query__query__enum_value_ordered_colour_column_groups_0
  },
  (MR_Integer) 2,
  (MR_Integer) 4,
  query__query__functor_number_map_colour_column_groups_0
};

#line 2761 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_contour_exclusion_0_0 = {
  (MR_String) "apply_contour_exclusion",
  (MR_Integer) 0
};

#line 2767 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_contour_exclusion_0_1 = {
  (MR_String) "do_not_apply_contour_exclusion",
  (MR_Integer) 1
};

#line 2773 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_contour_exclusion_0[2] = {
  &query__query__enum_functor_desc_contour_exclusion_0_0,
  &query__query__enum_functor_desc_contour_exclusion_0_1
};

#line 2779 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_contour_exclusion_0[2] = {
  &query__query__enum_functor_desc_contour_exclusion_0_0,
  &query__query__enum_functor_desc_contour_exclusion_0_1
};

#line 2785 "query.c"
static const MR_Integer query__query__functor_number_map_contour_exclusion_0[2] = {
  (MR_Integer) 0,
  (MR_Integer) 1
};

#line 2791 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_contour_exclusion_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) -1,
  mercury__private_builtin__MR_TYPECTOR_REP_ENUM,
  ((MR_Box) (query____Unify____contour_exclusion_0_0_10001)),
  ((MR_Box) (query____Compare____contour_exclusion_0_0_10001)),
  (MR_String) "query",
  (MR_String) "contour_exclusion",
  {
    query__query__enum_name_ordered_contour_exclusion_0
  },
  {
    query__query__enum_value_ordered_contour_exclusion_0
  },
  (MR_Integer) 2,
  (MR_Integer) 4,
  query__query__functor_number_map_contour_exclusion_0
};

#line 2812 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_cost_kind_0_0 = {
  (MR_String) "cost_calls",
  (MR_Integer) 0
};

#line 2818 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_cost_kind_0_1 = {
  (MR_String) "cost_redos",
  (MR_Integer) 1
};

#line 2824 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_cost_kind_0_2 = {
  (MR_String) "cost_time",
  (MR_Integer) 2
};

#line 2830 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_cost_kind_0_3 = {
  (MR_String) "cost_callseqs",
  (MR_Integer) 3
};

#line 2836 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_cost_kind_0_4 = {
  (MR_String) "cost_allocs",
  (MR_Integer) 4
};

#line 2842 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_cost_kind_0_5 = {
  (MR_String) "cost_words",
  (MR_Integer) 5
};

#line 2848 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_cost_kind_0[6] = {
  &query__query__enum_functor_desc_cost_kind_0_0,
  &query__query__enum_functor_desc_cost_kind_0_1,
  &query__query__enum_functor_desc_cost_kind_0_2,
  &query__query__enum_functor_desc_cost_kind_0_3,
  &query__query__enum_functor_desc_cost_kind_0_4,
  &query__query__enum_functor_desc_cost_kind_0_5
};

#line 2858 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_cost_kind_0[6] = {
  &query__query__enum_functor_desc_cost_kind_0_4,
  &query__query__enum_functor_desc_cost_kind_0_0,
  &query__query__enum_functor_desc_cost_kind_0_3,
  &query__query__enum_functor_desc_cost_kind_0_1,
  &query__query__enum_functor_desc_cost_kind_0_2,
  &query__query__enum_functor_desc_cost_kind_0_5
};

#line 2868 "query.c"
static const MR_Integer query__query__functor_number_map_cost_kind_0[6] = {
  (MR_Integer) 1,
  (MR_Integer) 3,
  (MR_Integer) 4,
  (MR_Integer) 2,
  (MR_Integer) 0,
  (MR_Integer) 5
};

#line 2878 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_cost_kind_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) -1,
  mercury__private_builtin__MR_TYPECTOR_REP_ENUM,
  ((MR_Box) (query____Unify____cost_kind_0_0_10001)),
  ((MR_Box) (query____Compare____cost_kind_0_0_10001)),
  (MR_String) "query",
  (MR_String) "cost_kind",
  {
    query__query__enum_name_ordered_cost_kind_0
  },
  {
    query__query__enum_value_ordered_cost_kind_0
  },
  (MR_Integer) 6,
  (MR_Integer) 4,
  query__query__functor_number_map_cost_kind_0
};

#line 2899 "query.c"
static const MR_FA_TypeInfo_Struct1 query__maybe__ti_maybe_1query__type_ctor_info_cmd_0 = {
  &mercury__maybe__maybe__type_ctor_info_maybe_1,
  {
    (MR_TypeInfo) &query__query__type_ctor_info_cmd_0
  }
};

#line 2907 "query.c"
static const MR_FA_TypeInfo_Struct1 query__maybe__ti_maybe_1query__type_ctor_info_preferences_0 = {
  &mercury__maybe__maybe__type_ctor_info_maybe_1,
  {
    (MR_TypeInfo) &query__query__type_ctor_info_preferences_0
  }
};

#line 2915 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_deep_query_0_0[3] = {
  (MR_PseudoTypeInfo) &query__maybe__ti_maybe_1query__type_ctor_info_cmd_0,
  (MR_PseudoTypeInfo) &mercury__builtin__builtin__type_ctor_info_string_0,
  (MR_PseudoTypeInfo) &query__maybe__ti_maybe_1query__type_ctor_info_preferences_0
};

#line 2922 "query.c"
static const MR_ConstString query__query__field_names_deep_query_0_0[3] = {
  (MR_String) "maybe_cmd",
  (MR_String) "deep_file_name",
  (MR_String) "maybe_prefs"
};

#line 2929 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_deep_query_0_0 = {
  (MR_String) "deep_query",
  (MR_Integer) 3,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_NONE,
  (MR_Integer) 0,
  (MR_Integer) -1,
  (MR_Integer) 0,
  query__query__field_types_deep_query_0_0,
  query__query__field_names_deep_query_0_0,
  NULL,
  NULL
};

#line 2944 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_deep_query_0_0[1] = {
  &query__query__du_functor_desc_deep_query_0_0
};

#line 2949 "query.c"
static const MR_DuPtagLayout query__query__du_ptag_ordered_deep_query_0[1] = {
  {
    (MR_Integer) 1,
    mercury__private_builtin__MR_SECTAG_NONE,
    query__query__du_stag_ordered_deep_query_0_0
  }
};

#line 2958 "query.c"
static const MR_DuFunctorDescPtr query__query__du_name_ordered_deep_query_0[1] = {
  &query__query__du_functor_desc_deep_query_0_0
};

#line 2963 "query.c"
static const MR_Integer query__query__functor_number_map_deep_query_0[1] = {
  (MR_Integer) 0
};

#line 2968 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_deep_query_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) 1,
  mercury__private_builtin__MR_TYPECTOR_REP_DU,
  ((MR_Box) (query____Unify____deep_query_0_0_10001)),
  ((MR_Box) (query____Compare____deep_query_0_0_10001)),
  (MR_String) "query",
  (MR_String) "deep_query",
  {
    query__query__du_name_ordered_deep_query_0
  },
  {
    query__query__du_ptag_ordered_deep_query_0
  },
  (MR_Integer) 1,
  (MR_Integer) 4,
  query__query__functor_number_map_deep_query_0
};

#line 2989 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_descendants_meaningful_0_0 = {
  (MR_String) "descendants_meaningful",
  (MR_Integer) 0
};

#line 2995 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_descendants_meaningful_0_1 = {
  (MR_String) "descendants_not_meaningful",
  (MR_Integer) 1
};

#line 3001 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_descendants_meaningful_0[2] = {
  &query__query__enum_functor_desc_descendants_meaningful_0_0,
  &query__query__enum_functor_desc_descendants_meaningful_0_1
};

#line 3007 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_descendants_meaningful_0[2] = {
  &query__query__enum_functor_desc_descendants_meaningful_0_0,
  &query__query__enum_functor_desc_descendants_meaningful_0_1
};

#line 3013 "query.c"
static const MR_Integer query__query__functor_number_map_descendants_meaningful_0[2] = {
  (MR_Integer) 0,
  (MR_Integer) 1
};

#line 3019 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_descendants_meaningful_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) -1,
  mercury__private_builtin__MR_TYPECTOR_REP_ENUM,
  ((MR_Box) (query____Unify____descendants_meaningful_0_0_10001)),
  ((MR_Box) (query____Compare____descendants_meaningful_0_0_10001)),
  (MR_String) "query",
  (MR_String) "descendants_meaningful",
  {
    query__query__enum_name_ordered_descendants_meaningful_0
  },
  {
    query__query__enum_value_ordered_descendants_meaningful_0
  },
  (MR_Integer) 2,
  (MR_Integer) 4,
  query__query__functor_number_map_descendants_meaningful_0
};

#line 3040 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_developer_mode_0_0 = {
  (MR_String) "developer_options_visible",
  (MR_Integer) 0
};

#line 3046 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_developer_mode_0_1 = {
  (MR_String) "developer_options_invisible",
  (MR_Integer) 1
};

#line 3052 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_developer_mode_0[2] = {
  &query__query__enum_functor_desc_developer_mode_0_0,
  &query__query__enum_functor_desc_developer_mode_0_1
};

#line 3058 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_developer_mode_0[2] = {
  &query__query__enum_functor_desc_developer_mode_0_1,
  &query__query__enum_functor_desc_developer_mode_0_0
};

#line 3064 "query.c"
static const MR_Integer query__query__functor_number_map_developer_mode_0[2] = {
  (MR_Integer) 1,
  (MR_Integer) 0
};

#line 3070 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_developer_mode_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) -1,
  mercury__private_builtin__MR_TYPECTOR_REP_ENUM,
  ((MR_Box) (query____Unify____developer_mode_0_0_10001)),
  ((MR_Box) (query____Compare____developer_mode_0_0_10001)),
  (MR_String) "query",
  (MR_String) "developer_mode",
  {
    query__query__enum_name_ordered_developer_mode_0
  },
  {
    query__query__enum_value_ordered_developer_mode_0
  },
  (MR_Integer) 2,
  (MR_Integer) 4,
  query__query__functor_number_map_developer_mode_0
};

#line 3091 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_display_limit_0_0[2] = {
  (MR_PseudoTypeInfo) &mercury__builtin__builtin__type_ctor_info_int_0,
  (MR_PseudoTypeInfo) &mercury__builtin__builtin__type_ctor_info_int_0
};

#line 3097 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_display_limit_0_0 = {
  (MR_String) "rank_range",
  (MR_Integer) 2,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_NONE,
  (MR_Integer) 0,
  (MR_Integer) -1,
  (MR_Integer) 0,
  query__query__field_types_display_limit_0_0,
  NULL,
  NULL,
  NULL
};

#line 3112 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_display_limit_0_1[1] = {
  (MR_PseudoTypeInfo) &mercury__builtin__builtin__type_ctor_info_float_0
};

#line 3117 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_display_limit_0_1 = {
  (MR_String) "threshold_percent",
  (MR_Integer) 1,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_NONE,
  (MR_Integer) 1,
  (MR_Integer) -1,
  (MR_Integer) 1,
  query__query__field_types_display_limit_0_1,
  NULL,
  NULL,
  NULL
};

#line 3132 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_display_limit_0_2[1] = {
  (MR_PseudoTypeInfo) &mercury__builtin__builtin__type_ctor_info_float_0
};

#line 3137 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_display_limit_0_2 = {
  (MR_String) "threshold_value",
  (MR_Integer) 1,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_NONE,
  (MR_Integer) 2,
  (MR_Integer) -1,
  (MR_Integer) 2,
  query__query__field_types_display_limit_0_2,
  NULL,
  NULL,
  NULL
};

#line 3152 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_display_limit_0_0[1] = {
  &query__query__du_functor_desc_display_limit_0_0
};

#line 3157 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_display_limit_0_1[1] = {
  &query__query__du_functor_desc_display_limit_0_1
};

#line 3162 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_display_limit_0_2[1] = {
  &query__query__du_functor_desc_display_limit_0_2
};

#line 3167 "query.c"
static const MR_DuPtagLayout query__query__du_ptag_ordered_display_limit_0[3] = {
  {
    (MR_Integer) 1,
    mercury__private_builtin__MR_SECTAG_NONE,
    query__query__du_stag_ordered_display_limit_0_0
  },
  {
    (MR_Integer) 1,
    mercury__private_builtin__MR_SECTAG_NONE,
    query__query__du_stag_ordered_display_limit_0_1
  },
  {
    (MR_Integer) 1,
    mercury__private_builtin__MR_SECTAG_NONE,
    query__query__du_stag_ordered_display_limit_0_2
  }
};

#line 3186 "query.c"
static const MR_DuFunctorDescPtr query__query__du_name_ordered_display_limit_0[3] = {
  &query__query__du_functor_desc_display_limit_0_0,
  &query__query__du_functor_desc_display_limit_0_1,
  &query__query__du_functor_desc_display_limit_0_2
};

#line 3193 "query.c"
static const MR_Integer query__query__functor_number_map_display_limit_0[3] = {
  (MR_Integer) 0,
  (MR_Integer) 1,
  (MR_Integer) 2
};

#line 3200 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_display_limit_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) 3,
  mercury__private_builtin__MR_TYPECTOR_REP_DU,
  ((MR_Box) (query____Unify____display_limit_0_0_10001)),
  ((MR_Box) (query____Compare____display_limit_0_0_10001)),
  (MR_String) "query",
  (MR_String) "display_limit",
  {
    query__query__du_name_ordered_display_limit_0
  },
  {
    query__query__du_ptag_ordered_display_limit_0
  },
  (MR_Integer) 3,
  (MR_Integer) 4,
  query__query__functor_number_map_display_limit_0
};

#line 3221 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_fields_0_0[5] = {
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_port_fields_0,
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_time_fields_0,
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_callseqs_fields_0,
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_alloc_fields_0,
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_memory_fields_0
};

#line 3230 "query.c"
static const MR_ConstString query__query__field_names_fields_0_0[5] = {
  (MR_String) "port_fields",
  (MR_String) "time_fields",
  (MR_String) "callseqs_fields",
  (MR_String) "alloc_fields",
  (MR_String) "memory_fields"
};

#line 3239 "query.c"
static const MR_DuArgLocn query__query__field_locns_fields_0_0[5] = {
  {
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 1
  },
  {
    (MR_Integer) 0,
    (MR_Integer) 1,
    (MR_Integer) 3
  },
  {
    (MR_Integer) 0,
    (MR_Integer) 4,
    (MR_Integer) 2
  },
  {
    (MR_Integer) 0,
    (MR_Integer) 6,
    (MR_Integer) 2
  },
  {
    (MR_Integer) 1,
    (MR_Integer) 0,
    (MR_Integer) 0
  }
};

#line 3268 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_fields_0_0 = {
  (MR_String) "fields",
  (MR_Integer) 5,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_NONE,
  (MR_Integer) 0,
  (MR_Integer) -1,
  (MR_Integer) 0,
  query__query__field_types_fields_0_0,
  query__query__field_names_fields_0_0,
  query__query__field_locns_fields_0_0,
  NULL
};

#line 3283 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_fields_0_0[1] = {
  &query__query__du_functor_desc_fields_0_0
};

#line 3288 "query.c"
static const MR_DuPtagLayout query__query__du_ptag_ordered_fields_0[1] = {
  {
    (MR_Integer) 1,
    mercury__private_builtin__MR_SECTAG_NONE,
    query__query__du_stag_ordered_fields_0_0
  }
};

#line 3297 "query.c"
static const MR_DuFunctorDescPtr query__query__du_name_ordered_fields_0[1] = {
  &query__query__du_functor_desc_fields_0_0
};

#line 3302 "query.c"
static const MR_Integer query__query__functor_number_map_fields_0[1] = {
  (MR_Integer) 0
};

#line 3307 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_fields_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) 1,
  mercury__private_builtin__MR_TYPECTOR_REP_DU,
  ((MR_Box) (query____Unify____fields_0_0_10001)),
  ((MR_Box) (query____Compare____fields_0_0_10001)),
  (MR_String) "query",
  (MR_String) "fields",
  {
    query__query__du_name_ordered_fields_0
  },
  {
    query__query__du_ptag_ordered_fields_0
  },
  (MR_Integer) 1,
  (MR_Integer) 4,
  query__query__functor_number_map_fields_0
};

#line 3328 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_inactive_items_0_0[3] = {
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_inactive_status_0,
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_inactive_status_0,
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_inactive_status_0
};

#line 3335 "query.c"
static const MR_ConstString query__query__field_names_inactive_items_0_0[3] = {
  (MR_String) "inactive_call_sites",
  (MR_String) "inactive_procs",
  (MR_String) "inactive_modules"
};

#line 3342 "query.c"
static const MR_DuArgLocn query__query__field_locns_inactive_items_0_0[3] = {
  {
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 1
  },
  {
    (MR_Integer) 0,
    (MR_Integer) 1,
    (MR_Integer) 1
  },
  {
    (MR_Integer) 0,
    (MR_Integer) 2,
    (MR_Integer) 1
  }
};

#line 3361 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_inactive_items_0_0 = {
  (MR_String) "inactive_items",
  (MR_Integer) 3,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_NONE,
  (MR_Integer) 0,
  (MR_Integer) -1,
  (MR_Integer) 0,
  query__query__field_types_inactive_items_0_0,
  query__query__field_names_inactive_items_0_0,
  query__query__field_locns_inactive_items_0_0,
  NULL
};

#line 3376 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_inactive_items_0_0[1] = {
  &query__query__du_functor_desc_inactive_items_0_0
};

#line 3381 "query.c"
static const MR_DuPtagLayout query__query__du_ptag_ordered_inactive_items_0[1] = {
  {
    (MR_Integer) 1,
    mercury__private_builtin__MR_SECTAG_NONE,
    query__query__du_stag_ordered_inactive_items_0_0
  }
};

#line 3390 "query.c"
static const MR_DuFunctorDescPtr query__query__du_name_ordered_inactive_items_0[1] = {
  &query__query__du_functor_desc_inactive_items_0_0
};

#line 3395 "query.c"
static const MR_Integer query__query__functor_number_map_inactive_items_0[1] = {
  (MR_Integer) 0
};

#line 3400 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_inactive_items_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) 1,
  mercury__private_builtin__MR_TYPECTOR_REP_DU,
  ((MR_Box) (query____Unify____inactive_items_0_0_10001)),
  ((MR_Box) (query____Compare____inactive_items_0_0_10001)),
  (MR_String) "query",
  (MR_String) "inactive_items",
  {
    query__query__du_name_ordered_inactive_items_0
  },
  {
    query__query__du_ptag_ordered_inactive_items_0
  },
  (MR_Integer) 1,
  (MR_Integer) 4,
  query__query__functor_number_map_inactive_items_0
};

#line 3421 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_inactive_status_0_0 = {
  (MR_String) "inactive_hide",
  (MR_Integer) 0
};

#line 3427 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_inactive_status_0_1 = {
  (MR_String) "inactive_show",
  (MR_Integer) 1
};

#line 3433 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_inactive_status_0[2] = {
  &query__query__enum_functor_desc_inactive_status_0_0,
  &query__query__enum_functor_desc_inactive_status_0_1
};

#line 3439 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_inactive_status_0[2] = {
  &query__query__enum_functor_desc_inactive_status_0_0,
  &query__query__enum_functor_desc_inactive_status_0_1
};

#line 3445 "query.c"
static const MR_Integer query__query__functor_number_map_inactive_status_0[2] = {
  (MR_Integer) 0,
  (MR_Integer) 1
};

#line 3451 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_inactive_status_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) -1,
  mercury__private_builtin__MR_TYPECTOR_REP_ENUM,
  ((MR_Box) (query____Unify____inactive_status_0_0_10001)),
  ((MR_Box) (query____Compare____inactive_status_0_0_10001)),
  (MR_String) "query",
  (MR_String) "inactive_status",
  {
    query__query__enum_name_ordered_inactive_status_0
  },
  {
    query__query__enum_value_ordered_inactive_status_0
  },
  (MR_Integer) 2,
  (MR_Integer) 4,
  query__query__functor_number_map_inactive_status_0
};

#line 3472 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_include_descendants_0_0 = {
  (MR_String) "self",
  (MR_Integer) 0
};

#line 3478 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_include_descendants_0_1 = {
  (MR_String) "self_and_desc",
  (MR_Integer) 1
};

#line 3484 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_include_descendants_0[2] = {
  &query__query__enum_functor_desc_include_descendants_0_0,
  &query__query__enum_functor_desc_include_descendants_0_1
};

#line 3490 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_include_descendants_0[2] = {
  &query__query__enum_functor_desc_include_descendants_0_0,
  &query__query__enum_functor_desc_include_descendants_0_1
};

#line 3496 "query.c"
static const MR_Integer query__query__functor_number_map_include_descendants_0[2] = {
  (MR_Integer) 0,
  (MR_Integer) 1
};

#line 3502 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_include_descendants_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) -1,
  mercury__private_builtin__MR_TYPECTOR_REP_ENUM,
  ((MR_Box) (query____Unify____include_descendants_0_0_10001)),
  ((MR_Box) (query____Compare____include_descendants_0_0_10001)),
  (MR_String) "query",
  (MR_String) "include_descendants",
  {
    query__query__enum_name_ordered_include_descendants_0
  },
  {
    query__query__enum_value_ordered_include_descendants_0
  },
  (MR_Integer) 2,
  (MR_Integer) 4,
  query__query__functor_number_map_include_descendants_0
};

#line 3523 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_measurement_scope_0_0 = {
  (MR_String) "per_call",
  (MR_Integer) 0
};

#line 3529 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_measurement_scope_0_1 = {
  (MR_String) "overall",
  (MR_Integer) 1
};

#line 3535 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_measurement_scope_0[2] = {
  &query__query__enum_functor_desc_measurement_scope_0_0,
  &query__query__enum_functor_desc_measurement_scope_0_1
};

#line 3541 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_measurement_scope_0[2] = {
  &query__query__enum_functor_desc_measurement_scope_0_1,
  &query__query__enum_functor_desc_measurement_scope_0_0
};

#line 3547 "query.c"
static const MR_Integer query__query__functor_number_map_measurement_scope_0[2] = {
  (MR_Integer) 1,
  (MR_Integer) 0
};

#line 3553 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_measurement_scope_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) -1,
  mercury__private_builtin__MR_TYPECTOR_REP_ENUM,
  ((MR_Box) (query____Unify____measurement_scope_0_0_10001)),
  ((MR_Box) (query____Compare____measurement_scope_0_0_10001)),
  (MR_String) "query",
  (MR_String) "measurement_scope",
  {
    query__query__enum_name_ordered_measurement_scope_0
  },
  {
    query__query__enum_value_ordered_measurement_scope_0
  },
  (MR_Integer) 2,
  (MR_Integer) 4,
  query__query__functor_number_map_measurement_scope_0
};

#line 3574 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_memory_fields_0_0 = {
  (MR_String) "no_memory",
  (MR_Integer) 0,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_LOCAL,
  (MR_Integer) 0,
  (MR_Integer) 0,
  (MR_Integer) 0,
  NULL,
  NULL,
  NULL,
  NULL
};

#line 3589 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_memory_fields_0_1[1] = {
  (MR_PseudoTypeInfo) &measurement_units__measurement_units__type_ctor_info_memory_units_0
};

#line 3594 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_memory_fields_0_1 = {
  (MR_String) "memory",
  (MR_Integer) 1,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_NONE,
  (MR_Integer) 1,
  (MR_Integer) -1,
  (MR_Integer) 1,
  query__query__field_types_memory_fields_0_1,
  NULL,
  NULL,
  NULL
};

#line 3609 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_memory_fields_0_2[1] = {
  (MR_PseudoTypeInfo) &measurement_units__measurement_units__type_ctor_info_memory_units_0
};

#line 3614 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_memory_fields_0_2 = {
  (MR_String) "memory_and_percall",
  (MR_Integer) 1,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_NONE,
  (MR_Integer) 2,
  (MR_Integer) -1,
  (MR_Integer) 2,
  query__query__field_types_memory_fields_0_2,
  NULL,
  NULL,
  NULL
};

#line 3629 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_memory_fields_0_0[1] = {
  &query__query__du_functor_desc_memory_fields_0_0
};

#line 3634 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_memory_fields_0_1[1] = {
  &query__query__du_functor_desc_memory_fields_0_1
};

#line 3639 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_memory_fields_0_2[1] = {
  &query__query__du_functor_desc_memory_fields_0_2
};

#line 3644 "query.c"
static const MR_DuPtagLayout query__query__du_ptag_ordered_memory_fields_0[3] = {
  {
    (MR_Integer) 1,
    mercury__private_builtin__MR_SECTAG_LOCAL,
    query__query__du_stag_ordered_memory_fields_0_0
  },
  {
    (MR_Integer) 1,
    mercury__private_builtin__MR_SECTAG_NONE,
    query__query__du_stag_ordered_memory_fields_0_1
  },
  {
    (MR_Integer) 1,
    mercury__private_builtin__MR_SECTAG_NONE,
    query__query__du_stag_ordered_memory_fields_0_2
  }
};

#line 3663 "query.c"
static const MR_DuFunctorDescPtr query__query__du_name_ordered_memory_fields_0[3] = {
  &query__query__du_functor_desc_memory_fields_0_1,
  &query__query__du_functor_desc_memory_fields_0_2,
  &query__query__du_functor_desc_memory_fields_0_0
};

#line 3670 "query.c"
static const MR_Integer query__query__functor_number_map_memory_fields_0[3] = {
  (MR_Integer) 2,
  (MR_Integer) 0,
  (MR_Integer) 1
};

#line 3677 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_memory_fields_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) 3,
  mercury__private_builtin__MR_TYPECTOR_REP_DU,
  ((MR_Box) (query____Unify____memory_fields_0_0_10001)),
  ((MR_Box) (query____Compare____memory_fields_0_0_10001)),
  (MR_String) "query",
  (MR_String) "memory_fields",
  {
    query__query__du_name_ordered_memory_fields_0
  },
  {
    query__query__du_ptag_ordered_memory_fields_0
  },
  (MR_Integer) 3,
  (MR_Integer) 4,
  query__query__functor_number_map_memory_fields_0
};

#line 3698 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_module_qual_0_0 = {
  (MR_String) "module_qual_always",
  (MR_Integer) 0
};

#line 3704 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_module_qual_0_1 = {
  (MR_String) "module_qual_when_diff",
  (MR_Integer) 1
};

#line 3710 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_module_qual_0_2 = {
  (MR_String) "module_qual_never",
  (MR_Integer) 2
};

#line 3716 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_module_qual_0[3] = {
  &query__query__enum_functor_desc_module_qual_0_0,
  &query__query__enum_functor_desc_module_qual_0_1,
  &query__query__enum_functor_desc_module_qual_0_2
};

#line 3723 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_module_qual_0[3] = {
  &query__query__enum_functor_desc_module_qual_0_0,
  &query__query__enum_functor_desc_module_qual_0_2,
  &query__query__enum_functor_desc_module_qual_0_1
};

#line 3730 "query.c"
static const MR_Integer query__query__functor_number_map_module_qual_0[3] = {
  (MR_Integer) 0,
  (MR_Integer) 2,
  (MR_Integer) 1
};

#line 3737 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_module_qual_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) -1,
  mercury__private_builtin__MR_TYPECTOR_REP_ENUM,
  ((MR_Box) (query____Unify____module_qual_0_0_10001)),
  ((MR_Box) (query____Compare____module_qual_0_0_10001)),
  (MR_String) "query",
  (MR_String) "module_qual",
  {
    query__query__enum_name_ordered_module_qual_0
  },
  {
    query__query__enum_value_ordered_module_qual_0
  },
  (MR_Integer) 3,
  (MR_Integer) 4,
  query__query__functor_number_map_module_qual_0
};

#line 3758 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_order_criteria_0_0 = {
  (MR_String) "by_context",
  (MR_Integer) 0,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_LOCAL,
  (MR_Integer) 0,
  (MR_Integer) 0,
  (MR_Integer) 0,
  NULL,
  NULL,
  NULL,
  NULL
};

#line 3773 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_order_criteria_0_1 = {
  (MR_String) "by_name",
  (MR_Integer) 0,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_LOCAL,
  (MR_Integer) 0,
  (MR_Integer) 1,
  (MR_Integer) 1,
  NULL,
  NULL,
  NULL,
  NULL
};

#line 3788 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_order_criteria_0_2[3] = {
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_cost_kind_0,
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_include_descendants_0,
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_measurement_scope_0
};

#line 3795 "query.c"
static const MR_DuArgLocn query__query__field_locns_order_criteria_0_2[3] = {
  {
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 3
  },
  {
    (MR_Integer) 0,
    (MR_Integer) 3,
    (MR_Integer) 1
  },
  {
    (MR_Integer) 0,
    (MR_Integer) 4,
    (MR_Integer) 1
  }
};

#line 3814 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_order_criteria_0_2 = {
  (MR_String) "by_cost",
  (MR_Integer) 3,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_NONE,
  (MR_Integer) 1,
  (MR_Integer) -1,
  (MR_Integer) 2,
  query__query__field_types_order_criteria_0_2,
  NULL,
  query__query__field_locns_order_criteria_0_2,
  NULL
};

#line 3829 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_order_criteria_0_0[2] = {
  &query__query__du_functor_desc_order_criteria_0_0,
  &query__query__du_functor_desc_order_criteria_0_1
};

#line 3835 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_order_criteria_0_1[1] = {
  &query__query__du_functor_desc_order_criteria_0_2
};

#line 3840 "query.c"
static const MR_DuPtagLayout query__query__du_ptag_ordered_order_criteria_0[2] = {
  {
    (MR_Integer) 2,
    mercury__private_builtin__MR_SECTAG_LOCAL,
    query__query__du_stag_ordered_order_criteria_0_0
  },
  {
    (MR_Integer) 1,
    mercury__private_builtin__MR_SECTAG_NONE,
    query__query__du_stag_ordered_order_criteria_0_1
  }
};

#line 3854 "query.c"
static const MR_DuFunctorDescPtr query__query__du_name_ordered_order_criteria_0[3] = {
  &query__query__du_functor_desc_order_criteria_0_0,
  &query__query__du_functor_desc_order_criteria_0_2,
  &query__query__du_functor_desc_order_criteria_0_1
};

#line 3861 "query.c"
static const MR_Integer query__query__functor_number_map_order_criteria_0[3] = {
  (MR_Integer) 0,
  (MR_Integer) 2,
  (MR_Integer) 1
};

#line 3868 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_order_criteria_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) 2,
  mercury__private_builtin__MR_TYPECTOR_REP_DU,
  ((MR_Box) (query____Unify____order_criteria_0_0_10001)),
  ((MR_Box) (query____Compare____order_criteria_0_0_10001)),
  (MR_String) "query",
  (MR_String) "order_criteria",
  {
    query__query__du_name_ordered_order_criteria_0
  },
  {
    query__query__du_ptag_ordered_order_criteria_0
  },
  (MR_Integer) 3,
  (MR_Integer) 4,
  query__query__functor_number_map_order_criteria_0
};

#line 3889 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_port_fields_0_0 = {
  (MR_String) "no_port",
  (MR_Integer) 0
};

#line 3895 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_port_fields_0_1 = {
  (MR_String) "port",
  (MR_Integer) 1
};

#line 3901 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_port_fields_0[2] = {
  &query__query__enum_functor_desc_port_fields_0_0,
  &query__query__enum_functor_desc_port_fields_0_1
};

#line 3907 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_port_fields_0[2] = {
  &query__query__enum_functor_desc_port_fields_0_0,
  &query__query__enum_functor_desc_port_fields_0_1
};

#line 3913 "query.c"
static const MR_Integer query__query__functor_number_map_port_fields_0[2] = {
  (MR_Integer) 0,
  (MR_Integer) 1
};

#line 3919 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_port_fields_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) -1,
  mercury__private_builtin__MR_TYPECTOR_REP_ENUM,
  ((MR_Box) (query____Unify____port_fields_0_0_10001)),
  ((MR_Box) (query____Compare____port_fields_0_0_10001)),
  (MR_String) "query",
  (MR_String) "port_fields",
  {
    query__query__enum_name_ordered_port_fields_0
  },
  {
    query__query__enum_value_ordered_port_fields_0
  },
  (MR_Integer) 2,
  (MR_Integer) 4,
  query__query__functor_number_map_port_fields_0
};

#line 3940 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_preferences_0_0[12] = {
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_fields_0,
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_box_tables_0,
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_colour_column_groups_0,
  (MR_PseudoTypeInfo) &query__maybe__ti_maybe_1builtin__type_ctor_info_int_0,
  (MR_PseudoTypeInfo) &mercury__builtin__builtin__type_ctor_info_int_0,
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_summarize_ho_call_sites_0,
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_order_criteria_0,
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_contour_exclusion_0,
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_time_format_0,
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_module_qual_0,
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_inactive_items_0,
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_developer_mode_0
};

#line 3956 "query.c"
static const MR_ConstString query__query__field_names_preferences_0_0[12] = {
  (MR_String) "pref_fields",
  (MR_String) "pref_box",
  (MR_String) "pref_colour",
  (MR_String) "pref_anc",
  (MR_String) "pref_proc_statics_per_rec_type",
  (MR_String) "pref_summarize",
  (MR_String) "pref_criteria",
  (MR_String) "pref_contour",
  (MR_String) "pref_time",
  (MR_String) "pref_module_qual",
  (MR_String) "pref_inactive",
  (MR_String) "pref_developer_mode"
};

#line 3972 "query.c"
static const MR_DuArgLocn query__query__field_locns_preferences_0_0[12] = {
  {
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0
  },
  {
    (MR_Integer) 1,
    (MR_Integer) 0,
    (MR_Integer) 1
  },
  {
    (MR_Integer) 1,
    (MR_Integer) 1,
    (MR_Integer) 1
  },
  {
    (MR_Integer) 2,
    (MR_Integer) 0,
    (MR_Integer) 0
  },
  {
    (MR_Integer) 3,
    (MR_Integer) 0,
    (MR_Integer) 0
  },
  {
    (MR_Integer) 4,
    (MR_Integer) 0,
    (MR_Integer) 0
  },
  {
    (MR_Integer) 5,
    (MR_Integer) 0,
    (MR_Integer) 0
  },
  {
    (MR_Integer) 6,
    (MR_Integer) 0,
    (MR_Integer) 1
  },
  {
    (MR_Integer) 6,
    (MR_Integer) 1,
    (MR_Integer) 2
  },
  {
    (MR_Integer) 6,
    (MR_Integer) 3,
    (MR_Integer) 2
  },
  {
    (MR_Integer) 7,
    (MR_Integer) 0,
    (MR_Integer) 0
  },
  {
    (MR_Integer) 8,
    (MR_Integer) 0,
    (MR_Integer) 0
  }
};

#line 4036 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_preferences_0_0 = {
  (MR_String) "preferences",
  (MR_Integer) 12,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_NONE,
  (MR_Integer) 0,
  (MR_Integer) -1,
  (MR_Integer) 0,
  query__query__field_types_preferences_0_0,
  query__query__field_names_preferences_0_0,
  query__query__field_locns_preferences_0_0,
  NULL
};

#line 4051 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_preferences_0_0[1] = {
  &query__query__du_functor_desc_preferences_0_0
};

#line 4056 "query.c"
static const MR_DuPtagLayout query__query__du_ptag_ordered_preferences_0[1] = {
  {
    (MR_Integer) 1,
    mercury__private_builtin__MR_SECTAG_NONE,
    query__query__du_stag_ordered_preferences_0_0
  }
};

#line 4065 "query.c"
static const MR_DuFunctorDescPtr query__query__du_name_ordered_preferences_0[1] = {
  &query__query__du_functor_desc_preferences_0_0
};

#line 4070 "query.c"
static const MR_Integer query__query__functor_number_map_preferences_0[1] = {
  (MR_Integer) 0
};

#line 4075 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_preferences_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) 1,
  mercury__private_builtin__MR_TYPECTOR_REP_DU,
  ((MR_Box) (query____Unify____preferences_0_0_10001)),
  ((MR_Box) (query____Compare____preferences_0_0_10001)),
  (MR_String) "query",
  (MR_String) "preferences",
  {
    query__query__du_name_ordered_preferences_0
  },
  {
    query__query__du_ptag_ordered_preferences_0
  },
  (MR_Integer) 1,
  (MR_Integer) 4,
  query__query__functor_number_map_preferences_0
};

#line 4096 "query.c"
static const MR_PseudoTypeInfo query__query__field_types_preferences_indication_0_0[1] = {
  (MR_PseudoTypeInfo) &query__query__type_ctor_info_preferences_0
};

#line 4101 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_preferences_indication_0_0 = {
  (MR_String) "given_pref",
  (MR_Integer) 1,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_NONE_DIRECT_ARG,
  (MR_Integer) 1,
  (MR_Integer) -1,
  (MR_Integer) 0,
  query__query__field_types_preferences_indication_0_0,
  NULL,
  NULL,
  NULL
};

#line 4116 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_preferences_indication_0_1 = {
  (MR_String) "default_pref",
  (MR_Integer) 0,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_LOCAL,
  (MR_Integer) 0,
  (MR_Integer) 0,
  (MR_Integer) 1,
  NULL,
  NULL,
  NULL,
  NULL
};

#line 4131 "query.c"
static const MR_DuFunctorDesc query__query__du_functor_desc_preferences_indication_0_2 = {
  (MR_String) "all_pref",
  (MR_Integer) 0,
  (MR_Integer) 0,
  mercury__private_builtin__MR_SECTAG_LOCAL,
  (MR_Integer) 0,
  (MR_Integer) 1,
  (MR_Integer) 2,
  NULL,
  NULL,
  NULL,
  NULL
};

#line 4146 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_preferences_indication_0_0[2] = {
  &query__query__du_functor_desc_preferences_indication_0_1,
  &query__query__du_functor_desc_preferences_indication_0_2
};

#line 4152 "query.c"
static const MR_DuFunctorDescPtr query__query__du_stag_ordered_preferences_indication_0_1[1] = {
  &query__query__du_functor_desc_preferences_indication_0_0
};

#line 4157 "query.c"
static const MR_DuPtagLayout query__query__du_ptag_ordered_preferences_indication_0[2] = {
  {
    (MR_Integer) 2,
    mercury__private_builtin__MR_SECTAG_LOCAL,
    query__query__du_stag_ordered_preferences_indication_0_0
  },
  {
    (MR_Integer) 1,
    mercury__private_builtin__MR_SECTAG_NONE_DIRECT_ARG,
    query__query__du_stag_ordered_preferences_indication_0_1
  }
};

#line 4171 "query.c"
static const MR_DuFunctorDescPtr query__query__du_name_ordered_preferences_indication_0[3] = {
  &query__query__du_functor_desc_preferences_indication_0_2,
  &query__query__du_functor_desc_preferences_indication_0_1,
  &query__query__du_functor_desc_preferences_indication_0_0
};

#line 4178 "query.c"
static const MR_Integer query__query__functor_number_map_preferences_indication_0[3] = {
  (MR_Integer) 2,
  (MR_Integer) 1,
  (MR_Integer) 0
};

#line 4185 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_preferences_indication_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) 2,
  mercury__private_builtin__MR_TYPECTOR_REP_DU,
  ((MR_Box) (query____Unify____preferences_indication_0_0_10001)),
  ((MR_Box) (query____Compare____preferences_indication_0_0_10001)),
  (MR_String) "query",
  (MR_String) "preferences_indication",
  {
    query__query__du_name_ordered_preferences_indication_0
  },
  {
    query__query__du_ptag_ordered_preferences_indication_0
  },
  (MR_Integer) 3,
  (MR_Integer) 4,
  query__query__functor_number_map_preferences_indication_0
};

#line 4206 "query.c"
static const MR_Integer query__query__functor_number_map_resp_0[1] = {
  (MR_Integer) 0
};

#line 4211 "query.c"
static const MR_NotagFunctorDesc query__query__notag_functor_desc_resp_0 = {
  (MR_String) "html",
  (MR_PseudoTypeInfo) &mercury__builtin__builtin__type_ctor_info_string_0,
  NULL
};

#line 4218 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_resp_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) -1,
  mercury__private_builtin__MR_TYPECTOR_REP_NOTAG_GROUND,
  ((MR_Box) (query____Unify____resp_0_0_10001)),
  ((MR_Box) (query____Compare____resp_0_0_10001)),
  (MR_String) "query",
  (MR_String) "resp",
  {
    &query__query__notag_functor_desc_resp_0
  },
  {
    &query__query__notag_functor_desc_resp_0
  },
  (MR_Integer) 1,
  (MR_Integer) 4,
  query__query__functor_number_map_resp_0
};

#line 4239 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_summarize_ho_call_sites_0_0 = {
  (MR_String) "summarize_ho_call_sites",
  (MR_Integer) 0
};

#line 4245 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_summarize_ho_call_sites_0_1 = {
  (MR_String) "do_not_summarize_ho_call_sites",
  (MR_Integer) 1
};

#line 4251 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_summarize_ho_call_sites_0[2] = {
  &query__query__enum_functor_desc_summarize_ho_call_sites_0_0,
  &query__query__enum_functor_desc_summarize_ho_call_sites_0_1
};

#line 4257 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_summarize_ho_call_sites_0[2] = {
  &query__query__enum_functor_desc_summarize_ho_call_sites_0_1,
  &query__query__enum_functor_desc_summarize_ho_call_sites_0_0
};

#line 4263 "query.c"
static const MR_Integer query__query__functor_number_map_summarize_ho_call_sites_0[2] = {
  (MR_Integer) 1,
  (MR_Integer) 0
};

#line 4269 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_summarize_ho_call_sites_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) -1,
  mercury__private_builtin__MR_TYPECTOR_REP_ENUM,
  ((MR_Box) (query____Unify____summarize_ho_call_sites_0_0_10001)),
  ((MR_Box) (query____Compare____summarize_ho_call_sites_0_0_10001)),
  (MR_String) "query",
  (MR_String) "summarize_ho_call_sites",
  {
    query__query__enum_name_ordered_summarize_ho_call_sites_0
  },
  {
    query__query__enum_value_ordered_summarize_ho_call_sites_0
  },
  (MR_Integer) 2,
  (MR_Integer) 4,
  query__query__functor_number_map_summarize_ho_call_sites_0
};

#line 4290 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_time_fields_0_0 = {
  (MR_String) "no_time",
  (MR_Integer) 0
};

#line 4296 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_time_fields_0_1 = {
  (MR_String) "ticks",
  (MR_Integer) 1
};

#line 4302 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_time_fields_0_2 = {
  (MR_String) "time",
  (MR_Integer) 2
};

#line 4308 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_time_fields_0_3 = {
  (MR_String) "ticks_and_time",
  (MR_Integer) 3
};

#line 4314 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_time_fields_0_4 = {
  (MR_String) "time_and_percall",
  (MR_Integer) 4
};

#line 4320 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_time_fields_0_5 = {
  (MR_String) "ticks_and_time_and_percall",
  (MR_Integer) 5
};

#line 4326 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_time_fields_0[6] = {
  &query__query__enum_functor_desc_time_fields_0_0,
  &query__query__enum_functor_desc_time_fields_0_1,
  &query__query__enum_functor_desc_time_fields_0_2,
  &query__query__enum_functor_desc_time_fields_0_3,
  &query__query__enum_functor_desc_time_fields_0_4,
  &query__query__enum_functor_desc_time_fields_0_5
};

#line 4336 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_time_fields_0[6] = {
  &query__query__enum_functor_desc_time_fields_0_0,
  &query__query__enum_functor_desc_time_fields_0_1,
  &query__query__enum_functor_desc_time_fields_0_3,
  &query__query__enum_functor_desc_time_fields_0_5,
  &query__query__enum_functor_desc_time_fields_0_2,
  &query__query__enum_functor_desc_time_fields_0_4
};

#line 4346 "query.c"
static const MR_Integer query__query__functor_number_map_time_fields_0[6] = {
  (MR_Integer) 0,
  (MR_Integer) 1,
  (MR_Integer) 4,
  (MR_Integer) 2,
  (MR_Integer) 5,
  (MR_Integer) 3
};

#line 4356 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_time_fields_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) -1,
  mercury__private_builtin__MR_TYPECTOR_REP_ENUM,
  ((MR_Box) (query____Unify____time_fields_0_0_10001)),
  ((MR_Box) (query____Compare____time_fields_0_0_10001)),
  (MR_String) "query",
  (MR_String) "time_fields",
  {
    query__query__enum_name_ordered_time_fields_0
  },
  {
    query__query__enum_value_ordered_time_fields_0
  },
  (MR_Integer) 6,
  (MR_Integer) 4,
  query__query__functor_number_map_time_fields_0
};

#line 4377 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_time_format_0_0 = {
  (MR_String) "no_scale",
  (MR_Integer) 0
};

#line 4383 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_time_format_0_1 = {
  (MR_String) "scale_by_millions",
  (MR_Integer) 1
};

#line 4389 "query.c"
static const MR_EnumFunctorDesc query__query__enum_functor_desc_time_format_0_2 = {
  (MR_String) "scale_by_thousands",
  (MR_Integer) 2
};

#line 4395 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_value_ordered_time_format_0[3] = {
  &query__query__enum_functor_desc_time_format_0_0,
  &query__query__enum_functor_desc_time_format_0_1,
  &query__query__enum_functor_desc_time_format_0_2
};

#line 4402 "query.c"
static const MR_EnumFunctorDescPtr query__query__enum_name_ordered_time_format_0[3] = {
  &query__query__enum_functor_desc_time_format_0_0,
  &query__query__enum_functor_desc_time_format_0_1,
  &query__query__enum_functor_desc_time_format_0_2
};

#line 4409 "query.c"
static const MR_Integer query__query__functor_number_map_time_format_0[3] = {
  (MR_Integer) 0,
  (MR_Integer) 1,
  (MR_Integer) 2
};

#line 4416 "query.c"
const MR_TypeCtorInfo_Struct query__query__type_ctor_info_time_format_0 = {
  (MR_Integer) 0,
  (MR_Integer) 15,
  (MR_Integer) -1,
  mercury__private_builtin__MR_TYPECTOR_REP_ENUM,
  ((MR_Box) (query____Unify____time_format_0_0_10001)),
  ((MR_Box) (query____Compare____time_format_0_0_10001)),
  (MR_String) "query",
  (MR_String) "time_format",
  {
    query__query__enum_name_ordered_time_format_0
  },
  {
    query__query__enum_value_ordered_time_format_0
  },
  (MR_Integer) 3,
  (MR_Integer) 4,
  query__query__functor_number_map_time_format_0
};

#line 4437 "query.c"
static MR_bool MR_CALL 
query____Unify____alloc_fields_0_0_10001(
#line 4440 "query.c"
  MR_Box query__wrapper_arg_1,
#line 4442 "query.c"
  MR_Box query__wrapper_arg_2)
#line 4444 "query.c"
{
#line 4446 "query.c"
  {
#line 4448 "query.c"
    MR_bool query__succeeded;

#line 4451 "query.c"
    {
#line 4453 "query.c"
      query__succeeded = query____Unify____alloc_fields_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 4456 "query.c"
    return query__succeeded;
#line 4458 "query.c"
  }
#line 4460 "query.c"
}

#line 4463 "query.c"
static void MR_CALL 
query____Compare____alloc_fields_0_0_10001(
#line 4466 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 4468 "query.c"
  MR_Box query__wrapper_arg_2,
#line 4470 "query.c"
  MR_Box query__wrapper_arg_3)
#line 4472 "query.c"
{
#line 4474 "query.c"
  {
#line 4476 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 4479 "query.c"
    {
#line 4481 "query.c"
      query____Compare____alloc_fields_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 4484 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 4486 "query.c"
  }
#line 4488 "query.c"
}

#line 4491 "query.c"
static MR_bool MR_CALL 
query____Unify____box_tables_0_0_10001(
#line 4494 "query.c"
  MR_Box query__wrapper_arg_1,
#line 4496 "query.c"
  MR_Box query__wrapper_arg_2)
#line 4498 "query.c"
{
#line 4500 "query.c"
  {
#line 4502 "query.c"
    MR_bool query__succeeded;

#line 4505 "query.c"
    {
#line 4507 "query.c"
      query__succeeded = query____Unify____box_tables_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 4510 "query.c"
    return query__succeeded;
#line 4512 "query.c"
  }
#line 4514 "query.c"
}

#line 4517 "query.c"
static void MR_CALL 
query____Compare____box_tables_0_0_10001(
#line 4520 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 4522 "query.c"
  MR_Box query__wrapper_arg_2,
#line 4524 "query.c"
  MR_Box query__wrapper_arg_3)
#line 4526 "query.c"
{
#line 4528 "query.c"
  {
#line 4530 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 4533 "query.c"
    {
#line 4535 "query.c"
      query____Compare____box_tables_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 4538 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 4540 "query.c"
  }
#line 4542 "query.c"
}

#line 4545 "query.c"
static MR_bool MR_CALL 
query____Unify____caller_groups_0_0_10001(
#line 4548 "query.c"
  MR_Box query__wrapper_arg_1,
#line 4550 "query.c"
  MR_Box query__wrapper_arg_2)
#line 4552 "query.c"
{
#line 4554 "query.c"
  {
#line 4556 "query.c"
    MR_bool query__succeeded;

#line 4559 "query.c"
    {
#line 4561 "query.c"
      query__succeeded = query____Unify____caller_groups_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 4564 "query.c"
    return query__succeeded;
#line 4566 "query.c"
  }
#line 4568 "query.c"
}

#line 4571 "query.c"
static void MR_CALL 
query____Compare____caller_groups_0_0_10001(
#line 4574 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 4576 "query.c"
  MR_Box query__wrapper_arg_2,
#line 4578 "query.c"
  MR_Box query__wrapper_arg_3)
#line 4580 "query.c"
{
#line 4582 "query.c"
  {
#line 4584 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 4587 "query.c"
    {
#line 4589 "query.c"
      query____Compare____caller_groups_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 4592 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 4594 "query.c"
  }
#line 4596 "query.c"
}

#line 4599 "query.c"
static MR_bool MR_CALL 
query____Unify____callseqs_fields_0_0_10001(
#line 4602 "query.c"
  MR_Box query__wrapper_arg_1,
#line 4604 "query.c"
  MR_Box query__wrapper_arg_2)
#line 4606 "query.c"
{
#line 4608 "query.c"
  {
#line 4610 "query.c"
    MR_bool query__succeeded;

#line 4613 "query.c"
    {
#line 4615 "query.c"
      query__succeeded = query____Unify____callseqs_fields_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 4618 "query.c"
    return query__succeeded;
#line 4620 "query.c"
  }
#line 4622 "query.c"
}

#line 4625 "query.c"
static void MR_CALL 
query____Compare____callseqs_fields_0_0_10001(
#line 4628 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 4630 "query.c"
  MR_Box query__wrapper_arg_2,
#line 4632 "query.c"
  MR_Box query__wrapper_arg_3)
#line 4634 "query.c"
{
#line 4636 "query.c"
  {
#line 4638 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 4641 "query.c"
    {
#line 4643 "query.c"
      query____Compare____callseqs_fields_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 4646 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 4648 "query.c"
  }
#line 4650 "query.c"
}

#line 4653 "query.c"
static MR_bool MR_CALL 
query____Unify____cmd_0_0_10001(
#line 4656 "query.c"
  MR_Box query__wrapper_arg_1,
#line 4658 "query.c"
  MR_Box query__wrapper_arg_2)
#line 4660 "query.c"
{
#line 4662 "query.c"
  {
#line 4664 "query.c"
    MR_bool query__succeeded;

#line 4667 "query.c"
    {
#line 4669 "query.c"
      query__succeeded = query____Unify____cmd_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 4672 "query.c"
    return query__succeeded;
#line 4674 "query.c"
  }
#line 4676 "query.c"
}

#line 4679 "query.c"
static void MR_CALL 
query____Compare____cmd_0_0_10001(
#line 4682 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 4684 "query.c"
  MR_Box query__wrapper_arg_2,
#line 4686 "query.c"
  MR_Box query__wrapper_arg_3)
#line 4688 "query.c"
{
#line 4690 "query.c"
  {
#line 4692 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 4695 "query.c"
    {
#line 4697 "query.c"
      query____Compare____cmd_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 4700 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 4702 "query.c"
  }
#line 4704 "query.c"
}

#line 4707 "query.c"
static MR_bool MR_CALL 
query____Unify____colour_column_groups_0_0_10001(
#line 4710 "query.c"
  MR_Box query__wrapper_arg_1,
#line 4712 "query.c"
  MR_Box query__wrapper_arg_2)
#line 4714 "query.c"
{
#line 4716 "query.c"
  {
#line 4718 "query.c"
    MR_bool query__succeeded;

#line 4721 "query.c"
    {
#line 4723 "query.c"
      query__succeeded = query____Unify____colour_column_groups_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 4726 "query.c"
    return query__succeeded;
#line 4728 "query.c"
  }
#line 4730 "query.c"
}

#line 4733 "query.c"
static void MR_CALL 
query____Compare____colour_column_groups_0_0_10001(
#line 4736 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 4738 "query.c"
  MR_Box query__wrapper_arg_2,
#line 4740 "query.c"
  MR_Box query__wrapper_arg_3)
#line 4742 "query.c"
{
#line 4744 "query.c"
  {
#line 4746 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 4749 "query.c"
    {
#line 4751 "query.c"
      query____Compare____colour_column_groups_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 4754 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 4756 "query.c"
  }
#line 4758 "query.c"
}

#line 4761 "query.c"
static MR_bool MR_CALL 
query____Unify____contour_exclusion_0_0_10001(
#line 4764 "query.c"
  MR_Box query__wrapper_arg_1,
#line 4766 "query.c"
  MR_Box query__wrapper_arg_2)
#line 4768 "query.c"
{
#line 4770 "query.c"
  {
#line 4772 "query.c"
    MR_bool query__succeeded;

#line 4775 "query.c"
    {
#line 4777 "query.c"
      query__succeeded = query____Unify____contour_exclusion_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 4780 "query.c"
    return query__succeeded;
#line 4782 "query.c"
  }
#line 4784 "query.c"
}

#line 4787 "query.c"
static void MR_CALL 
query____Compare____contour_exclusion_0_0_10001(
#line 4790 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 4792 "query.c"
  MR_Box query__wrapper_arg_2,
#line 4794 "query.c"
  MR_Box query__wrapper_arg_3)
#line 4796 "query.c"
{
#line 4798 "query.c"
  {
#line 4800 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 4803 "query.c"
    {
#line 4805 "query.c"
      query____Compare____contour_exclusion_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 4808 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 4810 "query.c"
  }
#line 4812 "query.c"
}

#line 4815 "query.c"
static MR_bool MR_CALL 
query____Unify____cost_kind_0_0_10001(
#line 4818 "query.c"
  MR_Box query__wrapper_arg_1,
#line 4820 "query.c"
  MR_Box query__wrapper_arg_2)
#line 4822 "query.c"
{
#line 4824 "query.c"
  {
#line 4826 "query.c"
    MR_bool query__succeeded;

#line 4829 "query.c"
    {
#line 4831 "query.c"
      query__succeeded = query____Unify____cost_kind_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 4834 "query.c"
    return query__succeeded;
#line 4836 "query.c"
  }
#line 4838 "query.c"
}

#line 4841 "query.c"
static void MR_CALL 
query____Compare____cost_kind_0_0_10001(
#line 4844 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 4846 "query.c"
  MR_Box query__wrapper_arg_2,
#line 4848 "query.c"
  MR_Box query__wrapper_arg_3)
#line 4850 "query.c"
{
#line 4852 "query.c"
  {
#line 4854 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 4857 "query.c"
    {
#line 4859 "query.c"
      query____Compare____cost_kind_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 4862 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 4864 "query.c"
  }
#line 4866 "query.c"
}

#line 4869 "query.c"
static MR_bool MR_CALL 
query____Unify____deep_query_0_0_10001(
#line 4872 "query.c"
  MR_Box query__wrapper_arg_1,
#line 4874 "query.c"
  MR_Box query__wrapper_arg_2)
#line 4876 "query.c"
{
#line 4878 "query.c"
  {
#line 4880 "query.c"
    MR_bool query__succeeded;

#line 4883 "query.c"
    {
#line 4885 "query.c"
      query__succeeded = query____Unify____deep_query_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 4888 "query.c"
    return query__succeeded;
#line 4890 "query.c"
  }
#line 4892 "query.c"
}

#line 4895 "query.c"
static void MR_CALL 
query____Compare____deep_query_0_0_10001(
#line 4898 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 4900 "query.c"
  MR_Box query__wrapper_arg_2,
#line 4902 "query.c"
  MR_Box query__wrapper_arg_3)
#line 4904 "query.c"
{
#line 4906 "query.c"
  {
#line 4908 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 4911 "query.c"
    {
#line 4913 "query.c"
      query____Compare____deep_query_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 4916 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 4918 "query.c"
  }
#line 4920 "query.c"
}

#line 4923 "query.c"
static MR_bool MR_CALL 
query____Unify____descendants_meaningful_0_0_10001(
#line 4926 "query.c"
  MR_Box query__wrapper_arg_1,
#line 4928 "query.c"
  MR_Box query__wrapper_arg_2)
#line 4930 "query.c"
{
#line 4932 "query.c"
  {
#line 4934 "query.c"
    MR_bool query__succeeded;

#line 4937 "query.c"
    {
#line 4939 "query.c"
      query__succeeded = query____Unify____descendants_meaningful_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 4942 "query.c"
    return query__succeeded;
#line 4944 "query.c"
  }
#line 4946 "query.c"
}

#line 4949 "query.c"
static void MR_CALL 
query____Compare____descendants_meaningful_0_0_10001(
#line 4952 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 4954 "query.c"
  MR_Box query__wrapper_arg_2,
#line 4956 "query.c"
  MR_Box query__wrapper_arg_3)
#line 4958 "query.c"
{
#line 4960 "query.c"
  {
#line 4962 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 4965 "query.c"
    {
#line 4967 "query.c"
      query____Compare____descendants_meaningful_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 4970 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 4972 "query.c"
  }
#line 4974 "query.c"
}

#line 4977 "query.c"
static MR_bool MR_CALL 
query____Unify____developer_mode_0_0_10001(
#line 4980 "query.c"
  MR_Box query__wrapper_arg_1,
#line 4982 "query.c"
  MR_Box query__wrapper_arg_2)
#line 4984 "query.c"
{
#line 4986 "query.c"
  {
#line 4988 "query.c"
    MR_bool query__succeeded;

#line 4991 "query.c"
    {
#line 4993 "query.c"
      query__succeeded = query____Unify____developer_mode_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 4996 "query.c"
    return query__succeeded;
#line 4998 "query.c"
  }
#line 5000 "query.c"
}

#line 5003 "query.c"
static void MR_CALL 
query____Compare____developer_mode_0_0_10001(
#line 5006 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 5008 "query.c"
  MR_Box query__wrapper_arg_2,
#line 5010 "query.c"
  MR_Box query__wrapper_arg_3)
#line 5012 "query.c"
{
#line 5014 "query.c"
  {
#line 5016 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 5019 "query.c"
    {
#line 5021 "query.c"
      query____Compare____developer_mode_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 5024 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 5026 "query.c"
  }
#line 5028 "query.c"
}

#line 5031 "query.c"
static MR_bool MR_CALL 
query____Unify____display_limit_0_0_10001(
#line 5034 "query.c"
  MR_Box query__wrapper_arg_1,
#line 5036 "query.c"
  MR_Box query__wrapper_arg_2)
#line 5038 "query.c"
{
#line 5040 "query.c"
  {
#line 5042 "query.c"
    MR_bool query__succeeded;

#line 5045 "query.c"
    {
#line 5047 "query.c"
      query__succeeded = query____Unify____display_limit_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 5050 "query.c"
    return query__succeeded;
#line 5052 "query.c"
  }
#line 5054 "query.c"
}

#line 5057 "query.c"
static void MR_CALL 
query____Compare____display_limit_0_0_10001(
#line 5060 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 5062 "query.c"
  MR_Box query__wrapper_arg_2,
#line 5064 "query.c"
  MR_Box query__wrapper_arg_3)
#line 5066 "query.c"
{
#line 5068 "query.c"
  {
#line 5070 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 5073 "query.c"
    {
#line 5075 "query.c"
      query____Compare____display_limit_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 5078 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 5080 "query.c"
  }
#line 5082 "query.c"
}

#line 5085 "query.c"
static MR_bool MR_CALL 
query____Unify____fields_0_0_10001(
#line 5088 "query.c"
  MR_Box query__wrapper_arg_1,
#line 5090 "query.c"
  MR_Box query__wrapper_arg_2)
#line 5092 "query.c"
{
#line 5094 "query.c"
  {
#line 5096 "query.c"
    MR_bool query__succeeded;

#line 5099 "query.c"
    {
#line 5101 "query.c"
      query__succeeded = query____Unify____fields_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 5104 "query.c"
    return query__succeeded;
#line 5106 "query.c"
  }
#line 5108 "query.c"
}

#line 5111 "query.c"
static void MR_CALL 
query____Compare____fields_0_0_10001(
#line 5114 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 5116 "query.c"
  MR_Box query__wrapper_arg_2,
#line 5118 "query.c"
  MR_Box query__wrapper_arg_3)
#line 5120 "query.c"
{
#line 5122 "query.c"
  {
#line 5124 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 5127 "query.c"
    {
#line 5129 "query.c"
      query____Compare____fields_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 5132 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 5134 "query.c"
  }
#line 5136 "query.c"
}

#line 5139 "query.c"
static MR_bool MR_CALL 
query____Unify____inactive_items_0_0_10001(
#line 5142 "query.c"
  MR_Box query__wrapper_arg_1,
#line 5144 "query.c"
  MR_Box query__wrapper_arg_2)
#line 5146 "query.c"
{
#line 5148 "query.c"
  {
#line 5150 "query.c"
    MR_bool query__succeeded;

#line 5153 "query.c"
    {
#line 5155 "query.c"
      query__succeeded = query____Unify____inactive_items_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 5158 "query.c"
    return query__succeeded;
#line 5160 "query.c"
  }
#line 5162 "query.c"
}

#line 5165 "query.c"
static void MR_CALL 
query____Compare____inactive_items_0_0_10001(
#line 5168 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 5170 "query.c"
  MR_Box query__wrapper_arg_2,
#line 5172 "query.c"
  MR_Box query__wrapper_arg_3)
#line 5174 "query.c"
{
#line 5176 "query.c"
  {
#line 5178 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 5181 "query.c"
    {
#line 5183 "query.c"
      query____Compare____inactive_items_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 5186 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 5188 "query.c"
  }
#line 5190 "query.c"
}

#line 5193 "query.c"
static MR_bool MR_CALL 
query____Unify____inactive_status_0_0_10001(
#line 5196 "query.c"
  MR_Box query__wrapper_arg_1,
#line 5198 "query.c"
  MR_Box query__wrapper_arg_2)
#line 5200 "query.c"
{
#line 5202 "query.c"
  {
#line 5204 "query.c"
    MR_bool query__succeeded;

#line 5207 "query.c"
    {
#line 5209 "query.c"
      query__succeeded = query____Unify____inactive_status_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 5212 "query.c"
    return query__succeeded;
#line 5214 "query.c"
  }
#line 5216 "query.c"
}

#line 5219 "query.c"
static void MR_CALL 
query____Compare____inactive_status_0_0_10001(
#line 5222 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 5224 "query.c"
  MR_Box query__wrapper_arg_2,
#line 5226 "query.c"
  MR_Box query__wrapper_arg_3)
#line 5228 "query.c"
{
#line 5230 "query.c"
  {
#line 5232 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 5235 "query.c"
    {
#line 5237 "query.c"
      query____Compare____inactive_status_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 5240 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 5242 "query.c"
  }
#line 5244 "query.c"
}

#line 5247 "query.c"
static MR_bool MR_CALL 
query____Unify____include_descendants_0_0_10001(
#line 5250 "query.c"
  MR_Box query__wrapper_arg_1,
#line 5252 "query.c"
  MR_Box query__wrapper_arg_2)
#line 5254 "query.c"
{
#line 5256 "query.c"
  {
#line 5258 "query.c"
    MR_bool query__succeeded;

#line 5261 "query.c"
    {
#line 5263 "query.c"
      query__succeeded = query____Unify____include_descendants_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 5266 "query.c"
    return query__succeeded;
#line 5268 "query.c"
  }
#line 5270 "query.c"
}

#line 5273 "query.c"
static void MR_CALL 
query____Compare____include_descendants_0_0_10001(
#line 5276 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 5278 "query.c"
  MR_Box query__wrapper_arg_2,
#line 5280 "query.c"
  MR_Box query__wrapper_arg_3)
#line 5282 "query.c"
{
#line 5284 "query.c"
  {
#line 5286 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 5289 "query.c"
    {
#line 5291 "query.c"
      query____Compare____include_descendants_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 5294 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 5296 "query.c"
  }
#line 5298 "query.c"
}

#line 5301 "query.c"
static MR_bool MR_CALL 
query____Unify____measurement_scope_0_0_10001(
#line 5304 "query.c"
  MR_Box query__wrapper_arg_1,
#line 5306 "query.c"
  MR_Box query__wrapper_arg_2)
#line 5308 "query.c"
{
#line 5310 "query.c"
  {
#line 5312 "query.c"
    MR_bool query__succeeded;

#line 5315 "query.c"
    {
#line 5317 "query.c"
      query__succeeded = query____Unify____measurement_scope_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 5320 "query.c"
    return query__succeeded;
#line 5322 "query.c"
  }
#line 5324 "query.c"
}

#line 5327 "query.c"
static void MR_CALL 
query____Compare____measurement_scope_0_0_10001(
#line 5330 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 5332 "query.c"
  MR_Box query__wrapper_arg_2,
#line 5334 "query.c"
  MR_Box query__wrapper_arg_3)
#line 5336 "query.c"
{
#line 5338 "query.c"
  {
#line 5340 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 5343 "query.c"
    {
#line 5345 "query.c"
      query____Compare____measurement_scope_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 5348 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 5350 "query.c"
  }
#line 5352 "query.c"
}

#line 5355 "query.c"
static MR_bool MR_CALL 
query____Unify____memory_fields_0_0_10001(
#line 5358 "query.c"
  MR_Box query__wrapper_arg_1,
#line 5360 "query.c"
  MR_Box query__wrapper_arg_2)
#line 5362 "query.c"
{
#line 5364 "query.c"
  {
#line 5366 "query.c"
    MR_bool query__succeeded;

#line 5369 "query.c"
    {
#line 5371 "query.c"
      query__succeeded = query____Unify____memory_fields_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 5374 "query.c"
    return query__succeeded;
#line 5376 "query.c"
  }
#line 5378 "query.c"
}

#line 5381 "query.c"
static void MR_CALL 
query____Compare____memory_fields_0_0_10001(
#line 5384 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 5386 "query.c"
  MR_Box query__wrapper_arg_2,
#line 5388 "query.c"
  MR_Box query__wrapper_arg_3)
#line 5390 "query.c"
{
#line 5392 "query.c"
  {
#line 5394 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 5397 "query.c"
    {
#line 5399 "query.c"
      query____Compare____memory_fields_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 5402 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 5404 "query.c"
  }
#line 5406 "query.c"
}

#line 5409 "query.c"
static MR_bool MR_CALL 
query____Unify____module_qual_0_0_10001(
#line 5412 "query.c"
  MR_Box query__wrapper_arg_1,
#line 5414 "query.c"
  MR_Box query__wrapper_arg_2)
#line 5416 "query.c"
{
#line 5418 "query.c"
  {
#line 5420 "query.c"
    MR_bool query__succeeded;

#line 5423 "query.c"
    {
#line 5425 "query.c"
      query__succeeded = query____Unify____module_qual_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 5428 "query.c"
    return query__succeeded;
#line 5430 "query.c"
  }
#line 5432 "query.c"
}

#line 5435 "query.c"
static void MR_CALL 
query____Compare____module_qual_0_0_10001(
#line 5438 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 5440 "query.c"
  MR_Box query__wrapper_arg_2,
#line 5442 "query.c"
  MR_Box query__wrapper_arg_3)
#line 5444 "query.c"
{
#line 5446 "query.c"
  {
#line 5448 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 5451 "query.c"
    {
#line 5453 "query.c"
      query____Compare____module_qual_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 5456 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 5458 "query.c"
  }
#line 5460 "query.c"
}

#line 5463 "query.c"
static MR_bool MR_CALL 
query____Unify____order_criteria_0_0_10001(
#line 5466 "query.c"
  MR_Box query__wrapper_arg_1,
#line 5468 "query.c"
  MR_Box query__wrapper_arg_2)
#line 5470 "query.c"
{
#line 5472 "query.c"
  {
#line 5474 "query.c"
    MR_bool query__succeeded;

#line 5477 "query.c"
    {
#line 5479 "query.c"
      query__succeeded = query____Unify____order_criteria_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 5482 "query.c"
    return query__succeeded;
#line 5484 "query.c"
  }
#line 5486 "query.c"
}

#line 5489 "query.c"
static void MR_CALL 
query____Compare____order_criteria_0_0_10001(
#line 5492 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 5494 "query.c"
  MR_Box query__wrapper_arg_2,
#line 5496 "query.c"
  MR_Box query__wrapper_arg_3)
#line 5498 "query.c"
{
#line 5500 "query.c"
  {
#line 5502 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 5505 "query.c"
    {
#line 5507 "query.c"
      query____Compare____order_criteria_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 5510 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 5512 "query.c"
  }
#line 5514 "query.c"
}

#line 5517 "query.c"
static MR_bool MR_CALL 
query____Unify____port_fields_0_0_10001(
#line 5520 "query.c"
  MR_Box query__wrapper_arg_1,
#line 5522 "query.c"
  MR_Box query__wrapper_arg_2)
#line 5524 "query.c"
{
#line 5526 "query.c"
  {
#line 5528 "query.c"
    MR_bool query__succeeded;

#line 5531 "query.c"
    {
#line 5533 "query.c"
      query__succeeded = query____Unify____port_fields_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 5536 "query.c"
    return query__succeeded;
#line 5538 "query.c"
  }
#line 5540 "query.c"
}

#line 5543 "query.c"
static void MR_CALL 
query____Compare____port_fields_0_0_10001(
#line 5546 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 5548 "query.c"
  MR_Box query__wrapper_arg_2,
#line 5550 "query.c"
  MR_Box query__wrapper_arg_3)
#line 5552 "query.c"
{
#line 5554 "query.c"
  {
#line 5556 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 5559 "query.c"
    {
#line 5561 "query.c"
      query____Compare____port_fields_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 5564 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 5566 "query.c"
  }
#line 5568 "query.c"
}

#line 5571 "query.c"
static MR_bool MR_CALL 
query____Unify____preferences_0_0_10001(
#line 5574 "query.c"
  MR_Box query__wrapper_arg_1,
#line 5576 "query.c"
  MR_Box query__wrapper_arg_2)
#line 5578 "query.c"
{
#line 5580 "query.c"
  {
#line 5582 "query.c"
    MR_bool query__succeeded;

#line 5585 "query.c"
    {
#line 5587 "query.c"
      query__succeeded = query____Unify____preferences_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 5590 "query.c"
    return query__succeeded;
#line 5592 "query.c"
  }
#line 5594 "query.c"
}

#line 5597 "query.c"
static void MR_CALL 
query____Compare____preferences_0_0_10001(
#line 5600 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 5602 "query.c"
  MR_Box query__wrapper_arg_2,
#line 5604 "query.c"
  MR_Box query__wrapper_arg_3)
#line 5606 "query.c"
{
#line 5608 "query.c"
  {
#line 5610 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 5613 "query.c"
    {
#line 5615 "query.c"
      query____Compare____preferences_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 5618 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 5620 "query.c"
  }
#line 5622 "query.c"
}

#line 5625 "query.c"
static MR_bool MR_CALL 
query____Unify____preferences_indication_0_0_10001(
#line 5628 "query.c"
  MR_Box query__wrapper_arg_1,
#line 5630 "query.c"
  MR_Box query__wrapper_arg_2)
#line 5632 "query.c"
{
#line 5634 "query.c"
  {
#line 5636 "query.c"
    MR_bool query__succeeded;

#line 5639 "query.c"
    {
#line 5641 "query.c"
      query__succeeded = query____Unify____preferences_indication_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 5644 "query.c"
    return query__succeeded;
#line 5646 "query.c"
  }
#line 5648 "query.c"
}

#line 5651 "query.c"
static void MR_CALL 
query____Compare____preferences_indication_0_0_10001(
#line 5654 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 5656 "query.c"
  MR_Box query__wrapper_arg_2,
#line 5658 "query.c"
  MR_Box query__wrapper_arg_3)
#line 5660 "query.c"
{
#line 5662 "query.c"
  {
#line 5664 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 5667 "query.c"
    {
#line 5669 "query.c"
      query____Compare____preferences_indication_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 5672 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 5674 "query.c"
  }
#line 5676 "query.c"
}

#line 5679 "query.c"
static MR_bool MR_CALL 
query____Unify____resp_0_0_10001(
#line 5682 "query.c"
  MR_Box query__wrapper_arg_1,
#line 5684 "query.c"
  MR_Box query__wrapper_arg_2)
#line 5686 "query.c"
{
#line 5688 "query.c"
  {
#line 5690 "query.c"
    MR_bool query__succeeded;

#line 5693 "query.c"
    {
#line 5695 "query.c"
      query__succeeded = query____Unify____resp_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 5698 "query.c"
    return query__succeeded;
#line 5700 "query.c"
  }
#line 5702 "query.c"
}

#line 5705 "query.c"
static void MR_CALL 
query____Compare____resp_0_0_10001(
#line 5708 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 5710 "query.c"
  MR_Box query__wrapper_arg_2,
#line 5712 "query.c"
  MR_Box query__wrapper_arg_3)
#line 5714 "query.c"
{
#line 5716 "query.c"
  {
#line 5718 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 5721 "query.c"
    {
#line 5723 "query.c"
      query____Compare____resp_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 5726 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 5728 "query.c"
  }
#line 5730 "query.c"
}

#line 5733 "query.c"
static MR_bool MR_CALL 
query____Unify____summarize_ho_call_sites_0_0_10001(
#line 5736 "query.c"
  MR_Box query__wrapper_arg_1,
#line 5738 "query.c"
  MR_Box query__wrapper_arg_2)
#line 5740 "query.c"
{
#line 5742 "query.c"
  {
#line 5744 "query.c"
    MR_bool query__succeeded;

#line 5747 "query.c"
    {
#line 5749 "query.c"
      query__succeeded = query____Unify____summarize_ho_call_sites_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 5752 "query.c"
    return query__succeeded;
#line 5754 "query.c"
  }
#line 5756 "query.c"
}

#line 5759 "query.c"
static void MR_CALL 
query____Compare____summarize_ho_call_sites_0_0_10001(
#line 5762 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 5764 "query.c"
  MR_Box query__wrapper_arg_2,
#line 5766 "query.c"
  MR_Box query__wrapper_arg_3)
#line 5768 "query.c"
{
#line 5770 "query.c"
  {
#line 5772 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 5775 "query.c"
    {
#line 5777 "query.c"
      query____Compare____summarize_ho_call_sites_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 5780 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 5782 "query.c"
  }
#line 5784 "query.c"
}

#line 5787 "query.c"
static MR_bool MR_CALL 
query____Unify____time_fields_0_0_10001(
#line 5790 "query.c"
  MR_Box query__wrapper_arg_1,
#line 5792 "query.c"
  MR_Box query__wrapper_arg_2)
#line 5794 "query.c"
{
#line 5796 "query.c"
  {
#line 5798 "query.c"
    MR_bool query__succeeded;

#line 5801 "query.c"
    {
#line 5803 "query.c"
      query__succeeded = query____Unify____time_fields_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 5806 "query.c"
    return query__succeeded;
#line 5808 "query.c"
  }
#line 5810 "query.c"
}

#line 5813 "query.c"
static void MR_CALL 
query____Compare____time_fields_0_0_10001(
#line 5816 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 5818 "query.c"
  MR_Box query__wrapper_arg_2,
#line 5820 "query.c"
  MR_Box query__wrapper_arg_3)
#line 5822 "query.c"
{
#line 5824 "query.c"
  {
#line 5826 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 5829 "query.c"
    {
#line 5831 "query.c"
      query____Compare____time_fields_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 5834 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 5836 "query.c"
  }
#line 5838 "query.c"
}

#line 5841 "query.c"
static MR_bool MR_CALL 
query____Unify____time_format_0_0_10001(
#line 5844 "query.c"
  MR_Box query__wrapper_arg_1,
#line 5846 "query.c"
  MR_Box query__wrapper_arg_2)
#line 5848 "query.c"
{
#line 5850 "query.c"
  {
#line 5852 "query.c"
    MR_bool query__succeeded;

#line 5855 "query.c"
    {
#line 5857 "query.c"
      query__succeeded = query____Unify____time_format_0_0(((MR_Word) query__wrapper_arg_1), ((MR_Word) query__wrapper_arg_2));
    }
#line 5860 "query.c"
    return query__succeeded;
#line 5862 "query.c"
  }
#line 5864 "query.c"
}

#line 5867 "query.c"
static void MR_CALL 
query____Compare____time_format_0_0_10001(
#line 5870 "query.c"
  MR_Box * query__wrapper_arg_1,
#line 5872 "query.c"
  MR_Box query__wrapper_arg_2,
#line 5874 "query.c"
  MR_Box query__wrapper_arg_3)
#line 5876 "query.c"
{
#line 5878 "query.c"
  {
#line 5880 "query.c"
    MR_Word query__conv0_HeadVar__1_1;

#line 5883 "query.c"
    {
#line 5885 "query.c"
      query____Compare____time_format_0_0(&query__conv0_HeadVar__1_1, ((MR_Word) query__wrapper_arg_2), ((MR_Word) query__wrapper_arg_3));
    }
#line 5888 "query.c"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HeadVar__1_1));
#line 5890 "query.c"
  }
#line 5892 "query.c"
}

#line 437 "query.m"
static /* sealed */ const MR_TableStepDesc query__table_input_steps_for_create_and_memoize_report_3_p_0[2] = {
  {
    (MR_String) "Cmd",
    MR_TABLE_STEP_GEN,
    (MR_Integer) -1
  },
  {
    (MR_String) "Deep",
    MR_TABLE_STEP_GEN_ADDR,
    (MR_Integer) -1
  }
};

#line 437 "query.m"
static /* sealed */ MR_TableStepStats query__table_call_step_stats_for_create_and_memoize_report_3_p_0[2] = {
  {
    (MR_Integer) 0,
    (MR_Integer) 0,
    MR_TABLE_STATS_DETAIL_DU,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0
  },
  {
    (MR_Integer) 0,
    (MR_Integer) 0,
    MR_TABLE_STATS_DETAIL_HASH,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0
  }
};

#line 437 "query.m"
static /* sealed */ MR_TableStepStats query__table_prev_call_step_stats_for_create_and_memoize_report_3_p_0[2] = {
  {
    (MR_Integer) 0,
    (MR_Integer) 0,
    MR_TABLE_STATS_DETAIL_DU,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0
  },
  {
    (MR_Integer) 0,
    (MR_Integer) 0,
    MR_TABLE_STATS_DETAIL_HASH,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0
  }
};

#line 437 "query.m"
static /* sealed */ MR_TableStepStats query__table_answer_step_stats_for_create_and_memoize_report_3_p_0[2] = {
  {
    (MR_Integer) 0,
    (MR_Integer) 0,
    MR_TABLE_STATS_DETAIL_DU,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0
  },
  {
    (MR_Integer) 0,
    (MR_Integer) 0,
    MR_TABLE_STATS_DETAIL_HASH,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0
  }
};

#line 437 "query.m"
static /* sealed */ MR_TableStepStats query__table_prev_answer_step_stats_for_create_and_memoize_report_3_p_0[2] = {
  {
    (MR_Integer) 0,
    (MR_Integer) 0,
    MR_TABLE_STATS_DETAIL_DU,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0
  },
  {
    (MR_Integer) 0,
    (MR_Integer) 0,
    MR_TABLE_STATS_DETAIL_HASH,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0,
    (MR_Integer) 0
  }
};

#line 437 "query.m"
static /* sealed */ MR_ProcTableInfo query__table_info_for_create_and_memoize_report_3_p_0 = {
  mercury__private_builtin__MR_TABLE_TYPE_MEMO,
  (MR_Integer) 2,
  (MR_Integer) 1,
  (MR_Integer) 0,
  NULL,
  NULL,
  {
    (MR_Integer) 0
  },
  {
    query__table_input_steps_for_create_and_memoize_report_3_p_0,
    NULL
  },
  {
    {
      {
        (MR_Integer) 0,
        (MR_Integer) 0,
        query__table_call_step_stats_for_create_and_memoize_report_3_p_0
      },
      {
        (MR_Integer) 0,
        (MR_Integer) 0,
        query__table_prev_call_step_stats_for_create_and_memoize_report_3_p_0
      }
    },
    {
      {
        (MR_Integer) 0,
        (MR_Integer) 0,
        query__table_answer_step_stats_for_create_and_memoize_report_3_p_0
      },
      {
        (MR_Integer) 0,
        (MR_Integer) 0,
        query__table_prev_answer_step_stats_for_create_and_memoize_report_3_p_0
      }
    }
  },
  (MR_Integer) 0,
  NULL,
  (MR_Integer) 0,
  (MR_Integer) 0
};

#line 309 "query.m"
void MR_CALL 
query____Compare____time_format_0_0(
#line 309 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 309 "query.m"
  MR_Word query__HeadVar__2_2,
#line 309 "query.m"
  MR_Word query__HeadVar__3_3)
#line 309 "query.m"
{
#line 309 "query.m"
  {
#line 309 "query.m"
    MR_bool query__succeeded;
#line 309 "query.m"
    MR_Integer query__Cast_HeadVar1_4 = (MR_Integer) query__HeadVar__2_2;
#line 309 "query.m"
    MR_Integer query__Cast_HeadVar2_5 = (MR_Integer) query__HeadVar__3_3;

#line 309 "query.m"
    {
#line 309 "query.m"
      mercury__private_builtin__builtin_compare_int_3_p_0(query__HeadVar__1_1, query__Cast_HeadVar1_4, query__Cast_HeadVar2_5);
#line 309 "query.m"
      return;
    }
#line 309 "query.m"
  }
#line 309 "query.m"
}

#line 309 "query.m"
MR_bool MR_CALL 
query____Unify____time_format_0_0(
#line 309 "query.m"
  MR_Word query__HeadVar__2_1,
#line 309 "query.m"
  MR_Word query__HeadVar__2_2)
#line 309 "query.m"
{
#line 6189 "query.c"
  {
#line 6191 "query.c"
    MR_bool query__succeeded = (query__HeadVar__2_1 == query__HeadVar__2_2);

#line 6194 "query.c"
    return query__succeeded;
#line 6196 "query.c"
  }
#line 309 "query.m"
}

#line 248 "query.m"
void MR_CALL 
query____Compare____time_fields_0_0(
#line 248 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 248 "query.m"
  MR_Word query__HeadVar__2_2,
#line 248 "query.m"
  MR_Word query__HeadVar__3_3)
#line 248 "query.m"
{
#line 248 "query.m"
  {
#line 248 "query.m"
    MR_bool query__succeeded;
#line 248 "query.m"
    MR_Integer query__Cast_HeadVar1_4 = (MR_Integer) query__HeadVar__2_2;
#line 248 "query.m"
    MR_Integer query__Cast_HeadVar2_5 = (MR_Integer) query__HeadVar__3_3;

#line 248 "query.m"
    {
#line 248 "query.m"
      mercury__private_builtin__builtin_compare_int_3_p_0(query__HeadVar__1_1, query__Cast_HeadVar1_4, query__Cast_HeadVar2_5);
#line 248 "query.m"
      return;
    }
#line 248 "query.m"
  }
#line 248 "query.m"
}

#line 248 "query.m"
MR_bool MR_CALL 
query____Unify____time_fields_0_0(
#line 248 "query.m"
  MR_Word query__HeadVar__2_1,
#line 248 "query.m"
  MR_Word query__HeadVar__2_2)
#line 248 "query.m"
{
#line 6242 "query.c"
  {
#line 6244 "query.c"
    MR_bool query__succeeded = (query__HeadVar__2_1 == query__HeadVar__2_2);

#line 6247 "query.c"
    return query__succeeded;
#line 6249 "query.c"
  }
#line 248 "query.m"
}

#line 288 "query.m"
void MR_CALL 
query____Compare____summarize_ho_call_sites_0_0(
#line 288 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 288 "query.m"
  MR_Word query__HeadVar__2_2,
#line 288 "query.m"
  MR_Word query__HeadVar__3_3)
#line 288 "query.m"
{
#line 288 "query.m"
  {
#line 288 "query.m"
    MR_bool query__succeeded;
#line 288 "query.m"
    MR_Integer query__Cast_HeadVar1_4 = (MR_Integer) query__HeadVar__2_2;
#line 288 "query.m"
    MR_Integer query__Cast_HeadVar2_5 = (MR_Integer) query__HeadVar__3_3;

#line 288 "query.m"
    {
#line 288 "query.m"
      mercury__private_builtin__builtin_compare_int_3_p_0(query__HeadVar__1_1, query__Cast_HeadVar1_4, query__Cast_HeadVar2_5);
#line 288 "query.m"
      return;
    }
#line 288 "query.m"
  }
#line 288 "query.m"
}

#line 288 "query.m"
MR_bool MR_CALL 
query____Unify____summarize_ho_call_sites_0_0(
#line 288 "query.m"
  MR_Word query__HeadVar__2_1,
#line 288 "query.m"
  MR_Word query__HeadVar__2_2)
#line 288 "query.m"
{
#line 6295 "query.c"
  {
#line 6297 "query.c"
    MR_bool query__succeeded = (query__HeadVar__2_1 == query__HeadVar__2_2);

#line 6300 "query.c"
    return query__succeeded;
#line 6302 "query.c"
  }
#line 288 "query.m"
}

#line 72 "query.m"
void MR_CALL 
query____Compare____resp_0_0(
#line 72 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 72 "query.m"
  MR_Word query__HeadVar__2_2,
#line 72 "query.m"
  MR_Word query__HeadVar__3_3)
#line 72 "query.m"
{
#line 72 "query.m"
  {
#line 72 "query.m"
    MR_bool query__succeeded;
#line 72 "query.m"
    MR_Integer query__CastX_6 = (MR_Integer) query__HeadVar__2_2;
#line 72 "query.m"
    MR_Integer query__CastY_7 = (MR_Integer) query__HeadVar__3_3;

#line 72 "query.m"
    query__succeeded = (query__CastX_6 == query__CastY_7);
#line 72 "query.m"
    if (query__succeeded)
#line 6331 "query.c"
      *query__HeadVar__1_1 = (MR_Integer) 0;
#line 72 "query.m"
    else
#line 72 "query.m"
      {
#line 72 "query.m"
        MR_String query__V_4_4 = (MR_String) query__HeadVar__2_2;
#line 72 "query.m"
        MR_String query__V_5_5 = (MR_String) query__HeadVar__3_3;

#line 72 "query.m"
        {
#line 72 "query.m"
          mercury__private_builtin__builtin_compare_string_3_p_0(query__HeadVar__1_1, query__V_4_4, query__V_5_5);
#line 72 "query.m"
          return;
        }
#line 72 "query.m"
      }
#line 72 "query.m"
  }
#line 72 "query.m"
}

#line 72 "query.m"
MR_bool MR_CALL 
query____Unify____resp_0_0(
#line 72 "query.m"
  MR_Word query__HeadVar__1_1,
#line 72 "query.m"
  MR_Word query__HeadVar__2_2)
#line 72 "query.m"
{
#line 72 "query.m"
  {
#line 72 "query.m"
    MR_bool query__succeeded;
#line 72 "query.m"
    MR_Integer query__CastX_5 = (MR_Integer) query__HeadVar__1_1;
#line 72 "query.m"
    MR_Integer query__CastY_6 = (MR_Integer) query__HeadVar__2_2;

#line 72 "query.m"
    query__succeeded = (query__CastX_5 == query__CastY_6);
#line 72 "query.m"
    if (query__succeeded)
#line 72 "query.m"
      query__succeeded = MR_TRUE;
#line 72 "query.m"
    else
#line 72 "query.m"
      {
#line 72 "query.m"
        MR_String query__V_3_3 = (MR_String) query__HeadVar__1_1;
#line 72 "query.m"
        MR_String query__V_4_4 = (MR_String) query__HeadVar__2_2;

#line 6389 "query.c"
        query__succeeded = (strcmp(query__V_3_3, query__V_4_4) == 0);
#line 72 "query.m"
      }
#line 72 "query.m"
    return query__succeeded;
#line 72 "query.m"
  }
#line 72 "query.m"
}

#line 239 "query.m"
void MR_CALL 
query____Compare____preferences_indication_0_0(
#line 239 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 239 "query.m"
  MR_Word query__HeadVar__2_2,
#line 239 "query.m"
  MR_Word query__HeadVar__3_3)
#line 239 "query.m"
{
#line 239 "query.m"
  {
#line 239 "query.m"
    MR_bool query__succeeded;
#line 239 "query.m"
    MR_Integer query__CastX_10 = (MR_Integer) query__HeadVar__2_2;
#line 239 "query.m"
    MR_Integer query__CastY_11 = (MR_Integer) query__HeadVar__3_3;

#line 239 "query.m"
    query__succeeded = (query__CastX_10 == query__CastY_11);
#line 239 "query.m"
    if (query__succeeded)
#line 6424 "query.c"
      *query__HeadVar__1_1 = (MR_Integer) 0;
#line 239 "query.m"
    else
#line 239 "query.m"
      if ((query__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 1)))))
#line 239 "query.m"
        if ((query__HeadVar__3_3 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 1)))))
#line 239 "query.m"
          *query__HeadVar__1_1 = (MR_Integer) 0;
#line 239 "query.m"
        else
#line 239 "query.m"
          if ((query__HeadVar__3_3 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 239 "query.m"
            *query__HeadVar__1_1 = (MR_Integer) 2;
#line 239 "query.m"
          else
#line 6442 "query.c"
            *query__HeadVar__1_1 = (MR_Integer) 2;
#line 239 "query.m"
      else
#line 239 "query.m"
        if ((query__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 239 "query.m"
          if ((query__HeadVar__3_3 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 1)))))
#line 239 "query.m"
            *query__HeadVar__1_1 = (MR_Integer) 1;
#line 239 "query.m"
          else
#line 239 "query.m"
            if ((query__HeadVar__3_3 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 239 "query.m"
              *query__HeadVar__1_1 = (MR_Integer) 0;
#line 239 "query.m"
            else
#line 6460 "query.c"
              *query__HeadVar__1_1 = (MR_Integer) 2;
#line 239 "query.m"
        else
#line 239 "query.m"
          {
#line 239 "query.m"
            MR_Word query__V_13_13 = (MR_Word) MR_body(((MR_Word) query__HeadVar__2_2), (MR_Integer) 1);

#line 239 "query.m"
            if ((query__HeadVar__3_3 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 1)))))
#line 6471 "query.c"
              *query__HeadVar__1_1 = (MR_Integer) 1;
#line 239 "query.m"
            else
#line 239 "query.m"
              if ((query__HeadVar__3_3 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 6477 "query.c"
                *query__HeadVar__1_1 = (MR_Integer) 1;
#line 239 "query.m"
              else
#line 239 "query.m"
                {
#line 239 "query.m"
                  MR_Word query__V_5_5 = (MR_Word) MR_body(((MR_Word) query__HeadVar__3_3), (MR_Integer) 1);

#line 239 "query.m"
                  {
#line 239 "query.m"
                    query____Compare____preferences_0_0(query__HeadVar__1_1, query__V_13_13, query__V_5_5);
#line 239 "query.m"
                    return;
                  }
#line 239 "query.m"
                }
#line 239 "query.m"
          }
#line 239 "query.m"
  }
#line 239 "query.m"
}

#line 239 "query.m"
MR_bool MR_CALL 
query____Unify____preferences_indication_0_0(
#line 239 "query.m"
  MR_Word query__HeadVar__1_1,
#line 239 "query.m"
  MR_Word query__HeadVar__2_2)
#line 239 "query.m"
{
#line 239 "query.m"
  {
#line 239 "query.m"
    MR_bool query__succeeded;
#line 239 "query.m"
    MR_Integer query__CastX_9 = (MR_Integer) query__HeadVar__1_1;
#line 239 "query.m"
    MR_Integer query__CastY_10 = (MR_Integer) query__HeadVar__2_2;

#line 239 "query.m"
    query__succeeded = (query__CastX_9 == query__CastY_10);
#line 239 "query.m"
    if (query__succeeded)
#line 239 "query.m"
      query__succeeded = MR_TRUE;
#line 239 "query.m"
    else
#line 239 "query.m"
      if ((query__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 1)))))
#line 239 "query.m"
        {
#line 239 "query.m"
          MR_Integer query__CastX_7 = (MR_Integer) query__HeadVar__1_1;
#line 239 "query.m"
          MR_Integer query__CastY_8 = (MR_Integer) query__HeadVar__2_2;

#line 239 "query.m"
          query__succeeded = (query__CastY_8 == query__CastX_7);
#line 239 "query.m"
        }
#line 239 "query.m"
      else
#line 239 "query.m"
        if ((query__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 239 "query.m"
          {
#line 239 "query.m"
            MR_Integer query__CastX_5 = (MR_Integer) query__HeadVar__1_1;
#line 239 "query.m"
            MR_Integer query__CastY_6 = (MR_Integer) query__HeadVar__2_2;

#line 239 "query.m"
            query__succeeded = (query__CastY_6 == query__CastX_5);
#line 239 "query.m"
          }
#line 239 "query.m"
        else
#line 239 "query.m"
          {
#line 239 "query.m"
            MR_Word query__V_3_3 = (MR_Word) MR_body(((MR_Word) query__HeadVar__1_1), (MR_Integer) 1);
#line 239 "query.m"
            MR_Word query__V_4_4;

#line 239 "query.m"
            query__succeeded = ((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 1)));
#line 239 "query.m"
            if (query__succeeded)
#line 239 "query.m"
              {
#line 239 "query.m"
                query__V_4_4 = (MR_Word) MR_body(((MR_Word) query__HeadVar__2_2), (MR_Integer) 1);
#line 6573 "query.c"
                {
#line 6575 "query.c"
                  return query__succeeded = query____Unify____preferences_0_0(query__V_3_3, query__V_4_4);
                }
#line 239 "query.m"
              }
#line 239 "query.m"
          }
#line 239 "query.m"
    return query__succeeded;
#line 239 "query.m"
  }
#line 239 "query.m"
}

#line 191 "query.m"
void MR_CALL 
query____Compare____preferences_0_0(
#line 191 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 191 "query.m"
  MR_Word query__HeadVar__2_2,
#line 191 "query.m"
  MR_Word query__HeadVar__3_3)
#line 191 "query.m"
{
#line 191 "query.m"
  {
#line 191 "query.m"
    MR_bool query__succeeded;
#line 191 "query.m"
    MR_Integer query__CastX_39 = (MR_Integer) query__HeadVar__2_2;
#line 191 "query.m"
    MR_Integer query__CastY_40 = (MR_Integer) query__HeadVar__3_3;

#line 191 "query.m"
    query__succeeded = (query__CastX_39 == query__CastY_40);
#line 191 "query.m"
    if (query__succeeded)
#line 6613 "query.c"
      *query__HeadVar__1_1 = (MR_Integer) 0;
#line 191 "query.m"
    else
#line 191 "query.m"
      {
#line 191 "query.m"
        MR_Word query__V_4_4 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 0)));
#line 191 "query.m"
        MR_Word query__V_5_5 = ((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 1)))) & (MR_Integer) 1);
#line 191 "query.m"
        MR_Word query__V_6_6 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 1)))) >> (MR_Integer) 1)) & (MR_Integer) 1);
#line 191 "query.m"
        MR_Word query__V_7_7 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 2)));
#line 191 "query.m"
        MR_Integer query__V_8_8 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 3)));
#line 191 "query.m"
        MR_Word query__V_9_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 4)));
#line 191 "query.m"
        MR_Word query__V_10_10 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 5)));
#line 191 "query.m"
        MR_Word query__V_11_11 = ((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 6)))) & (MR_Integer) 1);
#line 191 "query.m"
        MR_Word query__V_12_12 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 6)))) >> (MR_Integer) 1)) & (MR_Integer) 3);
#line 191 "query.m"
        MR_Word query__V_13_13 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 6)))) >> (MR_Integer) 3)) & (MR_Integer) 3);
#line 191 "query.m"
        MR_Word query__V_14_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 7)));
#line 191 "query.m"
        MR_Word query__V_15_15 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 8)));
#line 191 "query.m"
        MR_Word query__V_16_16 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 0)));
#line 191 "query.m"
        MR_Word query__V_17_17 = ((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 1)))) & (MR_Integer) 1);
#line 191 "query.m"
        MR_Word query__V_18_18 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 1)))) >> (MR_Integer) 1)) & (MR_Integer) 1);
#line 191 "query.m"
        MR_Word query__V_19_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 2)));
#line 191 "query.m"
        MR_Integer query__V_20_20 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 3)));
#line 191 "query.m"
        MR_Word query__V_21_21 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 4)));
#line 191 "query.m"
        MR_Word query__V_22_22 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 5)));
#line 191 "query.m"
        MR_Word query__V_23_23 = ((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 6)))) & (MR_Integer) 1);
#line 191 "query.m"
        MR_Word query__V_24_24 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 6)))) >> (MR_Integer) 1)) & (MR_Integer) 3);
#line 191 "query.m"
        MR_Word query__V_25_25 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 6)))) >> (MR_Integer) 3)) & (MR_Integer) 3);
#line 191 "query.m"
        MR_Word query__V_26_26 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 7)));
#line 191 "query.m"
        MR_Word query__V_27_27 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 8)));
#line 191 "query.m"
        MR_Word query__V_28_28;

#line 191 "query.m"
        {
#line 191 "query.m"
          query____Compare____fields_0_0(&query__V_28_28, query__V_4_4, query__V_16_16);
        }
#line 6675 "query.c"
        query__succeeded = (query__V_28_28 == (MR_Integer) 0);
#line 191 "query.m"
        query__succeeded = !(query__succeeded);
#line 191 "query.m"
        if (query__succeeded)
#line 191 "query.m"
          *query__HeadVar__1_1 = query__V_28_28;
#line 191 "query.m"
        else
#line 191 "query.m"
          {
#line 191 "query.m"
            MR_Word query__V_29_29;
#line 191 "query.m"
            MR_Integer query__V_53_53 = (MR_Integer) query__V_5_5;
#line 191 "query.m"
            MR_Integer query__V_54_54 = (MR_Integer) query__V_17_17;

#line 191 "query.m"
            {
#line 191 "query.m"
              mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_29_29, query__V_53_53, query__V_54_54);
            }
#line 6699 "query.c"
            query__succeeded = (query__V_29_29 == (MR_Integer) 0);
#line 191 "query.m"
            query__succeeded = !(query__succeeded);
#line 191 "query.m"
            if (query__succeeded)
#line 191 "query.m"
              *query__HeadVar__1_1 = query__V_29_29;
#line 191 "query.m"
            else
#line 191 "query.m"
              {
#line 191 "query.m"
                MR_Word query__V_30_30;
#line 191 "query.m"
                MR_Integer query__V_55_55 = (MR_Integer) query__V_6_6;
#line 191 "query.m"
                MR_Integer query__V_56_56 = (MR_Integer) query__V_18_18;

#line 191 "query.m"
                {
#line 191 "query.m"
                  mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_30_30, query__V_55_55, query__V_56_56);
                }
#line 6723 "query.c"
                query__succeeded = (query__V_30_30 == (MR_Integer) 0);
#line 191 "query.m"
                query__succeeded = !(query__succeeded);
#line 191 "query.m"
                if (query__succeeded)
#line 191 "query.m"
                  *query__HeadVar__1_1 = query__V_30_30;
#line 191 "query.m"
                else
#line 191 "query.m"
                  {
#line 191 "query.m"
                    MR_Word query__V_31_31;

#line 191 "query.m"
                    {
#line 191 "query.m"
                      mercury__builtin__compare_3_p_0((MR_Word) &query_scalar_common_1[0], &query__V_31_31, ((MR_Box) (query__V_7_7)), ((MR_Box) (query__V_19_19)));
                    }
#line 6743 "query.c"
                    query__succeeded = (query__V_31_31 == (MR_Integer) 0);
#line 191 "query.m"
                    query__succeeded = !(query__succeeded);
#line 191 "query.m"
                    if (query__succeeded)
#line 191 "query.m"
                      *query__HeadVar__1_1 = query__V_31_31;
#line 191 "query.m"
                    else
#line 191 "query.m"
                      {
#line 191 "query.m"
                        MR_Word query__V_32_32;

#line 191 "query.m"
                        {
#line 191 "query.m"
                          mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_32_32, query__V_8_8, query__V_20_20);
                        }
#line 6763 "query.c"
                        query__succeeded = (query__V_32_32 == (MR_Integer) 0);
#line 191 "query.m"
                        query__succeeded = !(query__succeeded);
#line 191 "query.m"
                        if (query__succeeded)
#line 191 "query.m"
                          *query__HeadVar__1_1 = query__V_32_32;
#line 191 "query.m"
                        else
#line 191 "query.m"
                          {
#line 191 "query.m"
                            MR_Word query__V_33_33;
#line 191 "query.m"
                            MR_Integer query__V_57_57 = (MR_Integer) query__V_9_9;
#line 191 "query.m"
                            MR_Integer query__V_58_58 = (MR_Integer) query__V_21_21;

#line 191 "query.m"
                            {
#line 191 "query.m"
                              mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_33_33, query__V_57_57, query__V_58_58);
                            }
#line 6787 "query.c"
                            query__succeeded = (query__V_33_33 == (MR_Integer) 0);
#line 191 "query.m"
                            query__succeeded = !(query__succeeded);
#line 191 "query.m"
                            if (query__succeeded)
#line 191 "query.m"
                              *query__HeadVar__1_1 = query__V_33_33;
#line 191 "query.m"
                            else
#line 191 "query.m"
                              {
#line 191 "query.m"
                                MR_Word query__V_34_34;

#line 191 "query.m"
                                {
#line 191 "query.m"
                                  query____Compare____order_criteria_0_0(&query__V_34_34, query__V_10_10, query__V_22_22);
                                }
#line 6807 "query.c"
                                query__succeeded = (query__V_34_34 == (MR_Integer) 0);
#line 191 "query.m"
                                query__succeeded = !(query__succeeded);
#line 191 "query.m"
                                if (query__succeeded)
#line 191 "query.m"
                                  *query__HeadVar__1_1 = query__V_34_34;
#line 191 "query.m"
                                else
#line 191 "query.m"
                                  {
#line 191 "query.m"
                                    MR_Word query__V_35_35;
#line 191 "query.m"
                                    MR_Integer query__V_59_59 = (MR_Integer) query__V_11_11;
#line 191 "query.m"
                                    MR_Integer query__V_60_60 = (MR_Integer) query__V_23_23;

#line 191 "query.m"
                                    {
#line 191 "query.m"
                                      mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_35_35, query__V_59_59, query__V_60_60);
                                    }
#line 6831 "query.c"
                                    query__succeeded = (query__V_35_35 == (MR_Integer) 0);
#line 191 "query.m"
                                    query__succeeded = !(query__succeeded);
#line 191 "query.m"
                                    if (query__succeeded)
#line 191 "query.m"
                                      *query__HeadVar__1_1 = query__V_35_35;
#line 191 "query.m"
                                    else
#line 191 "query.m"
                                      {
#line 191 "query.m"
                                        MR_Word query__V_36_36;
#line 191 "query.m"
                                        MR_Integer query__V_61_61 = (MR_Integer) query__V_12_12;
#line 191 "query.m"
                                        MR_Integer query__V_62_62 = (MR_Integer) query__V_24_24;

#line 191 "query.m"
                                        {
#line 191 "query.m"
                                          mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_36_36, query__V_61_61, query__V_62_62);
                                        }
#line 6855 "query.c"
                                        query__succeeded = (query__V_36_36 == (MR_Integer) 0);
#line 191 "query.m"
                                        query__succeeded = !(query__succeeded);
#line 191 "query.m"
                                        if (query__succeeded)
#line 191 "query.m"
                                          *query__HeadVar__1_1 = query__V_36_36;
#line 191 "query.m"
                                        else
#line 191 "query.m"
                                          {
#line 191 "query.m"
                                            MR_Word query__V_37_37;
#line 191 "query.m"
                                            MR_Integer query__V_63_63 = (MR_Integer) query__V_13_13;
#line 191 "query.m"
                                            MR_Integer query__V_64_64 = (MR_Integer) query__V_25_25;

#line 191 "query.m"
                                            {
#line 191 "query.m"
                                              mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_37_37, query__V_63_63, query__V_64_64);
                                            }
#line 6879 "query.c"
                                            query__succeeded = (query__V_37_37 == (MR_Integer) 0);
#line 191 "query.m"
                                            query__succeeded = !(query__succeeded);
#line 191 "query.m"
                                            if (query__succeeded)
#line 191 "query.m"
                                              *query__HeadVar__1_1 = query__V_37_37;
#line 191 "query.m"
                                            else
#line 191 "query.m"
                                              {
#line 191 "query.m"
                                                MR_Word query__V_38_38;

#line 191 "query.m"
                                                {
#line 191 "query.m"
                                                  query____Compare____inactive_items_0_0(&query__V_38_38, query__V_14_14, query__V_26_26);
                                                }
#line 6899 "query.c"
                                                query__succeeded = (query__V_38_38 == (MR_Integer) 0);
#line 191 "query.m"
                                                query__succeeded = !(query__succeeded);
#line 191 "query.m"
                                                if (query__succeeded)
#line 191 "query.m"
                                                  *query__HeadVar__1_1 = query__V_38_38;
#line 191 "query.m"
                                                else
#line 191 "query.m"
                                                  {
#line 191 "query.m"
                                                    MR_Integer query__V_65_65 = (MR_Integer) query__V_15_15;
#line 191 "query.m"
                                                    MR_Integer query__V_66_66 = (MR_Integer) query__V_27_27;

#line 191 "query.m"
                                                    {
#line 191 "query.m"
                                                      mercury__private_builtin__builtin_compare_int_3_p_0(query__HeadVar__1_1, query__V_65_65, query__V_66_66);
#line 191 "query.m"
                                                      return;
                                                    }
#line 191 "query.m"
                                                  }
#line 191 "query.m"
                                              }
#line 191 "query.m"
                                          }
#line 191 "query.m"
                                      }
#line 191 "query.m"
                                  }
#line 191 "query.m"
                              }
#line 191 "query.m"
                          }
#line 191 "query.m"
                      }
#line 191 "query.m"
                  }
#line 191 "query.m"
              }
#line 191 "query.m"
          }
#line 191 "query.m"
      }
#line 191 "query.m"
  }
#line 191 "query.m"
}

#line 191 "query.m"
MR_bool MR_CALL 
query____Unify____preferences_0_0(
#line 191 "query.m"
  MR_Word query__HeadVar__1_1,
#line 191 "query.m"
  MR_Word query__HeadVar__2_2)
#line 191 "query.m"
{
#line 191 "query.m"
  {
#line 191 "query.m"
    MR_bool query__succeeded;
#line 191 "query.m"
    MR_Integer query__CastX_27 = (MR_Integer) query__HeadVar__1_1;
#line 191 "query.m"
    MR_Integer query__CastY_28 = (MR_Integer) query__HeadVar__2_2;

#line 191 "query.m"
    query__succeeded = (query__CastX_27 == query__CastY_28);
#line 191 "query.m"
    if (query__succeeded)
#line 191 "query.m"
      query__succeeded = MR_TRUE;
#line 191 "query.m"
    else
#line 191 "query.m"
      {
#line 191 "query.m"
        MR_Word query__TypeInfo_29_29;
#line 191 "query.m"
        MR_Word query__V_3_3 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 0)));
#line 191 "query.m"
        MR_Word query__V_4_4 = ((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 1)))) & (MR_Integer) 1);
#line 191 "query.m"
        MR_Word query__V_5_5 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 1)))) >> (MR_Integer) 1)) & (MR_Integer) 1);
#line 191 "query.m"
        MR_Word query__V_6_6 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 2)));
#line 191 "query.m"
        MR_Integer query__V_7_7 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 3)));
#line 191 "query.m"
        MR_Word query__V_8_8 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 4)));
#line 191 "query.m"
        MR_Word query__V_9_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 5)));
#line 191 "query.m"
        MR_Word query__V_10_10 = ((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 6)))) & (MR_Integer) 1);
#line 191 "query.m"
        MR_Word query__V_11_11 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 6)))) >> (MR_Integer) 1)) & (MR_Integer) 3);
#line 191 "query.m"
        MR_Word query__V_12_12 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 6)))) >> (MR_Integer) 3)) & (MR_Integer) 3);
#line 191 "query.m"
        MR_Word query__V_13_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 7)));
#line 191 "query.m"
        MR_Word query__V_14_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 8)));
#line 191 "query.m"
        MR_Word query__V_15_15 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 0)));
#line 191 "query.m"
        MR_Word query__V_16_16 = ((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 1)))) & (MR_Integer) 1);
#line 191 "query.m"
        MR_Word query__V_17_17 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 1)))) >> (MR_Integer) 1)) & (MR_Integer) 1);
#line 191 "query.m"
        MR_Word query__V_18_18 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 2)));
#line 191 "query.m"
        MR_Integer query__V_19_19 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 3)));
#line 191 "query.m"
        MR_Word query__V_20_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 4)));
#line 191 "query.m"
        MR_Word query__V_21_21 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 5)));
#line 191 "query.m"
        MR_Word query__V_22_22 = ((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 6)))) & (MR_Integer) 1);
#line 191 "query.m"
        MR_Word query__V_23_23 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 6)))) >> (MR_Integer) 1)) & (MR_Integer) 3);
#line 191 "query.m"
        MR_Word query__V_24_24 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 6)))) >> (MR_Integer) 3)) & (MR_Integer) 3);
#line 191 "query.m"
        MR_Word query__V_25_25 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 7)));
#line 191 "query.m"
        MR_Word query__V_26_26 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 8)));

#line 7031 "query.c"
        {
#line 7033 "query.c"
          query__succeeded = query____Unify____fields_0_0(query__V_3_3, query__V_15_15);
        }
#line 191 "query.m"
        if (query__succeeded)
#line 191 "query.m"
          {
#line 7040 "query.c"
            query__succeeded = (query__V_4_4 == query__V_16_16);
#line 191 "query.m"
            if (query__succeeded)
#line 191 "query.m"
              {
#line 7046 "query.c"
                query__succeeded = (query__V_5_5 == query__V_17_17);
#line 191 "query.m"
                if (query__succeeded)
#line 191 "query.m"
                  {
#line 7052 "query.c"
                    query__TypeInfo_29_29 = (MR_Word) &query_scalar_common_1[0];
#line 7054 "query.c"
                    {
#line 7056 "query.c"
                      query__succeeded = mercury__builtin__unify_2_p_0(query__TypeInfo_29_29, ((MR_Box) (query__V_6_6)), ((MR_Box) (query__V_18_18)));
                    }
#line 191 "query.m"
                    if (query__succeeded)
#line 191 "query.m"
                      {
#line 7063 "query.c"
                        query__succeeded = (query__V_7_7 == query__V_19_19);
#line 191 "query.m"
                        if (query__succeeded)
#line 191 "query.m"
                          {
#line 7069 "query.c"
                            query__succeeded = (query__V_8_8 == query__V_20_20);
#line 191 "query.m"
                            if (query__succeeded)
#line 191 "query.m"
                              {
#line 7075 "query.c"
                                {
#line 7077 "query.c"
                                  query__succeeded = query____Unify____order_criteria_0_0(query__V_9_9, query__V_21_21);
                                }
#line 191 "query.m"
                                if (query__succeeded)
#line 191 "query.m"
                                  {
#line 7084 "query.c"
                                    query__succeeded = (query__V_10_10 == query__V_22_22);
#line 191 "query.m"
                                    if (query__succeeded)
#line 191 "query.m"
                                      {
#line 7090 "query.c"
                                        query__succeeded = (query__V_11_11 == query__V_23_23);
#line 191 "query.m"
                                        if (query__succeeded)
#line 191 "query.m"
                                          {
#line 7096 "query.c"
                                            query__succeeded = (query__V_12_12 == query__V_24_24);
#line 191 "query.m"
                                            if (query__succeeded)
#line 191 "query.m"
                                              {
#line 7102 "query.c"
                                                {
#line 7104 "query.c"
                                                  query__succeeded = query____Unify____inactive_items_0_0(query__V_13_13, query__V_25_25);
                                                }
#line 191 "query.m"
                                                if (query__succeeded)
#line 7109 "query.c"
                                                  query__succeeded = (query__V_14_14 == query__V_26_26);
#line 191 "query.m"
                                              }
#line 191 "query.m"
                                          }
#line 191 "query.m"
                                      }
#line 191 "query.m"
                                  }
#line 191 "query.m"
                              }
#line 191 "query.m"
                          }
#line 191 "query.m"
                      }
#line 191 "query.m"
                  }
#line 191 "query.m"
              }
#line 191 "query.m"
          }
#line 191 "query.m"
      }
#line 191 "query.m"
    return query__succeeded;
#line 191 "query.m"
  }
#line 191 "query.m"
}

#line 244 "query.m"
void MR_CALL 
query____Compare____port_fields_0_0(
#line 244 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 244 "query.m"
  MR_Word query__HeadVar__2_2,
#line 244 "query.m"
  MR_Word query__HeadVar__3_3)
#line 244 "query.m"
{
#line 244 "query.m"
  {
#line 244 "query.m"
    MR_bool query__succeeded;
#line 244 "query.m"
    MR_Integer query__Cast_HeadVar1_4 = (MR_Integer) query__HeadVar__2_2;
#line 244 "query.m"
    MR_Integer query__Cast_HeadVar2_5 = (MR_Integer) query__HeadVar__3_3;

#line 244 "query.m"
    {
#line 244 "query.m"
      mercury__private_builtin__builtin_compare_int_3_p_0(query__HeadVar__1_1, query__Cast_HeadVar1_4, query__Cast_HeadVar2_5);
#line 244 "query.m"
      return;
    }
#line 244 "query.m"
  }
#line 244 "query.m"
}

#line 244 "query.m"
MR_bool MR_CALL 
query____Unify____port_fields_0_0(
#line 244 "query.m"
  MR_Word query__HeadVar__2_1,
#line 244 "query.m"
  MR_Word query__HeadVar__2_2)
#line 244 "query.m"
{
#line 7181 "query.c"
  {
#line 7183 "query.c"
    MR_bool query__succeeded = (query__HeadVar__2_1 == query__HeadVar__2_2);

#line 7186 "query.c"
    return query__succeeded;
#line 7188 "query.c"
  }
#line 244 "query.m"
}

#line 292 "query.m"
void MR_CALL 
query____Compare____order_criteria_0_0(
#line 292 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 292 "query.m"
  MR_Word query__HeadVar__2_2,
#line 292 "query.m"
  MR_Word query__HeadVar__3_3)
#line 292 "query.m"
{
#line 292 "query.m"
  {
#line 292 "query.m"
    MR_bool query__succeeded;
#line 292 "query.m"
    MR_Integer query__CastX_24 = (MR_Integer) query__HeadVar__2_2;
#line 292 "query.m"
    MR_Integer query__CastY_25 = (MR_Integer) query__HeadVar__3_3;

#line 292 "query.m"
    query__succeeded = (query__CastX_24 == query__CastY_25);
#line 292 "query.m"
    if (query__succeeded)
#line 7217 "query.c"
      *query__HeadVar__1_1 = (MR_Integer) 0;
#line 292 "query.m"
    else
#line 292 "query.m"
      if ((query__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 292 "query.m"
        if ((query__HeadVar__3_3 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 292 "query.m"
          *query__HeadVar__1_1 = (MR_Integer) 0;
#line 292 "query.m"
        else
#line 292 "query.m"
          if ((query__HeadVar__3_3 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 1)))))
#line 292 "query.m"
            *query__HeadVar__1_1 = (MR_Integer) 1;
#line 292 "query.m"
          else
#line 7235 "query.c"
            *query__HeadVar__1_1 = (MR_Integer) 1;
#line 292 "query.m"
      else
#line 292 "query.m"
        if ((query__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 1)))))
#line 292 "query.m"
          if ((query__HeadVar__3_3 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 292 "query.m"
            *query__HeadVar__1_1 = (MR_Integer) 2;
#line 292 "query.m"
          else
#line 292 "query.m"
            if ((query__HeadVar__3_3 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 1)))))
#line 292 "query.m"
              *query__HeadVar__1_1 = (MR_Integer) 0;
#line 292 "query.m"
            else
#line 7253 "query.c"
              *query__HeadVar__1_1 = (MR_Integer) 1;
#line 292 "query.m"
        else
#line 292 "query.m"
          {
#line 292 "query.m"
            MR_Word query__V_29_29 = ((((((MR_Word) (MR_hl_field(MR_mktag(1), query__HeadVar__2_2, (MR_Integer) 0)))) >> (MR_Integer) 4)) & (MR_Integer) 1);
#line 292 "query.m"
            MR_Word query__V_30_30 = ((((((MR_Word) (MR_hl_field(MR_mktag(1), query__HeadVar__2_2, (MR_Integer) 0)))) >> (MR_Integer) 3)) & (MR_Integer) 1);
#line 292 "query.m"
            MR_Word query__V_31_31 = ((((MR_Word) (MR_hl_field(MR_mktag(1), query__HeadVar__2_2, (MR_Integer) 0)))) & (MR_Integer) 7);

#line 292 "query.m"
            if ((query__HeadVar__3_3 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 7268 "query.c"
              *query__HeadVar__1_1 = (MR_Integer) 2;
#line 292 "query.m"
            else
#line 292 "query.m"
              if ((query__HeadVar__3_3 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 1)))))
#line 7274 "query.c"
                *query__HeadVar__1_1 = (MR_Integer) 2;
#line 292 "query.m"
              else
#line 292 "query.m"
                {
#line 292 "query.m"
                  MR_Word query__V_19_19 = ((((MR_Word) (MR_hl_field(MR_mktag(1), query__HeadVar__3_3, (MR_Integer) 0)))) & (MR_Integer) 7);
#line 292 "query.m"
                  MR_Word query__V_20_20 = ((((((MR_Word) (MR_hl_field(MR_mktag(1), query__HeadVar__3_3, (MR_Integer) 0)))) >> (MR_Integer) 3)) & (MR_Integer) 1);
#line 292 "query.m"
                  MR_Word query__V_21_21 = ((((((MR_Word) (MR_hl_field(MR_mktag(1), query__HeadVar__3_3, (MR_Integer) 0)))) >> (MR_Integer) 4)) & (MR_Integer) 1);
#line 292 "query.m"
                  MR_Word query__V_22_22;
#line 292 "query.m"
                  MR_Integer query__V_32_32 = (MR_Integer) query__V_31_31;
#line 292 "query.m"
                  MR_Integer query__V_33_33 = (MR_Integer) query__V_19_19;

#line 292 "query.m"
                  {
#line 292 "query.m"
                    mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_22_22, query__V_32_32, query__V_33_33);
                  }
#line 7298 "query.c"
                  query__succeeded = (query__V_22_22 == (MR_Integer) 0);
#line 292 "query.m"
                  query__succeeded = !(query__succeeded);
#line 292 "query.m"
                  if (query__succeeded)
#line 292 "query.m"
                    *query__HeadVar__1_1 = query__V_22_22;
#line 292 "query.m"
                  else
#line 292 "query.m"
                    {
#line 292 "query.m"
                      MR_Word query__V_23_23;
#line 292 "query.m"
                      MR_Integer query__V_34_34 = (MR_Integer) query__V_30_30;
#line 292 "query.m"
                      MR_Integer query__V_35_35 = (MR_Integer) query__V_20_20;

#line 292 "query.m"
                      {
#line 292 "query.m"
                        mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_23_23, query__V_34_34, query__V_35_35);
                      }
#line 7322 "query.c"
                      query__succeeded = (query__V_23_23 == (MR_Integer) 0);
#line 292 "query.m"
                      query__succeeded = !(query__succeeded);
#line 292 "query.m"
                      if (query__succeeded)
#line 292 "query.m"
                        *query__HeadVar__1_1 = query__V_23_23;
#line 292 "query.m"
                      else
#line 292 "query.m"
                        {
#line 292 "query.m"
                          MR_Integer query__V_36_36 = (MR_Integer) query__V_29_29;
#line 292 "query.m"
                          MR_Integer query__V_37_37 = (MR_Integer) query__V_21_21;

#line 292 "query.m"
                          {
#line 292 "query.m"
                            mercury__private_builtin__builtin_compare_int_3_p_0(query__HeadVar__1_1, query__V_36_36, query__V_37_37);
#line 292 "query.m"
                            return;
                          }
#line 292 "query.m"
                        }
#line 292 "query.m"
                    }
#line 292 "query.m"
                }
#line 292 "query.m"
          }
#line 292 "query.m"
  }
#line 292 "query.m"
}

#line 292 "query.m"
MR_bool MR_CALL 
query____Unify____order_criteria_0_0(
#line 292 "query.m"
  MR_Word query__HeadVar__1_1,
#line 292 "query.m"
  MR_Word query__HeadVar__2_2)
#line 292 "query.m"
{
#line 292 "query.m"
  {
#line 292 "query.m"
    MR_bool query__succeeded;
#line 292 "query.m"
    MR_Integer query__CastX_13 = (MR_Integer) query__HeadVar__1_1;
#line 292 "query.m"
    MR_Integer query__CastY_14 = (MR_Integer) query__HeadVar__2_2;

#line 292 "query.m"
    query__succeeded = (query__CastX_13 == query__CastY_14);
#line 292 "query.m"
    if (query__succeeded)
#line 292 "query.m"
      query__succeeded = MR_TRUE;
#line 292 "query.m"
    else
#line 292 "query.m"
      if ((query__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 292 "query.m"
        {
#line 292 "query.m"
          MR_Integer query__CastX_3 = (MR_Integer) query__HeadVar__1_1;
#line 292 "query.m"
          MR_Integer query__CastY_4 = (MR_Integer) query__HeadVar__2_2;

#line 292 "query.m"
          query__succeeded = (query__CastY_4 == query__CastX_3);
#line 292 "query.m"
        }
#line 292 "query.m"
      else
#line 292 "query.m"
        if ((query__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 1)))))
#line 292 "query.m"
          {
#line 292 "query.m"
            MR_Integer query__CastX_5 = (MR_Integer) query__HeadVar__1_1;
#line 292 "query.m"
            MR_Integer query__CastY_6 = (MR_Integer) query__HeadVar__2_2;

#line 292 "query.m"
            query__succeeded = (query__CastY_6 == query__CastX_5);
#line 292 "query.m"
          }
#line 292 "query.m"
        else
#line 292 "query.m"
          {
#line 292 "query.m"
            MR_Word query__V_7_7 = ((((MR_Word) (MR_hl_field(MR_mktag(1), query__HeadVar__1_1, (MR_Integer) 0)))) & (MR_Integer) 7);
#line 292 "query.m"
            MR_Word query__V_8_8 = ((((((MR_Word) (MR_hl_field(MR_mktag(1), query__HeadVar__1_1, (MR_Integer) 0)))) >> (MR_Integer) 3)) & (MR_Integer) 1);
#line 292 "query.m"
            MR_Word query__V_9_9 = ((((((MR_Word) (MR_hl_field(MR_mktag(1), query__HeadVar__1_1, (MR_Integer) 0)))) >> (MR_Integer) 4)) & (MR_Integer) 1);
#line 292 "query.m"
            MR_Word query__V_10_10;
#line 292 "query.m"
            MR_Word query__V_11_11;
#line 292 "query.m"
            MR_Word query__V_12_12;

#line 292 "query.m"
            query__succeeded = ((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 1)));
#line 292 "query.m"
            if (query__succeeded)
#line 292 "query.m"
              {
#line 292 "query.m"
                query__V_10_10 = ((((MR_Word) (MR_hl_field(MR_mktag(1), query__HeadVar__2_2, (MR_Integer) 0)))) & (MR_Integer) 7);
#line 292 "query.m"
                query__V_11_11 = ((((((MR_Word) (MR_hl_field(MR_mktag(1), query__HeadVar__2_2, (MR_Integer) 0)))) >> (MR_Integer) 3)) & (MR_Integer) 1);
#line 292 "query.m"
                query__V_12_12 = ((((((MR_Word) (MR_hl_field(MR_mktag(1), query__HeadVar__2_2, (MR_Integer) 0)))) >> (MR_Integer) 4)) & (MR_Integer) 1);
#line 7442 "query.c"
                query__succeeded = (query__V_7_7 == query__V_10_10);
#line 292 "query.m"
                if (query__succeeded)
#line 292 "query.m"
                  {
#line 7448 "query.c"
                    query__succeeded = (query__V_8_8 == query__V_11_11);
#line 292 "query.m"
                    if (query__succeeded)
#line 7452 "query.c"
                      query__succeeded = (query__V_9_9 == query__V_12_12);
#line 292 "query.m"
                  }
#line 292 "query.m"
              }
#line 292 "query.m"
          }
#line 292 "query.m"
    return query__succeeded;
#line 292 "query.m"
  }
#line 292 "query.m"
}

#line 314 "query.m"
void MR_CALL 
query____Compare____module_qual_0_0(
#line 314 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 314 "query.m"
  MR_Word query__HeadVar__2_2,
#line 314 "query.m"
  MR_Word query__HeadVar__3_3)
#line 314 "query.m"
{
#line 314 "query.m"
  {
#line 314 "query.m"
    MR_bool query__succeeded;
#line 314 "query.m"
    MR_Integer query__Cast_HeadVar1_4 = (MR_Integer) query__HeadVar__2_2;
#line 314 "query.m"
    MR_Integer query__Cast_HeadVar2_5 = (MR_Integer) query__HeadVar__3_3;

#line 314 "query.m"
    {
#line 314 "query.m"
      mercury__private_builtin__builtin_compare_int_3_p_0(query__HeadVar__1_1, query__Cast_HeadVar1_4, query__Cast_HeadVar2_5);
#line 314 "query.m"
      return;
    }
#line 314 "query.m"
  }
#line 314 "query.m"
}

#line 314 "query.m"
MR_bool MR_CALL 
query____Unify____module_qual_0_0(
#line 314 "query.m"
  MR_Word query__HeadVar__2_1,
#line 314 "query.m"
  MR_Word query__HeadVar__2_2)
#line 314 "query.m"
{
#line 7508 "query.c"
  {
#line 7510 "query.c"
    MR_bool query__succeeded = (query__HeadVar__2_1 == query__HeadVar__2_2);

#line 7513 "query.c"
    return query__succeeded;
#line 7515 "query.c"
  }
#line 314 "query.m"
}

#line 266 "query.m"
void MR_CALL 
query____Compare____memory_fields_0_0(
#line 266 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 266 "query.m"
  MR_Word query__HeadVar__2_2,
#line 266 "query.m"
  MR_Word query__HeadVar__3_3)
#line 266 "query.m"
{
#line 266 "query.m"
  {
#line 266 "query.m"
    MR_bool query__succeeded;
#line 266 "query.m"
    MR_Integer query__CastX_16 = (MR_Integer) query__HeadVar__2_2;
#line 266 "query.m"
    MR_Integer query__CastY_17 = (MR_Integer) query__HeadVar__3_3;

#line 266 "query.m"
    query__succeeded = (query__CastX_16 == query__CastY_17);
#line 266 "query.m"
    if (query__succeeded)
#line 7544 "query.c"
      *query__HeadVar__1_1 = (MR_Integer) 0;
#line 266 "query.m"
    else
#line 266 "query.m"
      if ((query__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 266 "query.m"
        if ((query__HeadVar__3_3 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 266 "query.m"
          *query__HeadVar__1_1 = (MR_Integer) 0;
#line 266 "query.m"
        else
#line 266 "query.m"
          if (((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 1))))
#line 7558 "query.c"
            *query__HeadVar__1_1 = (MR_Integer) 1;
#line 266 "query.m"
          else
#line 7562 "query.c"
            *query__HeadVar__1_1 = (MR_Integer) 1;
#line 266 "query.m"
      else
#line 266 "query.m"
        if (((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 1))))
#line 266 "query.m"
          {
#line 266 "query.m"
            MR_Word query__V_20_20 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__HeadVar__2_2, (MR_Integer) 0)));

#line 266 "query.m"
            if ((query__HeadVar__3_3 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 7575 "query.c"
              *query__HeadVar__1_1 = (MR_Integer) 2;
#line 266 "query.m"
            else
#line 266 "query.m"
              if (((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 1))))
#line 266 "query.m"
                {
#line 266 "query.m"
                  MR_Word query__V_8_8 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__HeadVar__3_3, (MR_Integer) 0)));
#line 266 "query.m"
                  MR_Integer query__V_22_22 = (MR_Integer) query__V_20_20;
#line 266 "query.m"
                  MR_Integer query__V_23_23 = (MR_Integer) query__V_8_8;

#line 266 "query.m"
                  {
#line 266 "query.m"
                    mercury__private_builtin__builtin_compare_int_3_p_0(query__HeadVar__1_1, query__V_22_22, query__V_23_23);
#line 266 "query.m"
                    return;
                  }
#line 266 "query.m"
                }
#line 266 "query.m"
              else
#line 7601 "query.c"
                *query__HeadVar__1_1 = (MR_Integer) 1;
#line 266 "query.m"
          }
#line 266 "query.m"
        else
#line 266 "query.m"
          {
#line 266 "query.m"
            MR_Word query__V_21_21 = ((MR_Word) (MR_hl_field(MR_mktag(2), query__HeadVar__2_2, (MR_Integer) 0)));

#line 266 "query.m"
            if ((query__HeadVar__3_3 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 7614 "query.c"
              *query__HeadVar__1_1 = (MR_Integer) 2;
#line 266 "query.m"
            else
#line 266 "query.m"
              if (((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 1))))
#line 7620 "query.c"
                *query__HeadVar__1_1 = (MR_Integer) 2;
#line 266 "query.m"
              else
#line 266 "query.m"
                {
#line 266 "query.m"
                  MR_Word query__V_15_15 = ((MR_Word) (MR_hl_field(MR_mktag(2), query__HeadVar__3_3, (MR_Integer) 0)));
#line 266 "query.m"
                  MR_Integer query__V_24_24 = (MR_Integer) query__V_21_21;
#line 266 "query.m"
                  MR_Integer query__V_25_25 = (MR_Integer) query__V_15_15;

#line 266 "query.m"
                  {
#line 266 "query.m"
                    mercury__private_builtin__builtin_compare_int_3_p_0(query__HeadVar__1_1, query__V_24_24, query__V_25_25);
#line 266 "query.m"
                    return;
                  }
#line 266 "query.m"
                }
#line 266 "query.m"
          }
#line 266 "query.m"
  }
#line 266 "query.m"
}

#line 266 "query.m"
MR_bool MR_CALL 
query____Unify____memory_fields_0_0(
#line 266 "query.m"
  MR_Word query__HeadVar__1_1,
#line 266 "query.m"
  MR_Word query__HeadVar__2_2)
#line 266 "query.m"
{
#line 266 "query.m"
  {
#line 266 "query.m"
    MR_bool query__succeeded;
#line 266 "query.m"
    MR_Integer query__CastX_9 = (MR_Integer) query__HeadVar__1_1;
#line 266 "query.m"
    MR_Integer query__CastY_10 = (MR_Integer) query__HeadVar__2_2;

#line 266 "query.m"
    query__succeeded = (query__CastX_9 == query__CastY_10);
#line 266 "query.m"
    if (query__succeeded)
#line 266 "query.m"
      query__succeeded = MR_TRUE;
#line 266 "query.m"
    else
#line 266 "query.m"
      if ((query__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 266 "query.m"
        {
#line 266 "query.m"
          MR_Integer query__CastX_3 = (MR_Integer) query__HeadVar__1_1;
#line 266 "query.m"
          MR_Integer query__CastY_4 = (MR_Integer) query__HeadVar__2_2;

#line 266 "query.m"
          query__succeeded = (query__CastY_4 == query__CastX_3);
#line 266 "query.m"
        }
#line 266 "query.m"
      else
#line 266 "query.m"
        if (((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 1))))
#line 266 "query.m"
          {
#line 266 "query.m"
            MR_Word query__V_5_5 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__HeadVar__1_1, (MR_Integer) 0)));
#line 266 "query.m"
            MR_Word query__V_6_6;

#line 266 "query.m"
            query__succeeded = ((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 1)));
#line 266 "query.m"
            if (query__succeeded)
#line 266 "query.m"
              {
#line 266 "query.m"
                query__V_6_6 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__HeadVar__2_2, (MR_Integer) 0)));
#line 7707 "query.c"
                query__succeeded = (query__V_5_5 == query__V_6_6);
#line 266 "query.m"
              }
#line 266 "query.m"
          }
#line 266 "query.m"
        else
#line 266 "query.m"
          {
#line 266 "query.m"
            MR_Word query__V_7_7 = ((MR_Word) (MR_hl_field(MR_mktag(2), query__HeadVar__1_1, (MR_Integer) 0)));
#line 266 "query.m"
            MR_Word query__V_8_8;

#line 266 "query.m"
            query__succeeded = ((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 2)));
#line 266 "query.m"
            if (query__succeeded)
#line 266 "query.m"
              {
#line 266 "query.m"
                query__V_8_8 = ((MR_Word) (MR_hl_field(MR_mktag(2), query__HeadVar__2_2, (MR_Integer) 0)));
#line 7730 "query.c"
                query__succeeded = (query__V_7_7 == query__V_8_8);
#line 266 "query.m"
              }
#line 266 "query.m"
          }
#line 266 "query.m"
    return query__succeeded;
#line 266 "query.m"
  }
#line 266 "query.m"
}

#line 301 "query.m"
void MR_CALL 
query____Compare____measurement_scope_0_0(
#line 301 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 301 "query.m"
  MR_Word query__HeadVar__2_2,
#line 301 "query.m"
  MR_Word query__HeadVar__3_3)
#line 301 "query.m"
{
#line 301 "query.m"
  {
#line 301 "query.m"
    MR_bool query__succeeded;
#line 301 "query.m"
    MR_Integer query__Cast_HeadVar1_4 = (MR_Integer) query__HeadVar__2_2;
#line 301 "query.m"
    MR_Integer query__Cast_HeadVar2_5 = (MR_Integer) query__HeadVar__3_3;

#line 301 "query.m"
    {
#line 301 "query.m"
      mercury__private_builtin__builtin_compare_int_3_p_0(query__HeadVar__1_1, query__Cast_HeadVar1_4, query__Cast_HeadVar2_5);
#line 301 "query.m"
      return;
    }
#line 301 "query.m"
  }
#line 301 "query.m"
}

#line 301 "query.m"
MR_bool MR_CALL 
query____Unify____measurement_scope_0_0(
#line 301 "query.m"
  MR_Word query__HeadVar__2_1,
#line 301 "query.m"
  MR_Word query__HeadVar__2_2)
#line 301 "query.m"
{
#line 7784 "query.c"
  {
#line 7786 "query.c"
    MR_bool query__succeeded = (query__HeadVar__2_1 == query__HeadVar__2_2);

#line 7789 "query.c"
    return query__succeeded;
#line 7791 "query.c"
  }
#line 301 "query.m"
}

#line 170 "query.m"
void MR_CALL 
query____Compare____include_descendants_0_0(
#line 170 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 170 "query.m"
  MR_Word query__HeadVar__2_2,
#line 170 "query.m"
  MR_Word query__HeadVar__3_3)
#line 170 "query.m"
{
#line 170 "query.m"
  {
#line 170 "query.m"
    MR_bool query__succeeded;
#line 170 "query.m"
    MR_Integer query__Cast_HeadVar1_4 = (MR_Integer) query__HeadVar__2_2;
#line 170 "query.m"
    MR_Integer query__Cast_HeadVar2_5 = (MR_Integer) query__HeadVar__3_3;

#line 170 "query.m"
    {
#line 170 "query.m"
      mercury__private_builtin__builtin_compare_int_3_p_0(query__HeadVar__1_1, query__Cast_HeadVar1_4, query__Cast_HeadVar2_5);
#line 170 "query.m"
      return;
    }
#line 170 "query.m"
  }
#line 170 "query.m"
}

#line 170 "query.m"
MR_bool MR_CALL 
query____Unify____include_descendants_0_0(
#line 170 "query.m"
  MR_Word query__HeadVar__2_1,
#line 170 "query.m"
  MR_Word query__HeadVar__2_2)
#line 170 "query.m"
{
#line 7837 "query.c"
  {
#line 7839 "query.c"
    MR_bool query__succeeded = (query__HeadVar__2_1 == query__HeadVar__2_2);

#line 7842 "query.c"
    return query__succeeded;
#line 7844 "query.c"
  }
#line 170 "query.m"
}

#line 319 "query.m"
void MR_CALL 
query____Compare____inactive_status_0_0(
#line 319 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 319 "query.m"
  MR_Word query__HeadVar__2_2,
#line 319 "query.m"
  MR_Word query__HeadVar__3_3)
#line 319 "query.m"
{
#line 319 "query.m"
  {
#line 319 "query.m"
    MR_bool query__succeeded;
#line 319 "query.m"
    MR_Integer query__Cast_HeadVar1_4 = (MR_Integer) query__HeadVar__2_2;
#line 319 "query.m"
    MR_Integer query__Cast_HeadVar2_5 = (MR_Integer) query__HeadVar__3_3;

#line 319 "query.m"
    {
#line 319 "query.m"
      mercury__private_builtin__builtin_compare_int_3_p_0(query__HeadVar__1_1, query__Cast_HeadVar1_4, query__Cast_HeadVar2_5);
#line 319 "query.m"
      return;
    }
#line 319 "query.m"
  }
#line 319 "query.m"
}

#line 319 "query.m"
MR_bool MR_CALL 
query____Unify____inactive_status_0_0(
#line 319 "query.m"
  MR_Word query__HeadVar__2_1,
#line 319 "query.m"
  MR_Word query__HeadVar__2_2)
#line 319 "query.m"
{
#line 7890 "query.c"
  {
#line 7892 "query.c"
    MR_bool query__succeeded = (query__HeadVar__2_1 == query__HeadVar__2_2);

#line 7895 "query.c"
    return query__succeeded;
#line 7897 "query.c"
  }
#line 319 "query.m"
}

#line 323 "query.m"
void MR_CALL 
query____Compare____inactive_items_0_0(
#line 323 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 323 "query.m"
  MR_Word query__HeadVar__2_2,
#line 323 "query.m"
  MR_Word query__HeadVar__3_3)
#line 323 "query.m"
{
#line 323 "query.m"
  {
#line 323 "query.m"
    MR_bool query__succeeded;
#line 323 "query.m"
    MR_Integer query__CastX_12 = (MR_Integer) query__HeadVar__2_2;
#line 323 "query.m"
    MR_Integer query__CastY_13 = (MR_Integer) query__HeadVar__3_3;

#line 323 "query.m"
    query__succeeded = (query__CastX_12 == query__CastY_13);
#line 323 "query.m"
    if (query__succeeded)
#line 7926 "query.c"
      *query__HeadVar__1_1 = (MR_Integer) 0;
#line 323 "query.m"
    else
#line 323 "query.m"
      {
#line 323 "query.m"
        MR_Word query__V_4_4 = ((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 0)))) & (MR_Integer) 1);
#line 323 "query.m"
        MR_Word query__V_5_5 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 0)))) >> (MR_Integer) 1)) & (MR_Integer) 1);
#line 323 "query.m"
        MR_Word query__V_6_6 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 0)))) >> (MR_Integer) 2)) & (MR_Integer) 1);
#line 323 "query.m"
        MR_Word query__V_7_7 = ((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 0)))) & (MR_Integer) 1);
#line 323 "query.m"
        MR_Word query__V_8_8 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 0)))) >> (MR_Integer) 1)) & (MR_Integer) 1);
#line 323 "query.m"
        MR_Word query__V_9_9 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 0)))) >> (MR_Integer) 2)) & (MR_Integer) 1);
#line 323 "query.m"
        MR_Word query__V_10_10;
#line 323 "query.m"
        MR_Integer query__V_17_17 = (MR_Integer) query__V_4_4;
#line 323 "query.m"
        MR_Integer query__V_18_18 = (MR_Integer) query__V_7_7;

#line 323 "query.m"
        {
#line 323 "query.m"
          mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_10_10, query__V_17_17, query__V_18_18);
        }
#line 7956 "query.c"
        query__succeeded = (query__V_10_10 == (MR_Integer) 0);
#line 323 "query.m"
        query__succeeded = !(query__succeeded);
#line 323 "query.m"
        if (query__succeeded)
#line 323 "query.m"
          *query__HeadVar__1_1 = query__V_10_10;
#line 323 "query.m"
        else
#line 323 "query.m"
          {
#line 323 "query.m"
            MR_Word query__V_11_11;
#line 323 "query.m"
            MR_Integer query__V_19_19 = (MR_Integer) query__V_5_5;
#line 323 "query.m"
            MR_Integer query__V_20_20 = (MR_Integer) query__V_8_8;

#line 323 "query.m"
            {
#line 323 "query.m"
              mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_11_11, query__V_19_19, query__V_20_20);
            }
#line 7980 "query.c"
            query__succeeded = (query__V_11_11 == (MR_Integer) 0);
#line 323 "query.m"
            query__succeeded = !(query__succeeded);
#line 323 "query.m"
            if (query__succeeded)
#line 323 "query.m"
              *query__HeadVar__1_1 = query__V_11_11;
#line 323 "query.m"
            else
#line 323 "query.m"
              {
#line 323 "query.m"
                MR_Integer query__V_21_21 = (MR_Integer) query__V_6_6;
#line 323 "query.m"
                MR_Integer query__V_22_22 = (MR_Integer) query__V_9_9;

#line 323 "query.m"
                {
#line 323 "query.m"
                  mercury__private_builtin__builtin_compare_int_3_p_0(query__HeadVar__1_1, query__V_21_21, query__V_22_22);
#line 323 "query.m"
                  return;
                }
#line 323 "query.m"
              }
#line 323 "query.m"
          }
#line 323 "query.m"
      }
#line 323 "query.m"
  }
#line 323 "query.m"
}

#line 323 "query.m"
MR_bool MR_CALL 
query____Unify____inactive_items_0_0(
#line 323 "query.m"
  MR_Word query__HeadVar__1_1,
#line 323 "query.m"
  MR_Word query__HeadVar__2_2)
#line 323 "query.m"
{
#line 323 "query.m"
  {
#line 323 "query.m"
    MR_bool query__succeeded;
#line 323 "query.m"
    MR_Integer query__CastX_9 = (MR_Integer) query__HeadVar__1_1;
#line 323 "query.m"
    MR_Integer query__CastY_10 = (MR_Integer) query__HeadVar__2_2;

#line 323 "query.m"
    query__succeeded = (query__CastX_9 == query__CastY_10);
#line 323 "query.m"
    if (query__succeeded)
#line 323 "query.m"
      query__succeeded = MR_TRUE;
#line 323 "query.m"
    else
#line 323 "query.m"
      {
#line 323 "query.m"
        MR_Word query__V_3_3 = ((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 0)))) & (MR_Integer) 1);
#line 323 "query.m"
        MR_Word query__V_4_4 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 0)))) >> (MR_Integer) 1)) & (MR_Integer) 1);
#line 323 "query.m"
        MR_Word query__V_5_5 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 0)))) >> (MR_Integer) 2)) & (MR_Integer) 1);
#line 323 "query.m"
        MR_Word query__V_6_6 = ((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 0)))) & (MR_Integer) 1);
#line 323 "query.m"
        MR_Word query__V_7_7 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 0)))) >> (MR_Integer) 1)) & (MR_Integer) 1);
#line 323 "query.m"
        MR_Word query__V_8_8 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 0)))) >> (MR_Integer) 2)) & (MR_Integer) 1);

#line 8056 "query.c"
        query__succeeded = (query__V_3_3 == query__V_6_6);
#line 323 "query.m"
        if (query__succeeded)
#line 323 "query.m"
          {
#line 8062 "query.c"
            query__succeeded = (query__V_4_4 == query__V_7_7);
#line 323 "query.m"
            if (query__succeeded)
#line 8066 "query.c"
              query__succeeded = (query__V_5_5 == query__V_8_8);
#line 323 "query.m"
          }
#line 323 "query.m"
      }
#line 323 "query.m"
    return query__succeeded;
#line 323 "query.m"
  }
#line 323 "query.m"
}

#line 271 "query.m"
void MR_CALL 
query____Compare____fields_0_0(
#line 271 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 271 "query.m"
  MR_Word query__HeadVar__2_2,
#line 271 "query.m"
  MR_Word query__HeadVar__3_3)
#line 271 "query.m"
{
#line 271 "query.m"
  {
#line 271 "query.m"
    MR_bool query__succeeded;
#line 271 "query.m"
    MR_Integer query__CastX_18 = (MR_Integer) query__HeadVar__2_2;
#line 271 "query.m"
    MR_Integer query__CastY_19 = (MR_Integer) query__HeadVar__3_3;

#line 271 "query.m"
    query__succeeded = (query__CastX_18 == query__CastY_19);
#line 271 "query.m"
    if (query__succeeded)
#line 8103 "query.c"
      *query__HeadVar__1_1 = (MR_Integer) 0;
#line 271 "query.m"
    else
#line 271 "query.m"
      {
#line 271 "query.m"
        MR_Word query__V_4_4 = ((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 0)))) & (MR_Integer) 1);
#line 271 "query.m"
        MR_Word query__V_5_5 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 0)))) >> (MR_Integer) 1)) & (MR_Integer) 7);
#line 271 "query.m"
        MR_Word query__V_6_6 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 0)))) >> (MR_Integer) 4)) & (MR_Integer) 3);
#line 271 "query.m"
        MR_Word query__V_7_7 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 0)))) >> (MR_Integer) 6)) & (MR_Integer) 3);
#line 271 "query.m"
        MR_Word query__V_8_8 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 1)));
#line 271 "query.m"
        MR_Word query__V_9_9 = ((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 0)))) & (MR_Integer) 1);
#line 271 "query.m"
        MR_Word query__V_10_10 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 0)))) >> (MR_Integer) 1)) & (MR_Integer) 7);
#line 271 "query.m"
        MR_Word query__V_11_11 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 0)))) >> (MR_Integer) 4)) & (MR_Integer) 3);
#line 271 "query.m"
        MR_Word query__V_12_12 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 0)))) >> (MR_Integer) 6)) & (MR_Integer) 3);
#line 271 "query.m"
        MR_Word query__V_13_13 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 1)));
#line 271 "query.m"
        MR_Word query__V_14_14;
#line 271 "query.m"
        MR_Integer query__V_25_25 = (MR_Integer) query__V_4_4;
#line 271 "query.m"
        MR_Integer query__V_26_26 = (MR_Integer) query__V_9_9;

#line 271 "query.m"
        {
#line 271 "query.m"
          mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_14_14, query__V_25_25, query__V_26_26);
        }
#line 8141 "query.c"
        query__succeeded = (query__V_14_14 == (MR_Integer) 0);
#line 271 "query.m"
        query__succeeded = !(query__succeeded);
#line 271 "query.m"
        if (query__succeeded)
#line 271 "query.m"
          *query__HeadVar__1_1 = query__V_14_14;
#line 271 "query.m"
        else
#line 271 "query.m"
          {
#line 271 "query.m"
            MR_Word query__V_15_15;
#line 271 "query.m"
            MR_Integer query__V_27_27 = (MR_Integer) query__V_5_5;
#line 271 "query.m"
            MR_Integer query__V_28_28 = (MR_Integer) query__V_10_10;

#line 271 "query.m"
            {
#line 271 "query.m"
              mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_15_15, query__V_27_27, query__V_28_28);
            }
#line 8165 "query.c"
            query__succeeded = (query__V_15_15 == (MR_Integer) 0);
#line 271 "query.m"
            query__succeeded = !(query__succeeded);
#line 271 "query.m"
            if (query__succeeded)
#line 271 "query.m"
              *query__HeadVar__1_1 = query__V_15_15;
#line 271 "query.m"
            else
#line 271 "query.m"
              {
#line 271 "query.m"
                MR_Word query__V_16_16;
#line 271 "query.m"
                MR_Integer query__V_29_29 = (MR_Integer) query__V_6_6;
#line 271 "query.m"
                MR_Integer query__V_30_30 = (MR_Integer) query__V_11_11;

#line 271 "query.m"
                {
#line 271 "query.m"
                  mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_16_16, query__V_29_29, query__V_30_30);
                }
#line 8189 "query.c"
                query__succeeded = (query__V_16_16 == (MR_Integer) 0);
#line 271 "query.m"
                query__succeeded = !(query__succeeded);
#line 271 "query.m"
                if (query__succeeded)
#line 271 "query.m"
                  *query__HeadVar__1_1 = query__V_16_16;
#line 271 "query.m"
                else
#line 271 "query.m"
                  {
#line 271 "query.m"
                    MR_Word query__V_17_17;
#line 271 "query.m"
                    MR_Integer query__V_31_31 = (MR_Integer) query__V_7_7;
#line 271 "query.m"
                    MR_Integer query__V_32_32 = (MR_Integer) query__V_12_12;

#line 271 "query.m"
                    {
#line 271 "query.m"
                      mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_17_17, query__V_31_31, query__V_32_32);
                    }
#line 8213 "query.c"
                    query__succeeded = (query__V_17_17 == (MR_Integer) 0);
#line 271 "query.m"
                    query__succeeded = !(query__succeeded);
#line 271 "query.m"
                    if (query__succeeded)
#line 271 "query.m"
                      *query__HeadVar__1_1 = query__V_17_17;
#line 271 "query.m"
                    else
#line 271 "query.m"
                      {
#line 271 "query.m"
                        query____Compare____memory_fields_0_0(query__HeadVar__1_1, query__V_8_8, query__V_13_13);
#line 271 "query.m"
                        return;
                      }
#line 271 "query.m"
                  }
#line 271 "query.m"
              }
#line 271 "query.m"
          }
#line 271 "query.m"
      }
#line 271 "query.m"
  }
#line 271 "query.m"
}

#line 271 "query.m"
MR_bool MR_CALL 
query____Unify____fields_0_0(
#line 271 "query.m"
  MR_Word query__HeadVar__1_1,
#line 271 "query.m"
  MR_Word query__HeadVar__2_2)
#line 271 "query.m"
{
#line 271 "query.m"
  {
#line 271 "query.m"
    MR_bool query__succeeded;
#line 271 "query.m"
    MR_Integer query__CastX_13 = (MR_Integer) query__HeadVar__1_1;
#line 271 "query.m"
    MR_Integer query__CastY_14 = (MR_Integer) query__HeadVar__2_2;

#line 271 "query.m"
    query__succeeded = (query__CastX_13 == query__CastY_14);
#line 271 "query.m"
    if (query__succeeded)
#line 271 "query.m"
      query__succeeded = MR_TRUE;
#line 271 "query.m"
    else
#line 271 "query.m"
      {
#line 271 "query.m"
        MR_Word query__V_3_3 = ((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 0)))) & (MR_Integer) 1);
#line 271 "query.m"
        MR_Word query__V_4_4 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 0)))) >> (MR_Integer) 1)) & (MR_Integer) 7);
#line 271 "query.m"
        MR_Word query__V_5_5 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 0)))) >> (MR_Integer) 4)) & (MR_Integer) 3);
#line 271 "query.m"
        MR_Word query__V_6_6 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 0)))) >> (MR_Integer) 6)) & (MR_Integer) 3);
#line 271 "query.m"
        MR_Word query__V_7_7 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 1)));
#line 271 "query.m"
        MR_Word query__V_8_8 = ((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 0)))) & (MR_Integer) 1);
#line 271 "query.m"
        MR_Word query__V_9_9 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 0)))) >> (MR_Integer) 1)) & (MR_Integer) 7);
#line 271 "query.m"
        MR_Word query__V_10_10 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 0)))) >> (MR_Integer) 4)) & (MR_Integer) 3);
#line 271 "query.m"
        MR_Word query__V_11_11 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 0)))) >> (MR_Integer) 6)) & (MR_Integer) 3);
#line 271 "query.m"
        MR_Word query__V_12_12 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 1)));

#line 8292 "query.c"
        query__succeeded = (query__V_3_3 == query__V_8_8);
#line 271 "query.m"
        if (query__succeeded)
#line 271 "query.m"
          {
#line 8298 "query.c"
            query__succeeded = (query__V_4_4 == query__V_9_9);
#line 271 "query.m"
            if (query__succeeded)
#line 271 "query.m"
              {
#line 8304 "query.c"
                query__succeeded = (query__V_5_5 == query__V_10_10);
#line 271 "query.m"
                if (query__succeeded)
#line 271 "query.m"
                  {
#line 8310 "query.c"
                    query__succeeded = (query__V_6_6 == query__V_11_11);
#line 271 "query.m"
                    if (query__succeeded)
#line 8314 "query.c"
                      {
#line 8316 "query.c"
                        return query__succeeded = query____Unify____memory_fields_0_0(query__V_7_7, query__V_12_12);
                      }
#line 271 "query.m"
                  }
#line 271 "query.m"
              }
#line 271 "query.m"
          }
#line 271 "query.m"
      }
#line 271 "query.m"
    return query__succeeded;
#line 271 "query.m"
  }
#line 271 "query.m"
}

#line 178 "query.m"
void MR_CALL 
query____Compare____display_limit_0_0(
#line 178 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 178 "query.m"
  MR_Word query__HeadVar__2_2,
#line 178 "query.m"
  MR_Word query__HeadVar__3_3)
#line 178 "query.m"
{
#line 178 "query.m"
  {
#line 178 "query.m"
    MR_bool query__succeeded;
#line 178 "query.m"
    MR_Integer query__CastX_29 = (MR_Integer) query__HeadVar__2_2;
#line 178 "query.m"
    MR_Integer query__CastY_30 = (MR_Integer) query__HeadVar__3_3;

#line 178 "query.m"
    query__succeeded = (query__CastX_29 == query__CastY_30);
#line 178 "query.m"
    if (query__succeeded)
#line 8358 "query.c"
      *query__HeadVar__1_1 = (MR_Integer) 0;
#line 178 "query.m"
    else
#line 178 "query.m"
      if (((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 0))))
#line 178 "query.m"
        {
#line 178 "query.m"
          MR_Integer query__V_35_35 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 1)));
#line 178 "query.m"
          MR_Integer query__V_36_36 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 0)));

#line 178 "query.m"
          if (((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 0))))
#line 178 "query.m"
            {
#line 178 "query.m"
              MR_Integer query__V_6_6 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 0)));
#line 178 "query.m"
              MR_Integer query__V_7_7 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 1)));
#line 178 "query.m"
              MR_Word query__V_8_8;

#line 178 "query.m"
              {
#line 178 "query.m"
                mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_8_8, query__V_36_36, query__V_6_6);
              }
#line 8387 "query.c"
              query__succeeded = (query__V_8_8 == (MR_Integer) 0);
#line 178 "query.m"
              query__succeeded = !(query__succeeded);
#line 178 "query.m"
              if (query__succeeded)
#line 178 "query.m"
                *query__HeadVar__1_1 = query__V_8_8;
#line 178 "query.m"
              else
#line 178 "query.m"
                {
#line 178 "query.m"
                  mercury__private_builtin__builtin_compare_int_3_p_0(query__HeadVar__1_1, query__V_35_35, query__V_7_7);
#line 178 "query.m"
                  return;
                }
#line 178 "query.m"
            }
#line 178 "query.m"
          else
#line 178 "query.m"
            if (((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 1))))
#line 8410 "query.c"
              *query__HeadVar__1_1 = (MR_Integer) 1;
#line 178 "query.m"
            else
#line 8414 "query.c"
              *query__HeadVar__1_1 = (MR_Integer) 1;
#line 178 "query.m"
        }
#line 178 "query.m"
      else
#line 178 "query.m"
        if (((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 1))))
#line 178 "query.m"
          {
#line 178 "query.m"
            MR_Float query__V_37_37 = MR_unbox_float((MR_hl_field(MR_mktag(1), query__HeadVar__2_2, (MR_Integer) 0)));

#line 178 "query.m"
            if (((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 0))))
#line 8429 "query.c"
              *query__HeadVar__1_1 = (MR_Integer) 2;
#line 178 "query.m"
            else
#line 178 "query.m"
              if (((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 1))))
#line 178 "query.m"
                {
#line 178 "query.m"
                  MR_Float query__V_19_19 = MR_unbox_float((MR_hl_field(MR_mktag(1), query__HeadVar__3_3, (MR_Integer) 0)));

#line 178 "query.m"
                  {
#line 178 "query.m"
                    mercury__private_builtin__builtin_compare_float_3_p_0(query__HeadVar__1_1, query__V_37_37, query__V_19_19);
#line 178 "query.m"
                    return;
                  }
#line 178 "query.m"
                }
#line 178 "query.m"
              else
#line 8451 "query.c"
                *query__HeadVar__1_1 = (MR_Integer) 1;
#line 178 "query.m"
          }
#line 178 "query.m"
        else
#line 178 "query.m"
          {
#line 178 "query.m"
            MR_Float query__V_38_38 = MR_unbox_float((MR_hl_field(MR_mktag(2), query__HeadVar__2_2, (MR_Integer) 0)));

#line 178 "query.m"
            if (((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 0))))
#line 8464 "query.c"
              *query__HeadVar__1_1 = (MR_Integer) 2;
#line 178 "query.m"
            else
#line 178 "query.m"
              if (((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 1))))
#line 8470 "query.c"
                *query__HeadVar__1_1 = (MR_Integer) 2;
#line 178 "query.m"
              else
#line 178 "query.m"
                {
#line 178 "query.m"
                  MR_Float query__V_28_28 = MR_unbox_float((MR_hl_field(MR_mktag(2), query__HeadVar__3_3, (MR_Integer) 0)));

#line 178 "query.m"
                  {
#line 178 "query.m"
                    mercury__private_builtin__builtin_compare_float_3_p_0(query__HeadVar__1_1, query__V_38_38, query__V_28_28);
#line 178 "query.m"
                    return;
                  }
#line 178 "query.m"
                }
#line 178 "query.m"
          }
#line 178 "query.m"
  }
#line 178 "query.m"
}

#line 178 "query.m"
MR_bool MR_CALL 
query____Unify____display_limit_0_0(
#line 178 "query.m"
  MR_Word query__HeadVar__1_1,
#line 178 "query.m"
  MR_Word query__HeadVar__2_2)
#line 178 "query.m"
{
#line 178 "query.m"
  {
#line 178 "query.m"
    MR_bool query__succeeded;
#line 178 "query.m"
    MR_Integer query__CastX_11 = (MR_Integer) query__HeadVar__1_1;
#line 178 "query.m"
    MR_Integer query__CastY_12 = (MR_Integer) query__HeadVar__2_2;

#line 178 "query.m"
    query__succeeded = (query__CastX_11 == query__CastY_12);
#line 178 "query.m"
    if (query__succeeded)
#line 178 "query.m"
      query__succeeded = MR_TRUE;
#line 178 "query.m"
    else
#line 178 "query.m"
      if (((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 0))))
#line 178 "query.m"
        {
#line 178 "query.m"
          MR_Integer query__V_3_3 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 0)));
#line 178 "query.m"
          MR_Integer query__V_4_4 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 1)));
#line 178 "query.m"
          MR_Integer query__V_5_5;
#line 178 "query.m"
          MR_Integer query__V_6_6;

#line 178 "query.m"
          query__succeeded = ((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 0)));
#line 178 "query.m"
          if (query__succeeded)
#line 178 "query.m"
            {
#line 178 "query.m"
              query__V_5_5 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 0)));
#line 178 "query.m"
              query__V_6_6 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 1)));
#line 8544 "query.c"
              query__succeeded = (query__V_3_3 == query__V_5_5);
#line 178 "query.m"
              if (query__succeeded)
#line 8548 "query.c"
                query__succeeded = (query__V_4_4 == query__V_6_6);
#line 178 "query.m"
            }
#line 178 "query.m"
        }
#line 178 "query.m"
      else
#line 178 "query.m"
        if (((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 1))))
#line 178 "query.m"
          {
#line 178 "query.m"
            MR_Float query__V_7_7 = MR_unbox_float((MR_hl_field(MR_mktag(1), query__HeadVar__1_1, (MR_Integer) 0)));
#line 178 "query.m"
            MR_Float query__V_8_8;

#line 178 "query.m"
            query__succeeded = ((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 1)));
#line 178 "query.m"
            if (query__succeeded)
#line 178 "query.m"
              {
#line 178 "query.m"
                query__V_8_8 = MR_unbox_float((MR_hl_field(MR_mktag(1), query__HeadVar__2_2, (MR_Integer) 0)));
#line 8573 "query.c"
                query__succeeded = (query__V_7_7 == query__V_8_8);
#line 178 "query.m"
              }
#line 178 "query.m"
          }
#line 178 "query.m"
        else
#line 178 "query.m"
          {
#line 178 "query.m"
            MR_Float query__V_9_9 = MR_unbox_float((MR_hl_field(MR_mktag(2), query__HeadVar__1_1, (MR_Integer) 0)));
#line 178 "query.m"
            MR_Float query__V_10_10;

#line 178 "query.m"
            query__succeeded = ((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 2)));
#line 178 "query.m"
            if (query__succeeded)
#line 178 "query.m"
              {
#line 178 "query.m"
                query__V_10_10 = MR_unbox_float((MR_hl_field(MR_mktag(2), query__HeadVar__2_2, (MR_Integer) 0)));
#line 8596 "query.c"
                query__succeeded = (query__V_9_9 == query__V_10_10);
#line 178 "query.m"
              }
#line 178 "query.m"
          }
#line 178 "query.m"
    return query__succeeded;
#line 178 "query.m"
  }
#line 178 "query.m"
}

#line 330 "query.m"
void MR_CALL 
query____Compare____developer_mode_0_0(
#line 330 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 330 "query.m"
  MR_Word query__HeadVar__2_2,
#line 330 "query.m"
  MR_Word query__HeadVar__3_3)
#line 330 "query.m"
{
#line 330 "query.m"
  {
#line 330 "query.m"
    MR_bool query__succeeded;
#line 330 "query.m"
    MR_Integer query__Cast_HeadVar1_4 = (MR_Integer) query__HeadVar__2_2;
#line 330 "query.m"
    MR_Integer query__Cast_HeadVar2_5 = (MR_Integer) query__HeadVar__3_3;

#line 330 "query.m"
    {
#line 330 "query.m"
      mercury__private_builtin__builtin_compare_int_3_p_0(query__HeadVar__1_1, query__Cast_HeadVar1_4, query__Cast_HeadVar2_5);
#line 330 "query.m"
      return;
    }
#line 330 "query.m"
  }
#line 330 "query.m"
}

#line 330 "query.m"
MR_bool MR_CALL 
query____Unify____developer_mode_0_0(
#line 330 "query.m"
  MR_Word query__HeadVar__2_1,
#line 330 "query.m"
  MR_Word query__HeadVar__2_2)
#line 330 "query.m"
{
#line 8650 "query.c"
  {
#line 8652 "query.c"
    MR_bool query__succeeded = (query__HeadVar__2_1 == query__HeadVar__2_2);

#line 8655 "query.c"
    return query__succeeded;
#line 8657 "query.c"
  }
#line 330 "query.m"
}

#line 174 "query.m"
void MR_CALL 
query____Compare____descendants_meaningful_0_0(
#line 174 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 174 "query.m"
  MR_Word query__HeadVar__2_2,
#line 174 "query.m"
  MR_Word query__HeadVar__3_3)
#line 174 "query.m"
{
#line 174 "query.m"
  {
#line 174 "query.m"
    MR_bool query__succeeded;
#line 174 "query.m"
    MR_Integer query__Cast_HeadVar1_4 = (MR_Integer) query__HeadVar__2_2;
#line 174 "query.m"
    MR_Integer query__Cast_HeadVar2_5 = (MR_Integer) query__HeadVar__3_3;

#line 174 "query.m"
    {
#line 174 "query.m"
      mercury__private_builtin__builtin_compare_int_3_p_0(query__HeadVar__1_1, query__Cast_HeadVar1_4, query__Cast_HeadVar2_5);
#line 174 "query.m"
      return;
    }
#line 174 "query.m"
  }
#line 174 "query.m"
}

#line 174 "query.m"
MR_bool MR_CALL 
query____Unify____descendants_meaningful_0_0(
#line 174 "query.m"
  MR_Word query__HeadVar__2_1,
#line 174 "query.m"
  MR_Word query__HeadVar__2_2)
#line 174 "query.m"
{
#line 8703 "query.c"
  {
#line 8705 "query.c"
    MR_bool query__succeeded = (query__HeadVar__2_1 == query__HeadVar__2_2);

#line 8708 "query.c"
    return query__succeeded;
#line 8710 "query.c"
  }
#line 174 "query.m"
}

#line 49 "query.m"
void MR_CALL 
query____Compare____deep_query_0_0(
#line 49 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 49 "query.m"
  MR_Word query__HeadVar__2_2,
#line 49 "query.m"
  MR_Word query__HeadVar__3_3)
#line 49 "query.m"
{
#line 49 "query.m"
  {
#line 49 "query.m"
    MR_bool query__succeeded;
#line 49 "query.m"
    MR_Integer query__CastX_12 = (MR_Integer) query__HeadVar__2_2;
#line 49 "query.m"
    MR_Integer query__CastY_13 = (MR_Integer) query__HeadVar__3_3;

#line 49 "query.m"
    query__succeeded = (query__CastX_12 == query__CastY_13);
#line 49 "query.m"
    if (query__succeeded)
#line 8739 "query.c"
      *query__HeadVar__1_1 = (MR_Integer) 0;
#line 49 "query.m"
    else
#line 49 "query.m"
      {
#line 49 "query.m"
        MR_Word query__V_4_4 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 0)));
#line 49 "query.m"
        MR_String query__V_5_5 = ((MR_String) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 1)));
#line 49 "query.m"
        MR_Word query__V_6_6 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 2)));
#line 49 "query.m"
        MR_Word query__V_7_7 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 0)));
#line 49 "query.m"
        MR_String query__V_8_8 = ((MR_String) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 1)));
#line 49 "query.m"
        MR_Word query__V_9_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__3_3, (MR_Integer) 2)));
#line 49 "query.m"
        MR_Word query__V_10_10;

#line 49 "query.m"
        {
#line 49 "query.m"
          mercury__builtin__compare_3_p_0((MR_Word) &query_scalar_common_1[1], &query__V_10_10, ((MR_Box) (query__V_4_4)), ((MR_Box) (query__V_7_7)));
        }
#line 8765 "query.c"
        query__succeeded = (query__V_10_10 == (MR_Integer) 0);
#line 49 "query.m"
        query__succeeded = !(query__succeeded);
#line 49 "query.m"
        if (query__succeeded)
#line 49 "query.m"
          *query__HeadVar__1_1 = query__V_10_10;
#line 49 "query.m"
        else
#line 49 "query.m"
          {
#line 49 "query.m"
            MR_Word query__V_11_11;

#line 49 "query.m"
            {
#line 49 "query.m"
              mercury__private_builtin__builtin_compare_string_3_p_0(&query__V_11_11, query__V_5_5, query__V_8_8);
            }
#line 8785 "query.c"
            query__succeeded = (query__V_11_11 == (MR_Integer) 0);
#line 49 "query.m"
            query__succeeded = !(query__succeeded);
#line 49 "query.m"
            if (query__succeeded)
#line 49 "query.m"
              *query__HeadVar__1_1 = query__V_11_11;
#line 49 "query.m"
            else
#line 49 "query.m"
              {
#line 49 "query.m"
                {
#line 49 "query.m"
                  mercury__builtin__compare_3_p_0((MR_Word) &query_scalar_common_1[2], query__HeadVar__1_1, ((MR_Box) (query__V_6_6)), ((MR_Box) (query__V_9_9)));
#line 49 "query.m"
                  return;
                }
#line 49 "query.m"
              }
#line 49 "query.m"
          }
#line 49 "query.m"
      }
#line 49 "query.m"
  }
#line 49 "query.m"
}

#line 49 "query.m"
MR_bool MR_CALL 
query____Unify____deep_query_0_0(
#line 49 "query.m"
  MR_Word query__HeadVar__1_1,
#line 49 "query.m"
  MR_Word query__HeadVar__2_2)
#line 49 "query.m"
{
#line 49 "query.m"
  {
#line 49 "query.m"
    MR_bool query__succeeded;
#line 49 "query.m"
    MR_Integer query__CastX_9 = (MR_Integer) query__HeadVar__1_1;
#line 49 "query.m"
    MR_Integer query__CastY_10 = (MR_Integer) query__HeadVar__2_2;

#line 49 "query.m"
    query__succeeded = (query__CastX_9 == query__CastY_10);
#line 49 "query.m"
    if (query__succeeded)
#line 49 "query.m"
      query__succeeded = MR_TRUE;
#line 49 "query.m"
    else
#line 49 "query.m"
      {
#line 49 "query.m"
        MR_Word query__TypeInfo_12_12;
#line 49 "query.m"
        MR_Word query__V_3_3 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 0)));
#line 49 "query.m"
        MR_String query__V_4_4 = ((MR_String) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 1)));
#line 49 "query.m"
        MR_Word query__V_5_5 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 2)));
#line 49 "query.m"
        MR_Word query__V_6_6 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 0)));
#line 49 "query.m"
        MR_String query__V_7_7 = ((MR_String) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 1)));
#line 49 "query.m"
        MR_Word query__V_8_8 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__2_2, (MR_Integer) 2)));

#line 8858 "query.c"
        {
#line 8860 "query.c"
          query__succeeded = mercury__builtin__unify_2_p_0((MR_Word) &query_scalar_common_1[1], ((MR_Box) (query__V_3_3)), ((MR_Box) (query__V_6_6)));
        }
#line 49 "query.m"
        if (query__succeeded)
#line 49 "query.m"
          {
#line 8867 "query.c"
            query__succeeded = (strcmp(query__V_4_4, query__V_7_7) == 0);
#line 49 "query.m"
            if (query__succeeded)
#line 49 "query.m"
              {
#line 8873 "query.c"
                query__TypeInfo_12_12 = (MR_Word) &query_scalar_common_1[2];
#line 8875 "query.c"
                {
#line 8877 "query.c"
                  return query__succeeded = mercury__builtin__unify_2_p_0(query__TypeInfo_12_12, ((MR_Box) (query__V_5_5)), ((MR_Box) (query__V_8_8)));
                }
#line 49 "query.m"
              }
#line 49 "query.m"
          }
#line 49 "query.m"
      }
#line 49 "query.m"
    return query__succeeded;
#line 49 "query.m"
  }
#line 49 "query.m"
}

#line 162 "query.m"
void MR_CALL 
query____Compare____cost_kind_0_0(
#line 162 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 162 "query.m"
  MR_Word query__HeadVar__2_2,
#line 162 "query.m"
  MR_Word query__HeadVar__3_3)
#line 162 "query.m"
{
#line 162 "query.m"
  {
#line 162 "query.m"
    MR_bool query__succeeded;
#line 162 "query.m"
    MR_Integer query__Cast_HeadVar1_4 = (MR_Integer) query__HeadVar__2_2;
#line 162 "query.m"
    MR_Integer query__Cast_HeadVar2_5 = (MR_Integer) query__HeadVar__3_3;

#line 162 "query.m"
    {
#line 162 "query.m"
      mercury__private_builtin__builtin_compare_int_3_p_0(query__HeadVar__1_1, query__Cast_HeadVar1_4, query__Cast_HeadVar2_5);
#line 162 "query.m"
      return;
    }
#line 162 "query.m"
  }
#line 162 "query.m"
}

#line 162 "query.m"
MR_bool MR_CALL 
query____Unify____cost_kind_0_0(
#line 162 "query.m"
  MR_Word query__HeadVar__2_1,
#line 162 "query.m"
  MR_Word query__HeadVar__2_2)
#line 162 "query.m"
{
#line 8934 "query.c"
  {
#line 8936 "query.c"
    MR_bool query__succeeded = (query__HeadVar__2_1 == query__HeadVar__2_2);

#line 8939 "query.c"
    return query__succeeded;
#line 8941 "query.c"
  }
#line 162 "query.m"
}

#line 305 "query.m"
void MR_CALL 
query____Compare____contour_exclusion_0_0(
#line 305 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 305 "query.m"
  MR_Word query__HeadVar__2_2,
#line 305 "query.m"
  MR_Word query__HeadVar__3_3)
#line 305 "query.m"
{
#line 305 "query.m"
  {
#line 305 "query.m"
    MR_bool query__succeeded;
#line 305 "query.m"
    MR_Integer query__Cast_HeadVar1_4 = (MR_Integer) query__HeadVar__2_2;
#line 305 "query.m"
    MR_Integer query__Cast_HeadVar2_5 = (MR_Integer) query__HeadVar__3_3;

#line 305 "query.m"
    {
#line 305 "query.m"
      mercury__private_builtin__builtin_compare_int_3_p_0(query__HeadVar__1_1, query__Cast_HeadVar1_4, query__Cast_HeadVar2_5);
#line 305 "query.m"
      return;
    }
#line 305 "query.m"
  }
#line 305 "query.m"
}

#line 305 "query.m"
MR_bool MR_CALL 
query____Unify____contour_exclusion_0_0(
#line 305 "query.m"
  MR_Word query__HeadVar__2_1,
#line 305 "query.m"
  MR_Word query__HeadVar__2_2)
#line 305 "query.m"
{
#line 8987 "query.c"
  {
#line 8989 "query.c"
    MR_bool query__succeeded = (query__HeadVar__2_1 == query__HeadVar__2_2);

#line 8992 "query.c"
    return query__succeeded;
#line 8994 "query.c"
  }
#line 305 "query.m"
}

#line 284 "query.m"
void MR_CALL 
query____Compare____colour_column_groups_0_0(
#line 284 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 284 "query.m"
  MR_Word query__HeadVar__2_2,
#line 284 "query.m"
  MR_Word query__HeadVar__3_3)
#line 284 "query.m"
{
#line 284 "query.m"
  {
#line 284 "query.m"
    MR_bool query__succeeded;
#line 284 "query.m"
    MR_Integer query__Cast_HeadVar1_4 = (MR_Integer) query__HeadVar__2_2;
#line 284 "query.m"
    MR_Integer query__Cast_HeadVar2_5 = (MR_Integer) query__HeadVar__3_3;

#line 284 "query.m"
    {
#line 284 "query.m"
      mercury__private_builtin__builtin_compare_int_3_p_0(query__HeadVar__1_1, query__Cast_HeadVar1_4, query__Cast_HeadVar2_5);
#line 284 "query.m"
      return;
    }
#line 284 "query.m"
  }
#line 284 "query.m"
}

#line 284 "query.m"
MR_bool MR_CALL 
query____Unify____colour_column_groups_0_0(
#line 284 "query.m"
  MR_Word query__HeadVar__2_1,
#line 284 "query.m"
  MR_Word query__HeadVar__2_2)
#line 284 "query.m"
{
#line 9040 "query.c"
  {
#line 9042 "query.c"
    MR_bool query__succeeded = (query__HeadVar__2_1 == query__HeadVar__2_2);

#line 9045 "query.c"
    return query__succeeded;
#line 9047 "query.c"
  }
#line 284 "query.m"
}

#line 75 "query.m"
void MR_CALL 
query____Compare____cmd_0_0(
#line 75 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 75 "query.m"
  MR_Word query__HeadVar__2_2,
#line 75 "query.m"
  MR_Word query__HeadVar__3_3)
#line 75 "query.m"
{
#line 75 "query.m"
  {
#line 75 "query.m"
    MR_bool query__succeeded;
#line 75 "query.m"
    MR_Integer query__CastX_64 = (MR_Integer) query__HeadVar__2_2;
#line 75 "query.m"
    MR_Integer query__CastY_65 = (MR_Integer) query__HeadVar__3_3;

#line 75 "query.m"
    query__succeeded = (query__CastX_64 == query__CastY_65);
#line 75 "query.m"
    if (query__succeeded)
#line 9076 "query.c"
      *query__HeadVar__1_1 = (MR_Integer) 0;
#line 75 "query.m"
    else
#line 75 "query.m"
      {
#line 75 "query.m"
        MR_Integer query__V_4_4;
#line 75 "query.m"
        MR_Integer query__V_5_5;

#line 75 "query.m"
        {
#line 75 "query.m"
          query____Index____cmd_0_0(query__HeadVar__2_2, &query__V_4_4);
        }
#line 75 "query.m"
        {
#line 75 "query.m"
          query____Index____cmd_0_0(query__HeadVar__3_3, &query__V_5_5);
        }
#line 75 "query.m"
        query__succeeded = (query__V_4_4 < query__V_5_5);
#line 75 "query.m"
        if (query__succeeded)
#line 9101 "query.c"
          *query__HeadVar__1_1 = (MR_Integer) 1;
#line 75 "query.m"
        else
#line 75 "query.m"
          {
#line 75 "query.m"
            query__succeeded = (query__V_4_4 > query__V_5_5);
#line 75 "query.m"
            if (query__succeeded)
#line 9111 "query.c"
              *query__HeadVar__1_1 = (MR_Integer) 2;
#line 75 "query.m"
            else
#line 75 "query.m"
              {
#line 75 "query.m"
                MR_Word query__V_6_6;

#line 75 "query.m"
                if ((query__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 2)))))
#line 75 "query.m"
                  {
#line 75 "query.m"
                    query__V_6_6 = (MR_Integer) 0;
#line 75 "query.m"
                    query__succeeded = MR_TRUE;
#line 75 "query.m"
                  }
#line 75 "query.m"
                else
#line 75 "query.m"
                  if ((query__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 4)))))
#line 75 "query.m"
                    {
#line 75 "query.m"
                      query__V_6_6 = (MR_Integer) 0;
#line 75 "query.m"
                      query__succeeded = MR_TRUE;
#line 75 "query.m"
                    }
#line 75 "query.m"
                  else
#line 75 "query.m"
                    if ((query__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 75 "query.m"
                      {
#line 75 "query.m"
                        query__V_6_6 = (MR_Integer) 0;
#line 75 "query.m"
                        query__succeeded = MR_TRUE;
#line 75 "query.m"
                      }
#line 75 "query.m"
                    else
#line 75 "query.m"
                      if ((query__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 3)))))
#line 75 "query.m"
                        {
#line 75 "query.m"
                          query__V_6_6 = (MR_Integer) 0;
#line 75 "query.m"
                          query__succeeded = MR_TRUE;
#line 75 "query.m"
                        }
#line 75 "query.m"
                      else
#line 75 "query.m"
                        if ((query__HeadVar__2_2 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 1)))))
#line 75 "query.m"
                          {
#line 75 "query.m"
                            query__V_6_6 = (MR_Integer) 0;
#line 75 "query.m"
                            query__succeeded = MR_TRUE;
#line 75 "query.m"
                          }
#line 75 "query.m"
                        else
#line 75 "query.m"
                          if (((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 2))))
#line 75 "query.m"
                            {
#line 75 "query.m"
                              MR_Word query__TypeInfo_67_67;
#line 75 "query.m"
                              MR_Word query__V_9_9 = ((MR_Word) (MR_hl_field(MR_mktag(2), query__HeadVar__2_2, (MR_Integer) 0)));
#line 75 "query.m"
                              MR_Word query__V_10_10;

#line 75 "query.m"
                              query__succeeded = ((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 2)));
#line 75 "query.m"
                              if (query__succeeded)
#line 75 "query.m"
                                {
#line 75 "query.m"
                                  query__V_10_10 = ((MR_Word) (MR_hl_field(MR_mktag(2), query__HeadVar__3_3, (MR_Integer) 0)));
#line 9199 "query.c"
                                  query__TypeInfo_67_67 = (MR_Word) &query_scalar_common_1[0];
#line 75 "query.m"
                                  {
#line 75 "query.m"
                                    mercury__builtin__compare_3_p_0(query__TypeInfo_67_67, &query__V_6_6, ((MR_Box) (query__V_9_9)), ((MR_Box) (query__V_10_10)));
                                  }
#line 75 "query.m"
                                  query__succeeded = MR_TRUE;
#line 75 "query.m"
                                }
#line 75 "query.m"
                            }
#line 75 "query.m"
                          else
#line 75 "query.m"
                            if (((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 1))))
#line 75 "query.m"
                              {
#line 75 "query.m"
                                MR_Integer query__V_7_7 = ((MR_Integer) (MR_hl_field(MR_mktag(1), query__HeadVar__2_2, (MR_Integer) 0)));
#line 75 "query.m"
                                MR_Integer query__V_8_8;

#line 75 "query.m"
                                query__succeeded = ((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 1)));
#line 75 "query.m"
                                if (query__succeeded)
#line 75 "query.m"
                                  {
#line 75 "query.m"
                                    query__V_8_8 = ((MR_Integer) (MR_hl_field(MR_mktag(1), query__HeadVar__3_3, (MR_Integer) 0)));
#line 75 "query.m"
                                    {
#line 75 "query.m"
                                      mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_6_6, query__V_7_7, query__V_8_8);
                                    }
#line 75 "query.m"
                                    query__succeeded = MR_TRUE;
#line 75 "query.m"
                                  }
#line 75 "query.m"
                              }
#line 75 "query.m"
                            else
#line 75 "query.m"
                              if (((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 15))))
#line 75 "query.m"
                                {
#line 75 "query.m"
                                  MR_Word query__V_62_62 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 75 "query.m"
                                  MR_Word query__V_63_63;
#line 75 "query.m"
                                  MR_Integer query__V_91_91;
#line 75 "query.m"
                                  MR_Integer query__V_92_92;

#line 75 "query.m"
                                  query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 0)))) == (MR_Integer) 15)));
#line 75 "query.m"
                                  if (query__succeeded)
#line 75 "query.m"
                                    {
#line 75 "query.m"
                                      query__V_63_63 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 1)));
#line 75 "query.m"
                                      query__V_91_91 = (MR_Integer) query__V_62_62;
#line 75 "query.m"
                                      query__V_92_92 = (MR_Integer) query__V_63_63;
#line 75 "query.m"
                                      {
#line 75 "query.m"
                                        mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_6_6, query__V_91_91, query__V_92_92);
                                      }
#line 75 "query.m"
                                      query__succeeded = MR_TRUE;
#line 75 "query.m"
                                    }
#line 75 "query.m"
                                }
#line 75 "query.m"
                              else
#line 75 "query.m"
                                if (((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 0))))
#line 75 "query.m"
                                  {
#line 75 "query.m"
                                    MR_Word query__V_11_11 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 75 "query.m"
                                    MR_Word query__V_12_12;
#line 75 "query.m"
                                    MR_Integer query__V_93_93;
#line 75 "query.m"
                                    MR_Integer query__V_94_94;

#line 75 "query.m"
                                    query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 0)))) == (MR_Integer) 0)));
#line 75 "query.m"
                                    if (query__succeeded)
#line 75 "query.m"
                                      {
#line 75 "query.m"
                                        query__V_12_12 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 1)));
#line 75 "query.m"
                                        query__V_93_93 = (MR_Integer) query__V_11_11;
#line 75 "query.m"
                                        query__V_94_94 = (MR_Integer) query__V_12_12;
#line 75 "query.m"
                                        {
#line 75 "query.m"
                                          mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_6_6, query__V_93_93, query__V_94_94);
                                        }
#line 75 "query.m"
                                        query__succeeded = MR_TRUE;
#line 75 "query.m"
                                      }
#line 75 "query.m"
                                  }
#line 75 "query.m"
                                else
#line 75 "query.m"
                                  if (((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 1))))
#line 75 "query.m"
                                    {
#line 75 "query.m"
                                      MR_Word query__V_13_13 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 75 "query.m"
                                      MR_Word query__V_14_14;
#line 75 "query.m"
                                      MR_Integer query__V_95_95;
#line 75 "query.m"
                                      MR_Integer query__V_96_96;

#line 75 "query.m"
                                      query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 0)))) == (MR_Integer) 1)));
#line 75 "query.m"
                                      if (query__succeeded)
#line 75 "query.m"
                                        {
#line 75 "query.m"
                                          query__V_14_14 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 1)));
#line 75 "query.m"
                                          query__V_95_95 = (MR_Integer) query__V_13_13;
#line 75 "query.m"
                                          query__V_96_96 = (MR_Integer) query__V_14_14;
#line 75 "query.m"
                                          {
#line 75 "query.m"
                                            mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_6_6, query__V_95_95, query__V_96_96);
                                          }
#line 75 "query.m"
                                          query__succeeded = MR_TRUE;
#line 75 "query.m"
                                        }
#line 75 "query.m"
                                    }
#line 75 "query.m"
                                  else
#line 75 "query.m"
                                    if (((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 13))))
#line 75 "query.m"
                                      {
#line 75 "query.m"
                                        MR_Word query__V_58_58 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 75 "query.m"
                                        MR_Word query__V_59_59;
#line 75 "query.m"
                                        MR_Integer query__V_97_97;
#line 75 "query.m"
                                        MR_Integer query__V_98_98;

#line 75 "query.m"
                                        query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 0)))) == (MR_Integer) 13)));
#line 75 "query.m"
                                        if (query__succeeded)
#line 75 "query.m"
                                          {
#line 75 "query.m"
                                            query__V_59_59 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 1)));
#line 75 "query.m"
                                            query__V_97_97 = (MR_Integer) query__V_58_58;
#line 75 "query.m"
                                            query__V_98_98 = (MR_Integer) query__V_59_59;
#line 75 "query.m"
                                            {
#line 75 "query.m"
                                              mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_6_6, query__V_97_97, query__V_98_98);
                                            }
#line 75 "query.m"
                                            query__succeeded = MR_TRUE;
#line 75 "query.m"
                                          }
#line 75 "query.m"
                                      }
#line 75 "query.m"
                                    else
#line 75 "query.m"
                                      if (((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 12))))
#line 75 "query.m"
                                        {
#line 75 "query.m"
                                          MR_Word query__V_56_56 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 75 "query.m"
                                          MR_Word query__V_57_57;
#line 75 "query.m"
                                          MR_Integer query__V_99_99;
#line 75 "query.m"
                                          MR_Integer query__V_100_100;

#line 75 "query.m"
                                          query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 0)))) == (MR_Integer) 12)));
#line 75 "query.m"
                                          if (query__succeeded)
#line 75 "query.m"
                                            {
#line 75 "query.m"
                                              query__V_57_57 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 1)));
#line 75 "query.m"
                                              query__V_99_99 = (MR_Integer) query__V_56_56;
#line 75 "query.m"
                                              query__V_100_100 = (MR_Integer) query__V_57_57;
#line 75 "query.m"
                                              {
#line 75 "query.m"
                                                mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_6_6, query__V_99_99, query__V_100_100);
                                              }
#line 75 "query.m"
                                              query__succeeded = MR_TRUE;
#line 75 "query.m"
                                            }
#line 75 "query.m"
                                        }
#line 75 "query.m"
                                      else
#line 75 "query.m"
                                        if (((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 14))))
#line 75 "query.m"
                                          {
#line 75 "query.m"
                                            MR_Word query__V_60_60 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 75 "query.m"
                                            MR_Word query__V_61_61;
#line 75 "query.m"
                                            MR_Integer query__V_101_101;
#line 75 "query.m"
                                            MR_Integer query__V_102_102;

#line 75 "query.m"
                                            query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 0)))) == (MR_Integer) 14)));
#line 75 "query.m"
                                            if (query__succeeded)
#line 75 "query.m"
                                              {
#line 75 "query.m"
                                                query__V_61_61 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 1)));
#line 75 "query.m"
                                                query__V_101_101 = (MR_Integer) query__V_60_60;
#line 75 "query.m"
                                                query__V_102_102 = (MR_Integer) query__V_61_61;
#line 75 "query.m"
                                                {
#line 75 "query.m"
                                                  mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_6_6, query__V_101_101, query__V_102_102);
                                                }
#line 75 "query.m"
                                                query__succeeded = MR_TRUE;
#line 75 "query.m"
                                              }
#line 75 "query.m"
                                          }
#line 75 "query.m"
                                        else
#line 75 "query.m"
                                          if (((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 11))))
#line 75 "query.m"
                                            {
#line 75 "query.m"
                                              MR_Word query__V_54_54 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 75 "query.m"
                                              MR_Word query__V_55_55;
#line 75 "query.m"
                                              MR_Integer query__V_103_103;
#line 75 "query.m"
                                              MR_Integer query__V_104_104;

#line 75 "query.m"
                                              query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 0)))) == (MR_Integer) 11)));
#line 75 "query.m"
                                              if (query__succeeded)
#line 75 "query.m"
                                                {
#line 75 "query.m"
                                                  query__V_55_55 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 1)));
#line 75 "query.m"
                                                  query__V_103_103 = (MR_Integer) query__V_54_54;
#line 75 "query.m"
                                                  query__V_104_104 = (MR_Integer) query__V_55_55;
#line 75 "query.m"
                                                  {
#line 75 "query.m"
                                                    mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_6_6, query__V_103_103, query__V_104_104);
                                                  }
#line 75 "query.m"
                                                  query__succeeded = MR_TRUE;
#line 75 "query.m"
                                                }
#line 75 "query.m"
                                            }
#line 75 "query.m"
                                          else
#line 75 "query.m"
                                            if (((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 10))))
#line 75 "query.m"
                                              {
#line 75 "query.m"
                                                MR_Word query__V_52_52 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 75 "query.m"
                                                MR_Word query__V_53_53;
#line 75 "query.m"
                                                MR_Integer query__V_105_105;
#line 75 "query.m"
                                                MR_Integer query__V_106_106;

#line 75 "query.m"
                                                query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 0)))) == (MR_Integer) 10)));
#line 75 "query.m"
                                                if (query__succeeded)
#line 75 "query.m"
                                                  {
#line 75 "query.m"
                                                    query__V_53_53 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 1)));
#line 75 "query.m"
                                                    query__V_105_105 = (MR_Integer) query__V_52_52;
#line 75 "query.m"
                                                    query__V_106_106 = (MR_Integer) query__V_53_53;
#line 75 "query.m"
                                                    {
#line 75 "query.m"
                                                      mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_6_6, query__V_105_105, query__V_106_106);
                                                    }
#line 75 "query.m"
                                                    query__succeeded = MR_TRUE;
#line 75 "query.m"
                                                  }
#line 75 "query.m"
                                              }
#line 75 "query.m"
                                            else
#line 75 "query.m"
                                              if (((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 9))))
#line 75 "query.m"
                                                {
#line 75 "query.m"
                                                  MR_Word query__V_50_50 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 75 "query.m"
                                                  MR_Word query__V_51_51;
#line 75 "query.m"
                                                  MR_Integer query__V_107_107;
#line 75 "query.m"
                                                  MR_Integer query__V_108_108;

#line 75 "query.m"
                                                  query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 0)))) == (MR_Integer) 9)));
#line 75 "query.m"
                                                  if (query__succeeded)
#line 75 "query.m"
                                                    {
#line 75 "query.m"
                                                      query__V_51_51 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 1)));
#line 75 "query.m"
                                                      query__V_107_107 = (MR_Integer) query__V_50_50;
#line 75 "query.m"
                                                      query__V_108_108 = (MR_Integer) query__V_51_51;
#line 75 "query.m"
                                                      {
#line 75 "query.m"
                                                        mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_6_6, query__V_107_107, query__V_108_108);
                                                      }
#line 75 "query.m"
                                                      query__succeeded = MR_TRUE;
#line 75 "query.m"
                                                    }
#line 75 "query.m"
                                                }
#line 75 "query.m"
                                              else
#line 75 "query.m"
                                                if (((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 4))))
#line 75 "query.m"
                                                  {
#line 75 "query.m"
                                                    MR_String query__V_31_31 = ((MR_String) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 75 "query.m"
                                                    MR_String query__V_32_32;

#line 75 "query.m"
                                                    query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 0)))) == (MR_Integer) 4)));
#line 75 "query.m"
                                                    if (query__succeeded)
#line 75 "query.m"
                                                      {
#line 75 "query.m"
                                                        query__V_32_32 = ((MR_String) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 1)));
#line 75 "query.m"
                                                        {
#line 75 "query.m"
                                                          mercury__private_builtin__builtin_compare_string_3_p_0(&query__V_6_6, query__V_31_31, query__V_32_32);
                                                        }
#line 75 "query.m"
                                                        query__succeeded = MR_TRUE;
#line 75 "query.m"
                                                      }
#line 75 "query.m"
                                                  }
#line 75 "query.m"
                                                else
#line 75 "query.m"
                                                  if (((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 5))))
#line 75 "query.m"
                                                    {
#line 75 "query.m"
                                                      MR_String query__V_33_33 = ((MR_String) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 75 "query.m"
                                                      MR_String query__V_34_34;

#line 75 "query.m"
                                                      query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 0)))) == (MR_Integer) 5)));
#line 75 "query.m"
                                                      if (query__succeeded)
#line 75 "query.m"
                                                        {
#line 75 "query.m"
                                                          query__V_34_34 = ((MR_String) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 1)));
#line 75 "query.m"
                                                          {
#line 75 "query.m"
                                                            mercury__private_builtin__builtin_compare_string_3_p_0(&query__V_6_6, query__V_33_33, query__V_34_34);
                                                          }
#line 75 "query.m"
                                                          query__succeeded = MR_TRUE;
#line 75 "query.m"
                                                        }
#line 75 "query.m"
                                                    }
#line 75 "query.m"
                                                  else
#line 75 "query.m"
                                                    if (((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 6))))
#line 75 "query.m"
                                                      {
#line 75 "query.m"
                                                        MR_String query__V_35_35 = ((MR_String) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 75 "query.m"
                                                        MR_String query__V_36_36;

#line 75 "query.m"
                                                        query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 0)))) == (MR_Integer) 6)));
#line 75 "query.m"
                                                        if (query__succeeded)
#line 75 "query.m"
                                                          {
#line 75 "query.m"
                                                            query__V_36_36 = ((MR_String) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 1)));
#line 75 "query.m"
                                                            {
#line 75 "query.m"
                                                              mercury__private_builtin__builtin_compare_string_3_p_0(&query__V_6_6, query__V_35_35, query__V_36_36);
                                                            }
#line 75 "query.m"
                                                            query__succeeded = MR_TRUE;
#line 75 "query.m"
                                                          }
#line 75 "query.m"
                                                      }
#line 75 "query.m"
                                                    else
#line 75 "query.m"
                                                      if (((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 2))))
#line 75 "query.m"
                                                        {
#line 75 "query.m"
                                                          MR_Word query__V_15_15 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 75 "query.m"
                                                          MR_Word query__V_16_16;
#line 75 "query.m"
                                                          MR_Integer query__V_109_109;
#line 75 "query.m"
                                                          MR_Integer query__V_110_110;

#line 75 "query.m"
                                                          query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 0)))) == (MR_Integer) 2)));
#line 75 "query.m"
                                                          if (query__succeeded)
#line 75 "query.m"
                                                            {
#line 75 "query.m"
                                                              query__V_16_16 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 1)));
#line 75 "query.m"
                                                              query__V_109_109 = (MR_Integer) query__V_15_15;
#line 75 "query.m"
                                                              query__V_110_110 = (MR_Integer) query__V_16_16;
#line 75 "query.m"
                                                              {
#line 75 "query.m"
                                                                mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_6_6, query__V_109_109, query__V_110_110);
                                                              }
#line 75 "query.m"
                                                              query__succeeded = MR_TRUE;
#line 75 "query.m"
                                                            }
#line 75 "query.m"
                                                        }
#line 75 "query.m"
                                                      else
#line 75 "query.m"
                                                        if (((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 3))))
#line 75 "query.m"
                                                          {
#line 75 "query.m"
                                                            MR_Word query__V_17_17 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 75 "query.m"
                                                            MR_Word query__V_18_18 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 2)));
#line 75 "query.m"
                                                            MR_Integer query__V_19_19 = ((MR_Integer) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 3)));
#line 75 "query.m"
                                                            MR_Integer query__V_20_20 = ((MR_Integer) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 4)));
#line 75 "query.m"
                                                            MR_Word query__V_21_21 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 5)));
#line 75 "query.m"
                                                            MR_Word query__V_22_22;
#line 75 "query.m"
                                                            MR_Word query__V_23_23;
#line 75 "query.m"
                                                            MR_Integer query__V_24_24;
#line 75 "query.m"
                                                            MR_Integer query__V_25_25;
#line 75 "query.m"
                                                            MR_Word query__V_26_26;
#line 75 "query.m"
                                                            MR_Word query__V_27_27;
#line 75 "query.m"
                                                            MR_Integer query__V_111_111;
#line 75 "query.m"
                                                            MR_Integer query__V_112_112;

#line 75 "query.m"
                                                            query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 0)))) == (MR_Integer) 3)));
#line 75 "query.m"
                                                            if (query__succeeded)
#line 75 "query.m"
                                                              {
#line 75 "query.m"
                                                                query__V_22_22 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 1)));
#line 75 "query.m"
                                                                query__V_23_23 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 2)));
#line 75 "query.m"
                                                                query__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 3)));
#line 75 "query.m"
                                                                query__V_25_25 = ((MR_Integer) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 4)));
#line 75 "query.m"
                                                                query__V_26_26 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 5)));
#line 75 "query.m"
                                                                query__V_111_111 = (MR_Integer) query__V_17_17;
#line 75 "query.m"
                                                                query__V_112_112 = (MR_Integer) query__V_22_22;
#line 75 "query.m"
                                                                {
#line 75 "query.m"
                                                                  mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_27_27, query__V_111_111, query__V_112_112);
                                                                }
#line 9770 "query.c"
                                                                query__succeeded = (query__V_27_27 == (MR_Integer) 0);
#line 75 "query.m"
                                                                query__succeeded = !(query__succeeded);
#line 75 "query.m"
                                                                if (query__succeeded)
#line 75 "query.m"
                                                                  query__V_6_6 = query__V_27_27;
#line 75 "query.m"
                                                                else
#line 75 "query.m"
                                                                  {
#line 75 "query.m"
                                                                    MR_Word query__V_28_28;
#line 75 "query.m"
                                                                    MR_Integer query__V_113_113 = (MR_Integer) query__V_18_18;
#line 75 "query.m"
                                                                    MR_Integer query__V_114_114 = (MR_Integer) query__V_23_23;

#line 75 "query.m"
                                                                    {
#line 75 "query.m"
                                                                      mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_28_28, query__V_113_113, query__V_114_114);
                                                                    }
#line 9794 "query.c"
                                                                    query__succeeded = (query__V_28_28 == (MR_Integer) 0);
#line 75 "query.m"
                                                                    query__succeeded = !(query__succeeded);
#line 75 "query.m"
                                                                    if (query__succeeded)
#line 75 "query.m"
                                                                      query__V_6_6 = query__V_28_28;
#line 75 "query.m"
                                                                    else
#line 75 "query.m"
                                                                      {
#line 75 "query.m"
                                                                        MR_Word query__V_29_29;

#line 75 "query.m"
                                                                        {
#line 75 "query.m"
                                                                          mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_29_29, query__V_19_19, query__V_24_24);
                                                                        }
#line 9814 "query.c"
                                                                        query__succeeded = (query__V_29_29 == (MR_Integer) 0);
#line 75 "query.m"
                                                                        query__succeeded = !(query__succeeded);
#line 75 "query.m"
                                                                        if (query__succeeded)
#line 75 "query.m"
                                                                          query__V_6_6 = query__V_29_29;
#line 75 "query.m"
                                                                        else
#line 75 "query.m"
                                                                          {
#line 75 "query.m"
                                                                            MR_Word query__V_30_30;

#line 75 "query.m"
                                                                            {
#line 75 "query.m"
                                                                              mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_30_30, query__V_20_20, query__V_25_25);
                                                                            }
#line 9834 "query.c"
                                                                            query__succeeded = (query__V_30_30 == (MR_Integer) 0);
#line 75 "query.m"
                                                                            query__succeeded = !(query__succeeded);
#line 75 "query.m"
                                                                            if (query__succeeded)
#line 75 "query.m"
                                                                              query__V_6_6 = query__V_30_30;
#line 75 "query.m"
                                                                            else
#line 75 "query.m"
                                                                              {
#line 75 "query.m"
                                                                                MR_Integer query__V_115_115 = (MR_Integer) query__V_21_21;
#line 75 "query.m"
                                                                                MR_Integer query__V_116_116 = (MR_Integer) query__V_26_26;

#line 75 "query.m"
                                                                                {
#line 75 "query.m"
                                                                                  mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_6_6, query__V_115_115, query__V_116_116);
                                                                                }
#line 75 "query.m"
                                                                              }
#line 75 "query.m"
                                                                          }
#line 75 "query.m"
                                                                      }
#line 75 "query.m"
                                                                  }
#line 75 "query.m"
                                                                query__succeeded = MR_TRUE;
#line 75 "query.m"
                                                              }
#line 75 "query.m"
                                                          }
#line 75 "query.m"
                                                        else
#line 75 "query.m"
                                                          if (((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 8))))
#line 75 "query.m"
                                                            {
#line 75 "query.m"
                                                              MR_Word query__V_48_48 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 75 "query.m"
                                                              MR_Word query__V_49_49;
#line 75 "query.m"
                                                              MR_Integer query__V_117_117;
#line 75 "query.m"
                                                              MR_Integer query__V_118_118;

#line 75 "query.m"
                                                              query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 0)))) == (MR_Integer) 8)));
#line 75 "query.m"
                                                              if (query__succeeded)
#line 75 "query.m"
                                                                {
#line 75 "query.m"
                                                                  query__V_49_49 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 1)));
#line 75 "query.m"
                                                                  query__V_117_117 = (MR_Integer) query__V_48_48;
#line 75 "query.m"
                                                                  query__V_118_118 = (MR_Integer) query__V_49_49;
#line 75 "query.m"
                                                                  {
#line 75 "query.m"
                                                                    mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_6_6, query__V_117_117, query__V_118_118);
                                                                  }
#line 75 "query.m"
                                                                  query__succeeded = MR_TRUE;
#line 75 "query.m"
                                                                }
#line 75 "query.m"
                                                            }
#line 75 "query.m"
                                                          else
#line 75 "query.m"
                                                            {
#line 75 "query.m"
                                                              MR_Word query__V_37_37 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 75 "query.m"
                                                              MR_Word query__V_38_38 = ((((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 2)))) & (MR_Integer) 7);
#line 75 "query.m"
                                                              MR_Word query__V_39_39 = ((((((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 2)))) >> (MR_Integer) 3)) & (MR_Integer) 1);
#line 75 "query.m"
                                                              MR_Word query__V_40_40 = ((((((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 2)))) >> (MR_Integer) 4)) & (MR_Integer) 1);
#line 75 "query.m"
                                                              MR_Word query__V_41_41;
#line 75 "query.m"
                                                              MR_Word query__V_42_42;
#line 75 "query.m"
                                                              MR_Word query__V_43_43;
#line 75 "query.m"
                                                              MR_Word query__V_44_44;
#line 75 "query.m"
                                                              MR_Word query__V_45_45;

#line 75 "query.m"
                                                              query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__3_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 0)))) == (MR_Integer) 7)));
#line 75 "query.m"
                                                              if (query__succeeded)
#line 75 "query.m"
                                                                {
#line 75 "query.m"
                                                                  query__V_41_41 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 1)));
#line 75 "query.m"
                                                                  query__V_42_42 = ((((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 2)))) & (MR_Integer) 7);
#line 75 "query.m"
                                                                  query__V_43_43 = ((((((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 2)))) >> (MR_Integer) 3)) & (MR_Integer) 1);
#line 75 "query.m"
                                                                  query__V_44_44 = ((((((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__3_3, (MR_Integer) 2)))) >> (MR_Integer) 4)) & (MR_Integer) 1);
#line 75 "query.m"
                                                                  {
#line 75 "query.m"
                                                                    query____Compare____display_limit_0_0(&query__V_45_45, query__V_37_37, query__V_41_41);
                                                                  }
#line 9950 "query.c"
                                                                  query__succeeded = (query__V_45_45 == (MR_Integer) 0);
#line 75 "query.m"
                                                                  query__succeeded = !(query__succeeded);
#line 75 "query.m"
                                                                  if (query__succeeded)
#line 75 "query.m"
                                                                    query__V_6_6 = query__V_45_45;
#line 75 "query.m"
                                                                  else
#line 75 "query.m"
                                                                    {
#line 75 "query.m"
                                                                      MR_Word query__V_46_46;
#line 75 "query.m"
                                                                      MR_Integer query__V_119_119 = (MR_Integer) query__V_38_38;
#line 75 "query.m"
                                                                      MR_Integer query__V_120_120 = (MR_Integer) query__V_42_42;

#line 75 "query.m"
                                                                      {
#line 75 "query.m"
                                                                        mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_46_46, query__V_119_119, query__V_120_120);
                                                                      }
#line 9974 "query.c"
                                                                      query__succeeded = (query__V_46_46 == (MR_Integer) 0);
#line 75 "query.m"
                                                                      query__succeeded = !(query__succeeded);
#line 75 "query.m"
                                                                      if (query__succeeded)
#line 75 "query.m"
                                                                        query__V_6_6 = query__V_46_46;
#line 75 "query.m"
                                                                      else
#line 75 "query.m"
                                                                        {
#line 75 "query.m"
                                                                          MR_Word query__V_47_47;
#line 75 "query.m"
                                                                          MR_Integer query__V_121_121 = (MR_Integer) query__V_39_39;
#line 75 "query.m"
                                                                          MR_Integer query__V_122_122 = (MR_Integer) query__V_43_43;

#line 75 "query.m"
                                                                          {
#line 75 "query.m"
                                                                            mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_47_47, query__V_121_121, query__V_122_122);
                                                                          }
#line 9998 "query.c"
                                                                          query__succeeded = (query__V_47_47 == (MR_Integer) 0);
#line 75 "query.m"
                                                                          query__succeeded = !(query__succeeded);
#line 75 "query.m"
                                                                          if (query__succeeded)
#line 75 "query.m"
                                                                            query__V_6_6 = query__V_47_47;
#line 75 "query.m"
                                                                          else
#line 75 "query.m"
                                                                            {
#line 75 "query.m"
                                                                              MR_Integer query__V_123_123 = (MR_Integer) query__V_40_40;
#line 75 "query.m"
                                                                              MR_Integer query__V_124_124 = (MR_Integer) query__V_44_44;

#line 75 "query.m"
                                                                              {
#line 75 "query.m"
                                                                                mercury__private_builtin__builtin_compare_int_3_p_0(&query__V_6_6, query__V_123_123, query__V_124_124);
                                                                              }
#line 75 "query.m"
                                                                            }
#line 75 "query.m"
                                                                        }
#line 75 "query.m"
                                                                    }
#line 75 "query.m"
                                                                  query__succeeded = MR_TRUE;
#line 75 "query.m"
                                                                }
#line 75 "query.m"
                                                            }
#line 75 "query.m"
                if (query__succeeded)
#line 75 "query.m"
                  *query__HeadVar__1_1 = query__V_6_6;
#line 75 "query.m"
                else
#line 75 "query.m"
                  {
#line 75 "query.m"
                    mercury__private_builtin__compare_error_0_p_0();
#line 75 "query.m"
                    return;
                  }
#line 75 "query.m"
              }
#line 75 "query.m"
          }
#line 75 "query.m"
      }
#line 75 "query.m"
  }
#line 75 "query.m"
}

#line 75 "query.m"
void MR_CALL 
query____Index____cmd_0_0(
#line 75 "query.m"
  MR_Word query__HeadVar__1_1,
#line 75 "query.m"
  MR_Integer * query__HeadVar__2_2)
#line 75 "query.m"
{
#line 75 "query.m"
  {
#line 75 "query.m"
    MR_bool query__succeeded;

#line 75 "query.m"
    if ((query__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 2)))))
#line 10072 "query.c"
      *query__HeadVar__2_2 = (MR_Integer) 3;
#line 75 "query.m"
    else
#line 75 "query.m"
      if ((query__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 4)))))
#line 10078 "query.c"
        *query__HeadVar__2_2 = (MR_Integer) 10;
#line 75 "query.m"
      else
#line 75 "query.m"
        if ((query__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 10084 "query.c"
          *query__HeadVar__2_2 = (MR_Integer) 0;
#line 75 "query.m"
        else
#line 75 "query.m"
          if ((query__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 3)))))
#line 10090 "query.c"
            *query__HeadVar__2_2 = (MR_Integer) 7;
#line 75 "query.m"
          else
#line 75 "query.m"
            if ((query__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 1)))))
#line 10096 "query.c"
              *query__HeadVar__2_2 = (MR_Integer) 1;
#line 75 "query.m"
            else
#line 75 "query.m"
              if (((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 2))))
#line 10102 "query.c"
                *query__HeadVar__2_2 = (MR_Integer) 4;
#line 75 "query.m"
              else
#line 75 "query.m"
                if (((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 1))))
#line 10108 "query.c"
                  *query__HeadVar__2_2 = (MR_Integer) 2;
#line 75 "query.m"
                else
#line 75 "query.m"
                  if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 15))))
#line 10114 "query.c"
                    *query__HeadVar__2_2 = (MR_Integer) 22;
#line 75 "query.m"
                  else
#line 75 "query.m"
                    if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 0))))
#line 10120 "query.c"
                      *query__HeadVar__2_2 = (MR_Integer) 5;
#line 75 "query.m"
                    else
#line 75 "query.m"
                      if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 1))))
#line 10126 "query.c"
                        *query__HeadVar__2_2 = (MR_Integer) 6;
#line 75 "query.m"
                      else
#line 75 "query.m"
                        if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 13))))
#line 10132 "query.c"
                          *query__HeadVar__2_2 = (MR_Integer) 20;
#line 75 "query.m"
                        else
#line 75 "query.m"
                          if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 12))))
#line 10138 "query.c"
                            *query__HeadVar__2_2 = (MR_Integer) 19;
#line 75 "query.m"
                          else
#line 75 "query.m"
                            if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 14))))
#line 10144 "query.c"
                              *query__HeadVar__2_2 = (MR_Integer) 21;
#line 75 "query.m"
                            else
#line 75 "query.m"
                              if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 11))))
#line 10150 "query.c"
                                *query__HeadVar__2_2 = (MR_Integer) 18;
#line 75 "query.m"
                              else
#line 75 "query.m"
                                if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 10))))
#line 10156 "query.c"
                                  *query__HeadVar__2_2 = (MR_Integer) 17;
#line 75 "query.m"
                                else
#line 75 "query.m"
                                  if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 9))))
#line 10162 "query.c"
                                    *query__HeadVar__2_2 = (MR_Integer) 16;
#line 75 "query.m"
                                  else
#line 75 "query.m"
                                    if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 4))))
#line 10168 "query.c"
                                      *query__HeadVar__2_2 = (MR_Integer) 11;
#line 75 "query.m"
                                    else
#line 75 "query.m"
                                      if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 5))))
#line 10174 "query.c"
                                        *query__HeadVar__2_2 = (MR_Integer) 12;
#line 75 "query.m"
                                      else
#line 75 "query.m"
                                        if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 6))))
#line 10180 "query.c"
                                          *query__HeadVar__2_2 = (MR_Integer) 13;
#line 75 "query.m"
                                        else
#line 75 "query.m"
                                          if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 2))))
#line 10186 "query.c"
                                            *query__HeadVar__2_2 = (MR_Integer) 8;
#line 75 "query.m"
                                          else
#line 75 "query.m"
                                            if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 3))))
#line 10192 "query.c"
                                              *query__HeadVar__2_2 = (MR_Integer) 9;
#line 75 "query.m"
                                            else
#line 75 "query.m"
                                              if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 8))))
#line 10198 "query.c"
                                                *query__HeadVar__2_2 = (MR_Integer) 15;
#line 75 "query.m"
                                              else
#line 10202 "query.c"
                                                *query__HeadVar__2_2 = (MR_Integer) 14;
#line 75 "query.m"
  }
#line 75 "query.m"
}

#line 75 "query.m"
MR_bool MR_CALL 
query____Unify____cmd_0_0(
#line 75 "query.m"
  MR_Word query__HeadVar__1_1,
#line 75 "query.m"
  MR_Word query__HeadVar__2_2)
#line 75 "query.m"
{
#line 75 "query.m"
  {
#line 75 "query.m"
    MR_bool query__succeeded;
#line 75 "query.m"
    MR_Integer query__CastX_63 = (MR_Integer) query__HeadVar__1_1;
#line 75 "query.m"
    MR_Integer query__CastY_64 = (MR_Integer) query__HeadVar__2_2;

#line 75 "query.m"
    query__succeeded = (query__CastX_63 == query__CastY_64);
#line 75 "query.m"
    if (query__succeeded)
#line 75 "query.m"
      query__succeeded = MR_TRUE;
#line 75 "query.m"
    else
#line 75 "query.m"
      if ((query__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 2)))))
#line 75 "query.m"
        {
#line 75 "query.m"
          MR_Integer query__CastX_9 = (MR_Integer) query__HeadVar__1_1;
#line 75 "query.m"
          MR_Integer query__CastY_10 = (MR_Integer) query__HeadVar__2_2;

#line 75 "query.m"
          query__succeeded = (query__CastY_10 == query__CastX_9);
#line 75 "query.m"
        }
#line 75 "query.m"
      else
#line 75 "query.m"
        if ((query__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 4)))))
#line 75 "query.m"
          {
#line 75 "query.m"
            MR_Integer query__CastX_31 = (MR_Integer) query__HeadVar__1_1;
#line 75 "query.m"
            MR_Integer query__CastY_32 = (MR_Integer) query__HeadVar__2_2;

#line 75 "query.m"
            query__succeeded = (query__CastY_32 == query__CastX_31);
#line 75 "query.m"
          }
#line 75 "query.m"
        else
#line 75 "query.m"
          if ((query__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 75 "query.m"
            {
#line 75 "query.m"
              MR_Integer query__CastX_3 = (MR_Integer) query__HeadVar__1_1;
#line 75 "query.m"
              MR_Integer query__CastY_4 = (MR_Integer) query__HeadVar__2_2;

#line 75 "query.m"
              query__succeeded = (query__CastY_4 == query__CastX_3);
#line 75 "query.m"
            }
#line 75 "query.m"
          else
#line 75 "query.m"
            if ((query__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 3)))))
#line 75 "query.m"
              {
#line 75 "query.m"
                MR_Integer query__CastX_17 = (MR_Integer) query__HeadVar__1_1;
#line 75 "query.m"
                MR_Integer query__CastY_18 = (MR_Integer) query__HeadVar__2_2;

#line 75 "query.m"
                query__succeeded = (query__CastY_18 == query__CastX_17);
#line 75 "query.m"
              }
#line 75 "query.m"
            else
#line 75 "query.m"
              if ((query__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 1)))))
#line 75 "query.m"
                {
#line 75 "query.m"
                  MR_Integer query__CastX_5 = (MR_Integer) query__HeadVar__1_1;
#line 75 "query.m"
                  MR_Integer query__CastY_6 = (MR_Integer) query__HeadVar__2_2;

#line 75 "query.m"
                  query__succeeded = (query__CastY_6 == query__CastX_5);
#line 75 "query.m"
                }
#line 75 "query.m"
              else
#line 75 "query.m"
                if (((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 2))))
#line 75 "query.m"
                  {
#line 75 "query.m"
                    MR_Word query__TypeInfo_76_76;
#line 75 "query.m"
                    MR_Word query__V_11_11 = ((MR_Word) (MR_hl_field(MR_mktag(2), query__HeadVar__1_1, (MR_Integer) 0)));
#line 75 "query.m"
                    MR_Word query__V_12_12;

#line 75 "query.m"
                    query__succeeded = ((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 2)));
#line 75 "query.m"
                    if (query__succeeded)
#line 75 "query.m"
                      {
#line 75 "query.m"
                        query__V_12_12 = ((MR_Word) (MR_hl_field(MR_mktag(2), query__HeadVar__2_2, (MR_Integer) 0)));
#line 10329 "query.c"
                        query__TypeInfo_76_76 = (MR_Word) &query_scalar_common_1[0];
#line 10331 "query.c"
                        {
#line 10333 "query.c"
                          return query__succeeded = mercury__builtin__unify_2_p_0(query__TypeInfo_76_76, ((MR_Box) (query__V_11_11)), ((MR_Box) (query__V_12_12)));
                        }
#line 75 "query.m"
                      }
#line 75 "query.m"
                  }
#line 75 "query.m"
                else
#line 75 "query.m"
                  if (((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 1))))
#line 75 "query.m"
                    {
#line 75 "query.m"
                      MR_Integer query__V_7_7 = ((MR_Integer) (MR_hl_field(MR_mktag(1), query__HeadVar__1_1, (MR_Integer) 0)));
#line 75 "query.m"
                      MR_Integer query__V_8_8;

#line 75 "query.m"
                      query__succeeded = ((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 1)));
#line 75 "query.m"
                      if (query__succeeded)
#line 75 "query.m"
                        {
#line 75 "query.m"
                          query__V_8_8 = ((MR_Integer) (MR_hl_field(MR_mktag(1), query__HeadVar__2_2, (MR_Integer) 0)));
#line 10359 "query.c"
                          query__succeeded = (query__V_7_7 == query__V_8_8);
#line 75 "query.m"
                        }
#line 75 "query.m"
                    }
#line 75 "query.m"
                  else
#line 75 "query.m"
                    if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 15))))
#line 75 "query.m"
                      {
#line 75 "query.m"
                        MR_Word query__V_61_61 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 1)));
#line 75 "query.m"
                        MR_Word query__V_62_62;
#line 75 "query.m"
                        MR_Integer query__V_78_78;
#line 75 "query.m"
                        MR_Integer query__V_79_79;

#line 75 "query.m"
                        query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 15)));
#line 75 "query.m"
                        if (query__succeeded)
#line 75 "query.m"
                          {
#line 75 "query.m"
                            query__V_62_62 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 10388 "query.c"
                            query__V_78_78 = (MR_Integer) query__V_61_61;
#line 10390 "query.c"
                            query__V_79_79 = (MR_Integer) query__V_62_62;
#line 10392 "query.c"
                            query__succeeded = (query__V_78_78 == query__V_79_79);
#line 75 "query.m"
                          }
#line 75 "query.m"
                      }
#line 75 "query.m"
                    else
#line 75 "query.m"
                      if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 0))))
#line 75 "query.m"
                        {
#line 75 "query.m"
                          MR_Word query__V_13_13 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 1)));
#line 75 "query.m"
                          MR_Word query__V_14_14;
#line 75 "query.m"
                          MR_Integer query__V_80_80;
#line 75 "query.m"
                          MR_Integer query__V_81_81;

#line 75 "query.m"
                          query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 0)));
#line 75 "query.m"
                          if (query__succeeded)
#line 75 "query.m"
                            {
#line 75 "query.m"
                              query__V_14_14 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 10421 "query.c"
                              query__V_80_80 = (MR_Integer) query__V_13_13;
#line 10423 "query.c"
                              query__V_81_81 = (MR_Integer) query__V_14_14;
#line 10425 "query.c"
                              query__succeeded = (query__V_80_80 == query__V_81_81);
#line 75 "query.m"
                            }
#line 75 "query.m"
                        }
#line 75 "query.m"
                      else
#line 75 "query.m"
                        if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 1))))
#line 75 "query.m"
                          {
#line 75 "query.m"
                            MR_Word query__V_15_15 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 1)));
#line 75 "query.m"
                            MR_Word query__V_16_16;
#line 75 "query.m"
                            MR_Integer query__V_82_82;
#line 75 "query.m"
                            MR_Integer query__V_83_83;

#line 75 "query.m"
                            query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 1)));
#line 75 "query.m"
                            if (query__succeeded)
#line 75 "query.m"
                              {
#line 75 "query.m"
                                query__V_16_16 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 10454 "query.c"
                                query__V_82_82 = (MR_Integer) query__V_15_15;
#line 10456 "query.c"
                                query__V_83_83 = (MR_Integer) query__V_16_16;
#line 10458 "query.c"
                                query__succeeded = (query__V_82_82 == query__V_83_83);
#line 75 "query.m"
                              }
#line 75 "query.m"
                          }
#line 75 "query.m"
                        else
#line 75 "query.m"
                          if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 13))))
#line 75 "query.m"
                            {
#line 75 "query.m"
                              MR_Word query__V_57_57 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 1)));
#line 75 "query.m"
                              MR_Word query__V_58_58;
#line 75 "query.m"
                              MR_Integer query__V_84_84;
#line 75 "query.m"
                              MR_Integer query__V_85_85;

#line 75 "query.m"
                              query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 13)));
#line 75 "query.m"
                              if (query__succeeded)
#line 75 "query.m"
                                {
#line 75 "query.m"
                                  query__V_58_58 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 10487 "query.c"
                                  query__V_84_84 = (MR_Integer) query__V_57_57;
#line 10489 "query.c"
                                  query__V_85_85 = (MR_Integer) query__V_58_58;
#line 10491 "query.c"
                                  query__succeeded = (query__V_84_84 == query__V_85_85);
#line 75 "query.m"
                                }
#line 75 "query.m"
                            }
#line 75 "query.m"
                          else
#line 75 "query.m"
                            if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 12))))
#line 75 "query.m"
                              {
#line 75 "query.m"
                                MR_Word query__V_55_55 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 1)));
#line 75 "query.m"
                                MR_Word query__V_56_56;
#line 75 "query.m"
                                MR_Integer query__V_86_86;
#line 75 "query.m"
                                MR_Integer query__V_87_87;

#line 75 "query.m"
                                query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 12)));
#line 75 "query.m"
                                if (query__succeeded)
#line 75 "query.m"
                                  {
#line 75 "query.m"
                                    query__V_56_56 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 10520 "query.c"
                                    query__V_86_86 = (MR_Integer) query__V_55_55;
#line 10522 "query.c"
                                    query__V_87_87 = (MR_Integer) query__V_56_56;
#line 10524 "query.c"
                                    query__succeeded = (query__V_86_86 == query__V_87_87);
#line 75 "query.m"
                                  }
#line 75 "query.m"
                              }
#line 75 "query.m"
                            else
#line 75 "query.m"
                              if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 14))))
#line 75 "query.m"
                                {
#line 75 "query.m"
                                  MR_Word query__V_59_59 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 1)));
#line 75 "query.m"
                                  MR_Word query__V_60_60;
#line 75 "query.m"
                                  MR_Integer query__V_88_88;
#line 75 "query.m"
                                  MR_Integer query__V_89_89;

#line 75 "query.m"
                                  query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 14)));
#line 75 "query.m"
                                  if (query__succeeded)
#line 75 "query.m"
                                    {
#line 75 "query.m"
                                      query__V_60_60 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 10553 "query.c"
                                      query__V_88_88 = (MR_Integer) query__V_59_59;
#line 10555 "query.c"
                                      query__V_89_89 = (MR_Integer) query__V_60_60;
#line 10557 "query.c"
                                      query__succeeded = (query__V_88_88 == query__V_89_89);
#line 75 "query.m"
                                    }
#line 75 "query.m"
                                }
#line 75 "query.m"
                              else
#line 75 "query.m"
                                if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 11))))
#line 75 "query.m"
                                  {
#line 75 "query.m"
                                    MR_Word query__V_53_53 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 1)));
#line 75 "query.m"
                                    MR_Word query__V_54_54;
#line 75 "query.m"
                                    MR_Integer query__V_90_90;
#line 75 "query.m"
                                    MR_Integer query__V_91_91;

#line 75 "query.m"
                                    query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 11)));
#line 75 "query.m"
                                    if (query__succeeded)
#line 75 "query.m"
                                      {
#line 75 "query.m"
                                        query__V_54_54 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 10586 "query.c"
                                        query__V_90_90 = (MR_Integer) query__V_53_53;
#line 10588 "query.c"
                                        query__V_91_91 = (MR_Integer) query__V_54_54;
#line 10590 "query.c"
                                        query__succeeded = (query__V_90_90 == query__V_91_91);
#line 75 "query.m"
                                      }
#line 75 "query.m"
                                  }
#line 75 "query.m"
                                else
#line 75 "query.m"
                                  if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 10))))
#line 75 "query.m"
                                    {
#line 75 "query.m"
                                      MR_Word query__V_51_51 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 1)));
#line 75 "query.m"
                                      MR_Word query__V_52_52;
#line 75 "query.m"
                                      MR_Integer query__V_92_92;
#line 75 "query.m"
                                      MR_Integer query__V_93_93;

#line 75 "query.m"
                                      query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 10)));
#line 75 "query.m"
                                      if (query__succeeded)
#line 75 "query.m"
                                        {
#line 75 "query.m"
                                          query__V_52_52 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 10619 "query.c"
                                          query__V_92_92 = (MR_Integer) query__V_51_51;
#line 10621 "query.c"
                                          query__V_93_93 = (MR_Integer) query__V_52_52;
#line 10623 "query.c"
                                          query__succeeded = (query__V_92_92 == query__V_93_93);
#line 75 "query.m"
                                        }
#line 75 "query.m"
                                    }
#line 75 "query.m"
                                  else
#line 75 "query.m"
                                    if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 9))))
#line 75 "query.m"
                                      {
#line 75 "query.m"
                                        MR_Word query__V_49_49 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 1)));
#line 75 "query.m"
                                        MR_Word query__V_50_50;
#line 75 "query.m"
                                        MR_Integer query__V_94_94;
#line 75 "query.m"
                                        MR_Integer query__V_95_95;

#line 75 "query.m"
                                        query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 9)));
#line 75 "query.m"
                                        if (query__succeeded)
#line 75 "query.m"
                                          {
#line 75 "query.m"
                                            query__V_50_50 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 10652 "query.c"
                                            query__V_94_94 = (MR_Integer) query__V_49_49;
#line 10654 "query.c"
                                            query__V_95_95 = (MR_Integer) query__V_50_50;
#line 10656 "query.c"
                                            query__succeeded = (query__V_94_94 == query__V_95_95);
#line 75 "query.m"
                                          }
#line 75 "query.m"
                                      }
#line 75 "query.m"
                                    else
#line 75 "query.m"
                                      if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 4))))
#line 75 "query.m"
                                        {
#line 75 "query.m"
                                          MR_String query__V_33_33 = ((MR_String) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 1)));
#line 75 "query.m"
                                          MR_String query__V_34_34;

#line 75 "query.m"
                                          query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 4)));
#line 75 "query.m"
                                          if (query__succeeded)
#line 75 "query.m"
                                            {
#line 75 "query.m"
                                              query__V_34_34 = ((MR_String) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 10681 "query.c"
                                              query__succeeded = (strcmp(query__V_33_33, query__V_34_34) == 0);
#line 75 "query.m"
                                            }
#line 75 "query.m"
                                        }
#line 75 "query.m"
                                      else
#line 75 "query.m"
                                        if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 5))))
#line 75 "query.m"
                                          {
#line 75 "query.m"
                                            MR_String query__V_35_35 = ((MR_String) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 1)));
#line 75 "query.m"
                                            MR_String query__V_36_36;

#line 75 "query.m"
                                            query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 5)));
#line 75 "query.m"
                                            if (query__succeeded)
#line 75 "query.m"
                                              {
#line 75 "query.m"
                                                query__V_36_36 = ((MR_String) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 10706 "query.c"
                                                query__succeeded = (strcmp(query__V_35_35, query__V_36_36) == 0);
#line 75 "query.m"
                                              }
#line 75 "query.m"
                                          }
#line 75 "query.m"
                                        else
#line 75 "query.m"
                                          if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 6))))
#line 75 "query.m"
                                            {
#line 75 "query.m"
                                              MR_String query__V_37_37 = ((MR_String) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 1)));
#line 75 "query.m"
                                              MR_String query__V_38_38;

#line 75 "query.m"
                                              query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 6)));
#line 75 "query.m"
                                              if (query__succeeded)
#line 75 "query.m"
                                                {
#line 75 "query.m"
                                                  query__V_38_38 = ((MR_String) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 10731 "query.c"
                                                  query__succeeded = (strcmp(query__V_37_37, query__V_38_38) == 0);
#line 75 "query.m"
                                                }
#line 75 "query.m"
                                            }
#line 75 "query.m"
                                          else
#line 75 "query.m"
                                            if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 2))))
#line 75 "query.m"
                                              {
#line 75 "query.m"
                                                MR_Word query__V_19_19 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 1)));
#line 75 "query.m"
                                                MR_Word query__V_20_20;
#line 75 "query.m"
                                                MR_Integer query__V_96_96;
#line 75 "query.m"
                                                MR_Integer query__V_97_97;

#line 75 "query.m"
                                                query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 2)));
#line 75 "query.m"
                                                if (query__succeeded)
#line 75 "query.m"
                                                  {
#line 75 "query.m"
                                                    query__V_20_20 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 10760 "query.c"
                                                    query__V_96_96 = (MR_Integer) query__V_19_19;
#line 10762 "query.c"
                                                    query__V_97_97 = (MR_Integer) query__V_20_20;
#line 10764 "query.c"
                                                    query__succeeded = (query__V_96_96 == query__V_97_97);
#line 75 "query.m"
                                                  }
#line 75 "query.m"
                                              }
#line 75 "query.m"
                                            else
#line 75 "query.m"
                                              if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 3))))
#line 75 "query.m"
                                                {
#line 75 "query.m"
                                                  MR_Word query__V_21_21 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 1)));
#line 75 "query.m"
                                                  MR_Word query__V_22_22 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 2)));
#line 75 "query.m"
                                                  MR_Integer query__V_23_23 = ((MR_Integer) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 3)));
#line 75 "query.m"
                                                  MR_Integer query__V_24_24 = ((MR_Integer) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 4)));
#line 75 "query.m"
                                                  MR_Word query__V_25_25 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 5)));
#line 75 "query.m"
                                                  MR_Word query__V_26_26;
#line 75 "query.m"
                                                  MR_Word query__V_27_27;
#line 75 "query.m"
                                                  MR_Integer query__V_28_28;
#line 75 "query.m"
                                                  MR_Integer query__V_29_29;
#line 75 "query.m"
                                                  MR_Word query__V_30_30;
#line 75 "query.m"
                                                  MR_Integer query__V_98_98;
#line 75 "query.m"
                                                  MR_Integer query__V_99_99;

#line 75 "query.m"
                                                  query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 3)));
#line 75 "query.m"
                                                  if (query__succeeded)
#line 75 "query.m"
                                                    {
#line 75 "query.m"
                                                      query__V_26_26 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 75 "query.m"
                                                      query__V_27_27 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 2)));
#line 75 "query.m"
                                                      query__V_28_28 = ((MR_Integer) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 3)));
#line 75 "query.m"
                                                      query__V_29_29 = ((MR_Integer) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 4)));
#line 75 "query.m"
                                                      query__V_30_30 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 5)));
#line 10817 "query.c"
                                                      query__succeeded = (query__V_22_22 == query__V_27_27);
#line 75 "query.m"
                                                      if (query__succeeded)
#line 75 "query.m"
                                                        {
#line 10823 "query.c"
                                                          query__succeeded = (query__V_23_23 == query__V_28_28);
#line 75 "query.m"
                                                          if (query__succeeded)
#line 75 "query.m"
                                                            {
#line 10829 "query.c"
                                                              query__succeeded = (query__V_24_24 == query__V_29_29);
#line 75 "query.m"
                                                              if (query__succeeded)
#line 75 "query.m"
                                                                {
#line 10835 "query.c"
                                                                  query__succeeded = (query__V_25_25 == query__V_30_30);
#line 75 "query.m"
                                                                  if (query__succeeded)
#line 75 "query.m"
                                                                    {
#line 10841 "query.c"
                                                                      query__V_98_98 = (MR_Integer) query__V_21_21;
#line 10843 "query.c"
                                                                      query__V_99_99 = (MR_Integer) query__V_26_26;
#line 10845 "query.c"
                                                                      query__succeeded = (query__V_98_98 == query__V_99_99);
#line 75 "query.m"
                                                                    }
#line 75 "query.m"
                                                                }
#line 75 "query.m"
                                                            }
#line 75 "query.m"
                                                        }
#line 75 "query.m"
                                                    }
#line 75 "query.m"
                                                }
#line 75 "query.m"
                                              else
#line 75 "query.m"
                                                if (((((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 0)))) == (MR_Integer) 8))))
#line 75 "query.m"
                                                  {
#line 75 "query.m"
                                                    MR_Word query__V_47_47 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 1)));
#line 75 "query.m"
                                                    MR_Word query__V_48_48;
#line 75 "query.m"
                                                    MR_Integer query__V_100_100;
#line 75 "query.m"
                                                    MR_Integer query__V_101_101;

#line 75 "query.m"
                                                    query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 8)));
#line 75 "query.m"
                                                    if (query__succeeded)
#line 75 "query.m"
                                                      {
#line 75 "query.m"
                                                        query__V_48_48 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 10882 "query.c"
                                                        query__V_100_100 = (MR_Integer) query__V_47_47;
#line 10884 "query.c"
                                                        query__V_101_101 = (MR_Integer) query__V_48_48;
#line 10886 "query.c"
                                                        query__succeeded = (query__V_100_100 == query__V_101_101);
#line 75 "query.m"
                                                      }
#line 75 "query.m"
                                                  }
#line 75 "query.m"
                                                else
#line 75 "query.m"
                                                  {
#line 75 "query.m"
                                                    MR_Word query__V_39_39 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 1)));
#line 75 "query.m"
                                                    MR_Word query__V_40_40 = ((((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 2)))) & (MR_Integer) 7);
#line 75 "query.m"
                                                    MR_Word query__V_41_41 = ((((((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 2)))) >> (MR_Integer) 3)) & (MR_Integer) 1);
#line 75 "query.m"
                                                    MR_Word query__V_42_42 = ((((((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__1_1, (MR_Integer) 2)))) >> (MR_Integer) 4)) & (MR_Integer) 1);
#line 75 "query.m"
                                                    MR_Word query__V_43_43;
#line 75 "query.m"
                                                    MR_Word query__V_44_44;
#line 75 "query.m"
                                                    MR_Word query__V_45_45;
#line 75 "query.m"
                                                    MR_Word query__V_46_46;

#line 75 "query.m"
                                                    query__succeeded = ((((MR_tag((MR_Word) query__HeadVar__2_2)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 0)))) == (MR_Integer) 7)));
#line 75 "query.m"
                                                    if (query__succeeded)
#line 75 "query.m"
                                                      {
#line 75 "query.m"
                                                        query__V_43_43 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 1)));
#line 75 "query.m"
                                                        query__V_44_44 = ((((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 2)))) & (MR_Integer) 7);
#line 75 "query.m"
                                                        query__V_45_45 = ((((((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 2)))) >> (MR_Integer) 3)) & (MR_Integer) 1);
#line 75 "query.m"
                                                        query__V_46_46 = ((((((MR_Word) (MR_hl_field(MR_mktag(3), query__HeadVar__2_2, (MR_Integer) 2)))) >> (MR_Integer) 4)) & (MR_Integer) 1);
#line 10927 "query.c"
                                                        {
#line 10929 "query.c"
                                                          query__succeeded = query____Unify____display_limit_0_0(query__V_39_39, query__V_43_43);
                                                        }
#line 75 "query.m"
                                                        if (query__succeeded)
#line 75 "query.m"
                                                          {
#line 10936 "query.c"
                                                            query__succeeded = (query__V_40_40 == query__V_44_44);
#line 75 "query.m"
                                                            if (query__succeeded)
#line 75 "query.m"
                                                              {
#line 10942 "query.c"
                                                                query__succeeded = (query__V_41_41 == query__V_45_45);
#line 75 "query.m"
                                                                if (query__succeeded)
#line 10946 "query.c"
                                                                  query__succeeded = (query__V_42_42 == query__V_46_46);
#line 75 "query.m"
                                                              }
#line 75 "query.m"
                                                          }
#line 75 "query.m"
                                                      }
#line 75 "query.m"
                                                  }
#line 75 "query.m"
    return query__succeeded;
#line 75 "query.m"
  }
#line 75 "query.m"
}

#line 256 "query.m"
void MR_CALL 
query____Compare____callseqs_fields_0_0(
#line 256 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 256 "query.m"
  MR_Word query__HeadVar__2_2,
#line 256 "query.m"
  MR_Word query__HeadVar__3_3)
#line 256 "query.m"
{
#line 256 "query.m"
  {
#line 256 "query.m"
    MR_bool query__succeeded;
#line 256 "query.m"
    MR_Integer query__Cast_HeadVar1_4 = (MR_Integer) query__HeadVar__2_2;
#line 256 "query.m"
    MR_Integer query__Cast_HeadVar2_5 = (MR_Integer) query__HeadVar__3_3;

#line 256 "query.m"
    {
#line 256 "query.m"
      mercury__private_builtin__builtin_compare_int_3_p_0(query__HeadVar__1_1, query__Cast_HeadVar1_4, query__Cast_HeadVar2_5);
#line 256 "query.m"
      return;
    }
#line 256 "query.m"
  }
#line 256 "query.m"
}

#line 256 "query.m"
MR_bool MR_CALL 
query____Unify____callseqs_fields_0_0(
#line 256 "query.m"
  MR_Word query__HeadVar__2_1,
#line 256 "query.m"
  MR_Word query__HeadVar__2_2)
#line 256 "query.m"
{
#line 11004 "query.c"
  {
#line 11006 "query.c"
    MR_bool query__succeeded = (query__HeadVar__2_1 == query__HeadVar__2_2);

#line 11009 "query.c"
    return query__succeeded;
#line 11011 "query.c"
  }
#line 256 "query.m"
}

#line 156 "query.m"
void MR_CALL 
query____Compare____caller_groups_0_0(
#line 156 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 156 "query.m"
  MR_Word query__HeadVar__2_2,
#line 156 "query.m"
  MR_Word query__HeadVar__3_3)
#line 156 "query.m"
{
#line 156 "query.m"
  {
#line 156 "query.m"
    MR_bool query__succeeded;
#line 156 "query.m"
    MR_Integer query__Cast_HeadVar1_4 = (MR_Integer) query__HeadVar__2_2;
#line 156 "query.m"
    MR_Integer query__Cast_HeadVar2_5 = (MR_Integer) query__HeadVar__3_3;

#line 156 "query.m"
    {
#line 156 "query.m"
      mercury__private_builtin__builtin_compare_int_3_p_0(query__HeadVar__1_1, query__Cast_HeadVar1_4, query__Cast_HeadVar2_5);
#line 156 "query.m"
      return;
    }
#line 156 "query.m"
  }
#line 156 "query.m"
}

#line 156 "query.m"
MR_bool MR_CALL 
query____Unify____caller_groups_0_0(
#line 156 "query.m"
  MR_Word query__HeadVar__2_1,
#line 156 "query.m"
  MR_Word query__HeadVar__2_2)
#line 156 "query.m"
{
#line 11057 "query.c"
  {
#line 11059 "query.c"
    MR_bool query__succeeded = (query__HeadVar__2_1 == query__HeadVar__2_2);

#line 11062 "query.c"
    return query__succeeded;
#line 11064 "query.c"
  }
#line 156 "query.m"
}

#line 280 "query.m"
void MR_CALL 
query____Compare____box_tables_0_0(
#line 280 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 280 "query.m"
  MR_Word query__HeadVar__2_2,
#line 280 "query.m"
  MR_Word query__HeadVar__3_3)
#line 280 "query.m"
{
#line 280 "query.m"
  {
#line 280 "query.m"
    MR_bool query__succeeded;
#line 280 "query.m"
    MR_Integer query__Cast_HeadVar1_4 = (MR_Integer) query__HeadVar__2_2;
#line 280 "query.m"
    MR_Integer query__Cast_HeadVar2_5 = (MR_Integer) query__HeadVar__3_3;

#line 280 "query.m"
    {
#line 280 "query.m"
      mercury__private_builtin__builtin_compare_int_3_p_0(query__HeadVar__1_1, query__Cast_HeadVar1_4, query__Cast_HeadVar2_5);
#line 280 "query.m"
      return;
    }
#line 280 "query.m"
  }
#line 280 "query.m"
}

#line 280 "query.m"
MR_bool MR_CALL 
query____Unify____box_tables_0_0(
#line 280 "query.m"
  MR_Word query__HeadVar__2_1,
#line 280 "query.m"
  MR_Word query__HeadVar__2_2)
#line 280 "query.m"
{
#line 11110 "query.c"
  {
#line 11112 "query.c"
    MR_bool query__succeeded = (query__HeadVar__2_1 == query__HeadVar__2_2);

#line 11115 "query.c"
    return query__succeeded;
#line 11117 "query.c"
  }
#line 280 "query.m"
}

#line 261 "query.m"
void MR_CALL 
query____Compare____alloc_fields_0_0(
#line 261 "query.m"
  MR_Word * query__HeadVar__1_1,
#line 261 "query.m"
  MR_Word query__HeadVar__2_2,
#line 261 "query.m"
  MR_Word query__HeadVar__3_3)
#line 261 "query.m"
{
#line 261 "query.m"
  {
#line 261 "query.m"
    MR_bool query__succeeded;
#line 261 "query.m"
    MR_Integer query__Cast_HeadVar1_4 = (MR_Integer) query__HeadVar__2_2;
#line 261 "query.m"
    MR_Integer query__Cast_HeadVar2_5 = (MR_Integer) query__HeadVar__3_3;

#line 261 "query.m"
    {
#line 261 "query.m"
      mercury__private_builtin__builtin_compare_int_3_p_0(query__HeadVar__1_1, query__Cast_HeadVar1_4, query__Cast_HeadVar2_5);
#line 261 "query.m"
      return;
    }
#line 261 "query.m"
  }
#line 261 "query.m"
}

#line 261 "query.m"
MR_bool MR_CALL 
query____Unify____alloc_fields_0_0(
#line 261 "query.m"
  MR_Word query__HeadVar__2_1,
#line 261 "query.m"
  MR_Word query__HeadVar__2_2)
#line 261 "query.m"
{
#line 11163 "query.c"
  {
#line 11165 "query.c"
    MR_bool query__succeeded = (query__HeadVar__2_1 == query__HeadVar__2_2);

#line 11168 "query.c"
    return query__succeeded;
#line 11170 "query.c"
  }
#line 261 "query.m"
}

#line 1365 "query.m"
static MR_String MR_CALL 
query__cmd_str_call_site_dynamic_var_use_0_f_0(void)
#line 1365 "query.m"
{
#line 1366 "query.m"
  {
#line 1366 "query.m"
    MR_bool query__succeeded;

#line 1366 "query.m"
    return (MR_String) "call_site_dynamic_var_use";
#line 1366 "query.m"
  }
#line 1365 "query.m"
}

#line 1362 "query.m"
static MR_String MR_CALL 
query__cmd_str_dump_raw_clique_0_f_0(void)
#line 1362 "query.m"
{
#line 1363 "query.m"
  {
#line 1363 "query.m"
    MR_bool query__succeeded;

#line 1363 "query.m"
    return (MR_String) "dump_raw_clique";
#line 1363 "query.m"
  }
#line 1362 "query.m"
}

#line 1359 "query.m"
static MR_String MR_CALL 
query__cmd_str_dump_call_site_dynamic_0_f_0(void)
#line 1359 "query.m"
{
#line 1360 "query.m"
  {
#line 1360 "query.m"
    MR_bool query__succeeded;

#line 1360 "query.m"
    return (MR_String) "dump_call_site_dynamic";
#line 1360 "query.m"
  }
#line 1359 "query.m"
}

#line 1356 "query.m"
static MR_String MR_CALL 
query__cmd_str_dump_call_site_static_0_f_0(void)
#line 1356 "query.m"
{
#line 1357 "query.m"
  {
#line 1357 "query.m"
    MR_bool query__succeeded;

#line 1357 "query.m"
    return (MR_String) "dump_call_site_static";
#line 1357 "query.m"
  }
#line 1356 "query.m"
}

#line 1353 "query.m"
static MR_String MR_CALL 
query__cmd_str_dump_proc_dynamic_0_f_0(void)
#line 1353 "query.m"
{
#line 1354 "query.m"
  {
#line 1354 "query.m"
    MR_bool query__succeeded;

#line 1354 "query.m"
    return (MR_String) "dump_proc_dynamic";
#line 1354 "query.m"
  }
#line 1353 "query.m"
}

#line 1350 "query.m"
static MR_String MR_CALL 
query__cmd_str_dump_proc_static_0_f_0(void)
#line 1350 "query.m"
{
#line 1351 "query.m"
  {
#line 1351 "query.m"
    MR_bool query__succeeded;

#line 1351 "query.m"
    return (MR_String) "dump_proc_static";
#line 1351 "query.m"
  }
#line 1350 "query.m"
}

#line 1347 "query.m"
static MR_String MR_CALL 
query__cmd_str_dynamic_coverage_0_f_0(void)
#line 1347 "query.m"
{
#line 1348 "query.m"
  {
#line 1348 "query.m"
    MR_bool query__succeeded;

#line 1348 "query.m"
    return (MR_String) "proc_dynamic_coverage";
#line 1348 "query.m"
  }
#line 1347 "query.m"
}

#line 1344 "query.m"
static MR_String MR_CALL 
query__cmd_str_static_coverage_0_f_0(void)
#line 1344 "query.m"
{
#line 1345 "query.m"
  {
#line 1345 "query.m"
    MR_bool query__succeeded;

#line 1345 "query.m"
    return (MR_String) "proc_static_coverage";
#line 1345 "query.m"
  }
#line 1344 "query.m"
}

#line 1341 "query.m"
static MR_String MR_CALL 
query__cmd_str_top_procs_0_f_0(void)
#line 1341 "query.m"
{
#line 1342 "query.m"
  {
#line 1342 "query.m"
    MR_bool query__succeeded;

#line 1342 "query.m"
    return (MR_String) "top_procs";
#line 1342 "query.m"
  }
#line 1341 "query.m"
}

#line 1338 "query.m"
static MR_String MR_CALL 
query__cmd_str_module_rep_0_f_0(void)
#line 1338 "query.m"
{
#line 1339 "query.m"
  {
#line 1339 "query.m"
    MR_bool query__succeeded;

#line 1339 "query.m"
    return (MR_String) "module_rep";
#line 1339 "query.m"
  }
#line 1338 "query.m"
}

#line 1335 "query.m"
static MR_String MR_CALL 
query__cmd_str_module_getter_setters_0_f_0(void)
#line 1335 "query.m"
{
#line 1336 "query.m"
  {
#line 1336 "query.m"
    MR_bool query__succeeded;

#line 1336 "query.m"
    return (MR_String) "module_getter_setters";
#line 1336 "query.m"
  }
#line 1335 "query.m"
}

#line 1332 "query.m"
static MR_String MR_CALL 
query__cmd_str_module_0_f_0(void)
#line 1332 "query.m"
{
#line 1333 "query.m"
  {
#line 1333 "query.m"
    MR_bool query__succeeded;

#line 1333 "query.m"
    return (MR_String) "module";
#line 1333 "query.m"
  }
#line 1332 "query.m"
}

#line 1329 "query.m"
static MR_String MR_CALL 
query__cmd_str_program_modules_0_f_0(void)
#line 1329 "query.m"
{
#line 1330 "query.m"
  {
#line 1330 "query.m"
    MR_bool query__succeeded;

#line 1330 "query.m"
    return (MR_String) "program_modules";
#line 1330 "query.m"
  }
#line 1329 "query.m"
}

#line 1326 "query.m"
static MR_String MR_CALL 
query__cmd_str_proc_callers_0_f_0(void)
#line 1326 "query.m"
{
#line 1327 "query.m"
  {
#line 1327 "query.m"
    MR_bool query__succeeded;

#line 1327 "query.m"
    return (MR_String) "proc_callers";
#line 1327 "query.m"
  }
#line 1326 "query.m"
}

#line 1323 "query.m"
static MR_String MR_CALL 
query__cmd_str_proc_0_f_0(void)
#line 1323 "query.m"
{
#line 1324 "query.m"
  {
#line 1324 "query.m"
    MR_bool query__succeeded;

#line 1324 "query.m"
    return (MR_String) "proc";
#line 1324 "query.m"
  }
#line 1323 "query.m"
}

#line 1320 "query.m"
static MR_String MR_CALL 
query__cmd_str_recursion_types_frequency_0_f_0(void)
#line 1320 "query.m"
{
#line 1321 "query.m"
  {
#line 1321 "query.m"
    MR_bool query__succeeded;

#line 1321 "query.m"
    return (MR_String) "recursion_type_freq";
#line 1321 "query.m"
  }
#line 1320 "query.m"
}

#line 1317 "query.m"
static MR_String MR_CALL 
query__cmd_str_clique_recursive_costs_0_f_0(void)
#line 1317 "query.m"
{
#line 1318 "query.m"
  {
#line 1318 "query.m"
    MR_bool query__succeeded;

#line 1318 "query.m"
    return (MR_String) "clique_rc";
#line 1318 "query.m"
  }
#line 1317 "query.m"
}

#line 1314 "query.m"
static MR_String MR_CALL 
query__cmd_str_clique_0_f_0(void)
#line 1314 "query.m"
{
#line 1315 "query.m"
  {
#line 1315 "query.m"
    MR_bool query__succeeded;

#line 1315 "query.m"
    return (MR_String) "clique";
#line 1315 "query.m"
  }
#line 1314 "query.m"
}

#line 1311 "query.m"
static MR_String MR_CALL 
query__cmd_str_root_0_f_0(void)
#line 1311 "query.m"
{
#line 1312 "query.m"
  {
#line 1312 "query.m"
    MR_bool query__succeeded;

#line 1312 "query.m"
    return (MR_String) "root";
#line 1312 "query.m"
  }
#line 1311 "query.m"
}

#line 1308 "query.m"
static MR_String MR_CALL 
query__cmd_str_menu_0_f_0(void)
#line 1308 "query.m"
{
#line 1309 "query.m"
  {
#line 1309 "query.m"
    MR_bool query__succeeded;

#line 1309 "query.m"
    return (MR_String) "menu";
#line 1309 "query.m"
  }
#line 1308 "query.m"
}

#line 1305 "query.m"
static MR_String MR_CALL 
query__cmd_str_timeout_0_f_0(void)
#line 1305 "query.m"
{
#line 1306 "query.m"
  {
#line 1306 "query.m"
    MR_bool query__succeeded;

#line 1306 "query.m"
    return (MR_String) "timeout";
#line 1306 "query.m"
  }
#line 1305 "query.m"
}

#line 1302 "query.m"
static MR_String MR_CALL 
query__cmd_str_restart_0_f_0(void)
#line 1302 "query.m"
{
#line 1303 "query.m"
  {
#line 1303 "query.m"
    MR_bool query__succeeded;

#line 1303 "query.m"
    return (MR_String) "restart";
#line 1303 "query.m"
  }
#line 1302 "query.m"
}

#line 1299 "query.m"
static MR_String MR_CALL 
query__cmd_str_quit_0_f_0(void)
#line 1299 "query.m"
{
#line 1300 "query.m"
  {
#line 1300 "query.m"
    MR_bool query__succeeded;

#line 1300 "query.m"
    return (MR_String) "quit";
#line 1300 "query.m"
  }
#line 1299 "query.m"
}

#line 1285 "query.m"
static MR_String MR_CALL 
query__box_to_string_1_f_0(
#line 1285 "query.m"
  MR_Word query__Box_3)
#line 1285 "query.m"
{
#line 1294 "query.m"
  {
#line 1294 "query.m"
    MR_bool query__succeeded;
#line 1294 "query.m"
    MR_String query__String_4;

#line 1294 "query.m"
    if ((query__Box_3 == (MR_Integer) 0))
#line 1294 "query.m"
      query__String_4 = (MR_String) "box";
#line 1294 "query.m"
    else
#line 1295 "query.m"
      query__String_4 = (MR_String) "nobox";
#line 1294 "query.m"
    return query__String_4;
#line 1294 "query.m"
  }
#line 1285 "query.m"
}

#line 1273 "query.m"
static MR_String MR_CALL 
query__colour_scheme_to_string_1_f_0(
#line 1273 "query.m"
  MR_Word query__Scheme_3)
#line 1273 "query.m"
{
#line 1282 "query.m"
  {
#line 1282 "query.m"
    MR_bool query__succeeded;
#line 1282 "query.m"
    MR_String query__String_4;

#line 1282 "query.m"
    if ((query__Scheme_3 == (MR_Integer) 0))
#line 1282 "query.m"
      query__String_4 = (MR_String) "cols";
#line 1282 "query.m"
    else
#line 1283 "query.m"
      query__String_4 = (MR_String) "none";
#line 1282 "query.m"
    return query__String_4;
#line 1282 "query.m"
  }
#line 1273 "query.m"
}

#line 1261 "query.m"
static MR_String MR_CALL 
query__developer_mode_to_string_1_f_0(
#line 1261 "query.m"
  MR_Word query__DevMode_3)
#line 1261 "query.m"
{
#line 1270 "query.m"
  {
#line 1270 "query.m"
    MR_bool query__succeeded;
#line 1270 "query.m"
    MR_String query__String_4;

#line 1270 "query.m"
    if ((query__DevMode_3 == (MR_Integer) 1))
#line 1271 "query.m"
      query__String_4 = (MR_String) "nodev";
#line 1270 "query.m"
    else
#line 1270 "query.m"
      query__String_4 = (MR_String) "dev";
#line 1270 "query.m"
    return query__String_4;
#line 1270 "query.m"
  }
#line 1261 "query.m"
}

#line 1241 "query.m"
static MR_bool MR_CALL 
query__string_to_inactive_items_2_p_0(
#line 1241 "query.m"
  MR_String query__HeadVar__1_1,
#line 1241 "query.m"
  MR_Word * query__HeadVar__2_2)
#line 1241 "query.m"
{
#line 1244 "query.m"
  {
#line 1244 "query.m"
    MR_bool query__succeeded;

#line 1244 "query.m"
    if ((strcmp(query__HeadVar__1_1, (MR_String) "hhh") == 0))
#line 1244 "query.m"
      {
#line 1244 "query.m"
        *query__HeadVar__2_2 = (MR_Word) &query_scalar_common_2[8];
#line 1244 "query.m"
        query__succeeded = MR_TRUE;
#line 1244 "query.m"
      }
#line 1244 "query.m"
    else
#line 1244 "query.m"
      if ((strcmp(query__HeadVar__1_1, (MR_String) "hhs") == 0))
#line 1246 "query.m"
        {
#line 1246 "query.m"
          *query__HeadVar__2_2 = (MR_Word) &query_scalar_common_2[9];
#line 1246 "query.m"
          query__succeeded = MR_TRUE;
#line 1246 "query.m"
        }
#line 1244 "query.m"
      else
#line 1244 "query.m"
        if ((strcmp(query__HeadVar__1_1, (MR_String) "hsh") == 0))
#line 1248 "query.m"
          {
#line 1248 "query.m"
            *query__HeadVar__2_2 = (MR_Word) &query_scalar_common_2[10];
#line 1248 "query.m"
            query__succeeded = MR_TRUE;
#line 1248 "query.m"
          }
#line 1244 "query.m"
        else
#line 1244 "query.m"
          if ((strcmp(query__HeadVar__1_1, (MR_String) "hss") == 0))
#line 1250 "query.m"
            {
#line 1250 "query.m"
              *query__HeadVar__2_2 = (MR_Word) &query_scalar_common_2[11];
#line 1250 "query.m"
              query__succeeded = MR_TRUE;
#line 1250 "query.m"
            }
#line 1244 "query.m"
          else
#line 1244 "query.m"
            if ((strcmp(query__HeadVar__1_1, (MR_String) "shh") == 0))
#line 1252 "query.m"
              {
#line 1252 "query.m"
                *query__HeadVar__2_2 = (MR_Word) &query_scalar_common_2[12];
#line 1252 "query.m"
                query__succeeded = MR_TRUE;
#line 1252 "query.m"
              }
#line 1244 "query.m"
            else
#line 1244 "query.m"
              if ((strcmp(query__HeadVar__1_1, (MR_String) "shs") == 0))
#line 1254 "query.m"
                {
#line 1254 "query.m"
                  *query__HeadVar__2_2 = (MR_Word) &query_scalar_common_2[13];
#line 1254 "query.m"
                  query__succeeded = MR_TRUE;
#line 1254 "query.m"
                }
#line 1244 "query.m"
              else
#line 1244 "query.m"
                if ((strcmp(query__HeadVar__1_1, (MR_String) "ssh") == 0))
#line 1256 "query.m"
                  {
#line 1256 "query.m"
                    *query__HeadVar__2_2 = (MR_Word) &query_scalar_common_2[14];
#line 1256 "query.m"
                    query__succeeded = MR_TRUE;
#line 1256 "query.m"
                  }
#line 1244 "query.m"
                else
#line 1244 "query.m"
                  if ((strcmp(query__HeadVar__1_1, (MR_String) "sss") == 0))
#line 1258 "query.m"
                    {
#line 1258 "query.m"
                      *query__HeadVar__2_2 = (MR_Word) &query_scalar_common_2[15];
#line 1258 "query.m"
                      query__succeeded = MR_TRUE;
#line 1258 "query.m"
                    }
#line 1244 "query.m"
                  else
#line 1244 "query.m"
                    query__succeeded = MR_FALSE;
#line 1244 "query.m"
    return query__succeeded;
#line 1244 "query.m"
  }
#line 1241 "query.m"
}

#line 1235 "query.m"
static MR_String MR_CALL 
query__inactive_items_to_string_1_f_0(
#line 1235 "query.m"
  MR_Word query__Items_3)
#line 1235 "query.m"
{
#line 1244 "query.m"
  {
#line 1244 "query.m"
    MR_bool query__succeeded;
#line 1244 "query.m"
    MR_String query__String_4;
#line 1244 "query.m"
    MR_Word query__V_29_29 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__Items_3, (MR_Integer) 0)))) >> (MR_Integer) 2)) & (MR_Integer) 1);
#line 1244 "query.m"
    MR_Word query__V_30_30 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__Items_3, (MR_Integer) 0)))) >> (MR_Integer) 1)) & (MR_Integer) 1);
#line 1244 "query.m"
    MR_Word query__V_31_31 = ((((MR_Word) (MR_hl_field(MR_mktag(0), query__Items_3, (MR_Integer) 0)))) & (MR_Integer) 1);

#line 1244 "query.m"
    if ((query__V_29_29 == (MR_Integer) 0))
#line 1244 "query.m"
      if ((query__V_30_30 == (MR_Integer) 0))
#line 1244 "query.m"
        if ((query__V_31_31 == (MR_Integer) 0))
#line 1244 "query.m"
          query__String_4 = (MR_String) "hhh";
#line 1244 "query.m"
        else
#line 1252 "query.m"
          query__String_4 = (MR_String) "shh";
#line 1244 "query.m"
      else
#line 1244 "query.m"
        if ((query__V_31_31 == (MR_Integer) 0))
#line 1248 "query.m"
          query__String_4 = (MR_String) "hsh";
#line 1244 "query.m"
        else
#line 1256 "query.m"
          query__String_4 = (MR_String) "ssh";
#line 1244 "query.m"
    else
#line 1244 "query.m"
      if ((query__V_30_30 == (MR_Integer) 0))
#line 1244 "query.m"
        if ((query__V_31_31 == (MR_Integer) 0))
#line 1246 "query.m"
          query__String_4 = (MR_String) "hhs";
#line 1244 "query.m"
        else
#line 1254 "query.m"
          query__String_4 = (MR_String) "shs";
#line 1244 "query.m"
      else
#line 1244 "query.m"
        if ((query__V_31_31 == (MR_Integer) 0))
#line 1250 "query.m"
          query__String_4 = (MR_String) "hss";
#line 1244 "query.m"
        else
#line 1258 "query.m"
          query__String_4 = (MR_String) "sss";
#line 1244 "query.m"
    return query__String_4;
#line 1244 "query.m"
  }
#line 1235 "query.m"
}

#line 1221 "query.m"
static MR_String MR_CALL 
query__time_format_to_string_1_f_0(
#line 1221 "query.m"
  MR_Word query__HeadVar__1_1)
#line 1221 "query.m"
{
#line 1223 "query.m"
  {
#line 1223 "query.m"
    MR_bool query__succeeded;
#line 1223 "query.m"
    MR_String query__HeadVar__2_2;

#line 1223 "query.m"
    if ((query__HeadVar__1_1 == (MR_Integer) 0))
#line 1223 "query.m"
      query__HeadVar__2_2 = (MR_String) "no";
#line 1223 "query.m"
    else
#line 1223 "query.m"
      if ((query__HeadVar__1_1 == (MR_Integer) 1))
#line 1224 "query.m"
        query__HeadVar__2_2 = (MR_String) "mi";
#line 1223 "query.m"
      else
#line 1225 "query.m"
        query__HeadVar__2_2 = (MR_String) "th";
#line 1223 "query.m"
    return query__HeadVar__2_2;
#line 1223 "query.m"
  }
#line 1221 "query.m"
}

#line 1215 "query.m"
static MR_bool MR_CALL 
query__string_to_contour_exclusion_2_p_0(
#line 1215 "query.m"
  MR_String query__HeadVar__1_1,
#line 1215 "query.m"
  MR_Word * query__HeadVar__2_2)
#line 1215 "query.m"
{
#line 1218 "query.m"
  {
#line 1218 "query.m"
    MR_bool query__succeeded;

#line 1218 "query.m"
    if ((strcmp(query__HeadVar__1_1, (MR_String) "ac") == 0))
#line 1218 "query.m"
      {
#line 1218 "query.m"
        *query__HeadVar__2_2 = (MR_Integer) 0;
#line 1218 "query.m"
        query__succeeded = MR_TRUE;
#line 1218 "query.m"
      }
#line 1218 "query.m"
    else
#line 1218 "query.m"
      if ((strcmp(query__HeadVar__1_1, (MR_String) "nc") == 0))
#line 1219 "query.m"
        {
#line 1219 "query.m"
          *query__HeadVar__2_2 = (MR_Integer) 1;
#line 1219 "query.m"
          query__succeeded = MR_TRUE;
#line 1219 "query.m"
        }
#line 1218 "query.m"
      else
#line 1218 "query.m"
        query__succeeded = MR_FALSE;
#line 1218 "query.m"
    return query__succeeded;
#line 1218 "query.m"
  }
#line 1215 "query.m"
}

#line 1209 "query.m"
static MR_String MR_CALL 
query__contour_exclusion_to_string_1_f_0(
#line 1209 "query.m"
  MR_Word query__Contour_3)
#line 1209 "query.m"
{
#line 1218 "query.m"
  {
#line 1218 "query.m"
    MR_bool query__succeeded;
#line 1218 "query.m"
    MR_String query__String_4;

#line 1218 "query.m"
    if ((query__Contour_3 == (MR_Integer) 0))
#line 1218 "query.m"
      query__String_4 = (MR_String) "ac";
#line 1218 "query.m"
    else
#line 1219 "query.m"
      query__String_4 = (MR_String) "nc";
#line 1218 "query.m"
    return query__String_4;
#line 1218 "query.m"
  }
#line 1209 "query.m"
}

#line 1203 "query.m"
static MR_bool MR_CALL 
query__string_to_scope_2_p_0(
#line 1203 "query.m"
  MR_String query__HeadVar__1_1,
#line 1203 "query.m"
  MR_Word * query__HeadVar__2_2)
#line 1203 "query.m"
{
#line 1206 "query.m"
  {
#line 1206 "query.m"
    MR_bool query__succeeded;

#line 1206 "query.m"
    if ((strcmp(query__HeadVar__1_1, (MR_String) "oa") == 0))
#line 1207 "query.m"
      {
#line 1207 "query.m"
        *query__HeadVar__2_2 = (MR_Integer) 1;
#line 1207 "query.m"
        query__succeeded = MR_TRUE;
#line 1207 "query.m"
      }
#line 1206 "query.m"
    else
#line 1206 "query.m"
      if ((strcmp(query__HeadVar__1_1, (MR_String) "pc") == 0))
#line 1206 "query.m"
        {
#line 1206 "query.m"
          *query__HeadVar__2_2 = (MR_Integer) 0;
#line 1206 "query.m"
          query__succeeded = MR_TRUE;
#line 1206 "query.m"
        }
#line 1206 "query.m"
      else
#line 1206 "query.m"
        query__succeeded = MR_FALSE;
#line 1206 "query.m"
    return query__succeeded;
#line 1206 "query.m"
  }
#line 1203 "query.m"
}

#line 1197 "query.m"
static MR_String MR_CALL 
query__scope_to_string_1_f_0(
#line 1197 "query.m"
  MR_Word query__Scope_3)
#line 1197 "query.m"
{
#line 1206 "query.m"
  {
#line 1206 "query.m"
    MR_bool query__succeeded;
#line 1206 "query.m"
    MR_String query__String_4;

#line 1206 "query.m"
    if ((query__Scope_3 == (MR_Integer) 1))
#line 1207 "query.m"
      query__String_4 = (MR_String) "oa";
#line 1206 "query.m"
    else
#line 1206 "query.m"
      query__String_4 = (MR_String) "pc";
#line 1206 "query.m"
    return query__String_4;
#line 1206 "query.m"
  }
#line 1197 "query.m"
}

#line 1161 "query.m"
static MR_String MR_CALL 
query__order_criteria_to_string_1_f_0(
#line 1161 "query.m"
  MR_Word query__HeadVar__1_1)
#line 1161 "query.m"
{
#line 1163 "query.m"
  {
#line 1163 "query.m"
    MR_bool query__succeeded;
#line 1163 "query.m"
    MR_String query__HeadVar__2_2;

#line 1163 "query.m"
    if ((query__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1163 "query.m"
      query__HeadVar__2_2 = (MR_String) "context";
#line 1163 "query.m"
    else
#line 1163 "query.m"
      if ((query__HeadVar__1_1 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 1)))))
#line 1164 "query.m"
        query__HeadVar__2_2 = (MR_String) "name";
#line 1163 "query.m"
      else
#line 1165 "query.m"
        {
#line 1165 "query.m"
          MR_Word query__CostKind_3 = ((((MR_Word) (MR_hl_field(MR_mktag(1), query__HeadVar__1_1, (MR_Integer) 0)))) & (MR_Integer) 7);
#line 1165 "query.m"
          MR_Word query__InclDesc_4 = ((((((MR_Word) (MR_hl_field(MR_mktag(1), query__HeadVar__1_1, (MR_Integer) 0)))) >> (MR_Integer) 3)) & (MR_Integer) 1);
#line 1165 "query.m"
          MR_Word query__Scope_5 = ((((((MR_Word) (MR_hl_field(MR_mktag(1), query__HeadVar__1_1, (MR_Integer) 0)))) >> (MR_Integer) 4)) & (MR_Integer) 1);
#line 1165 "query.m"
          MR_String query__V_7_7;
#line 1165 "query.m"
          MR_String query__V_8_8;
#line 1165 "query.m"
          MR_String query__V_10_10;
#line 1165 "query.m"
          MR_String query__V_11_11;
#line 1165 "query.m"
          MR_String query__V_12_12;
#line 1165 "query.m"
          MR_String query__V_13_13;
#line 1165 "query.m"
          MR_String query__V_15_15;
#line 1165 "query.m"
          MR_String query__V_16_16;
#line 1165 "query.m"
          MR_String query__V_17_17;
#line 1165 "query.m"
          MR_String query__V_18_18;
#line 1165 "query.m"
          MR_String query__V_20_20;

#line 1167 "query.m"
          {
#line 1167 "query.m"
            query__V_8_8 = mercury__string__char_to_string_1_f_0((MR_Char) 45);
          }
#line 1086 "query.m"
          if ((query__CostKind_3 == (MR_Integer) 4))
#line 1090 "query.m"
            query__V_11_11 = (MR_String) "allocs";
#line 1086 "query.m"
          else
#line 1086 "query.m"
            if ((query__CostKind_3 == (MR_Integer) 0))
#line 1086 "query.m"
              query__V_11_11 = (MR_String) "calls";
#line 1086 "query.m"
            else
#line 1086 "query.m"
              if ((query__CostKind_3 == (MR_Integer) 3))
#line 1089 "query.m"
                query__V_11_11 = (MR_String) "callseqs";
#line 1086 "query.m"
              else
#line 1086 "query.m"
                if ((query__CostKind_3 == (MR_Integer) 1))
#line 1087 "query.m"
                  query__V_11_11 = (MR_String) "redos";
#line 1086 "query.m"
                else
#line 1086 "query.m"
                  if ((query__CostKind_3 == (MR_Integer) 2))
#line 1088 "query.m"
                    query__V_11_11 = (MR_String) "time";
#line 1086 "query.m"
                  else
#line 1091 "query.m"
                    query__V_11_11 = (MR_String) "words";
#line 1169 "query.m"
          {
#line 1169 "query.m"
            query__V_13_13 = mercury__string__char_to_string_1_f_0((MR_Char) 45);
          }
#line 1102 "query.m"
          if ((query__InclDesc_4 == (MR_Integer) 0))
#line 1102 "query.m"
            query__V_16_16 = (MR_String) "self";
#line 1102 "query.m"
          else
#line 1103 "query.m"
            query__V_16_16 = (MR_String) "both";
#line 1171 "query.m"
          {
#line 1171 "query.m"
            query__V_18_18 = mercury__string__char_to_string_1_f_0((MR_Char) 45);
          }
#line 1206 "query.m"
          if ((query__Scope_5 == (MR_Integer) 1))
#line 1207 "query.m"
            query__V_20_20 = (MR_String) "oa";
#line 1206 "query.m"
          else
#line 1206 "query.m"
            query__V_20_20 = (MR_String) "pc";
#line 1170 "query.m"
          {
#line 1170 "query.m"
            query__V_17_17 = mercury__string__f_43_43_2_f_0(query__V_18_18, query__V_20_20);
          }
#line 1169 "query.m"
          {
#line 1169 "query.m"
            query__V_15_15 = mercury__string__f_43_43_2_f_0(query__V_16_16, query__V_17_17);
          }
#line 1168 "query.m"
          {
#line 1168 "query.m"
            query__V_12_12 = mercury__string__f_43_43_2_f_0(query__V_13_13, query__V_15_15);
          }
#line 1167 "query.m"
          {
#line 1167 "query.m"
            query__V_10_10 = mercury__string__f_43_43_2_f_0(query__V_11_11, query__V_12_12);
          }
#line 1166 "query.m"
          {
#line 1166 "query.m"
            query__V_7_7 = mercury__string__f_43_43_2_f_0(query__V_8_8, query__V_10_10);
          }
#line 1165 "query.m"
          {
#line 1165 "query.m"
            return query__HeadVar__2_2 = mercury__string__f_43_43_2_f_0((MR_String) "cost", query__V_7_7);
          }
#line 1165 "query.m"
        }
#line 1163 "query.m"
    return query__HeadVar__2_2;
#line 1163 "query.m"
  }
#line 1161 "query.m"
}

#line 1149 "query.m"
static MR_String MR_CALL 
query__module_qual_to_string_1_f_0(
#line 1149 "query.m"
  MR_Word query__HeadVar__1_1)
#line 1149 "query.m"
{
#line 1151 "query.m"
  {
#line 1151 "query.m"
    MR_bool query__succeeded;
#line 1151 "query.m"
    MR_String query__HeadVar__2_2;

#line 1151 "query.m"
    if ((query__HeadVar__1_1 == (MR_Integer) 0))
#line 1151 "query.m"
      query__HeadVar__2_2 = (MR_String) "mqa";
#line 1151 "query.m"
    else
#line 1151 "query.m"
      if ((query__HeadVar__1_1 == (MR_Integer) 2))
#line 1153 "query.m"
        query__HeadVar__2_2 = (MR_String) "mqn";
#line 1151 "query.m"
      else
#line 1152 "query.m"
        query__HeadVar__2_2 = (MR_String) "mqwd";
#line 1151 "query.m"
    return query__HeadVar__2_2;
#line 1151 "query.m"
  }
#line 1149 "query.m"
}

#line 1138 "query.m"
static MR_String MR_CALL 
query__summarize_to_string_1_f_0(
#line 1138 "query.m"
  MR_Word query__HeadVar__1_1)
#line 1138 "query.m"
{
#line 1140 "query.m"
  {
#line 1140 "query.m"
    MR_bool query__succeeded;
#line 1140 "query.m"
    MR_String query__HeadVar__2_2;

#line 1140 "query.m"
    if ((query__HeadVar__1_1 == (MR_Integer) 1))
#line 1141 "query.m"
      query__HeadVar__2_2 = (MR_String) "nosum";
#line 1140 "query.m"
    else
#line 1140 "query.m"
      query__HeadVar__2_2 = (MR_String) "sum";
#line 1140 "query.m"
    return query__HeadVar__2_2;
#line 1140 "query.m"
  }
#line 1138 "query.m"
}

#line 1114 "query.m"
static MR_bool MR_CALL 
query__string_to_limit_2_p_0(
#line 1114 "query.m"
  MR_String query__LimitStr_3,
#line 1114 "query.m"
  MR_Word * query__Limit_4)
#line 1114 "query.m"
{
#line 1124 "query.m"
  {
#line 1124 "query.m"
    MR_bool query__succeeded;
#line 1124 "query.m"
    MR_Integer query__First_8;
#line 1124 "query.m"
    MR_Integer query__Last_9;
#line 1118 "query.m"
    MR_Word query__Pieces_5;
#line 1118 "query.m"
    MR_String query__FirstStr_6;
#line 1118 "query.m"
    MR_String query__LastStr_7;
#line 1118 "query.m"
    MR_Word query__V_15_15;
#line 1118 "query.m"
    MR_Word query__V_16_16;

#line 1118 "query.m"
    {
#line 1118 "query.m"
      util__split_3_p_0(query__LimitStr_3, (MR_Char) 45, &query__Pieces_5);
    }
#line 1119 "query.m"
    query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 1119 "query.m"
    if (query__succeeded)
#line 1119 "query.m"
      {
#line 1119 "query.m"
        query__FirstStr_6 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 1119 "query.m"
        query__V_15_15 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 1119 "query.m"
        query__succeeded = ((MR_tag((MR_Word) query__V_15_15)) == (MR_mktag((MR_Integer) 1)));
#line 1119 "query.m"
        if (query__succeeded)
#line 1119 "query.m"
          {
#line 1119 "query.m"
            query__LastStr_7 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_15_15, (MR_Integer) 0)));
#line 1119 "query.m"
            query__V_16_16 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_15_15, (MR_Integer) 1)));
#line 1119 "query.m"
            query__succeeded = (query__V_16_16 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 1118 "query.m"
            if (query__succeeded)
#line 1118 "query.m"
              {
#line 1120 "query.m"
                {
#line 1120 "query.m"
                  query__succeeded = mercury__string__to_int_2_p_0(query__FirstStr_6, &query__First_8);
                }
#line 1118 "query.m"
                if (query__succeeded)
#line 1121 "query.m"
                  {
#line 1121 "query.m"
                    query__succeeded = mercury__string__to_int_2_p_0(query__LastStr_7, &query__Last_9);
                  }
#line 1118 "query.m"
              }
#line 1119 "query.m"
          }
#line 1119 "query.m"
      }
#line 1124 "query.m"
    if (query__succeeded)
#line 1123 "query.m"
      {
#line 1123 "query.m"
        {
#line 1123 "query.m"
          MR_Word base;
#line 1123 "query.m"
          base = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 1123 "query.m"
          *query__Limit_4 = base;
#line 1123 "query.m"
          MR_hl_field(MR_mktag(0), base, 0) = ((MR_Box) (query__First_8));
#line 1123 "query.m"
          MR_hl_field(MR_mktag(0), base, 1) = ((MR_Box) (query__Last_9));
#line 1123 "query.m"
        }
#line 1123 "query.m"
        query__succeeded = MR_TRUE;
#line 1123 "query.m"
      }
#line 1124 "query.m"
    else
#line 1129 "query.m"
      {
#line 1129 "query.m"
        MR_Float query__Threshold_11;
#line 1125 "query.m"
        MR_String query__PercentStr_10;

#line 1125 "query.m"
        {
#line 1125 "query.m"
          query__succeeded = mercury__string__append_3_p_1((MR_String) "p", &query__PercentStr_10, query__LimitStr_3);
        }
#line 1125 "query.m"
        if (query__succeeded)
#line 1126 "query.m"
          {
#line 1126 "query.m"
            query__succeeded = mercury__string__to_float_2_p_0(query__PercentStr_10, &query__Threshold_11);
          }
#line 1129 "query.m"
        if (query__succeeded)
#line 1128 "query.m"
          {
#line 1128 "query.m"
            {
#line 1128 "query.m"
              MR_Word base;
#line 1128 "query.m"
              base = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 1128 "query.m"
              *query__Limit_4 = base;
#line 1128 "query.m"
              MR_hl_field(MR_mktag(1), base, 0) = MR_box_float(query__Threshold_11);
#line 1128 "query.m"
            }
#line 1128 "query.m"
            query__succeeded = MR_TRUE;
#line 1128 "query.m"
          }
#line 1129 "query.m"
        else
#line 1134 "query.m"
          {
#line 1134 "query.m"
            MR_String query__ValueStr_12;
#line 1134 "query.m"
            MR_Float query__Value_13;

#line 1130 "query.m"
            {
#line 1130 "query.m"
              query__succeeded = mercury__string__append_3_p_1((MR_String) "v", &query__ValueStr_12, query__LimitStr_3);
            }
#line 1134 "query.m"
            if (query__succeeded)
#line 1134 "query.m"
              {
#line 1131 "query.m"
                {
#line 1131 "query.m"
                  query__succeeded = mercury__string__to_float_2_p_0(query__ValueStr_12, &query__Value_13);
                }
#line 1134 "query.m"
                if (query__succeeded)
#line 1134 "query.m"
                  {
#line 1133 "query.m"
                    {
#line 1133 "query.m"
                      MR_Word base;
#line 1133 "query.m"
                      base = (MR_Word) MR_mkword(MR_mktag(2), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 1133 "query.m"
                      *query__Limit_4 = base;
#line 1133 "query.m"
                      MR_hl_field(MR_mktag(2), base, 0) = MR_box_float(query__Value_13);
#line 1133 "query.m"
                    }
#line 1133 "query.m"
                    query__succeeded = MR_TRUE;
#line 1134 "query.m"
                  }
#line 1134 "query.m"
              }
#line 1134 "query.m"
          }
#line 1129 "query.m"
      }
#line 1124 "query.m"
    return query__succeeded;
#line 1124 "query.m"
  }
#line 1114 "query.m"
}

#line 1105 "query.m"
static MR_String MR_CALL 
query__limit_to_string_1_f_0(
#line 1105 "query.m"
  MR_Word query__HeadVar__1_1)
#line 1105 "query.m"
{
#line 1107 "query.m"
  {
#line 1107 "query.m"
    MR_bool query__succeeded;
#line 1107 "query.m"
    MR_String query__HeadVar__2_2;

#line 1107 "query.m"
    if (((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 0))))
#line 1107 "query.m"
      {
#line 1107 "query.m"
        MR_Integer query__Lo_3 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 0)));
#line 1107 "query.m"
        MR_Integer query__Hi_4 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 1)));
#line 1107 "query.m"
        MR_String query__V_24_24;
#line 1107 "query.m"
        MR_String query__V_25_25;
#line 1107 "query.m"
        MR_String query__V_26_26;
#line 1107 "query.m"
        MR_String query__V_27_27;

#line 12480 "query.c"
        {
#line 12482 "query.c"
          query__V_24_24 = mercury__string__int_to_string_1_f_0(query__Hi_4);
        }
#line 12485 "query.c"
        {
#line 12487 "query.c"
          query__V_25_25 = mercury__string__char_to_string_1_f_0((MR_Char) 45);
        }
#line 12490 "query.c"
        {
#line 12492 "query.c"
          query__V_26_26 = mercury__string__f_43_43_2_f_0(query__V_25_25, query__V_24_24);
        }
#line 12495 "query.c"
        {
#line 12497 "query.c"
          query__V_27_27 = mercury__string__int_to_string_1_f_0(query__Lo_3);
        }
#line 12500 "query.c"
        {
#line 12502 "query.c"
          return query__HeadVar__2_2 = mercury__string__f_43_43_2_f_0(query__V_27_27, query__V_26_26);
        }
#line 1107 "query.m"
      }
#line 1107 "query.m"
    else
#line 1107 "query.m"
      if (((MR_tag((MR_Word) query__HeadVar__1_1)) == (MR_mktag((MR_Integer) 1))))
#line 1109 "query.m"
        {
#line 1109 "query.m"
          MR_Float query__Threshold_14 = MR_unbox_float((MR_hl_field(MR_mktag(1), query__HeadVar__1_1, (MR_Integer) 0)));
#line 1109 "query.m"
          MR_Word query__V_16_16;
#line 1109 "query.m"
          MR_Word query__V_17_17;

#line 1110 "query.m"
          {
#line 1110 "query.m"
            query__V_17_17 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 1110 "query.m"
            MR_hl_field(MR_mktag(0), query__V_17_17, 0) = MR_box_float(query__Threshold_14);
#line 1110 "query.m"
          }
#line 1110 "query.m"
          {
#line 1110 "query.m"
            query__V_16_16 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1110 "query.m"
            MR_hl_field(MR_mktag(1), query__V_16_16, 0) = ((MR_Box) (query__V_17_17));
#line 1110 "query.m"
            MR_hl_field(MR_mktag(1), query__V_16_16, 1) = ((MR_Box) (MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 1110 "query.m"
          }
#line 1109 "query.m"
          {
#line 1109 "query.m"
            return query__HeadVar__2_2 = mercury__string__format_2_f_0((MR_String) "p%g", query__V_16_16);
          }
#line 1109 "query.m"
        }
#line 1107 "query.m"
      else
#line 1111 "query.m"
        {
#line 1111 "query.m"
          MR_Float query__Value_19 = MR_unbox_float((MR_hl_field(MR_mktag(2), query__HeadVar__1_1, (MR_Integer) 0)));
#line 1111 "query.m"
          MR_Word query__V_21_21;
#line 1111 "query.m"
          MR_Word query__V_22_22;

#line 1112 "query.m"
          {
#line 1112 "query.m"
            query__V_22_22 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL);
#line 1112 "query.m"
            MR_hl_field(MR_mktag(0), query__V_22_22, 0) = MR_box_float(query__Value_19);
#line 1112 "query.m"
          }
#line 1112 "query.m"
          {
#line 1112 "query.m"
            query__V_21_21 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 1112 "query.m"
            MR_hl_field(MR_mktag(1), query__V_21_21, 0) = ((MR_Box) (query__V_22_22));
#line 1112 "query.m"
            MR_hl_field(MR_mktag(1), query__V_21_21, 1) = ((MR_Box) (MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 1112 "query.m"
          }
#line 1111 "query.m"
          {
#line 1111 "query.m"
            return query__HeadVar__2_2 = mercury__string__format_2_f_0((MR_String) "v%g", query__V_21_21);
          }
#line 1111 "query.m"
        }
#line 1107 "query.m"
    return query__HeadVar__2_2;
#line 1107 "query.m"
  }
#line 1105 "query.m"
}

#line 1099 "query.m"
static MR_bool MR_CALL 
query__string_to_incl_desc_2_p_0(
#line 1099 "query.m"
  MR_String query__HeadVar__1_1,
#line 1099 "query.m"
  MR_Word * query__HeadVar__2_2)
#line 1099 "query.m"
{
#line 1102 "query.m"
  {
#line 1102 "query.m"
    MR_bool query__succeeded;

#line 1102 "query.m"
    if ((strcmp(query__HeadVar__1_1, (MR_String) "both") == 0))
#line 1103 "query.m"
      {
#line 1103 "query.m"
        *query__HeadVar__2_2 = (MR_Integer) 1;
#line 1103 "query.m"
        query__succeeded = MR_TRUE;
#line 1103 "query.m"
      }
#line 1102 "query.m"
    else
#line 1102 "query.m"
      if ((strcmp(query__HeadVar__1_1, (MR_String) "self") == 0))
#line 1102 "query.m"
        {
#line 1102 "query.m"
          *query__HeadVar__2_2 = (MR_Integer) 0;
#line 1102 "query.m"
          query__succeeded = MR_TRUE;
#line 1102 "query.m"
        }
#line 1102 "query.m"
      else
#line 1102 "query.m"
        query__succeeded = MR_FALSE;
#line 1102 "query.m"
    return query__succeeded;
#line 1102 "query.m"
  }
#line 1099 "query.m"
}

#line 1093 "query.m"
static MR_String MR_CALL 
query__incl_desc_to_string_1_f_0(
#line 1093 "query.m"
  MR_Word query__InclDesc_3)
#line 1093 "query.m"
{
#line 1102 "query.m"
  {
#line 1102 "query.m"
    MR_bool query__succeeded;
#line 1102 "query.m"
    MR_String query__String_4;

#line 1102 "query.m"
    if ((query__InclDesc_3 == (MR_Integer) 0))
#line 1102 "query.m"
      query__String_4 = (MR_String) "self";
#line 1102 "query.m"
    else
#line 1103 "query.m"
      query__String_4 = (MR_String) "both";
#line 1102 "query.m"
    return query__String_4;
#line 1102 "query.m"
  }
#line 1093 "query.m"
}

#line 1083 "query.m"
static MR_bool MR_CALL 
query__string_to_cost_kind_2_p_0(
#line 1083 "query.m"
  MR_String query__HeadVar__1_1,
#line 1083 "query.m"
  MR_Word * query__HeadVar__2_2)
#line 1083 "query.m"
{
#line 1086 "query.m"
  {
#line 1086 "query.m"
    MR_bool query__succeeded;

#line 1086 "query.m"
    if ((strcmp(query__HeadVar__1_1, (MR_String) "time") == 0))
#line 1088 "query.m"
      {
#line 1088 "query.m"
        *query__HeadVar__2_2 = (MR_Integer) 2;
#line 1088 "query.m"
        query__succeeded = MR_TRUE;
#line 1088 "query.m"
      }
#line 1086 "query.m"
    else
#line 1086 "query.m"
      if ((strcmp(query__HeadVar__1_1, (MR_String) "calls") == 0))
#line 1086 "query.m"
        {
#line 1086 "query.m"
          *query__HeadVar__2_2 = (MR_Integer) 0;
#line 1086 "query.m"
          query__succeeded = MR_TRUE;
#line 1086 "query.m"
        }
#line 1086 "query.m"
      else
#line 1086 "query.m"
        if ((strcmp(query__HeadVar__1_1, (MR_String) "redos") == 0))
#line 1087 "query.m"
          {
#line 1087 "query.m"
            *query__HeadVar__2_2 = (MR_Integer) 1;
#line 1087 "query.m"
            query__succeeded = MR_TRUE;
#line 1087 "query.m"
          }
#line 1086 "query.m"
        else
#line 1086 "query.m"
          if ((strcmp(query__HeadVar__1_1, (MR_String) "words") == 0))
#line 1091 "query.m"
            {
#line 1091 "query.m"
              *query__HeadVar__2_2 = (MR_Integer) 5;
#line 1091 "query.m"
              query__succeeded = MR_TRUE;
#line 1091 "query.m"
            }
#line 1086 "query.m"
          else
#line 1086 "query.m"
            if ((strcmp(query__HeadVar__1_1, (MR_String) "allocs") == 0))
#line 1090 "query.m"
              {
#line 1090 "query.m"
                *query__HeadVar__2_2 = (MR_Integer) 4;
#line 1090 "query.m"
                query__succeeded = MR_TRUE;
#line 1090 "query.m"
              }
#line 1086 "query.m"
            else
#line 1086 "query.m"
              if ((strcmp(query__HeadVar__1_1, (MR_String) "callseqs") == 0))
#line 1089 "query.m"
                {
#line 1089 "query.m"
                  *query__HeadVar__2_2 = (MR_Integer) 3;
#line 1089 "query.m"
                  query__succeeded = MR_TRUE;
#line 1089 "query.m"
                }
#line 1086 "query.m"
              else
#line 1086 "query.m"
                query__succeeded = MR_FALSE;
#line 1086 "query.m"
    return query__succeeded;
#line 1086 "query.m"
  }
#line 1083 "query.m"
}

#line 1077 "query.m"
static MR_String MR_CALL 
query__cost_kind_to_string_1_f_0(
#line 1077 "query.m"
  MR_Word query__CostKind_3)
#line 1077 "query.m"
{
#line 1086 "query.m"
  {
#line 1086 "query.m"
    MR_bool query__succeeded;
#line 1086 "query.m"
    MR_String query__String_4;

#line 1086 "query.m"
    if ((query__CostKind_3 == (MR_Integer) 4))
#line 1090 "query.m"
      query__String_4 = (MR_String) "allocs";
#line 1086 "query.m"
    else
#line 1086 "query.m"
      if ((query__CostKind_3 == (MR_Integer) 0))
#line 1086 "query.m"
        query__String_4 = (MR_String) "calls";
#line 1086 "query.m"
      else
#line 1086 "query.m"
        if ((query__CostKind_3 == (MR_Integer) 3))
#line 1089 "query.m"
          query__String_4 = (MR_String) "callseqs";
#line 1086 "query.m"
        else
#line 1086 "query.m"
          if ((query__CostKind_3 == (MR_Integer) 1))
#line 1087 "query.m"
            query__String_4 = (MR_String) "redos";
#line 1086 "query.m"
          else
#line 1086 "query.m"
            if ((query__CostKind_3 == (MR_Integer) 2))
#line 1088 "query.m"
              query__String_4 = (MR_String) "time";
#line 1086 "query.m"
            else
#line 1091 "query.m"
              query__String_4 = (MR_String) "words";
#line 1086 "query.m"
    return query__String_4;
#line 1086 "query.m"
  }
#line 1077 "query.m"
}

#line 1069 "query.m"
static MR_bool MR_CALL 
query__string_to_caller_groups_2_p_0(
#line 1069 "query.m"
  MR_String query__HeadVar__1_1,
#line 1069 "query.m"
  MR_Word * query__HeadVar__2_2)
#line 1069 "query.m"
{
#line 1072 "query.m"
  {
#line 1072 "query.m"
    MR_bool query__succeeded;

#line 1072 "query.m"
    if ((strcmp(query__HeadVar__1_1, (MR_String) "cl") == 0))
#line 1075 "query.m"
      {
#line 1075 "query.m"
        *query__HeadVar__2_2 = (MR_Integer) 3;
#line 1075 "query.m"
        query__succeeded = MR_TRUE;
#line 1075 "query.m"
      }
#line 1072 "query.m"
    else
#line 1072 "query.m"
      if ((strcmp(query__HeadVar__1_1, (MR_String) "cs") == 0))
#line 1072 "query.m"
        {
#line 1072 "query.m"
          *query__HeadVar__2_2 = (MR_Integer) 0;
#line 1072 "query.m"
          query__succeeded = MR_TRUE;
#line 1072 "query.m"
        }
#line 1072 "query.m"
      else
#line 1072 "query.m"
        if ((strcmp(query__HeadVar__1_1, (MR_String) "mo") == 0))
#line 1074 "query.m"
          {
#line 1074 "query.m"
            *query__HeadVar__2_2 = (MR_Integer) 2;
#line 1074 "query.m"
            query__succeeded = MR_TRUE;
#line 1074 "query.m"
          }
#line 1072 "query.m"
        else
#line 1072 "query.m"
          if ((strcmp(query__HeadVar__1_1, (MR_String) "pr") == 0))
#line 1073 "query.m"
            {
#line 1073 "query.m"
              *query__HeadVar__2_2 = (MR_Integer) 1;
#line 1073 "query.m"
              query__succeeded = MR_TRUE;
#line 1073 "query.m"
            }
#line 1072 "query.m"
          else
#line 1072 "query.m"
            query__succeeded = MR_FALSE;
#line 1072 "query.m"
    return query__succeeded;
#line 1072 "query.m"
  }
#line 1069 "query.m"
}

#line 1063 "query.m"
static MR_String MR_CALL 
query__caller_groups_to_string_1_f_0(
#line 1063 "query.m"
  MR_Word query__CallerGroups_3)
#line 1063 "query.m"
{
#line 1072 "query.m"
  {
#line 1072 "query.m"
    MR_bool query__succeeded;
#line 1072 "query.m"
    MR_String query__String_4;

#line 1072 "query.m"
    if ((query__CallerGroups_3 == (MR_Integer) 0))
#line 1072 "query.m"
      query__String_4 = (MR_String) "cs";
#line 1072 "query.m"
    else
#line 1072 "query.m"
      if ((query__CallerGroups_3 == (MR_Integer) 3))
#line 1075 "query.m"
        query__String_4 = (MR_String) "cl";
#line 1072 "query.m"
      else
#line 1072 "query.m"
        if ((query__CallerGroups_3 == (MR_Integer) 2))
#line 1074 "query.m"
          query__String_4 = (MR_String) "mo";
#line 1072 "query.m"
        else
#line 1073 "query.m"
          query__String_4 = (MR_String) "pr";
#line 1072 "query.m"
    return query__String_4;
#line 1072 "query.m"
  }
#line 1063 "query.m"
}

#line 1033 "query.m"
static MR_String MR_CALL 
query__fields_to_string_1_f_0(
#line 1033 "query.m"
  MR_Word query__HeadVar__1_1)
#line 1033 "query.m"
{
#line 1035 "query.m"
  {
#line 1035 "query.m"
    MR_bool query__succeeded;
#line 1035 "query.m"
    MR_String query__HeadVar__2_2;
#line 1035 "query.m"
    MR_Word query__Port_3 = ((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 0)))) & (MR_Integer) 1);
#line 1035 "query.m"
    MR_Word query__Time_4 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 0)))) >> (MR_Integer) 1)) & (MR_Integer) 7);
#line 1035 "query.m"
    MR_Word query__CallSeqs_5 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 0)))) >> (MR_Integer) 4)) & (MR_Integer) 3);
#line 1035 "query.m"
    MR_Word query__Allocs_6 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 0)))) >> (MR_Integer) 6)) & (MR_Integer) 3);
#line 1035 "query.m"
    MR_Word query__Memory_7 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__HeadVar__1_1, (MR_Integer) 1)));
#line 1035 "query.m"
    MR_String query__V_8_8;
#line 1035 "query.m"
    MR_String query__V_9_9;
#line 1035 "query.m"
    MR_String query__V_10_10;
#line 1035 "query.m"
    MR_String query__V_12_12;
#line 1035 "query.m"
    MR_String query__V_13_13;
#line 1035 "query.m"
    MR_String query__V_14_14;
#line 1035 "query.m"
    MR_String query__V_15_15;
#line 1035 "query.m"
    MR_String query__V_17_17;
#line 1035 "query.m"
    MR_String query__V_18_18;
#line 1035 "query.m"
    MR_String query__V_19_19;
#line 1035 "query.m"
    MR_String query__V_20_20;
#line 1035 "query.m"
    MR_String query__V_22_22;
#line 1035 "query.m"
    MR_String query__V_23_23;
#line 1035 "query.m"
    MR_String query__V_24_24;
#line 1035 "query.m"
    MR_String query__V_25_25;
#line 1035 "query.m"
    MR_String query__V_27_27;

#line 973 "query.m"
    if ((query__Port_3 == (MR_Integer) 0))
#line 973 "query.m"
      query__V_8_8 = (MR_String) "_";
#line 973 "query.m"
    else
#line 974 "query.m"
      query__V_8_8 = (MR_String) "p";
#line 1037 "query.m"
    {
#line 1037 "query.m"
      query__V_10_10 = mercury__string__char_to_string_1_f_0((MR_Char) 45);
    }
#line 985 "query.m"
    if ((query__Time_4 == (MR_Integer) 0))
#line 985 "query.m"
      query__V_13_13 = (MR_String) "_";
#line 985 "query.m"
    else
#line 985 "query.m"
      if ((query__Time_4 == (MR_Integer) 1))
#line 986 "query.m"
        query__V_13_13 = (MR_String) "q";
#line 985 "query.m"
      else
#line 985 "query.m"
        if ((query__Time_4 == (MR_Integer) 3))
#line 988 "query.m"
          query__V_13_13 = (MR_String) "qt";
#line 985 "query.m"
        else
#line 985 "query.m"
          if ((query__Time_4 == (MR_Integer) 5))
#line 990 "query.m"
            query__V_13_13 = (MR_String) "qtp";
#line 985 "query.m"
          else
#line 985 "query.m"
            if ((query__Time_4 == (MR_Integer) 2))
#line 987 "query.m"
              query__V_13_13 = (MR_String) "t";
#line 985 "query.m"
            else
#line 989 "query.m"
              query__V_13_13 = (MR_String) "tp";
#line 1039 "query.m"
    {
#line 1039 "query.m"
      query__V_15_15 = mercury__string__char_to_string_1_f_0((MR_Char) 45);
    }
#line 1001 "query.m"
    if ((query__CallSeqs_5 == (MR_Integer) 1))
#line 1002 "query.m"
      query__V_18_18 = (MR_String) "s";
#line 1001 "query.m"
    else
#line 1001 "query.m"
      if ((query__CallSeqs_5 == (MR_Integer) 2))
#line 1003 "query.m"
        query__V_18_18 = (MR_String) "S";
#line 1001 "query.m"
      else
#line 1001 "query.m"
        query__V_18_18 = (MR_String) "_";
#line 1041 "query.m"
    {
#line 1041 "query.m"
      query__V_20_20 = mercury__string__char_to_string_1_f_0((MR_Char) 45);
    }
#line 1014 "query.m"
    if ((query__Allocs_6 == (MR_Integer) 1))
#line 1015 "query.m"
      query__V_23_23 = (MR_String) "a";
#line 1014 "query.m"
    else
#line 1014 "query.m"
      if ((query__Allocs_6 == (MR_Integer) 2))
#line 1016 "query.m"
        query__V_23_23 = (MR_String) "A";
#line 1014 "query.m"
      else
#line 1014 "query.m"
        query__V_23_23 = (MR_String) "_";
#line 1043 "query.m"
    {
#line 1043 "query.m"
      query__V_25_25 = mercury__string__char_to_string_1_f_0((MR_Char) 45);
    }
#line 1027 "query.m"
    if ((query__Memory_7 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 1027 "query.m"
      query__V_27_27 = (MR_String) "_";
#line 1027 "query.m"
    else
#line 1027 "query.m"
      if (((MR_tag((MR_Word) query__Memory_7)) == (MR_mktag((MR_Integer) 1))))
#line 1027 "query.m"
        {
#line 1027 "query.m"
          MR_Word query__V_42_42 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Memory_7, (MR_Integer) 0)));

#line 1027 "query.m"
          if ((query__V_42_42 == (MR_Integer) 1))
#line 1028 "query.m"
            query__V_27_27 = (MR_String) "b";
#line 1027 "query.m"
          else
#line 1029 "query.m"
            query__V_27_27 = (MR_String) "w";
#line 1027 "query.m"
        }
#line 1027 "query.m"
      else
#line 1027 "query.m"
        {
#line 1027 "query.m"
          MR_Word query__V_43_43 = ((MR_Word) (MR_hl_field(MR_mktag(2), query__Memory_7, (MR_Integer) 0)));

#line 1027 "query.m"
          if ((query__V_43_43 == (MR_Integer) 1))
#line 1030 "query.m"
            query__V_27_27 = (MR_String) "B";
#line 1027 "query.m"
          else
#line 1031 "query.m"
            query__V_27_27 = (MR_String) "W";
#line 1027 "query.m"
        }
#line 1042 "query.m"
    {
#line 1042 "query.m"
      query__V_24_24 = mercury__string__f_43_43_2_f_0(query__V_25_25, query__V_27_27);
    }
#line 1041 "query.m"
    {
#line 1041 "query.m"
      query__V_22_22 = mercury__string__f_43_43_2_f_0(query__V_23_23, query__V_24_24);
    }
#line 1040 "query.m"
    {
#line 1040 "query.m"
      query__V_19_19 = mercury__string__f_43_43_2_f_0(query__V_20_20, query__V_22_22);
    }
#line 1039 "query.m"
    {
#line 1039 "query.m"
      query__V_17_17 = mercury__string__f_43_43_2_f_0(query__V_18_18, query__V_19_19);
    }
#line 1038 "query.m"
    {
#line 1038 "query.m"
      query__V_14_14 = mercury__string__f_43_43_2_f_0(query__V_15_15, query__V_17_17);
    }
#line 1037 "query.m"
    {
#line 1037 "query.m"
      query__V_12_12 = mercury__string__f_43_43_2_f_0(query__V_13_13, query__V_14_14);
    }
#line 1036 "query.m"
    {
#line 1036 "query.m"
      query__V_9_9 = mercury__string__f_43_43_2_f_0(query__V_10_10, query__V_12_12);
    }
#line 1035 "query.m"
    {
#line 1035 "query.m"
      return query__HeadVar__2_2 = mercury__string__f_43_43_2_f_0(query__V_8_8, query__V_9_9);
    }
#line 1035 "query.m"
    return query__HeadVar__2_2;
#line 1035 "query.m"
  }
#line 1033 "query.m"
}

#line 666 "query.m"
static MR_String MR_CALL 
query__preferences_to_string_1_f_0(
#line 666 "query.m"
  MR_Word query__Pref_3)
#line 666 "query.m"
{
#line 668 "query.m"
  {
#line 668 "query.m"
    MR_bool query__succeeded;
#line 668 "query.m"
    MR_String query__PrefStr_4;
#line 668 "query.m"
    MR_Word query__Fields_5 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__Pref_3, (MR_Integer) 0)));
#line 668 "query.m"
    MR_Word query__Box_6 = ((((MR_Word) (MR_hl_field(MR_mktag(0), query__Pref_3, (MR_Integer) 1)))) & (MR_Integer) 1);
#line 668 "query.m"
    MR_Word query__Colour_7 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__Pref_3, (MR_Integer) 1)))) >> (MR_Integer) 1)) & (MR_Integer) 1);
#line 668 "query.m"
    MR_Word query__MaybeAncestorLimit_8 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__Pref_3, (MR_Integer) 2)));
#line 668 "query.m"
    MR_Integer query__ProcStaticsPerRecTypeLimit_9 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__Pref_3, (MR_Integer) 3)));
#line 668 "query.m"
    MR_Word query__SummarizeHoCallSites_10 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__Pref_3, (MR_Integer) 4)));
#line 668 "query.m"
    MR_Word query__Order_11 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__Pref_3, (MR_Integer) 5)));
#line 668 "query.m"
    MR_Word query__Contour_12 = ((((MR_Word) (MR_hl_field(MR_mktag(0), query__Pref_3, (MR_Integer) 6)))) & (MR_Integer) 1);
#line 668 "query.m"
    MR_Word query__Time_13 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__Pref_3, (MR_Integer) 6)))) >> (MR_Integer) 1)) & (MR_Integer) 3);
#line 668 "query.m"
    MR_Word query__ModuleQual_14 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__Pref_3, (MR_Integer) 6)))) >> (MR_Integer) 3)) & (MR_Integer) 3);
#line 668 "query.m"
    MR_Word query__InactiveItems_15 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__Pref_3, (MR_Integer) 7)));
#line 668 "query.m"
    MR_Word query__DeveloperMode_16 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__Pref_3, (MR_Integer) 8)));
#line 668 "query.m"
    MR_String query__MaybeAncestorLimitStr_18;
#line 668 "query.m"
    MR_String query__V_26_26;
#line 668 "query.m"
    MR_Char query__V_29_29;
#line 668 "query.m"
    MR_String query__V_32_32;
#line 668 "query.m"
    MR_Char query__V_35_35;
#line 668 "query.m"
    MR_String query__V_38_38;
#line 668 "query.m"
    MR_Char query__V_41_41;
#line 668 "query.m"
    MR_Char query__V_46_46;
#line 668 "query.m"
    MR_Char query__V_51_51;
#line 668 "query.m"
    MR_String query__V_54_54;
#line 668 "query.m"
    MR_Char query__V_57_57;
#line 668 "query.m"
    MR_String query__V_60_60;
#line 668 "query.m"
    MR_Char query__V_63_63;
#line 668 "query.m"
    MR_String query__V_66_66;
#line 668 "query.m"
    MR_Char query__V_69_69;
#line 668 "query.m"
    MR_String query__V_72_72;
#line 668 "query.m"
    MR_Char query__V_75_75;
#line 668 "query.m"
    MR_String query__V_78_78;
#line 668 "query.m"
    MR_Char query__V_81_81;
#line 668 "query.m"
    MR_String query__V_84_84;
#line 668 "query.m"
    MR_Char query__V_87_87;
#line 668 "query.m"
    MR_String query__V_90_90;
#line 668 "query.m"
    MR_String query__V_92_92;
#line 668 "query.m"
    MR_String query__V_93_93;
#line 668 "query.m"
    MR_String query__V_94_94;
#line 668 "query.m"
    MR_String query__V_95_95;
#line 668 "query.m"
    MR_String query__V_96_96;
#line 668 "query.m"
    MR_String query__V_97_97;
#line 668 "query.m"
    MR_String query__V_98_98;
#line 668 "query.m"
    MR_String query__V_99_99;
#line 668 "query.m"
    MR_String query__V_100_100;
#line 668 "query.m"
    MR_String query__V_101_101;
#line 668 "query.m"
    MR_String query__V_102_102;
#line 668 "query.m"
    MR_String query__V_103_103;
#line 668 "query.m"
    MR_String query__V_104_104;
#line 668 "query.m"
    MR_String query__V_105_105;
#line 668 "query.m"
    MR_String query__V_106_106;
#line 668 "query.m"
    MR_String query__V_107_107;
#line 668 "query.m"
    MR_String query__V_108_108;
#line 668 "query.m"
    MR_String query__V_109_109;
#line 668 "query.m"
    MR_String query__V_110_110;
#line 668 "query.m"
    MR_String query__V_111_111;
#line 668 "query.m"
    MR_String query__V_112_112;
#line 668 "query.m"
    MR_String query__V_113_113;
#line 668 "query.m"
    MR_String query__V_114_114;
#line 668 "query.m"
    MR_String query__V_115_115;
#line 668 "query.m"
    MR_String query__V_116_116;
#line 668 "query.m"
    MR_String query__V_117_117;
#line 668 "query.m"
    MR_String query__V_118_118;
#line 668 "query.m"
    MR_String query__V_119_119;
#line 668 "query.m"
    MR_String query__V_120_120;
#line 668 "query.m"
    MR_String query__V_121_121;
#line 668 "query.m"
    MR_String query__V_122_122;
#line 668 "query.m"
    MR_String query__V_123_123;
#line 668 "query.m"
    MR_String query__V_124_124;

#line 676 "query.m"
    if ((query__MaybeAncestorLimit_8 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 678 "query.m"
      query__MaybeAncestorLimitStr_18 = (MR_String) "no";
#line 676 "query.m"
    else
#line 673 "query.m"
      {
#line 673 "query.m"
        MR_Integer query__AncestorLimit_17 = ((MR_Integer) (MR_hl_field(MR_mktag(1), query__MaybeAncestorLimit_8, (MR_Integer) 0)));

#line 13314 "query.c"
        {
#line 13316 "query.c"
          query__MaybeAncestorLimitStr_18 = mercury__string__int_to_string_1_f_0(query__AncestorLimit_17);
        }
#line 673 "query.m"
      }
#line 681 "query.m"
    {
#line 681 "query.m"
      query__V_26_26 = query__fields_to_string_1_f_0(query__Fields_5);
    }
#line 682 "query.m"
    {
#line 682 "query.m"
      query__V_29_29 = query__pref_separator_char_0_f_0();
    }
#line 682 "query.m"
    {
#line 682 "query.m"
      query__V_32_32 = query__box_to_string_1_f_0(query__Box_6);
    }
#line 683 "query.m"
    {
#line 683 "query.m"
      query__V_35_35 = query__pref_separator_char_0_f_0();
    }
#line 683 "query.m"
    {
#line 683 "query.m"
      query__V_38_38 = query__colour_scheme_to_string_1_f_0(query__Colour_7);
    }
#line 684 "query.m"
    {
#line 684 "query.m"
      query__V_41_41 = query__pref_separator_char_0_f_0();
    }
#line 685 "query.m"
    {
#line 685 "query.m"
      query__V_46_46 = query__pref_separator_char_0_f_0();
    }
#line 686 "query.m"
    {
#line 686 "query.m"
      query__V_51_51 = query__pref_separator_char_0_f_0();
    }
#line 686 "query.m"
    {
#line 686 "query.m"
      query__V_54_54 = query__summarize_to_string_1_f_0(query__SummarizeHoCallSites_10);
    }
#line 687 "query.m"
    {
#line 687 "query.m"
      query__V_57_57 = query__pref_separator_char_0_f_0();
    }
#line 687 "query.m"
    {
#line 687 "query.m"
      query__V_60_60 = query__order_criteria_to_string_1_f_0(query__Order_11);
    }
#line 688 "query.m"
    {
#line 688 "query.m"
      query__V_63_63 = query__pref_separator_char_0_f_0();
    }
#line 688 "query.m"
    {
#line 688 "query.m"
      query__V_66_66 = query__contour_exclusion_to_string_1_f_0(query__Contour_12);
    }
#line 689 "query.m"
    {
#line 689 "query.m"
      query__V_69_69 = query__pref_separator_char_0_f_0();
    }
#line 689 "query.m"
    {
#line 689 "query.m"
      query__V_72_72 = query__time_format_to_string_1_f_0(query__Time_13);
    }
#line 690 "query.m"
    {
#line 690 "query.m"
      query__V_75_75 = query__pref_separator_char_0_f_0();
    }
#line 690 "query.m"
    {
#line 690 "query.m"
      query__V_78_78 = query__module_qual_to_string_1_f_0(query__ModuleQual_14);
    }
#line 691 "query.m"
    {
#line 691 "query.m"
      query__V_81_81 = query__pref_separator_char_0_f_0();
    }
#line 691 "query.m"
    {
#line 691 "query.m"
      query__V_84_84 = query__inactive_items_to_string_1_f_0(query__InactiveItems_15);
    }
#line 692 "query.m"
    {
#line 692 "query.m"
      query__V_87_87 = query__pref_separator_char_0_f_0();
    }
#line 692 "query.m"
    {
#line 692 "query.m"
      query__V_90_90 = query__developer_mode_to_string_1_f_0(query__DeveloperMode_16);
    }
#line 13426 "query.c"
    {
#line 13428 "query.c"
      query__V_92_92 = mercury__string__char_to_string_1_f_0(query__V_87_87);
    }
#line 13431 "query.c"
    {
#line 13433 "query.c"
      query__V_93_93 = mercury__string__f_43_43_2_f_0(query__V_92_92, query__V_90_90);
    }
#line 13436 "query.c"
    {
#line 13438 "query.c"
      query__V_94_94 = mercury__string__f_43_43_2_f_0(query__V_84_84, query__V_93_93);
    }
#line 13441 "query.c"
    {
#line 13443 "query.c"
      query__V_95_95 = mercury__string__char_to_string_1_f_0(query__V_81_81);
    }
#line 13446 "query.c"
    {
#line 13448 "query.c"
      query__V_96_96 = mercury__string__f_43_43_2_f_0(query__V_95_95, query__V_94_94);
    }
#line 13451 "query.c"
    {
#line 13453 "query.c"
      query__V_97_97 = mercury__string__f_43_43_2_f_0(query__V_78_78, query__V_96_96);
    }
#line 13456 "query.c"
    {
#line 13458 "query.c"
      query__V_98_98 = mercury__string__char_to_string_1_f_0(query__V_75_75);
    }
#line 13461 "query.c"
    {
#line 13463 "query.c"
      query__V_99_99 = mercury__string__f_43_43_2_f_0(query__V_98_98, query__V_97_97);
    }
#line 13466 "query.c"
    {
#line 13468 "query.c"
      query__V_100_100 = mercury__string__f_43_43_2_f_0(query__V_72_72, query__V_99_99);
    }
#line 13471 "query.c"
    {
#line 13473 "query.c"
      query__V_101_101 = mercury__string__char_to_string_1_f_0(query__V_69_69);
    }
#line 13476 "query.c"
    {
#line 13478 "query.c"
      query__V_102_102 = mercury__string__f_43_43_2_f_0(query__V_101_101, query__V_100_100);
    }
#line 13481 "query.c"
    {
#line 13483 "query.c"
      query__V_103_103 = mercury__string__f_43_43_2_f_0(query__V_66_66, query__V_102_102);
    }
#line 13486 "query.c"
    {
#line 13488 "query.c"
      query__V_104_104 = mercury__string__char_to_string_1_f_0(query__V_63_63);
    }
#line 13491 "query.c"
    {
#line 13493 "query.c"
      query__V_105_105 = mercury__string__f_43_43_2_f_0(query__V_104_104, query__V_103_103);
    }
#line 13496 "query.c"
    {
#line 13498 "query.c"
      query__V_106_106 = mercury__string__f_43_43_2_f_0(query__V_60_60, query__V_105_105);
    }
#line 13501 "query.c"
    {
#line 13503 "query.c"
      query__V_107_107 = mercury__string__char_to_string_1_f_0(query__V_57_57);
    }
#line 13506 "query.c"
    {
#line 13508 "query.c"
      query__V_108_108 = mercury__string__f_43_43_2_f_0(query__V_107_107, query__V_106_106);
    }
#line 13511 "query.c"
    {
#line 13513 "query.c"
      query__V_109_109 = mercury__string__f_43_43_2_f_0(query__V_54_54, query__V_108_108);
    }
#line 13516 "query.c"
    {
#line 13518 "query.c"
      query__V_110_110 = mercury__string__char_to_string_1_f_0(query__V_51_51);
    }
#line 13521 "query.c"
    {
#line 13523 "query.c"
      query__V_111_111 = mercury__string__f_43_43_2_f_0(query__V_110_110, query__V_109_109);
    }
#line 13526 "query.c"
    {
#line 13528 "query.c"
      query__V_112_112 = mercury__string__int_to_string_1_f_0(query__ProcStaticsPerRecTypeLimit_9);
    }
#line 13531 "query.c"
    {
#line 13533 "query.c"
      query__V_113_113 = mercury__string__f_43_43_2_f_0(query__V_112_112, query__V_111_111);
    }
#line 13536 "query.c"
    {
#line 13538 "query.c"
      query__V_114_114 = mercury__string__char_to_string_1_f_0(query__V_46_46);
    }
#line 13541 "query.c"
    {
#line 13543 "query.c"
      query__V_115_115 = mercury__string__f_43_43_2_f_0(query__V_114_114, query__V_113_113);
    }
#line 13546 "query.c"
    {
#line 13548 "query.c"
      query__V_116_116 = mercury__string__f_43_43_2_f_0(query__MaybeAncestorLimitStr_18, query__V_115_115);
    }
#line 13551 "query.c"
    {
#line 13553 "query.c"
      query__V_117_117 = mercury__string__char_to_string_1_f_0(query__V_41_41);
    }
#line 13556 "query.c"
    {
#line 13558 "query.c"
      query__V_118_118 = mercury__string__f_43_43_2_f_0(query__V_117_117, query__V_116_116);
    }
#line 13561 "query.c"
    {
#line 13563 "query.c"
      query__V_119_119 = mercury__string__f_43_43_2_f_0(query__V_38_38, query__V_118_118);
    }
#line 13566 "query.c"
    {
#line 13568 "query.c"
      query__V_120_120 = mercury__string__char_to_string_1_f_0(query__V_35_35);
    }
#line 13571 "query.c"
    {
#line 13573 "query.c"
      query__V_121_121 = mercury__string__f_43_43_2_f_0(query__V_120_120, query__V_119_119);
    }
#line 13576 "query.c"
    {
#line 13578 "query.c"
      query__V_122_122 = mercury__string__f_43_43_2_f_0(query__V_32_32, query__V_121_121);
    }
#line 13581 "query.c"
    {
#line 13583 "query.c"
      query__V_123_123 = mercury__string__char_to_string_1_f_0(query__V_29_29);
    }
#line 13586 "query.c"
    {
#line 13588 "query.c"
      query__V_124_124 = mercury__string__f_43_43_2_f_0(query__V_123_123, query__V_122_122);
    }
#line 13591 "query.c"
    {
#line 13593 "query.c"
      return query__PrefStr_4 = mercury__string__f_43_43_2_f_0(query__V_26_26, query__V_124_124);
    }
#line 668 "query.m"
    return query__PrefStr_4;
#line 668 "query.m"
  }
#line 666 "query.m"
}

#line 535 "query.m"
static MR_String MR_CALL 
query__cmd_to_string_1_f_0(
#line 535 "query.m"
  MR_Word query__Cmd_3)
#line 535 "query.m"
{
#line 539 "query.m"
  {
#line 539 "query.m"
    MR_bool query__succeeded;
#line 539 "query.m"
    MR_String query__CmdStr_4;

#line 539 "query.m"
    if ((query__Cmd_3 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 2)))))
#line 550 "query.m"
      {
#line 550 "query.m"
        return query__CmdStr_4 = query__cmd_str_menu_0_f_0();
      }
#line 539 "query.m"
    else
#line 539 "query.m"
      if ((query__Cmd_3 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 4)))))
#line 596 "query.m"
        {
#line 596 "query.m"
          return query__CmdStr_4 = query__cmd_str_program_modules_0_f_0();
        }
#line 539 "query.m"
      else
#line 539 "query.m"
        if ((query__Cmd_3 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 540 "query.m"
          {
#line 540 "query.m"
            return query__CmdStr_4 = query__cmd_str_quit_0_f_0();
          }
#line 539 "query.m"
        else
#line 539 "query.m"
          if ((query__Cmd_3 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 3)))))
#line 575 "query.m"
            {
#line 575 "query.m"
              return query__CmdStr_4 = query__cmd_str_recursion_types_frequency_0_f_0();
            }
#line 539 "query.m"
          else
#line 539 "query.m"
            if ((query__Cmd_3 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 1)))))
#line 543 "query.m"
              {
#line 543 "query.m"
                return query__CmdStr_4 = query__cmd_str_restart_0_f_0();
              }
#line 539 "query.m"
            else
#line 539 "query.m"
              if (((MR_tag((MR_Word) query__Cmd_3)) == (MR_mktag((MR_Integer) 2))))
#line 552 "query.m"
                {
#line 552 "query.m"
                  MR_Word query__MaybePercent_6 = ((MR_Word) (MR_hl_field(MR_mktag(2), query__Cmd_3, (MR_Integer) 0)));

#line 557 "query.m"
                  if ((query__MaybePercent_6 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 558 "query.m"
                    {
#line 558 "query.m"
                      MR_String query__V_221_221;
#line 558 "query.m"
                      MR_Char query__V_224_224;
#line 558 "query.m"
                      MR_String query__V_328_328;
#line 558 "query.m"
                      MR_String query__V_329_329;

#line 560 "query.m"
                      {
#line 560 "query.m"
                        query__V_221_221 = query__cmd_str_root_0_f_0();
                      }
#line 560 "query.m"
                      {
#line 560 "query.m"
                        query__V_224_224 = query__cmd_separator_char_0_f_0();
                      }
#line 13692 "query.c"
                      {
#line 13694 "query.c"
                        query__V_328_328 = mercury__string__char_to_string_1_f_0(query__V_224_224);
                      }
#line 13697 "query.c"
                      {
#line 13699 "query.c"
                        query__V_329_329 = mercury__string__f_43_43_2_f_0(query__V_328_328, (MR_String) "no");
                      }
#line 13702 "query.c"
                      {
#line 13704 "query.c"
                        return query__CmdStr_4 = mercury__string__f_43_43_2_f_0(query__V_221_221, query__V_329_329);
                      }
#line 558 "query.m"
                    }
#line 557 "query.m"
                  else
#line 554 "query.m"
                    {
#line 554 "query.m"
                      MR_Integer query__Percent_7 = ((MR_Integer) (MR_hl_field(MR_mktag(1), query__MaybePercent_6, (MR_Integer) 0)));
#line 554 "query.m"
                      MR_String query__V_232_232;
#line 554 "query.m"
                      MR_Char query__V_235_235;
#line 554 "query.m"
                      MR_String query__V_330_330;
#line 554 "query.m"
                      MR_String query__V_331_331;
#line 554 "query.m"
                      MR_String query__V_332_332;

#line 556 "query.m"
                      {
#line 556 "query.m"
                        query__V_232_232 = query__cmd_str_root_0_f_0();
                      }
#line 556 "query.m"
                      {
#line 556 "query.m"
                        query__V_235_235 = query__cmd_separator_char_0_f_0();
                      }
#line 13736 "query.c"
                      {
#line 13738 "query.c"
                        query__V_330_330 = mercury__string__int_to_string_1_f_0(query__Percent_7);
                      }
#line 13741 "query.c"
                      {
#line 13743 "query.c"
                        query__V_331_331 = mercury__string__char_to_string_1_f_0(query__V_235_235);
                      }
#line 13746 "query.c"
                      {
#line 13748 "query.c"
                        query__V_332_332 = mercury__string__f_43_43_2_f_0(query__V_331_331, query__V_330_330);
                      }
#line 13751 "query.c"
                      {
#line 13753 "query.c"
                        return query__CmdStr_4 = mercury__string__f_43_43_2_f_0(query__V_232_232, query__V_332_332);
                      }
#line 554 "query.m"
                    }
#line 552 "query.m"
                }
#line 539 "query.m"
              else
#line 539 "query.m"
                if (((MR_tag((MR_Word) query__Cmd_3)) == (MR_mktag((MR_Integer) 1))))
#line 545 "query.m"
                  {
#line 545 "query.m"
                    MR_Integer query__Minutes_5 = ((MR_Integer) (MR_hl_field(MR_mktag(1), query__Cmd_3, (MR_Integer) 0)));
#line 545 "query.m"
                    MR_String query__V_242_242;
#line 545 "query.m"
                    MR_Char query__V_245_245;
#line 545 "query.m"
                    MR_String query__V_336_336;
#line 545 "query.m"
                    MR_String query__V_337_337;
#line 545 "query.m"
                    MR_String query__V_338_338;

#line 547 "query.m"
                    {
#line 547 "query.m"
                      query__V_242_242 = query__cmd_str_timeout_0_f_0();
                    }
#line 547 "query.m"
                    {
#line 547 "query.m"
                      query__V_245_245 = query__cmd_separator_char_0_f_0();
                    }
#line 13789 "query.c"
                    {
#line 13791 "query.c"
                      query__V_336_336 = mercury__string__int_to_string_1_f_0(query__Minutes_5);
                    }
#line 13794 "query.c"
                    {
#line 13796 "query.c"
                      query__V_337_337 = mercury__string__char_to_string_1_f_0(query__V_245_245);
                    }
#line 13799 "query.c"
                    {
#line 13801 "query.c"
                      query__V_338_338 = mercury__string__f_43_43_2_f_0(query__V_337_337, query__V_336_336);
                    }
#line 13804 "query.c"
                    {
#line 13806 "query.c"
                      return query__CmdStr_4 = mercury__string__f_43_43_2_f_0(query__V_242_242, query__V_338_338);
                    }
#line 545 "query.m"
                  }
#line 539 "query.m"
                else
#line 539 "query.m"
                  if (((((MR_tag((MR_Word) query__Cmd_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 0)))) == (MR_Integer) 15))))
#line 659 "query.m"
                    {
#line 659 "query.m"
                      MR_String query__V_37_37;
#line 659 "query.m"
                      MR_Char query__V_40_40;
#line 659 "query.m"
                      MR_Word query__CSDPtr_261 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 1)));
#line 659 "query.m"
                      MR_Integer query__CSDI_262 = (MR_Integer) query__CSDPtr_261;
#line 659 "query.m"
                      MR_String query__V_275_275;
#line 659 "query.m"
                      MR_String query__V_276_276;
#line 659 "query.m"
                      MR_String query__V_277_277;

#line 662 "query.m"
                      {
#line 662 "query.m"
                        query__V_37_37 = query__cmd_str_call_site_dynamic_var_use_0_f_0();
                      }
#line 662 "query.m"
                      {
#line 662 "query.m"
                        query__V_40_40 = query__cmd_separator_char_0_f_0();
                      }
#line 13842 "query.c"
                      {
#line 13844 "query.c"
                        query__V_275_275 = mercury__string__int_to_string_1_f_0(query__CSDI_262);
                      }
#line 13847 "query.c"
                      {
#line 13849 "query.c"
                        query__V_276_276 = mercury__string__char_to_string_1_f_0(query__V_40_40);
                      }
#line 13852 "query.c"
                      {
#line 13854 "query.c"
                        query__V_277_277 = mercury__string__f_43_43_2_f_0(query__V_276_276, query__V_275_275);
                      }
#line 13857 "query.c"
                      {
#line 13859 "query.c"
                        return query__CmdStr_4 = mercury__string__f_43_43_2_f_0(query__V_37_37, query__V_277_277);
                      }
#line 659 "query.m"
                    }
#line 539 "query.m"
                  else
#line 539 "query.m"
                    if (((((MR_tag((MR_Word) query__Cmd_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 0)))) == (MR_Integer) 0))))
#line 569 "query.m"
                      {
#line 569 "query.m"
                        MR_Word query__CliquePtr_8 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 1)));
#line 569 "query.m"
                        MR_String query__Name_9;
#line 569 "query.m"
                        MR_Integer query__CliqueNum_10;
#line 569 "query.m"
                        MR_Char query__V_214_214;
#line 569 "query.m"
                        MR_String query__V_278_278;
#line 569 "query.m"
                        MR_String query__V_279_279;
#line 569 "query.m"
                        MR_String query__V_280_280;

#line 565 "query.m"
                        {
#line 565 "query.m"
                          query__Name_9 = query__cmd_str_clique_0_f_0();
                        }
#line 570 "query.m"
                        query__CliqueNum_10 = (MR_Integer) query__CliquePtr_8;
#line 572 "query.m"
                        {
#line 572 "query.m"
                          query__V_214_214 = query__cmd_separator_char_0_f_0();
                        }
#line 13897 "query.c"
                        {
#line 13899 "query.c"
                          query__V_278_278 = mercury__string__int_to_string_1_f_0(query__CliqueNum_10);
                        }
#line 13902 "query.c"
                        {
#line 13904 "query.c"
                          query__V_279_279 = mercury__string__char_to_string_1_f_0(query__V_214_214);
                        }
#line 13907 "query.c"
                        {
#line 13909 "query.c"
                          query__V_280_280 = mercury__string__f_43_43_2_f_0(query__V_279_279, query__V_278_278);
                        }
#line 13912 "query.c"
                        {
#line 13914 "query.c"
                          return query__CmdStr_4 = mercury__string__f_43_43_2_f_0(query__Name_9, query__V_280_280);
                        }
#line 569 "query.m"
                      }
#line 539 "query.m"
                    else
#line 539 "query.m"
                      if (((((MR_tag((MR_Word) query__Cmd_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 0)))) == (MR_Integer) 1))))
#line 569 "query.m"
                        {
#line 569 "query.m"
                          MR_Word query__CliquePtr_263 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 1)));
#line 569 "query.m"
                          MR_String query__Name_264;
#line 569 "query.m"
                          MR_Integer query__CliqueNum_265;
#line 569 "query.m"
                          MR_Char query__V_271_271;
#line 569 "query.m"
                          MR_String query__V_281_281;
#line 569 "query.m"
                          MR_String query__V_282_282;
#line 569 "query.m"
                          MR_String query__V_283_283;

#line 568 "query.m"
                          {
#line 568 "query.m"
                            query__Name_264 = query__cmd_str_clique_recursive_costs_0_f_0();
                          }
#line 570 "query.m"
                          query__CliqueNum_265 = (MR_Integer) query__CliquePtr_263;
#line 572 "query.m"
                          {
#line 572 "query.m"
                            query__V_271_271 = query__cmd_separator_char_0_f_0();
                          }
#line 13952 "query.c"
                          {
#line 13954 "query.c"
                            query__V_281_281 = mercury__string__int_to_string_1_f_0(query__CliqueNum_265);
                          }
#line 13957 "query.c"
                          {
#line 13959 "query.c"
                            query__V_282_282 = mercury__string__char_to_string_1_f_0(query__V_271_271);
                          }
#line 13962 "query.c"
                          {
#line 13964 "query.c"
                            query__V_283_283 = mercury__string__f_43_43_2_f_0(query__V_282_282, query__V_281_281);
                          }
#line 13967 "query.c"
                          {
#line 13969 "query.c"
                            return query__CmdStr_4 = mercury__string__f_43_43_2_f_0(query__Name_264, query__V_283_283);
                          }
#line 569 "query.m"
                        }
#line 539 "query.m"
                      else
#line 539 "query.m"
                        if (((((MR_tag((MR_Word) query__Cmd_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 0)))) == (MR_Integer) 13))))
#line 648 "query.m"
                          {
#line 648 "query.m"
                            MR_Word query__CSDPtr_32 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 1)));
#line 648 "query.m"
                            MR_Integer query__CSDI_33 = (MR_Integer) query__CSDPtr_32;
#line 648 "query.m"
                            MR_String query__V_57_57;
#line 648 "query.m"
                            MR_Char query__V_60_60;
#line 648 "query.m"
                            MR_String query__V_284_284;
#line 648 "query.m"
                            MR_String query__V_285_285;
#line 648 "query.m"
                            MR_String query__V_286_286;

#line 651 "query.m"
                            {
#line 651 "query.m"
                              query__V_57_57 = query__cmd_str_dump_call_site_dynamic_0_f_0();
                            }
#line 651 "query.m"
                            {
#line 651 "query.m"
                              query__V_60_60 = query__cmd_separator_char_0_f_0();
                            }
#line 14005 "query.c"
                            {
#line 14007 "query.c"
                              query__V_284_284 = mercury__string__int_to_string_1_f_0(query__CSDI_33);
                            }
#line 14010 "query.c"
                            {
#line 14012 "query.c"
                              query__V_285_285 = mercury__string__char_to_string_1_f_0(query__V_60_60);
                            }
#line 14015 "query.c"
                            {
#line 14017 "query.c"
                              query__V_286_286 = mercury__string__f_43_43_2_f_0(query__V_285_285, query__V_284_284);
                            }
#line 14020 "query.c"
                            {
#line 14022 "query.c"
                              return query__CmdStr_4 = mercury__string__f_43_43_2_f_0(query__V_57_57, query__V_286_286);
                            }
#line 648 "query.m"
                          }
#line 539 "query.m"
                        else
#line 539 "query.m"
                          if (((((MR_tag((MR_Word) query__Cmd_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 0)))) == (MR_Integer) 12))))
#line 643 "query.m"
                            {
#line 643 "query.m"
                              MR_Word query__CSSPtr_30 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 1)));
#line 643 "query.m"
                              MR_Integer query__CSSI_31 = (MR_Integer) query__CSSPtr_30;
#line 643 "query.m"
                              MR_String query__V_67_67;
#line 643 "query.m"
                              MR_Char query__V_70_70;
#line 643 "query.m"
                              MR_String query__V_287_287;
#line 643 "query.m"
                              MR_String query__V_288_288;
#line 643 "query.m"
                              MR_String query__V_289_289;

#line 646 "query.m"
                              {
#line 646 "query.m"
                                query__V_67_67 = query__cmd_str_dump_call_site_static_0_f_0();
                              }
#line 646 "query.m"
                              {
#line 646 "query.m"
                                query__V_70_70 = query__cmd_separator_char_0_f_0();
                              }
#line 14058 "query.c"
                              {
#line 14060 "query.c"
                                query__V_287_287 = mercury__string__int_to_string_1_f_0(query__CSSI_31);
                              }
#line 14063 "query.c"
                              {
#line 14065 "query.c"
                                query__V_288_288 = mercury__string__char_to_string_1_f_0(query__V_70_70);
                              }
#line 14068 "query.c"
                              {
#line 14070 "query.c"
                                query__V_289_289 = mercury__string__f_43_43_2_f_0(query__V_288_288, query__V_287_287);
                              }
#line 14073 "query.c"
                              {
#line 14075 "query.c"
                                return query__CmdStr_4 = mercury__string__f_43_43_2_f_0(query__V_67_67, query__V_289_289);
                              }
#line 643 "query.m"
                            }
#line 539 "query.m"
                          else
#line 539 "query.m"
                            if (((((MR_tag((MR_Word) query__Cmd_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 0)))) == (MR_Integer) 14))))
#line 654 "query.m"
                              {
#line 654 "query.m"
                                MR_String query__V_47_47;
#line 654 "query.m"
                                MR_Char query__V_50_50;
#line 654 "query.m"
                                MR_Word query__CliquePtr_259 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 1)));
#line 654 "query.m"
                                MR_Integer query__CliqueNum_260 = (MR_Integer) query__CliquePtr_259;
#line 654 "query.m"
                                MR_String query__V_290_290;
#line 654 "query.m"
                                MR_String query__V_291_291;
#line 654 "query.m"
                                MR_String query__V_292_292;

#line 657 "query.m"
                                {
#line 657 "query.m"
                                  query__V_47_47 = query__cmd_str_dump_raw_clique_0_f_0();
                                }
#line 657 "query.m"
                                {
#line 657 "query.m"
                                  query__V_50_50 = query__cmd_separator_char_0_f_0();
                                }
#line 14111 "query.c"
                                {
#line 14113 "query.c"
                                  query__V_290_290 = mercury__string__int_to_string_1_f_0(query__CliqueNum_260);
                                }
#line 14116 "query.c"
                                {
#line 14118 "query.c"
                                  query__V_291_291 = mercury__string__char_to_string_1_f_0(query__V_50_50);
                                }
#line 14121 "query.c"
                                {
#line 14123 "query.c"
                                  query__V_292_292 = mercury__string__f_43_43_2_f_0(query__V_291_291, query__V_290_290);
                                }
#line 14126 "query.c"
                                {
#line 14128 "query.c"
                                  return query__CmdStr_4 = mercury__string__f_43_43_2_f_0(query__V_47_47, query__V_292_292);
                                }
#line 654 "query.m"
                              }
#line 539 "query.m"
                            else
#line 539 "query.m"
                              if (((((MR_tag((MR_Word) query__Cmd_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 0)))) == (MR_Integer) 11))))
#line 638 "query.m"
                                {
#line 638 "query.m"
                                  MR_String query__V_77_77;
#line 638 "query.m"
                                  MR_Char query__V_80_80;
#line 638 "query.m"
                                  MR_Word query__PDPtr_257 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 1)));
#line 638 "query.m"
                                  MR_Integer query__PDI_258 = (MR_Integer) query__PDPtr_257;
#line 638 "query.m"
                                  MR_String query__V_293_293;
#line 638 "query.m"
                                  MR_String query__V_294_294;
#line 638 "query.m"
                                  MR_String query__V_295_295;

#line 641 "query.m"
                                  {
#line 641 "query.m"
                                    query__V_77_77 = query__cmd_str_dump_proc_dynamic_0_f_0();
                                  }
#line 641 "query.m"
                                  {
#line 641 "query.m"
                                    query__V_80_80 = query__cmd_separator_char_0_f_0();
                                  }
#line 14164 "query.c"
                                  {
#line 14166 "query.c"
                                    query__V_293_293 = mercury__string__int_to_string_1_f_0(query__PDI_258);
                                  }
#line 14169 "query.c"
                                  {
#line 14171 "query.c"
                                    query__V_294_294 = mercury__string__char_to_string_1_f_0(query__V_80_80);
                                  }
#line 14174 "query.c"
                                  {
#line 14176 "query.c"
                                    query__V_295_295 = mercury__string__f_43_43_2_f_0(query__V_294_294, query__V_293_293);
                                  }
#line 14179 "query.c"
                                  {
#line 14181 "query.c"
                                    return query__CmdStr_4 = mercury__string__f_43_43_2_f_0(query__V_77_77, query__V_295_295);
                                  }
#line 638 "query.m"
                                }
#line 539 "query.m"
                              else
#line 539 "query.m"
                                if (((((MR_tag((MR_Word) query__Cmd_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 0)))) == (MR_Integer) 10))))
#line 633 "query.m"
                                  {
#line 633 "query.m"
                                    MR_String query__V_87_87;
#line 633 "query.m"
                                    MR_Char query__V_90_90;
#line 633 "query.m"
                                    MR_Word query__PSPtr_255 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 1)));
#line 633 "query.m"
                                    MR_Integer query__PSI_256 = (MR_Integer) query__PSPtr_255;
#line 633 "query.m"
                                    MR_String query__V_296_296;
#line 633 "query.m"
                                    MR_String query__V_297_297;
#line 633 "query.m"
                                    MR_String query__V_298_298;

#line 636 "query.m"
                                    {
#line 636 "query.m"
                                      query__V_87_87 = query__cmd_str_dump_proc_static_0_f_0();
                                    }
#line 636 "query.m"
                                    {
#line 636 "query.m"
                                      query__V_90_90 = query__cmd_separator_char_0_f_0();
                                    }
#line 14217 "query.c"
                                    {
#line 14219 "query.c"
                                      query__V_296_296 = mercury__string__int_to_string_1_f_0(query__PSI_256);
                                    }
#line 14222 "query.c"
                                    {
#line 14224 "query.c"
                                      query__V_297_297 = mercury__string__char_to_string_1_f_0(query__V_90_90);
                                    }
#line 14227 "query.c"
                                    {
#line 14229 "query.c"
                                      query__V_298_298 = mercury__string__f_43_43_2_f_0(query__V_297_297, query__V_296_296);
                                    }
#line 14232 "query.c"
                                    {
#line 14234 "query.c"
                                      return query__CmdStr_4 = mercury__string__f_43_43_2_f_0(query__V_87_87, query__V_298_298);
                                    }
#line 633 "query.m"
                                  }
#line 539 "query.m"
                                else
#line 539 "query.m"
                                  if (((((MR_tag((MR_Word) query__Cmd_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 0)))) == (MR_Integer) 9))))
#line 628 "query.m"
                                    {
#line 628 "query.m"
                                      MR_Word query__PDPtr_28 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 1)));
#line 628 "query.m"
                                      MR_Integer query__PDI_29 = (MR_Integer) query__PDPtr_28;
#line 628 "query.m"
                                      MR_String query__V_97_97;
#line 628 "query.m"
                                      MR_Char query__V_100_100;
#line 628 "query.m"
                                      MR_String query__V_299_299;
#line 628 "query.m"
                                      MR_String query__V_300_300;
#line 628 "query.m"
                                      MR_String query__V_301_301;

#line 631 "query.m"
                                      {
#line 631 "query.m"
                                        query__V_97_97 = query__cmd_str_dynamic_coverage_0_f_0();
                                      }
#line 631 "query.m"
                                      {
#line 631 "query.m"
                                        query__V_100_100 = query__cmd_separator_char_0_f_0();
                                      }
#line 14270 "query.c"
                                      {
#line 14272 "query.c"
                                        query__V_299_299 = mercury__string__int_to_string_1_f_0(query__PDI_29);
                                      }
#line 14275 "query.c"
                                      {
#line 14277 "query.c"
                                        query__V_300_300 = mercury__string__char_to_string_1_f_0(query__V_100_100);
                                      }
#line 14280 "query.c"
                                      {
#line 14282 "query.c"
                                        query__V_301_301 = mercury__string__f_43_43_2_f_0(query__V_300_300, query__V_299_299);
                                      }
#line 14285 "query.c"
                                      {
#line 14287 "query.c"
                                        return query__CmdStr_4 = mercury__string__f_43_43_2_f_0(query__V_97_97, query__V_301_301);
                                      }
#line 628 "query.m"
                                    }
#line 539 "query.m"
                                  else
#line 539 "query.m"
                                    if (((((MR_tag((MR_Word) query__Cmd_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 0)))) == (MR_Integer) 4))))
#line 598 "query.m"
                                      {
#line 598 "query.m"
                                        MR_String query__ModuleName_19 = ((MR_String) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 1)));
#line 598 "query.m"
                                        MR_String query__V_162_162;
#line 598 "query.m"
                                        MR_Char query__V_165_165;
#line 598 "query.m"
                                        MR_String query__V_302_302;
#line 598 "query.m"
                                        MR_String query__V_303_303;

#line 600 "query.m"
                                        {
#line 600 "query.m"
                                          query__V_162_162 = query__cmd_str_module_0_f_0();
                                        }
#line 600 "query.m"
                                        {
#line 600 "query.m"
                                          query__V_165_165 = query__cmd_separator_char_0_f_0();
                                        }
#line 14319 "query.c"
                                        {
#line 14321 "query.c"
                                          query__V_302_302 = mercury__string__char_to_string_1_f_0(query__V_165_165);
                                        }
#line 14324 "query.c"
                                        {
#line 14326 "query.c"
                                          query__V_303_303 = mercury__string__f_43_43_2_f_0(query__V_302_302, query__ModuleName_19);
                                        }
#line 14329 "query.c"
                                        {
#line 14331 "query.c"
                                          return query__CmdStr_4 = mercury__string__f_43_43_2_f_0(query__V_162_162, query__V_303_303);
                                        }
#line 598 "query.m"
                                      }
#line 539 "query.m"
                                    else
#line 539 "query.m"
                                      if (((((MR_tag((MR_Word) query__Cmd_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 0)))) == (MR_Integer) 5))))
#line 602 "query.m"
                                        {
#line 602 "query.m"
                                          MR_String query__V_152_152;
#line 602 "query.m"
                                          MR_Char query__V_155_155;
#line 602 "query.m"
                                          MR_String query__ModuleName_251 = ((MR_String) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 1)));
#line 602 "query.m"
                                          MR_String query__V_304_304;
#line 602 "query.m"
                                          MR_String query__V_305_305;

#line 604 "query.m"
                                          {
#line 604 "query.m"
                                            query__V_152_152 = query__cmd_str_module_getter_setters_0_f_0();
                                          }
#line 604 "query.m"
                                          {
#line 604 "query.m"
                                            query__V_155_155 = query__cmd_separator_char_0_f_0();
                                          }
#line 14363 "query.c"
                                          {
#line 14365 "query.c"
                                            query__V_304_304 = mercury__string__char_to_string_1_f_0(query__V_155_155);
                                          }
#line 14368 "query.c"
                                          {
#line 14370 "query.c"
                                            query__V_305_305 = mercury__string__f_43_43_2_f_0(query__V_304_304, query__ModuleName_251);
                                          }
#line 14373 "query.c"
                                          {
#line 14375 "query.c"
                                            return query__CmdStr_4 = mercury__string__f_43_43_2_f_0(query__V_152_152, query__V_305_305);
                                          }
#line 602 "query.m"
                                        }
#line 539 "query.m"
                                      else
#line 539 "query.m"
                                        if (((((MR_tag((MR_Word) query__Cmd_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 0)))) == (MR_Integer) 6))))
#line 607 "query.m"
                                          {
#line 607 "query.m"
                                            MR_String query__V_142_142;
#line 607 "query.m"
                                            MR_Char query__V_145_145;
#line 607 "query.m"
                                            MR_String query__ModuleName_252 = ((MR_String) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 1)));
#line 607 "query.m"
                                            MR_String query__V_306_306;
#line 607 "query.m"
                                            MR_String query__V_307_307;

#line 609 "query.m"
                                            {
#line 609 "query.m"
                                              query__V_142_142 = query__cmd_str_module_rep_0_f_0();
                                            }
#line 609 "query.m"
                                            {
#line 609 "query.m"
                                              query__V_145_145 = query__cmd_separator_char_0_f_0();
                                            }
#line 14407 "query.c"
                                            {
#line 14409 "query.c"
                                              query__V_306_306 = mercury__string__char_to_string_1_f_0(query__V_145_145);
                                            }
#line 14412 "query.c"
                                            {
#line 14414 "query.c"
                                              query__V_307_307 = mercury__string__f_43_43_2_f_0(query__V_306_306, query__ModuleName_252);
                                            }
#line 14417 "query.c"
                                            {
#line 14419 "query.c"
                                              return query__CmdStr_4 = mercury__string__f_43_43_2_f_0(query__V_142_142, query__V_307_307);
                                            }
#line 607 "query.m"
                                          }
#line 539 "query.m"
                                        else
#line 539 "query.m"
                                          if (((((MR_tag((MR_Word) query__Cmd_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 0)))) == (MR_Integer) 2))))
#line 577 "query.m"
                                            {
#line 577 "query.m"
                                              MR_Word query__PSPtr_11 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 1)));
#line 577 "query.m"
                                              MR_Integer query__PSI_12 = (MR_Integer) query__PSPtr_11;
#line 577 "query.m"
                                              MR_String query__V_202_202;
#line 577 "query.m"
                                              MR_Char query__V_205_205;
#line 577 "query.m"
                                              MR_String query__V_308_308;
#line 577 "query.m"
                                              MR_String query__V_309_309;
#line 577 "query.m"
                                              MR_String query__V_310_310;

#line 580 "query.m"
                                              {
#line 580 "query.m"
                                                query__V_202_202 = query__cmd_str_proc_0_f_0();
                                              }
#line 580 "query.m"
                                              {
#line 580 "query.m"
                                                query__V_205_205 = query__cmd_separator_char_0_f_0();
                                              }
#line 14455 "query.c"
                                              {
#line 14457 "query.c"
                                                query__V_308_308 = mercury__string__int_to_string_1_f_0(query__PSI_12);
                                              }
#line 14460 "query.c"
                                              {
#line 14462 "query.c"
                                                query__V_309_309 = mercury__string__char_to_string_1_f_0(query__V_205_205);
                                              }
#line 14465 "query.c"
                                              {
#line 14467 "query.c"
                                                query__V_310_310 = mercury__string__f_43_43_2_f_0(query__V_309_309, query__V_308_308);
                                              }
#line 14470 "query.c"
                                              {
#line 14472 "query.c"
                                                return query__CmdStr_4 = mercury__string__f_43_43_2_f_0(query__V_202_202, query__V_310_310);
                                              }
#line 577 "query.m"
                                            }
#line 539 "query.m"
                                          else
#line 539 "query.m"
                                            if (((((MR_tag((MR_Word) query__Cmd_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 0)))) == (MR_Integer) 3))))
#line 583 "query.m"
                                              {
#line 583 "query.m"
                                                MR_Word query__GroupCallers_13 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 2)));
#line 583 "query.m"
                                                MR_Integer query__BunchNum_14 = ((MR_Integer) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 3)));
#line 583 "query.m"
                                                MR_Integer query__CallersPerBunch_15 = ((MR_Integer) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 4)));
#line 583 "query.m"
                                                MR_Word query__Contour_16 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 5)));
#line 583 "query.m"
                                                MR_String query__GroupCallersStr_17;
#line 583 "query.m"
                                                MR_String query__ContourStr_18;
#line 583 "query.m"
                                                MR_String query__V_172_172;
#line 583 "query.m"
                                                MR_Char query__V_175_175;
#line 583 "query.m"
                                                MR_Char query__V_180_180;
#line 583 "query.m"
                                                MR_Char query__V_185_185;
#line 583 "query.m"
                                                MR_Char query__V_190_190;
#line 583 "query.m"
                                                MR_Char query__V_195_195;
#line 583 "query.m"
                                                MR_Word query__PSPtr_249 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 1)));
#line 583 "query.m"
                                                MR_Integer query__PSI_250 = (MR_Integer) query__PSPtr_249;
#line 583 "query.m"
                                                MR_String query__V_311_311;
#line 583 "query.m"
                                                MR_String query__V_312_312;
#line 583 "query.m"
                                                MR_String query__V_313_313;
#line 583 "query.m"
                                                MR_String query__V_314_314;
#line 583 "query.m"
                                                MR_String query__V_315_315;
#line 583 "query.m"
                                                MR_String query__V_316_316;
#line 583 "query.m"
                                                MR_String query__V_317_317;
#line 583 "query.m"
                                                MR_String query__V_318_318;
#line 583 "query.m"
                                                MR_String query__V_319_319;
#line 583 "query.m"
                                                MR_String query__V_320_320;
#line 583 "query.m"
                                                MR_String query__V_321_321;
#line 583 "query.m"
                                                MR_String query__V_322_322;
#line 583 "query.m"
                                                MR_String query__V_323_323;
#line 583 "query.m"
                                                MR_String query__V_324_324;
#line 583 "query.m"
                                                MR_String query__V_325_325;
#line 583 "query.m"
                                                MR_String query__V_326_326;
#line 583 "query.m"
                                                MR_String query__V_327_327;

#line 585 "query.m"
                                                {
#line 585 "query.m"
                                                  query__GroupCallersStr_17 = query__caller_groups_to_string_1_f_0(query__GroupCallers_13);
                                                }
#line 586 "query.m"
                                                {
#line 586 "query.m"
                                                  query__ContourStr_18 = query__contour_exclusion_to_string_1_f_0(query__Contour_16);
                                                }
#line 588 "query.m"
                                                {
#line 588 "query.m"
                                                  query__V_172_172 = query__cmd_str_proc_callers_0_f_0();
                                                }
#line 589 "query.m"
                                                {
#line 589 "query.m"
                                                  query__V_175_175 = query__cmd_separator_char_0_f_0();
                                                }
#line 590 "query.m"
                                                {
#line 590 "query.m"
                                                  query__V_180_180 = query__cmd_separator_char_0_f_0();
                                                }
#line 591 "query.m"
                                                {
#line 591 "query.m"
                                                  query__V_185_185 = query__cmd_separator_char_0_f_0();
                                                }
#line 592 "query.m"
                                                {
#line 592 "query.m"
                                                  query__V_190_190 = query__cmd_separator_char_0_f_0();
                                                }
#line 593 "query.m"
                                                {
#line 593 "query.m"
                                                  query__V_195_195 = query__cmd_separator_char_0_f_0();
                                                }
#line 14586 "query.c"
                                                {
#line 14588 "query.c"
                                                  query__V_311_311 = mercury__string__char_to_string_1_f_0(query__V_195_195);
                                                }
#line 14591 "query.c"
                                                {
#line 14593 "query.c"
                                                  query__V_312_312 = mercury__string__f_43_43_2_f_0(query__V_311_311, query__ContourStr_18);
                                                }
#line 14596 "query.c"
                                                {
#line 14598 "query.c"
                                                  query__V_313_313 = mercury__string__int_to_string_1_f_0(query__CallersPerBunch_15);
                                                }
#line 14601 "query.c"
                                                {
#line 14603 "query.c"
                                                  query__V_314_314 = mercury__string__f_43_43_2_f_0(query__V_313_313, query__V_312_312);
                                                }
#line 14606 "query.c"
                                                {
#line 14608 "query.c"
                                                  query__V_315_315 = mercury__string__char_to_string_1_f_0(query__V_190_190);
                                                }
#line 14611 "query.c"
                                                {
#line 14613 "query.c"
                                                  query__V_316_316 = mercury__string__f_43_43_2_f_0(query__V_315_315, query__V_314_314);
                                                }
#line 14616 "query.c"
                                                {
#line 14618 "query.c"
                                                  query__V_317_317 = mercury__string__int_to_string_1_f_0(query__BunchNum_14);
                                                }
#line 14621 "query.c"
                                                {
#line 14623 "query.c"
                                                  query__V_318_318 = mercury__string__f_43_43_2_f_0(query__V_317_317, query__V_316_316);
                                                }
#line 14626 "query.c"
                                                {
#line 14628 "query.c"
                                                  query__V_319_319 = mercury__string__char_to_string_1_f_0(query__V_185_185);
                                                }
#line 14631 "query.c"
                                                {
#line 14633 "query.c"
                                                  query__V_320_320 = mercury__string__f_43_43_2_f_0(query__V_319_319, query__V_318_318);
                                                }
#line 14636 "query.c"
                                                {
#line 14638 "query.c"
                                                  query__V_321_321 = mercury__string__f_43_43_2_f_0(query__GroupCallersStr_17, query__V_320_320);
                                                }
#line 14641 "query.c"
                                                {
#line 14643 "query.c"
                                                  query__V_322_322 = mercury__string__char_to_string_1_f_0(query__V_180_180);
                                                }
#line 14646 "query.c"
                                                {
#line 14648 "query.c"
                                                  query__V_323_323 = mercury__string__f_43_43_2_f_0(query__V_322_322, query__V_321_321);
                                                }
#line 14651 "query.c"
                                                {
#line 14653 "query.c"
                                                  query__V_324_324 = mercury__string__int_to_string_1_f_0(query__PSI_250);
                                                }
#line 14656 "query.c"
                                                {
#line 14658 "query.c"
                                                  query__V_325_325 = mercury__string__f_43_43_2_f_0(query__V_324_324, query__V_323_323);
                                                }
#line 14661 "query.c"
                                                {
#line 14663 "query.c"
                                                  query__V_326_326 = mercury__string__char_to_string_1_f_0(query__V_175_175);
                                                }
#line 14666 "query.c"
                                                {
#line 14668 "query.c"
                                                  query__V_327_327 = mercury__string__f_43_43_2_f_0(query__V_326_326, query__V_325_325);
                                                }
#line 14671 "query.c"
                                                {
#line 14673 "query.c"
                                                  return query__CmdStr_4 = mercury__string__f_43_43_2_f_0(query__V_172_172, query__V_327_327);
                                                }
#line 583 "query.m"
                                              }
#line 539 "query.m"
                                            else
#line 539 "query.m"
                                              if (((((MR_tag((MR_Word) query__Cmd_3)) == (MR_mktag((MR_Integer) 3)))) && (((((MR_Integer) (MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 0)))) == (MR_Integer) 8))))
#line 623 "query.m"
                                                {
#line 623 "query.m"
                                                  MR_String query__V_107_107;
#line 623 "query.m"
                                                  MR_Char query__V_110_110;
#line 623 "query.m"
                                                  MR_Word query__PSPtr_253 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 1)));
#line 623 "query.m"
                                                  MR_Integer query__PSI_254 = (MR_Integer) query__PSPtr_253;
#line 623 "query.m"
                                                  MR_String query__V_333_333;
#line 623 "query.m"
                                                  MR_String query__V_334_334;
#line 623 "query.m"
                                                  MR_String query__V_335_335;

#line 626 "query.m"
                                                  {
#line 626 "query.m"
                                                    query__V_107_107 = query__cmd_str_static_coverage_0_f_0();
                                                  }
#line 626 "query.m"
                                                  {
#line 626 "query.m"
                                                    query__V_110_110 = query__cmd_separator_char_0_f_0();
                                                  }
#line 14709 "query.c"
                                                  {
#line 14711 "query.c"
                                                    query__V_333_333 = mercury__string__int_to_string_1_f_0(query__PSI_254);
                                                  }
#line 14714 "query.c"
                                                  {
#line 14716 "query.c"
                                                    query__V_334_334 = mercury__string__char_to_string_1_f_0(query__V_110_110);
                                                  }
#line 14719 "query.c"
                                                  {
#line 14721 "query.c"
                                                    query__V_335_335 = mercury__string__f_43_43_2_f_0(query__V_334_334, query__V_333_333);
                                                  }
#line 14724 "query.c"
                                                  {
#line 14726 "query.c"
                                                    return query__CmdStr_4 = mercury__string__f_43_43_2_f_0(query__V_107_107, query__V_335_335);
                                                  }
#line 623 "query.m"
                                                }
#line 539 "query.m"
                                              else
#line 611 "query.m"
                                                {
#line 611 "query.m"
                                                  MR_Word query__Limit_20 = ((MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 1)));
#line 611 "query.m"
                                                  MR_Word query__CostKind_21 = ((((MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 2)))) & (MR_Integer) 7);
#line 611 "query.m"
                                                  MR_Word query__InclDesc_22 = ((((((MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 2)))) >> (MR_Integer) 3)) & (MR_Integer) 1);
#line 611 "query.m"
                                                  MR_Word query__Scope_23 = ((((((MR_Word) (MR_hl_field(MR_mktag(3), query__Cmd_3, (MR_Integer) 2)))) >> (MR_Integer) 4)) & (MR_Integer) 1);
#line 611 "query.m"
                                                  MR_String query__LimitStr_24;
#line 611 "query.m"
                                                  MR_String query__CostKindStr_25;
#line 611 "query.m"
                                                  MR_String query__InclDescStr_26;
#line 611 "query.m"
                                                  MR_String query__ScopeStr_27;
#line 611 "query.m"
                                                  MR_String query__V_117_117;
#line 611 "query.m"
                                                  MR_Char query__V_120_120;
#line 611 "query.m"
                                                  MR_Char query__V_125_125;
#line 611 "query.m"
                                                  MR_Char query__V_130_130;
#line 611 "query.m"
                                                  MR_Char query__V_135_135;
#line 611 "query.m"
                                                  MR_String query__V_339_339;
#line 611 "query.m"
                                                  MR_String query__V_340_340;
#line 611 "query.m"
                                                  MR_String query__V_341_341;
#line 611 "query.m"
                                                  MR_String query__V_342_342;
#line 611 "query.m"
                                                  MR_String query__V_343_343;
#line 611 "query.m"
                                                  MR_String query__V_344_344;
#line 611 "query.m"
                                                  MR_String query__V_345_345;
#line 611 "query.m"
                                                  MR_String query__V_346_346;
#line 611 "query.m"
                                                  MR_String query__V_347_347;
#line 611 "query.m"
                                                  MR_String query__V_348_348;
#line 611 "query.m"
                                                  MR_String query__V_349_349;

#line 612 "query.m"
                                                  {
#line 612 "query.m"
                                                    query__LimitStr_24 = query__limit_to_string_1_f_0(query__Limit_20);
                                                  }
#line 613 "query.m"
                                                  {
#line 613 "query.m"
                                                    query__CostKindStr_25 = query__cost_kind_to_string_1_f_0(query__CostKind_21);
                                                  }
#line 614 "query.m"
                                                  {
#line 614 "query.m"
                                                    query__InclDescStr_26 = query__incl_desc_to_string_1_f_0(query__InclDesc_22);
                                                  }
#line 615 "query.m"
                                                  {
#line 615 "query.m"
                                                    query__ScopeStr_27 = query__scope_to_string_1_f_0(query__Scope_23);
                                                  }
#line 617 "query.m"
                                                  {
#line 617 "query.m"
                                                    query__V_117_117 = query__cmd_str_top_procs_0_f_0();
                                                  }
#line 618 "query.m"
                                                  {
#line 618 "query.m"
                                                    query__V_120_120 = query__cmd_separator_char_0_f_0();
                                                  }
#line 619 "query.m"
                                                  {
#line 619 "query.m"
                                                    query__V_125_125 = query__cmd_separator_char_0_f_0();
                                                  }
#line 620 "query.m"
                                                  {
#line 620 "query.m"
                                                    query__V_130_130 = query__cmd_separator_char_0_f_0();
                                                  }
#line 621 "query.m"
                                                  {
#line 621 "query.m"
                                                    query__V_135_135 = query__cmd_separator_char_0_f_0();
                                                  }
#line 14829 "query.c"
                                                  {
#line 14831 "query.c"
                                                    query__V_339_339 = mercury__string__char_to_string_1_f_0(query__V_135_135);
                                                  }
#line 14834 "query.c"
                                                  {
#line 14836 "query.c"
                                                    query__V_340_340 = mercury__string__f_43_43_2_f_0(query__V_339_339, query__ScopeStr_27);
                                                  }
#line 14839 "query.c"
                                                  {
#line 14841 "query.c"
                                                    query__V_341_341 = mercury__string__f_43_43_2_f_0(query__InclDescStr_26, query__V_340_340);
                                                  }
#line 14844 "query.c"
                                                  {
#line 14846 "query.c"
                                                    query__V_342_342 = mercury__string__char_to_string_1_f_0(query__V_130_130);
                                                  }
#line 14849 "query.c"
                                                  {
#line 14851 "query.c"
                                                    query__V_343_343 = mercury__string__f_43_43_2_f_0(query__V_342_342, query__V_341_341);
                                                  }
#line 14854 "query.c"
                                                  {
#line 14856 "query.c"
                                                    query__V_344_344 = mercury__string__f_43_43_2_f_0(query__CostKindStr_25, query__V_343_343);
                                                  }
#line 14859 "query.c"
                                                  {
#line 14861 "query.c"
                                                    query__V_345_345 = mercury__string__char_to_string_1_f_0(query__V_125_125);
                                                  }
#line 14864 "query.c"
                                                  {
#line 14866 "query.c"
                                                    query__V_346_346 = mercury__string__f_43_43_2_f_0(query__V_345_345, query__V_344_344);
                                                  }
#line 14869 "query.c"
                                                  {
#line 14871 "query.c"
                                                    query__V_347_347 = mercury__string__f_43_43_2_f_0(query__LimitStr_24, query__V_346_346);
                                                  }
#line 14874 "query.c"
                                                  {
#line 14876 "query.c"
                                                    query__V_348_348 = mercury__string__char_to_string_1_f_0(query__V_120_120);
                                                  }
#line 14879 "query.c"
                                                  {
#line 14881 "query.c"
                                                    query__V_349_349 = mercury__string__f_43_43_2_f_0(query__V_348_348, query__V_347_347);
                                                  }
#line 14884 "query.c"
                                                  {
#line 14886 "query.c"
                                                    return query__CmdStr_4 = mercury__string__f_43_43_2_f_0(query__V_117_117, query__V_349_349);
                                                  }
#line 611 "query.m"
                                                }
#line 539 "query.m"
    return query__CmdStr_4;
#line 539 "query.m"
  }
#line 535 "query.m"
}

#line 521 "query.m"
static MR_Char MR_CALL 
query__pref_separator_char_0_f_0(void)
#line 521 "query.m"
{
#line 528 "query.m"
  {
#line 528 "query.m"
    MR_bool query__succeeded;

#line 528 "query.m"
    return (MR_Char) 47;
#line 528 "query.m"
  }
#line 521 "query.m"
}

#line 520 "query.m"
static MR_Char MR_CALL 
query__cmd_separator_char_0_f_0(void)
#line 520 "query.m"
{
#line 527 "query.m"
  {
#line 527 "query.m"
    MR_bool query__succeeded;

#line 527 "query.m"
    return (MR_Char) 47;
#line 527 "query.m"
  }
#line 520 "query.m"
}

#line 437 "query.m"
static void MR_CALL 
query__create_and_memoize_report_3_p_0(
#line 437 "query.m"
  MR_Word query__Cmd_4,
#line 437 "query.m"
  MR_Word query__Deep_5,
#line 437 "query.m"
  MR_Word * query__Report_6)
#line 437 "query.m"
{
#line 440 "query.m"
  {
#line 440 "query.m"
    MR_bool query__succeeded;
#line 440 "query.m"
    MR_Box query__CallTableTipVar_10;
#line 440 "query.m"
    MR_Word query__Status_11;

#line 440 "query.m"
{
#define MR_PROC_LABEL query__create_and_memoize_report_3_p_0

	MR_ProcTableInfoPtr proc_table_info;
	MR_TrieNode CallTableTipVar;
	MR_Word status;
	MR_Word input_typeinfo0;
	MR_Word arg0;
	MR_Word input_typeinfo1;
	MR_Word arg1;

	proc_table_info = (MR_ProcTableInfoPtr) (MR_Box) &query__table_info_for_create_and_memoize_report_3_p_0 ;
	input_typeinfo0 =  (MR_Word) &query__query__type_ctor_info_cmd_0 ;
	arg0 =  query__Cmd_4 ;
	input_typeinfo1 =  (MR_Word) &profile__profile__type_ctor_info_deep_0 ;
	arg1 =  query__Deep_5 ;
		{
#line 440 "query.m"
	MR_TrieNode cur_node;
	MR_TrieNode next_node;

	cur_node = &proc_table_info->MR_pt_tablenode;
	MR_tbl_lookup_insert_gen(NULL, MR_FALSE, MR_FALSE, cur_node, input_typeinfo0, arg0, next_node);
	cur_node = next_node;
	MR_tbl_lookup_insert_gen_addr(NULL, MR_FALSE, MR_FALSE, cur_node, input_typeinfo1, arg1, next_node);
	cur_node = next_node;
	CallTableTipVar = cur_node;
	MR_tbl_memo_det_setup(MR_FALSE, MR_FALSE, cur_node, status);

#line 14982 "query.c"

		;}
#undef MR_PROC_LABEL
	 query__CallTableTipVar_10  = (MR_Box) CallTableTipVar;
	 query__Status_11  = status;
#line 440 "query.m"
}
#line 440 "query.m"
    if ((query__Status_11 == (MR_Integer) 1))
#line 440 "query.m"
      {
#line 440 "query.m"
        {
#line 440 "query.m"
          mercury__table_builtin__table_error_1_p_0((MR_String) "detected infinite recursion in pred query.create_and_memoize_report/3");
#line 440 "query.m"
          return;
        }
#line 440 "query.m"
      }
#line 440 "query.m"
    else
#line 440 "query.m"
      if ((query__Status_11 == (MR_Integer) 0))
#line 440 "query.m"
        {
#line 440 "query.m"
          {
#line 440 "query.m"
            create_report__create_report_3_p_0(query__Cmd_4, query__Deep_5, query__Report_6);
          }
#line 440 "query.m"
{
#define MR_PROC_LABEL query__create_and_memoize_report_3_p_0

	MR_TrieNode cur_node;
	MR_Word arg0;
	MR_Word save_arg_typeinfo0;

	cur_node = (MR_TrieNode) query__CallTableTipVar_10 ;
	arg0 = (MR_Word) ((MR_Box) (*query__Report_6)) ;
	save_arg_typeinfo0 =  (MR_Word) &report__report__type_ctor_info_deep_report_0 ;
		{
#line 440 "query.m"
	MR_AnswerBlock answerblock;
	MR_tbl_memo_create_answer_block(MR_FALSE, cur_node, 1, answerblock);
	MR_tbl_save_any_answer(MR_FALSE, answerblock, 0, save_arg_typeinfo0, arg0);

#line 15031 "query.c"

		;}
#undef MR_PROC_LABEL
#line 440 "query.m"
}
#line 440 "query.m"
        }
#line 440 "query.m"
      else
#line 440 "query.m"
        {
#line 440 "query.m"
          MR_Box query__conv0_restore_arg0;

#line 440 "query.m"
{
#define MR_PROC_LABEL query__create_and_memoize_report_3_p_0

	MR_TrieNode base;
	MR_Word restore_arg0;

	base = (MR_TrieNode) query__CallTableTipVar_10 ;
		{
#line 440 "query.m"
	MR_AnswerBlock answerblock;
	MR_tbl_memo_get_answer_block(MR_FALSE, base, answerblock);
	MR_tbl_restore_any_answer(MR_FALSE, answerblock, 0, restore_arg0);

#line 15060 "query.c"

		;}
#undef MR_PROC_LABEL
	 query__conv0_restore_arg0  = (MR_Box) restore_arg0;
#line 440 "query.m"
          *query__Report_6 = ((MR_Word) query__conv0_restore_arg0);
#line 440 "query.m"
}
#line 440 "query.m"
        }
#line 440 "query.m"
  }
#line 437 "query.m"
}

#line 415 "query.m"
static void MR_CALL 
query__exec_6_p_0(
#line 415 "query.m"
  MR_Word query__Cmd_7,
#line 415 "query.m"
  MR_Word query__Prefs_8,
#line 415 "query.m"
  MR_Word query__Deep_9,
#line 415 "query.m"
  MR_String * query__HTMLStr_10)
#line 415 "query.m"
{
#line 418 "query.m"
  {
#line 418 "query.m"
    MR_bool query__succeeded = (query__Cmd_7 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 3))));
#line 418 "query.m"
    MR_Word query__Report_12;
#line 418 "query.m"
    MR_Word query__Display_13;
#line 418 "query.m"
    MR_Word query__HTML_14;

#line 421 "query.m"
    if (query__succeeded)
#line 420 "query.m"
      {
#line 420 "query.m"
        query__create_and_memoize_report_3_p_0(query__Cmd_7, query__Deep_9, &query__Report_12);
      }
#line 421 "query.m"
    else
#line 422 "query.m"
      {
#line 422 "query.m"
        create_report__create_report_3_p_0(query__Cmd_7, query__Deep_9, &query__Report_12);
      }
#line 424 "query.m"
    {
#line 424 "query.m"
      query__Display_13 = display_report__report_to_display_3_f_0(query__Deep_9, query__Prefs_8, query__Report_12);
    }
#line 425 "query.m"
    {
#line 425 "query.m"
      query__HTML_14 = html_format__htmlize_display_3_f_0(query__Deep_9, query__Prefs_8, query__Display_13);
    }
#line 426 "query.m"
    {
#line 426 "query.m"
      *query__HTMLStr_10 = html_format__html_to_string_1_f_0(query__HTML_14);
    }
#line 418 "query.m"
  }
#line 415 "query.m"
}

#line 361 "query.m"
MR_Word MR_CALL 
query__default_developer_mode_0_f_0(void)
#line 361 "query.m"
{
#line 515 "query.m"
  {
#line 515 "query.m"
    MR_bool query__succeeded;

#line 515 "query.m"
    return (MR_Integer) 1;
#line 515 "query.m"
  }
#line 361 "query.m"
}

#line 360 "query.m"
MR_Word MR_CALL 
query__default_inactive_items_0_f_0(void)
#line 360 "query.m"
{
#line 513 "query.m"
  {
#line 513 "query.m"
    MR_bool query__succeeded;

#line 513 "query.m"
    return (MR_Word) &query_scalar_common_2[8];
#line 513 "query.m"
  }
#line 360 "query.m"
}

#line 359 "query.m"
MR_Word MR_CALL 
query__default_module_qual_0_f_0(void)
#line 359 "query.m"
{
#line 512 "query.m"
  {
#line 512 "query.m"
    MR_bool query__succeeded;

#line 512 "query.m"
    return (MR_Integer) 1;
#line 512 "query.m"
  }
#line 359 "query.m"
}

#line 358 "query.m"
MR_Word MR_CALL 
query__default_time_format_0_f_0(void)
#line 358 "query.m"
{
#line 511 "query.m"
  {
#line 511 "query.m"
    MR_bool query__succeeded;

#line 511 "query.m"
    return (MR_Integer) 2;
#line 511 "query.m"
  }
#line 358 "query.m"
}

#line 357 "query.m"
MR_Word MR_CALL 
query__default_contour_exclusion_0_f_0(void)
#line 357 "query.m"
{
#line 510 "query.m"
  {
#line 510 "query.m"
    MR_bool query__succeeded;

#line 510 "query.m"
    return (MR_Integer) 1;
#line 510 "query.m"
  }
#line 357 "query.m"
}

#line 356 "query.m"
MR_Word MR_CALL 
query__default_scope_0_f_0(void)
#line 356 "query.m"
{
#line 509 "query.m"
  {
#line 509 "query.m"
    MR_bool query__succeeded;

#line 509 "query.m"
    return (MR_Integer) 1;
#line 509 "query.m"
  }
#line 356 "query.m"
}

#line 355 "query.m"
MR_Word MR_CALL 
query__default_incl_desc_0_f_0(void)
#line 355 "query.m"
{
#line 508 "query.m"
  {
#line 508 "query.m"
    MR_bool query__succeeded;

#line 508 "query.m"
    return (MR_Integer) 1;
#line 508 "query.m"
  }
#line 355 "query.m"
}

#line 354 "query.m"
MR_Word MR_CALL 
query__default_cost_kind_0_f_0(void)
#line 354 "query.m"
{
#line 507 "query.m"
  {
#line 507 "query.m"
    MR_bool query__succeeded;

#line 507 "query.m"
    return (MR_Integer) 3;
#line 507 "query.m"
  }
#line 354 "query.m"
}

#line 353 "query.m"
MR_Word MR_CALL 
query__default_order_criteria_0_f_0(void)
#line 353 "query.m"
{
#line 506 "query.m"
  {
#line 506 "query.m"
    MR_bool query__succeeded;

#line 506 "query.m"
    return (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 506 "query.m"
  }
#line 353 "query.m"
}

#line 352 "query.m"
MR_Word MR_CALL 
query__default_summarize_ho_call_sites_0_f_0(void)
#line 352 "query.m"
{
#line 505 "query.m"
  {
#line 505 "query.m"
    MR_bool query__succeeded;

#line 505 "query.m"
    return (MR_Integer) 1;
#line 505 "query.m"
  }
#line 352 "query.m"
}

#line 351 "query.m"
MR_Integer MR_CALL 
query__default_proc_statics_per_rec_type_limit_0_f_0(void)
#line 351 "query.m"
{
#line 504 "query.m"
  {
#line 504 "query.m"
    MR_bool query__succeeded;

#line 504 "query.m"
    return (MR_Integer) 20;
#line 504 "query.m"
  }
#line 351 "query.m"
}

#line 350 "query.m"
MR_Word MR_CALL 
query__default_ancestor_limit_0_f_0(void)
#line 350 "query.m"
{
#line 503 "query.m"
  {
#line 503 "query.m"
    MR_bool query__succeeded;

#line 503 "query.m"
    return (MR_Word) MR_mkword(MR_mktag(1), &query_scalar_common_2[7]);
#line 503 "query.m"
  }
#line 350 "query.m"
}

#line 349 "query.m"
MR_Word MR_CALL 
query__default_colour_column_groups_0_f_0(void)
#line 349 "query.m"
{
#line 502 "query.m"
  {
#line 502 "query.m"
    MR_bool query__succeeded;

#line 502 "query.m"
    return (MR_Integer) 0;
#line 502 "query.m"
  }
#line 349 "query.m"
}

#line 348 "query.m"
MR_Word MR_CALL 
query__default_box_tables_0_f_0(void)
#line 348 "query.m"
{
#line 501 "query.m"
  {
#line 501 "query.m"
    MR_bool query__succeeded;

#line 501 "query.m"
    return (MR_Integer) 0;
#line 501 "query.m"
  }
#line 348 "query.m"
}

#line 347 "query.m"
MR_Word MR_CALL 
query__all_fields_0_f_0(void)
#line 347 "query.m"
{
#line 498 "query.m"
  {
#line 498 "query.m"
    MR_bool query__succeeded;

#line 498 "query.m"
    return (MR_Word) &query_scalar_common_1[3];
#line 498 "query.m"
  }
#line 347 "query.m"
}

#line 346 "query.m"
MR_Word MR_CALL 
query__default_fields_1_f_0(
#line 346 "query.m"
  MR_Word query__Deep_3)
#line 346 "query.m"
{
#line 487 "query.m"
  {
#line 487 "query.m"
    MR_bool query__succeeded;
#line 487 "query.m"
    MR_Word query__Fields_4;
#line 487 "query.m"
    MR_Word query__Time_6;
#line 452 "query.m"
    MR_Integer query__V_13_13;
#line 452 "query.m"
    MR_Word query__V_15_15 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 0)));
#line 452 "query.m"
    MR_String query__V_16_16 = ((MR_String) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 1)));
#line 452 "query.m"
    MR_String query__V_17_17 = ((MR_String) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 2)));
#line 452 "query.m"
    MR_String query__V_18_18 = ((MR_String) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 3)));
#line 452 "query.m"
    MR_Word query__V_19_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 4)));
#line 452 "query.m"
    MR_ArrayPtr query__V_20_20 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 5)));
#line 452 "query.m"
    MR_ArrayPtr query__V_21_21 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 6)));
#line 452 "query.m"
    MR_ArrayPtr query__V_22_22 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 7)));
#line 452 "query.m"
    MR_ArrayPtr query__V_23_23 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 8)));
#line 452 "query.m"
    MR_ArrayPtr query__V_24_24 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 9)));
#line 452 "query.m"
    MR_ArrayPtr query__V_25_25 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 10)));
#line 452 "query.m"
    MR_ArrayPtr query__V_26_26 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 11)));
#line 452 "query.m"
    MR_ArrayPtr query__V_27_27 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 12)));
#line 452 "query.m"
    MR_ArrayPtr query__V_28_28 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 13)));
#line 452 "query.m"
    MR_ArrayPtr query__V_29_29 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 14)));
#line 452 "query.m"
    MR_ArrayPtr query__V_30_30 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 15)));
#line 452 "query.m"
    MR_ArrayPtr query__V_31_31 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 16)));
#line 452 "query.m"
    MR_ArrayPtr query__V_32_32 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 17)));
#line 452 "query.m"
    MR_ArrayPtr query__V_33_33 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 18)));
#line 452 "query.m"
    MR_ArrayPtr query__V_34_34 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 19)));
#line 452 "query.m"
    MR_ArrayPtr query__V_35_35 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 20)));
#line 452 "query.m"
    MR_ArrayPtr query__V_36_36 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 21)));
#line 452 "query.m"
    MR_ArrayPtr query__V_37_37 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 22)));
#line 452 "query.m"
    MR_ArrayPtr query__V_38_38 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 23)));
#line 452 "query.m"
    MR_ArrayPtr query__V_39_39 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 24)));
#line 452 "query.m"
    MR_Word query__V_40_40 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 25)));
#line 452 "query.m"
    MR_Word query__V_41_41 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 26)));
#line 452 "query.m"
    MR_Word query__V_42_42 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 27)));
#line 452 "query.m"
    MR_Word query__V_43_43 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 28)));
#line 452 "query.m"
    MR_String query__V_44_44 = ((MR_String) (MR_hl_field(MR_mktag(0), query__V_15_15, (MR_Integer) 0)));
#line 452 "query.m"
    MR_Integer query__V_45_45 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__V_15_15, (MR_Integer) 1)));
#line 452 "query.m"
    MR_Integer query__V_46_46 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__V_15_15, (MR_Integer) 2)));
#line 452 "query.m"
    MR_Integer query__V_47_47 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__V_15_15, (MR_Integer) 3)));
#line 452 "query.m"
    MR_Integer query__V_48_48 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__V_15_15, (MR_Integer) 4)));
#line 452 "query.m"
    MR_Integer query__V_49_49 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__V_15_15, (MR_Integer) 5)));
#line 452 "query.m"
    MR_Integer query__V_50_50 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__V_15_15, (MR_Integer) 6)));
#line 452 "query.m"
    MR_Integer query__V_51_51;
#line 452 "query.m"
    MR_Word query__V_52_52;

#line 452 "query.m"
    query__V_13_13 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__V_15_15, (MR_Integer) 7)));
#line 452 "query.m"
    query__V_51_51 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__V_15_15, (MR_Integer) 8)));
#line 452 "query.m"
    query__V_52_52 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__V_15_15, (MR_Integer) 9)));
#line 452 "query.m"
    query__succeeded = (query__V_13_13 > (MR_Integer) 10);
#line 15491 "query.c"
    if (query__succeeded)
#line 491 "query.m"
      query__Time_6 = (MR_Integer) 1;
#line 15495 "query.c"
    else
#line 494 "query.m"
      query__Time_6 = (MR_Integer) 0;
#line 496 "query.m"
    {
#line 496 "query.m"
      query__Fields_4 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 496 "query.m"
      MR_hl_field(MR_mktag(0), query__Fields_4, 0) = ((MR_Box) (((MR_Integer) 1 | ((((query__Time_6 << (MR_Integer) 1)) | (((((MR_Integer) 1 << (MR_Integer) 4)) | (((MR_Integer) 0 << (MR_Integer) 6)))))))));
#line 496 "query.m"
      MR_hl_field(MR_mktag(0), query__Fields_4, 1) = ((MR_Box) (MR_mkword(MR_mktag(1), &query_scalar_common_2[0])));
#line 496 "query.m"
    }
#line 487 "query.m"
    return query__Fields_4;
#line 487 "query.m"
  }
#line 346 "query.m"
}

#line 344 "query.m"
MR_Word MR_CALL 
query__default_preferences_1_f_0(
#line 344 "query.m"
  MR_Word query__Deep_3)
#line 344 "query.m"
{
#line 471 "query.m"
  {
#line 471 "query.m"
    MR_bool query__succeeded;
#line 471 "query.m"
    MR_Word query__HeadVar__2_2;
#line 471 "query.m"
    MR_Word query__V_4_4;

#line 472 "query.m"
    {
#line 472 "query.m"
      query__V_4_4 = query__default_fields_1_f_0(query__Deep_3);
    }
#line 471 "query.m"
    {
#line 471 "query.m"
      query__HeadVar__2_2 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 9 * sizeof(MR_Word)), NULL, NULL);
#line 471 "query.m"
      MR_hl_field(MR_mktag(0), query__HeadVar__2_2, 0) = ((MR_Box) (query__V_4_4));
#line 471 "query.m"
      MR_hl_field(MR_mktag(0), query__HeadVar__2_2, 1) = ((MR_Box) (((MR_Integer) 0 | (((MR_Integer) 0 << (MR_Integer) 1)))));
#line 471 "query.m"
      MR_hl_field(MR_mktag(0), query__HeadVar__2_2, 2) = ((MR_Box) (MR_mkword(MR_mktag(1), &query_scalar_common_2[7])));
#line 471 "query.m"
      MR_hl_field(MR_mktag(0), query__HeadVar__2_2, 3) = ((MR_Box) ((MR_Integer) 20));
#line 471 "query.m"
      MR_hl_field(MR_mktag(0), query__HeadVar__2_2, 4) = ((MR_Box) ((MR_Integer) 1));
#line 471 "query.m"
      MR_hl_field(MR_mktag(0), query__HeadVar__2_2, 5) = ((MR_Box) (MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 471 "query.m"
      MR_hl_field(MR_mktag(0), query__HeadVar__2_2, 6) = ((MR_Box) (((MR_Integer) 1 | (((((MR_Integer) 2 << (MR_Integer) 1)) | (((MR_Integer) 1 << (MR_Integer) 3)))))));
#line 471 "query.m"
      MR_hl_field(MR_mktag(0), query__HeadVar__2_2, 7) = ((MR_Box) (&query_scalar_common_2[8]));
#line 471 "query.m"
      MR_hl_field(MR_mktag(0), query__HeadVar__2_2, 8) = ((MR_Box) ((MR_Integer) 1));
#line 471 "query.m"
    }
#line 471 "query.m"
    return query__HeadVar__2_2;
#line 471 "query.m"
  }
#line 344 "query.m"
}

#line 342 "query.m"
MR_Word MR_CALL 
query__solidify_preference_2_f_0(
#line 342 "query.m"
  MR_Word query__Deep_4,
#line 342 "query.m"
  MR_Word query__PrefInd_5)
#line 342 "query.m"
{
#line 462 "query.m"
  {
#line 462 "query.m"
    MR_bool query__succeeded;
#line 462 "query.m"
    MR_Word query__Pref_6;

#line 462 "query.m"
    if ((query__PrefInd_5 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 1)))))
#line 467 "query.m"
      {
#line 467 "query.m"
        MR_Word query__V_7_7;
#line 468 "query.m"
        MR_Word query__V_10_10;
#line 468 "query.m"
        MR_Word query__V_11_11;
#line 468 "query.m"
        MR_Word query__V_12_12;
#line 468 "query.m"
        MR_Integer query__V_13_13;
#line 468 "query.m"
        MR_Word query__V_14_14;
#line 468 "query.m"
        MR_Word query__V_15_15;
#line 468 "query.m"
        MR_Word query__V_16_16;
#line 468 "query.m"
        MR_Word query__V_17_17;
#line 468 "query.m"
        MR_Word query__V_18_18;
#line 468 "query.m"
        MR_Word query__V_19_19;
#line 468 "query.m"
        MR_Word query__V_20_20;
#line 468 "query.m"
        MR_Word query__V_9_9;

#line 468 "query.m"
        {
#line 468 "query.m"
          query__V_7_7 = query__default_preferences_1_f_0(query__Deep_4);
        }
#line 468 "query.m"
        query__V_9_9 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__V_7_7, (MR_Integer) 0)));
#line 468 "query.m"
        query__V_10_10 = ((((MR_Word) (MR_hl_field(MR_mktag(0), query__V_7_7, (MR_Integer) 1)))) & (MR_Integer) 1);
#line 468 "query.m"
        query__V_11_11 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__V_7_7, (MR_Integer) 1)))) >> (MR_Integer) 1)) & (MR_Integer) 1);
#line 468 "query.m"
        query__V_12_12 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__V_7_7, (MR_Integer) 2)));
#line 468 "query.m"
        query__V_13_13 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__V_7_7, (MR_Integer) 3)));
#line 468 "query.m"
        query__V_14_14 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__V_7_7, (MR_Integer) 4)));
#line 468 "query.m"
        query__V_15_15 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__V_7_7, (MR_Integer) 5)));
#line 468 "query.m"
        query__V_16_16 = ((((MR_Word) (MR_hl_field(MR_mktag(0), query__V_7_7, (MR_Integer) 6)))) & (MR_Integer) 1);
#line 468 "query.m"
        query__V_17_17 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__V_7_7, (MR_Integer) 6)))) >> (MR_Integer) 1)) & (MR_Integer) 3);
#line 468 "query.m"
        query__V_18_18 = ((((((MR_Word) (MR_hl_field(MR_mktag(0), query__V_7_7, (MR_Integer) 6)))) >> (MR_Integer) 3)) & (MR_Integer) 3);
#line 468 "query.m"
        query__V_19_19 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__V_7_7, (MR_Integer) 7)));
#line 468 "query.m"
        query__V_20_20 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__V_7_7, (MR_Integer) 8)));
#line 468 "query.m"
        {
#line 468 "query.m"
          query__Pref_6 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 9 * sizeof(MR_Word)), NULL, NULL);
#line 468 "query.m"
          MR_hl_field(MR_mktag(0), query__Pref_6, 0) = ((MR_Box) (&query_scalar_common_1[3]));
#line 468 "query.m"
          MR_hl_field(MR_mktag(0), query__Pref_6, 1) = ((MR_Box) ((query__V_10_10 | ((query__V_11_11 << (MR_Integer) 1)))));
#line 468 "query.m"
          MR_hl_field(MR_mktag(0), query__Pref_6, 2) = ((MR_Box) (query__V_12_12));
#line 468 "query.m"
          MR_hl_field(MR_mktag(0), query__Pref_6, 3) = ((MR_Box) (query__V_13_13));
#line 468 "query.m"
          MR_hl_field(MR_mktag(0), query__Pref_6, 4) = ((MR_Box) (query__V_14_14));
#line 468 "query.m"
          MR_hl_field(MR_mktag(0), query__Pref_6, 5) = ((MR_Box) (query__V_15_15));
#line 468 "query.m"
          MR_hl_field(MR_mktag(0), query__Pref_6, 6) = ((MR_Box) ((query__V_16_16 | ((((query__V_17_17 << (MR_Integer) 1)) | ((query__V_18_18 << (MR_Integer) 3)))))));
#line 468 "query.m"
          MR_hl_field(MR_mktag(0), query__Pref_6, 7) = ((MR_Box) (query__V_19_19));
#line 468 "query.m"
          MR_hl_field(MR_mktag(0), query__Pref_6, 8) = ((MR_Box) (query__V_20_20));
#line 468 "query.m"
        }
#line 467 "query.m"
      }
#line 462 "query.m"
    else
#line 462 "query.m"
      if ((query__PrefInd_5 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 465 "query.m"
        {
#line 465 "query.m"
          return query__Pref_6 = query__default_preferences_1_f_0(query__Deep_4);
        }
#line 462 "query.m"
      else
#line 462 "query.m"
        query__Pref_6 = (MR_Word) MR_body(((MR_Word) query__PrefInd_5), (MR_Integer) 1);
#line 462 "query.m"
    return query__Pref_6;
#line 462 "query.m"
  }
#line 342 "query.m"
}

#line 340 "query.m"
MR_Word MR_CALL 
query__default_command_0_f_0(void)
#line 340 "query.m"
{
#line 458 "query.m"
  {
#line 458 "query.m"
    MR_bool query__succeeded;

#line 458 "query.m"
    return (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 2));
#line 458 "query.m"
  }
#line 340 "query.m"
}

#line 338 "query.m"
MR_Word MR_CALL 
query__should_display_times_1_f_0(
#line 338 "query.m"
  MR_Word query__Deep_3)
#line 338 "query.m"
{
#line 451 "query.m"
  {
#line 451 "query.m"
    MR_bool query__succeeded;
#line 451 "query.m"
    MR_Word query__HeadVar__2_2;
#line 452 "query.m"
    MR_Integer query__V_4_4;
#line 452 "query.m"
    MR_Word query__V_6_6 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 0)));
#line 452 "query.m"
    MR_String query__V_7_7 = ((MR_String) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 1)));
#line 452 "query.m"
    MR_String query__V_8_8 = ((MR_String) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 2)));
#line 452 "query.m"
    MR_String query__V_9_9 = ((MR_String) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 3)));
#line 452 "query.m"
    MR_Word query__V_10_10 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 4)));
#line 452 "query.m"
    MR_ArrayPtr query__V_11_11 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 5)));
#line 452 "query.m"
    MR_ArrayPtr query__V_12_12 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 6)));
#line 452 "query.m"
    MR_ArrayPtr query__V_13_13 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 7)));
#line 452 "query.m"
    MR_ArrayPtr query__V_14_14 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 8)));
#line 452 "query.m"
    MR_ArrayPtr query__V_15_15 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 9)));
#line 452 "query.m"
    MR_ArrayPtr query__V_16_16 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 10)));
#line 452 "query.m"
    MR_ArrayPtr query__V_17_17 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 11)));
#line 452 "query.m"
    MR_ArrayPtr query__V_18_18 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 12)));
#line 452 "query.m"
    MR_ArrayPtr query__V_19_19 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 13)));
#line 452 "query.m"
    MR_ArrayPtr query__V_20_20 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 14)));
#line 452 "query.m"
    MR_ArrayPtr query__V_21_21 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 15)));
#line 452 "query.m"
    MR_ArrayPtr query__V_22_22 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 16)));
#line 452 "query.m"
    MR_ArrayPtr query__V_23_23 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 17)));
#line 452 "query.m"
    MR_ArrayPtr query__V_24_24 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 18)));
#line 452 "query.m"
    MR_ArrayPtr query__V_25_25 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 19)));
#line 452 "query.m"
    MR_ArrayPtr query__V_26_26 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 20)));
#line 452 "query.m"
    MR_ArrayPtr query__V_27_27 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 21)));
#line 452 "query.m"
    MR_ArrayPtr query__V_28_28 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 22)));
#line 452 "query.m"
    MR_ArrayPtr query__V_29_29 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 23)));
#line 452 "query.m"
    MR_ArrayPtr query__V_30_30 = ((MR_ArrayPtr) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 24)));
#line 452 "query.m"
    MR_Word query__V_31_31 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 25)));
#line 452 "query.m"
    MR_Word query__V_32_32 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 26)));
#line 452 "query.m"
    MR_Word query__V_33_33 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 27)));
#line 452 "query.m"
    MR_Word query__V_34_34 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__Deep_3, (MR_Integer) 28)));
#line 452 "query.m"
    MR_String query__V_35_35 = ((MR_String) (MR_hl_field(MR_mktag(0), query__V_6_6, (MR_Integer) 0)));
#line 452 "query.m"
    MR_Integer query__V_36_36 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__V_6_6, (MR_Integer) 1)));
#line 452 "query.m"
    MR_Integer query__V_37_37 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__V_6_6, (MR_Integer) 2)));
#line 452 "query.m"
    MR_Integer query__V_38_38 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__V_6_6, (MR_Integer) 3)));
#line 452 "query.m"
    MR_Integer query__V_39_39 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__V_6_6, (MR_Integer) 4)));
#line 452 "query.m"
    MR_Integer query__V_40_40 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__V_6_6, (MR_Integer) 5)));
#line 452 "query.m"
    MR_Integer query__V_41_41 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__V_6_6, (MR_Integer) 6)));
#line 452 "query.m"
    MR_Integer query__V_42_42;
#line 452 "query.m"
    MR_Word query__V_43_43;

#line 452 "query.m"
    query__V_4_4 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__V_6_6, (MR_Integer) 7)));
#line 452 "query.m"
    query__V_42_42 = ((MR_Integer) (MR_hl_field(MR_mktag(0), query__V_6_6, (MR_Integer) 8)));
#line 452 "query.m"
    query__V_43_43 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__V_6_6, (MR_Integer) 9)));
#line 452 "query.m"
    query__succeeded = (query__V_4_4 > (MR_Integer) 10);
#line 451 "query.m"
    if (query__succeeded)
#line 451 "query.m"
      query__HeadVar__2_2 = (MR_Integer) 1;
#line 451 "query.m"
    else
#line 451 "query.m"
      query__HeadVar__2_2 = (MR_Integer) 0;
#line 451 "query.m"
    return query__HeadVar__2_2;
#line 451 "query.m"
  }
#line 338 "query.m"
}

#line 68 "query.m"
MR_Word MR_CALL 
query__string_to_maybe_pref_1_f_0(
#line 68 "query.m"
  MR_String query__QueryString_3)
#line 68 "query.m"
{
#line 868 "query.m"
  {
#line 868 "query.m"
    MR_bool query__succeeded;
#line 868 "query.m"
    MR_Word query__MaybePreferences_4;
#line 868 "query.m"
    MR_Word query__Pieces_5;
#line 899 "query.m"
    MR_Word query__Fields_18;
#line 899 "query.m"
    MR_Word query__Box_19;
#line 899 "query.m"
    MR_Word query__Colour_20;
#line 899 "query.m"
    MR_Word query__MaybeAncestorLimit_22;
#line 899 "query.m"
    MR_Integer query__ProcStaticsPerRecTypeLimit_23;
#line 899 "query.m"
    MR_Word query__SummarizeHoCallSites_24;
#line 899 "query.m"
    MR_Word query__Order_25;
#line 899 "query.m"
    MR_Word query__Contour_26;
#line 899 "query.m"
    MR_Word query__Time_27;
#line 899 "query.m"
    MR_Word query__ModuleQual_28;
#line 899 "query.m"
    MR_Word query__InactiveItems_29;
#line 899 "query.m"
    MR_Word query__DeveloperMode_30;
#line 874 "query.m"
    MR_String query__FieldsStr_6;
#line 874 "query.m"
    MR_String query__BoxStr_7;
#line 874 "query.m"
    MR_String query__ColourStr_8;
#line 874 "query.m"
    MR_String query__MaybeAncestorLimitStr_9;
#line 874 "query.m"
    MR_String query__ProcStaticsPerRecTypeLimitStr_10;
#line 874 "query.m"
    MR_String query__SummarizeHoCallSitesStr_11;
#line 874 "query.m"
    MR_String query__OrderStr_12;
#line 874 "query.m"
    MR_String query__ContourStr_13;
#line 874 "query.m"
    MR_String query__TimeStr_14;
#line 874 "query.m"
    MR_String query__ModuleQualStr_15;
#line 874 "query.m"
    MR_String query__InactiveItemsStr_16;
#line 874 "query.m"
    MR_String query__DeveloperModeStr_17;
#line 874 "query.m"
    MR_Word query__V_33_33;
#line 874 "query.m"
    MR_Word query__V_34_34;
#line 874 "query.m"
    MR_Word query__V_35_35;
#line 874 "query.m"
    MR_Word query__V_36_36;
#line 874 "query.m"
    MR_Word query__V_37_37;
#line 874 "query.m"
    MR_Word query__V_38_38;
#line 874 "query.m"
    MR_Word query__V_39_39;
#line 874 "query.m"
    MR_Word query__V_40_40;
#line 874 "query.m"
    MR_Word query__V_41_41;
#line 874 "query.m"
    MR_Word query__V_42_42;
#line 874 "query.m"
    MR_Word query__V_43_43;
#line 874 "query.m"
    MR_Word query__V_44_44;
#line 874 "query.m"
    MR_Word query__Pieces_47;
#line 874 "query.m"
    MR_String query__PortStr_48;
#line 874 "query.m"
    MR_String query__TimeStr_49;
#line 874 "query.m"
    MR_String query__CallSeqsStr_50;
#line 874 "query.m"
    MR_String query__AllocStr_51;
#line 874 "query.m"
    MR_String query__MemoryStr_52;
#line 874 "query.m"
    MR_Word query__Port_53;
#line 874 "query.m"
    MR_Word query__Time_54;
#line 874 "query.m"
    MR_Word query__CallSeqs_55;
#line 874 "query.m"
    MR_Word query__Alloc_56;
#line 874 "query.m"
    MR_Word query__Memory_57;
#line 874 "query.m"
    MR_Char query__V_58_58;
#line 874 "query.m"
    MR_Word query__V_59_59;
#line 874 "query.m"
    MR_Word query__V_60_60;
#line 874 "query.m"
    MR_Word query__V_61_61;
#line 874 "query.m"
    MR_Word query__V_62_62;
#line 874 "query.m"
    MR_Word query__V_63_63;
#line 880 "query.m"
    MR_Integer query__AncestorLimit_21;

#line 869 "query.m"
    {
#line 869 "query.m"
      util__split_3_p_0(query__QueryString_3, (MR_Char) 47, &query__Pieces_5);
    }
#line 871 "query.m"
    query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 871 "query.m"
    if (query__succeeded)
#line 871 "query.m"
      {
#line 871 "query.m"
        query__FieldsStr_6 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 871 "query.m"
        query__V_33_33 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 871 "query.m"
        query__succeeded = ((MR_tag((MR_Word) query__V_33_33)) == (MR_mktag((MR_Integer) 1)));
#line 871 "query.m"
        if (query__succeeded)
#line 871 "query.m"
          {
#line 871 "query.m"
            query__BoxStr_7 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_33_33, (MR_Integer) 0)));
#line 871 "query.m"
            query__V_34_34 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_33_33, (MR_Integer) 1)));
#line 871 "query.m"
            query__succeeded = ((MR_tag((MR_Word) query__V_34_34)) == (MR_mktag((MR_Integer) 1)));
#line 871 "query.m"
            if (query__succeeded)
#line 871 "query.m"
              {
#line 871 "query.m"
                query__ColourStr_8 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_34_34, (MR_Integer) 0)));
#line 871 "query.m"
                query__V_35_35 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_34_34, (MR_Integer) 1)));
#line 871 "query.m"
                query__succeeded = ((MR_tag((MR_Word) query__V_35_35)) == (MR_mktag((MR_Integer) 1)));
#line 871 "query.m"
                if (query__succeeded)
#line 871 "query.m"
                  {
#line 871 "query.m"
                    query__MaybeAncestorLimitStr_9 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_35_35, (MR_Integer) 0)));
#line 871 "query.m"
                    query__V_36_36 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_35_35, (MR_Integer) 1)));
#line 872 "query.m"
                    query__succeeded = ((MR_tag((MR_Word) query__V_36_36)) == (MR_mktag((MR_Integer) 1)));
#line 872 "query.m"
                    if (query__succeeded)
#line 872 "query.m"
                      {
#line 872 "query.m"
                        query__ProcStaticsPerRecTypeLimitStr_10 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_36_36, (MR_Integer) 0)));
#line 872 "query.m"
                        query__V_37_37 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_36_36, (MR_Integer) 1)));
#line 872 "query.m"
                        query__succeeded = ((MR_tag((MR_Word) query__V_37_37)) == (MR_mktag((MR_Integer) 1)));
#line 872 "query.m"
                        if (query__succeeded)
#line 872 "query.m"
                          {
#line 872 "query.m"
                            query__SummarizeHoCallSitesStr_11 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_37_37, (MR_Integer) 0)));
#line 872 "query.m"
                            query__V_38_38 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_37_37, (MR_Integer) 1)));
#line 873 "query.m"
                            query__succeeded = ((MR_tag((MR_Word) query__V_38_38)) == (MR_mktag((MR_Integer) 1)));
#line 873 "query.m"
                            if (query__succeeded)
#line 873 "query.m"
                              {
#line 873 "query.m"
                                query__OrderStr_12 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_38_38, (MR_Integer) 0)));
#line 873 "query.m"
                                query__V_39_39 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_38_38, (MR_Integer) 1)));
#line 873 "query.m"
                                query__succeeded = ((MR_tag((MR_Word) query__V_39_39)) == (MR_mktag((MR_Integer) 1)));
#line 873 "query.m"
                                if (query__succeeded)
#line 873 "query.m"
                                  {
#line 873 "query.m"
                                    query__ContourStr_13 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_39_39, (MR_Integer) 0)));
#line 873 "query.m"
                                    query__V_40_40 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_39_39, (MR_Integer) 1)));
#line 873 "query.m"
                                    query__succeeded = ((MR_tag((MR_Word) query__V_40_40)) == (MR_mktag((MR_Integer) 1)));
#line 873 "query.m"
                                    if (query__succeeded)
#line 873 "query.m"
                                      {
#line 873 "query.m"
                                        query__TimeStr_14 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_40_40, (MR_Integer) 0)));
#line 873 "query.m"
                                        query__V_41_41 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_40_40, (MR_Integer) 1)));
#line 873 "query.m"
                                        query__succeeded = ((MR_tag((MR_Word) query__V_41_41)) == (MR_mktag((MR_Integer) 1)));
#line 873 "query.m"
                                        if (query__succeeded)
#line 873 "query.m"
                                          {
#line 873 "query.m"
                                            query__ModuleQualStr_15 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_41_41, (MR_Integer) 0)));
#line 873 "query.m"
                                            query__V_42_42 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_41_41, (MR_Integer) 1)));
#line 874 "query.m"
                                            query__succeeded = ((MR_tag((MR_Word) query__V_42_42)) == (MR_mktag((MR_Integer) 1)));
#line 874 "query.m"
                                            if (query__succeeded)
#line 874 "query.m"
                                              {
#line 874 "query.m"
                                                query__InactiveItemsStr_16 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_42_42, (MR_Integer) 0)));
#line 874 "query.m"
                                                query__V_43_43 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_42_42, (MR_Integer) 1)));
#line 874 "query.m"
                                                query__succeeded = ((MR_tag((MR_Word) query__V_43_43)) == (MR_mktag((MR_Integer) 1)));
#line 874 "query.m"
                                                if (query__succeeded)
#line 874 "query.m"
                                                  {
#line 874 "query.m"
                                                    query__DeveloperModeStr_17 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_43_43, (MR_Integer) 0)));
#line 874 "query.m"
                                                    query__V_44_44 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_43_43, (MR_Integer) 1)));
#line 874 "query.m"
                                                    query__succeeded = (query__V_44_44 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 874 "query.m"
                                                    if (query__succeeded)
#line 874 "query.m"
                                                      {
#line 530 "query.m"
                                                        query__V_58_58 = (MR_Char) 45;
#line 1050 "query.m"
                                                        {
#line 1050 "query.m"
                                                          util__split_3_p_0(query__FieldsStr_6, query__V_58_58, &query__Pieces_47);
                                                        }
#line 1051 "query.m"
                                                        query__succeeded = ((MR_tag((MR_Word) query__Pieces_47)) == (MR_mktag((MR_Integer) 1)));
#line 1051 "query.m"
                                                        if (query__succeeded)
#line 1051 "query.m"
                                                          {
#line 1051 "query.m"
                                                            query__PortStr_48 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_47, (MR_Integer) 0)));
#line 1051 "query.m"
                                                            query__V_59_59 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_47, (MR_Integer) 1)));
#line 1051 "query.m"
                                                            query__succeeded = ((MR_tag((MR_Word) query__V_59_59)) == (MR_mktag((MR_Integer) 1)));
#line 1051 "query.m"
                                                            if (query__succeeded)
#line 1051 "query.m"
                                                              {
#line 1051 "query.m"
                                                                query__TimeStr_49 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_59_59, (MR_Integer) 0)));
#line 1051 "query.m"
                                                                query__V_60_60 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_59_59, (MR_Integer) 1)));
#line 1051 "query.m"
                                                                query__succeeded = ((MR_tag((MR_Word) query__V_60_60)) == (MR_mktag((MR_Integer) 1)));
#line 1051 "query.m"
                                                                if (query__succeeded)
#line 1051 "query.m"
                                                                  {
#line 1051 "query.m"
                                                                    query__CallSeqsStr_50 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_60_60, (MR_Integer) 0)));
#line 1051 "query.m"
                                                                    query__V_61_61 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_60_60, (MR_Integer) 1)));
#line 1051 "query.m"
                                                                    query__succeeded = ((MR_tag((MR_Word) query__V_61_61)) == (MR_mktag((MR_Integer) 1)));
#line 1051 "query.m"
                                                                    if (query__succeeded)
#line 1051 "query.m"
                                                                      {
#line 1051 "query.m"
                                                                        query__AllocStr_51 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_61_61, (MR_Integer) 0)));
#line 1051 "query.m"
                                                                        query__V_62_62 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_61_61, (MR_Integer) 1)));
#line 1051 "query.m"
                                                                        query__succeeded = ((MR_tag((MR_Word) query__V_62_62)) == (MR_mktag((MR_Integer) 1)));
#line 1051 "query.m"
                                                                        if (query__succeeded)
#line 1051 "query.m"
                                                                          {
#line 1051 "query.m"
                                                                            query__MemoryStr_52 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_62_62, (MR_Integer) 0)));
#line 1051 "query.m"
                                                                            query__V_63_63 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_62_62, (MR_Integer) 1)));
#line 1051 "query.m"
                                                                            query__succeeded = (query__V_63_63 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 874 "query.m"
                                                                            if (query__succeeded)
#line 874 "query.m"
                                                                              {
#line 973 "query.m"
                                                                                if ((strcmp(query__PortStr_48, (MR_String) "_") == 0))
#line 973 "query.m"
                                                                                  {
#line 973 "query.m"
                                                                                    query__Port_53 = (MR_Integer) 0;
#line 973 "query.m"
                                                                                    query__succeeded = MR_TRUE;
#line 973 "query.m"
                                                                                  }
#line 973 "query.m"
                                                                                else
#line 973 "query.m"
                                                                                  if ((strcmp(query__PortStr_48, (MR_String) "p") == 0))
#line 974 "query.m"
                                                                                    {
#line 974 "query.m"
                                                                                      query__Port_53 = (MR_Integer) 1;
#line 974 "query.m"
                                                                                      query__succeeded = MR_TRUE;
#line 974 "query.m"
                                                                                    }
#line 973 "query.m"
                                                                                  else
#line 973 "query.m"
                                                                                    query__succeeded = MR_FALSE;
#line 874 "query.m"
                                                                                if (query__succeeded)
#line 874 "query.m"
                                                                                  {
#line 985 "query.m"
                                                                                    if ((strcmp(query__TimeStr_49, (MR_String) "_") == 0))
#line 985 "query.m"
                                                                                      {
#line 985 "query.m"
                                                                                        query__Time_54 = (MR_Integer) 0;
#line 985 "query.m"
                                                                                        query__succeeded = MR_TRUE;
#line 985 "query.m"
                                                                                      }
#line 985 "query.m"
                                                                                    else
#line 985 "query.m"
                                                                                      if ((strcmp(query__TimeStr_49, (MR_String) "q") == 0))
#line 986 "query.m"
                                                                                        {
#line 986 "query.m"
                                                                                          query__Time_54 = (MR_Integer) 1;
#line 986 "query.m"
                                                                                          query__succeeded = MR_TRUE;
#line 986 "query.m"
                                                                                        }
#line 985 "query.m"
                                                                                      else
#line 985 "query.m"
                                                                                        if ((strcmp(query__TimeStr_49, (MR_String) "t") == 0))
#line 987 "query.m"
                                                                                          {
#line 987 "query.m"
                                                                                            query__Time_54 = (MR_Integer) 2;
#line 987 "query.m"
                                                                                            query__succeeded = MR_TRUE;
#line 987 "query.m"
                                                                                          }
#line 985 "query.m"
                                                                                        else
#line 985 "query.m"
                                                                                          if ((strcmp(query__TimeStr_49, (MR_String) "qt") == 0))
#line 988 "query.m"
                                                                                            {
#line 988 "query.m"
                                                                                              query__Time_54 = (MR_Integer) 3;
#line 988 "query.m"
                                                                                              query__succeeded = MR_TRUE;
#line 988 "query.m"
                                                                                            }
#line 985 "query.m"
                                                                                          else
#line 985 "query.m"
                                                                                            if ((strcmp(query__TimeStr_49, (MR_String) "tp") == 0))
#line 989 "query.m"
                                                                                              {
#line 989 "query.m"
                                                                                                query__Time_54 = (MR_Integer) 4;
#line 989 "query.m"
                                                                                                query__succeeded = MR_TRUE;
#line 989 "query.m"
                                                                                              }
#line 985 "query.m"
                                                                                            else
#line 985 "query.m"
                                                                                              if ((strcmp(query__TimeStr_49, (MR_String) "qtp") == 0))
#line 990 "query.m"
                                                                                                {
#line 990 "query.m"
                                                                                                  query__Time_54 = (MR_Integer) 5;
#line 990 "query.m"
                                                                                                  query__succeeded = MR_TRUE;
#line 990 "query.m"
                                                                                                }
#line 985 "query.m"
                                                                                              else
#line 985 "query.m"
                                                                                                query__succeeded = MR_FALSE;
#line 874 "query.m"
                                                                                    if (query__succeeded)
#line 874 "query.m"
                                                                                      {
#line 1001 "query.m"
                                                                                        if ((strcmp(query__CallSeqsStr_50, (MR_String) "S") == 0))
#line 1003 "query.m"
                                                                                          {
#line 1003 "query.m"
                                                                                            query__CallSeqs_55 = (MR_Integer) 2;
#line 1003 "query.m"
                                                                                            query__succeeded = MR_TRUE;
#line 1003 "query.m"
                                                                                          }
#line 1001 "query.m"
                                                                                        else
#line 1001 "query.m"
                                                                                          if ((strcmp(query__CallSeqsStr_50, (MR_String) "_") == 0))
#line 1001 "query.m"
                                                                                            {
#line 1001 "query.m"
                                                                                              query__CallSeqs_55 = (MR_Integer) 0;
#line 1001 "query.m"
                                                                                              query__succeeded = MR_TRUE;
#line 1001 "query.m"
                                                                                            }
#line 1001 "query.m"
                                                                                          else
#line 1001 "query.m"
                                                                                            if ((strcmp(query__CallSeqsStr_50, (MR_String) "s") == 0))
#line 1002 "query.m"
                                                                                              {
#line 1002 "query.m"
                                                                                                query__CallSeqs_55 = (MR_Integer) 1;
#line 1002 "query.m"
                                                                                                query__succeeded = MR_TRUE;
#line 1002 "query.m"
                                                                                              }
#line 1001 "query.m"
                                                                                            else
#line 1001 "query.m"
                                                                                              query__succeeded = MR_FALSE;
#line 874 "query.m"
                                                                                        if (query__succeeded)
#line 874 "query.m"
                                                                                          {
#line 1014 "query.m"
                                                                                            if ((strcmp(query__AllocStr_51, (MR_String) "A") == 0))
#line 1016 "query.m"
                                                                                              {
#line 1016 "query.m"
                                                                                                query__Alloc_56 = (MR_Integer) 2;
#line 1016 "query.m"
                                                                                                query__succeeded = MR_TRUE;
#line 1016 "query.m"
                                                                                              }
#line 1014 "query.m"
                                                                                            else
#line 1014 "query.m"
                                                                                              if ((strcmp(query__AllocStr_51, (MR_String) "_") == 0))
#line 1014 "query.m"
                                                                                                {
#line 1014 "query.m"
                                                                                                  query__Alloc_56 = (MR_Integer) 0;
#line 1014 "query.m"
                                                                                                  query__succeeded = MR_TRUE;
#line 1014 "query.m"
                                                                                                }
#line 1014 "query.m"
                                                                                              else
#line 1014 "query.m"
                                                                                                if ((strcmp(query__AllocStr_51, (MR_String) "a") == 0))
#line 1015 "query.m"
                                                                                                  {
#line 1015 "query.m"
                                                                                                    query__Alloc_56 = (MR_Integer) 1;
#line 1015 "query.m"
                                                                                                    query__succeeded = MR_TRUE;
#line 1015 "query.m"
                                                                                                  }
#line 1014 "query.m"
                                                                                                else
#line 1014 "query.m"
                                                                                                  query__succeeded = MR_FALSE;
#line 874 "query.m"
                                                                                            if (query__succeeded)
#line 874 "query.m"
                                                                                              {
#line 1027 "query.m"
                                                                                                if ((strcmp(query__MemoryStr_52, (MR_String) "B") == 0))
#line 1030 "query.m"
                                                                                                  {
#line 1030 "query.m"
                                                                                                    query__Memory_57 = (MR_Word) MR_mkword(MR_mktag(2), &query_scalar_common_2[6]);
#line 1030 "query.m"
                                                                                                    query__succeeded = MR_TRUE;
#line 1030 "query.m"
                                                                                                  }
#line 1027 "query.m"
                                                                                                else
#line 1027 "query.m"
                                                                                                  if ((strcmp(query__MemoryStr_52, (MR_String) "W") == 0))
#line 1031 "query.m"
                                                                                                    {
#line 1031 "query.m"
                                                                                                      query__Memory_57 = (MR_Word) MR_mkword(MR_mktag(2), &query_scalar_common_2[0]);
#line 1031 "query.m"
                                                                                                      query__succeeded = MR_TRUE;
#line 1031 "query.m"
                                                                                                    }
#line 1027 "query.m"
                                                                                                  else
#line 1027 "query.m"
                                                                                                    if ((strcmp(query__MemoryStr_52, (MR_String) "_") == 0))
#line 1027 "query.m"
                                                                                                      {
#line 1027 "query.m"
                                                                                                        query__Memory_57 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1027 "query.m"
                                                                                                        query__succeeded = MR_TRUE;
#line 1027 "query.m"
                                                                                                      }
#line 1027 "query.m"
                                                                                                    else
#line 1027 "query.m"
                                                                                                      if ((strcmp(query__MemoryStr_52, (MR_String) "b") == 0))
#line 1028 "query.m"
                                                                                                        {
#line 1028 "query.m"
                                                                                                          query__Memory_57 = (MR_Word) MR_mkword(MR_mktag(1), &query_scalar_common_2[6]);
#line 1028 "query.m"
                                                                                                          query__succeeded = MR_TRUE;
#line 1028 "query.m"
                                                                                                        }
#line 1027 "query.m"
                                                                                                      else
#line 1027 "query.m"
                                                                                                        if ((strcmp(query__MemoryStr_52, (MR_String) "w") == 0))
#line 1029 "query.m"
                                                                                                          {
#line 1029 "query.m"
                                                                                                            query__Memory_57 = (MR_Word) MR_mkword(MR_mktag(1), &query_scalar_common_2[0]);
#line 1029 "query.m"
                                                                                                            query__succeeded = MR_TRUE;
#line 1029 "query.m"
                                                                                                          }
#line 1027 "query.m"
                                                                                                        else
#line 1027 "query.m"
                                                                                                          query__succeeded = MR_FALSE;
#line 874 "query.m"
                                                                                                if (query__succeeded)
#line 874 "query.m"
                                                                                                  {
#line 1058 "query.m"
                                                                                                    {
#line 1058 "query.m"
                                                                                                      query__Fields_18 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL);
#line 1058 "query.m"
                                                                                                      MR_hl_field(MR_mktag(0), query__Fields_18, 0) = ((MR_Box) ((query__Port_53 | ((((query__Time_54 << (MR_Integer) 1)) | ((((query__CallSeqs_55 << (MR_Integer) 4)) | ((query__Alloc_56 << (MR_Integer) 6)))))))));
#line 1058 "query.m"
                                                                                                      MR_hl_field(MR_mktag(0), query__Fields_18, 1) = ((MR_Box) (query__Memory_57));
#line 1058 "query.m"
                                                                                                    }
#line 1294 "query.m"
                                                                                                    if ((strcmp(query__BoxStr_7, (MR_String) "box") == 0))
#line 1294 "query.m"
                                                                                                      {
#line 1294 "query.m"
                                                                                                        query__Box_19 = (MR_Integer) 0;
#line 1294 "query.m"
                                                                                                        query__succeeded = MR_TRUE;
#line 1294 "query.m"
                                                                                                      }
#line 1294 "query.m"
                                                                                                    else
#line 1294 "query.m"
                                                                                                      if ((strcmp(query__BoxStr_7, (MR_String) "nobox") == 0))
#line 1295 "query.m"
                                                                                                        {
#line 1295 "query.m"
                                                                                                          query__Box_19 = (MR_Integer) 1;
#line 1295 "query.m"
                                                                                                          query__succeeded = MR_TRUE;
#line 1295 "query.m"
                                                                                                        }
#line 1294 "query.m"
                                                                                                      else
#line 1294 "query.m"
                                                                                                        query__succeeded = MR_FALSE;
#line 874 "query.m"
                                                                                                    if (query__succeeded)
#line 874 "query.m"
                                                                                                      {
#line 1282 "query.m"
                                                                                                        if ((strcmp(query__ColourStr_8, (MR_String) "cols") == 0))
#line 1282 "query.m"
                                                                                                          {
#line 1282 "query.m"
                                                                                                            query__Colour_20 = (MR_Integer) 0;
#line 1282 "query.m"
                                                                                                            query__succeeded = MR_TRUE;
#line 1282 "query.m"
                                                                                                          }
#line 1282 "query.m"
                                                                                                        else
#line 1282 "query.m"
                                                                                                          if ((strcmp(query__ColourStr_8, (MR_String) "none") == 0))
#line 1283 "query.m"
                                                                                                            {
#line 1283 "query.m"
                                                                                                              query__Colour_20 = (MR_Integer) 1;
#line 1283 "query.m"
                                                                                                              query__succeeded = MR_TRUE;
#line 1283 "query.m"
                                                                                                            }
#line 1282 "query.m"
                                                                                                          else
#line 1282 "query.m"
                                                                                                            query__succeeded = MR_FALSE;
#line 874 "query.m"
                                                                                                        if (query__succeeded)
#line 874 "query.m"
                                                                                                          {
#line 878 "query.m"
                                                                                                            {
#line 878 "query.m"
                                                                                                              query__succeeded = mercury__string__to_int_2_p_0(query__MaybeAncestorLimitStr_9, &query__AncestorLimit_21);
                                                                                                            }
#line 880 "query.m"
                                                                                                            if (query__succeeded)
#line 879 "query.m"
                                                                                                              {
#line 879 "query.m"
                                                                                                                {
#line 879 "query.m"
                                                                                                                  query__MaybeAncestorLimit_22 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 879 "query.m"
                                                                                                                  MR_hl_field(MR_mktag(1), query__MaybeAncestorLimit_22, 0) = ((MR_Box) (query__AncestorLimit_21));
#line 879 "query.m"
                                                                                                                }
#line 879 "query.m"
                                                                                                                query__succeeded = MR_TRUE;
#line 879 "query.m"
                                                                                                              }
#line 880 "query.m"
                                                                                                            else
#line 882 "query.m"
                                                                                                              {
#line 880 "query.m"
                                                                                                                query__succeeded = (strcmp(query__MaybeAncestorLimitStr_9, (MR_String) "no") == 0);
#line 882 "query.m"
                                                                                                                if (query__succeeded)
#line 882 "query.m"
                                                                                                                  {
#line 881 "query.m"
                                                                                                                    query__MaybeAncestorLimit_22 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 881 "query.m"
                                                                                                                    query__succeeded = MR_TRUE;
#line 882 "query.m"
                                                                                                                  }
#line 882 "query.m"
                                                                                                              }
#line 874 "query.m"
                                                                                                            if (query__succeeded)
#line 874 "query.m"
                                                                                                              {
#line 885 "query.m"
                                                                                                                {
#line 885 "query.m"
                                                                                                                  query__succeeded = mercury__string__to_int_2_p_0(query__ProcStaticsPerRecTypeLimitStr_10, &query__ProcStaticsPerRecTypeLimit_23);
                                                                                                                }
#line 874 "query.m"
                                                                                                                if (query__succeeded)
#line 874 "query.m"
                                                                                                                  {
#line 1146 "query.m"
                                                                                                                    if ((strcmp(query__SummarizeHoCallSitesStr_11, (MR_String) "sum") == 0))
#line 1146 "query.m"
                                                                                                                      {
#line 1146 "query.m"
                                                                                                                        query__SummarizeHoCallSites_24 = (MR_Integer) 0;
#line 1146 "query.m"
                                                                                                                        query__succeeded = MR_TRUE;
#line 1146 "query.m"
                                                                                                                      }
#line 1146 "query.m"
                                                                                                                    else
#line 1146 "query.m"
                                                                                                                      if ((strcmp(query__SummarizeHoCallSitesStr_11, (MR_String) "nosum") == 0))
#line 1147 "query.m"
                                                                                                                        {
#line 1147 "query.m"
                                                                                                                          query__SummarizeHoCallSites_24 = (MR_Integer) 1;
#line 1147 "query.m"
                                                                                                                          query__succeeded = MR_TRUE;
#line 1147 "query.m"
                                                                                                                        }
#line 1146 "query.m"
                                                                                                                      else
#line 1146 "query.m"
                                                                                                                        query__succeeded = MR_FALSE;
#line 874 "query.m"
                                                                                                                    if (query__succeeded)
#line 874 "query.m"
                                                                                                                      {
#line 1178 "query.m"
                                                                                                                        query__succeeded = (strcmp(query__OrderStr_12, (MR_String) "context") == 0);
#line 1181 "query.m"
                                                                                                                        if (query__succeeded)
#line 1180 "query.m"
                                                                                                                          {
#line 1180 "query.m"
                                                                                                                            query__Order_25 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 1180 "query.m"
                                                                                                                            query__succeeded = MR_TRUE;
#line 1180 "query.m"
                                                                                                                          }
#line 1181 "query.m"
                                                                                                                        else
#line 1185 "query.m"
                                                                                                                          {
#line 1182 "query.m"
                                                                                                                            query__succeeded = (strcmp(query__OrderStr_12, (MR_String) "name") == 0);
#line 1185 "query.m"
                                                                                                                            if (query__succeeded)
#line 1184 "query.m"
                                                                                                                              {
#line 1184 "query.m"
                                                                                                                                query__Order_25 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 1));
#line 1184 "query.m"
                                                                                                                                query__succeeded = MR_TRUE;
#line 1184 "query.m"
                                                                                                                              }
#line 1185 "query.m"
                                                                                                                            else
#line 1193 "query.m"
                                                                                                                              {
#line 1193 "query.m"
                                                                                                                                MR_Word query__Pieces_70;
#line 1193 "query.m"
                                                                                                                                MR_String query__CostKindStr_71;
#line 1193 "query.m"
                                                                                                                                MR_String query__InclDescStr_72;
#line 1193 "query.m"
                                                                                                                                MR_String query__ScopeStr_73;
#line 1193 "query.m"
                                                                                                                                MR_Word query__CostKind_74;
#line 1193 "query.m"
                                                                                                                                MR_Word query__InclDesc_75;
#line 1193 "query.m"
                                                                                                                                MR_Word query__Scope_76;
#line 1193 "query.m"
                                                                                                                                MR_String query__V_78_78;
#line 1193 "query.m"
                                                                                                                                MR_Word query__V_79_79;
#line 1193 "query.m"
                                                                                                                                MR_Word query__V_80_80;
#line 1193 "query.m"
                                                                                                                                MR_Word query__V_81_81;
#line 1193 "query.m"
                                                                                                                                MR_Word query__V_82_82;

#line 1186 "query.m"
                                                                                                                                {
#line 1186 "query.m"
                                                                                                                                  util__split_3_p_0(query__OrderStr_12, (MR_Char) 45, &query__Pieces_70);
                                                                                                                                }
#line 1187 "query.m"
                                                                                                                                query__succeeded = ((MR_tag((MR_Word) query__Pieces_70)) == (MR_mktag((MR_Integer) 1)));
#line 1187 "query.m"
                                                                                                                                if (query__succeeded)
#line 1187 "query.m"
                                                                                                                                  {
#line 1187 "query.m"
                                                                                                                                    query__V_78_78 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_70, (MR_Integer) 0)));
#line 1187 "query.m"
                                                                                                                                    query__V_79_79 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_70, (MR_Integer) 1)));
#line 1187 "query.m"
                                                                                                                                    query__succeeded = (strcmp(query__V_78_78, (MR_String) "cost") == 0);
#line 1193 "query.m"
                                                                                                                                    if (query__succeeded)
#line 1193 "query.m"
                                                                                                                                      {
#line 1187 "query.m"
                                                                                                                                        query__succeeded = ((MR_tag((MR_Word) query__V_79_79)) == (MR_mktag((MR_Integer) 1)));
#line 1187 "query.m"
                                                                                                                                        if (query__succeeded)
#line 1187 "query.m"
                                                                                                                                          {
#line 1187 "query.m"
                                                                                                                                            query__CostKindStr_71 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_79_79, (MR_Integer) 0)));
#line 1187 "query.m"
                                                                                                                                            query__V_80_80 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_79_79, (MR_Integer) 1)));
#line 1187 "query.m"
                                                                                                                                            query__succeeded = ((MR_tag((MR_Word) query__V_80_80)) == (MR_mktag((MR_Integer) 1)));
#line 1187 "query.m"
                                                                                                                                            if (query__succeeded)
#line 1187 "query.m"
                                                                                                                                              {
#line 1187 "query.m"
                                                                                                                                                query__InclDescStr_72 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_80_80, (MR_Integer) 0)));
#line 1187 "query.m"
                                                                                                                                                query__V_81_81 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_80_80, (MR_Integer) 1)));
#line 1187 "query.m"
                                                                                                                                                query__succeeded = ((MR_tag((MR_Word) query__V_81_81)) == (MR_mktag((MR_Integer) 1)));
#line 1187 "query.m"
                                                                                                                                                if (query__succeeded)
#line 1187 "query.m"
                                                                                                                                                  {
#line 1187 "query.m"
                                                                                                                                                    query__ScopeStr_73 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_81_81, (MR_Integer) 0)));
#line 1187 "query.m"
                                                                                                                                                    query__V_82_82 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_81_81, (MR_Integer) 1)));
#line 1187 "query.m"
                                                                                                                                                    query__succeeded = (query__V_82_82 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 1193 "query.m"
                                                                                                                                                    if (query__succeeded)
#line 1193 "query.m"
                                                                                                                                                      {
#line 1086 "query.m"
                                                                                                                                                        if ((strcmp(query__CostKindStr_71, (MR_String) "time") == 0))
#line 1088 "query.m"
                                                                                                                                                          {
#line 1088 "query.m"
                                                                                                                                                            query__CostKind_74 = (MR_Integer) 2;
#line 1088 "query.m"
                                                                                                                                                            query__succeeded = MR_TRUE;
#line 1088 "query.m"
                                                                                                                                                          }
#line 1086 "query.m"
                                                                                                                                                        else
#line 1086 "query.m"
                                                                                                                                                          if ((strcmp(query__CostKindStr_71, (MR_String) "calls") == 0))
#line 1086 "query.m"
                                                                                                                                                            {
#line 1086 "query.m"
                                                                                                                                                              query__CostKind_74 = (MR_Integer) 0;
#line 1086 "query.m"
                                                                                                                                                              query__succeeded = MR_TRUE;
#line 1086 "query.m"
                                                                                                                                                            }
#line 1086 "query.m"
                                                                                                                                                          else
#line 1086 "query.m"
                                                                                                                                                            if ((strcmp(query__CostKindStr_71, (MR_String) "redos") == 0))
#line 1087 "query.m"
                                                                                                                                                              {
#line 1087 "query.m"
                                                                                                                                                                query__CostKind_74 = (MR_Integer) 1;
#line 1087 "query.m"
                                                                                                                                                                query__succeeded = MR_TRUE;
#line 1087 "query.m"
                                                                                                                                                              }
#line 1086 "query.m"
                                                                                                                                                            else
#line 1086 "query.m"
                                                                                                                                                              if ((strcmp(query__CostKindStr_71, (MR_String) "words") == 0))
#line 1091 "query.m"
                                                                                                                                                                {
#line 1091 "query.m"
                                                                                                                                                                  query__CostKind_74 = (MR_Integer) 5;
#line 1091 "query.m"
                                                                                                                                                                  query__succeeded = MR_TRUE;
#line 1091 "query.m"
                                                                                                                                                                }
#line 1086 "query.m"
                                                                                                                                                              else
#line 1086 "query.m"
                                                                                                                                                                if ((strcmp(query__CostKindStr_71, (MR_String) "allocs") == 0))
#line 1090 "query.m"
                                                                                                                                                                  {
#line 1090 "query.m"
                                                                                                                                                                    query__CostKind_74 = (MR_Integer) 4;
#line 1090 "query.m"
                                                                                                                                                                    query__succeeded = MR_TRUE;
#line 1090 "query.m"
                                                                                                                                                                  }
#line 1086 "query.m"
                                                                                                                                                                else
#line 1086 "query.m"
                                                                                                                                                                  if ((strcmp(query__CostKindStr_71, (MR_String) "callseqs") == 0))
#line 1089 "query.m"
                                                                                                                                                                    {
#line 1089 "query.m"
                                                                                                                                                                      query__CostKind_74 = (MR_Integer) 3;
#line 1089 "query.m"
                                                                                                                                                                      query__succeeded = MR_TRUE;
#line 1089 "query.m"
                                                                                                                                                                    }
#line 1086 "query.m"
                                                                                                                                                                  else
#line 1086 "query.m"
                                                                                                                                                                    query__succeeded = MR_FALSE;
#line 1193 "query.m"
                                                                                                                                                        if (query__succeeded)
#line 1193 "query.m"
                                                                                                                                                          {
#line 1102 "query.m"
                                                                                                                                                            if ((strcmp(query__InclDescStr_72, (MR_String) "both") == 0))
#line 1103 "query.m"
                                                                                                                                                              {
#line 1103 "query.m"
                                                                                                                                                                query__InclDesc_75 = (MR_Integer) 1;
#line 1103 "query.m"
                                                                                                                                                                query__succeeded = MR_TRUE;
#line 1103 "query.m"
                                                                                                                                                              }
#line 1102 "query.m"
                                                                                                                                                            else
#line 1102 "query.m"
                                                                                                                                                              if ((strcmp(query__InclDescStr_72, (MR_String) "self") == 0))
#line 1102 "query.m"
                                                                                                                                                                {
#line 1102 "query.m"
                                                                                                                                                                  query__InclDesc_75 = (MR_Integer) 0;
#line 1102 "query.m"
                                                                                                                                                                  query__succeeded = MR_TRUE;
#line 1102 "query.m"
                                                                                                                                                                }
#line 1102 "query.m"
                                                                                                                                                              else
#line 1102 "query.m"
                                                                                                                                                                query__succeeded = MR_FALSE;
#line 1193 "query.m"
                                                                                                                                                            if (query__succeeded)
#line 1193 "query.m"
                                                                                                                                                              {
#line 1206 "query.m"
                                                                                                                                                                if ((strcmp(query__ScopeStr_73, (MR_String) "oa") == 0))
#line 1207 "query.m"
                                                                                                                                                                  {
#line 1207 "query.m"
                                                                                                                                                                    query__Scope_76 = (MR_Integer) 1;
#line 1207 "query.m"
                                                                                                                                                                    query__succeeded = MR_TRUE;
#line 1207 "query.m"
                                                                                                                                                                  }
#line 1206 "query.m"
                                                                                                                                                                else
#line 1206 "query.m"
                                                                                                                                                                  if ((strcmp(query__ScopeStr_73, (MR_String) "pc") == 0))
#line 1206 "query.m"
                                                                                                                                                                    {
#line 1206 "query.m"
                                                                                                                                                                      query__Scope_76 = (MR_Integer) 0;
#line 1206 "query.m"
                                                                                                                                                                      query__succeeded = MR_TRUE;
#line 1206 "query.m"
                                                                                                                                                                    }
#line 1206 "query.m"
                                                                                                                                                                  else
#line 1206 "query.m"
                                                                                                                                                                    query__succeeded = MR_FALSE;
#line 1193 "query.m"
                                                                                                                                                                if (query__succeeded)
#line 1193 "query.m"
                                                                                                                                                                  {
#line 1192 "query.m"
                                                                                                                                                                    {
#line 1192 "query.m"
                                                                                                                                                                      query__Order_25 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 1192 "query.m"
                                                                                                                                                                      MR_hl_field(MR_mktag(1), query__Order_25, 0) = ((MR_Box) ((query__CostKind_74 | ((((query__InclDesc_75 << (MR_Integer) 3)) | ((query__Scope_76 << (MR_Integer) 4)))))));
#line 1192 "query.m"
                                                                                                                                                                    }
#line 1192 "query.m"
                                                                                                                                                                    query__succeeded = MR_TRUE;
#line 1193 "query.m"
                                                                                                                                                                  }
#line 1193 "query.m"
                                                                                                                                                              }
#line 1193 "query.m"
                                                                                                                                                          }
#line 1193 "query.m"
                                                                                                                                                      }
#line 1187 "query.m"
                                                                                                                                                  }
#line 1187 "query.m"
                                                                                                                                              }
#line 1187 "query.m"
                                                                                                                                          }
#line 1193 "query.m"
                                                                                                                                      }
#line 1187 "query.m"
                                                                                                                                  }
#line 1193 "query.m"
                                                                                                                              }
#line 1185 "query.m"
                                                                                                                          }
#line 874 "query.m"
                                                                                                                        if (query__succeeded)
#line 874 "query.m"
                                                                                                                          {
#line 1218 "query.m"
                                                                                                                            if ((strcmp(query__ContourStr_13, (MR_String) "ac") == 0))
#line 1218 "query.m"
                                                                                                                              {
#line 1218 "query.m"
                                                                                                                                query__Contour_26 = (MR_Integer) 0;
#line 1218 "query.m"
                                                                                                                                query__succeeded = MR_TRUE;
#line 1218 "query.m"
                                                                                                                              }
#line 1218 "query.m"
                                                                                                                            else
#line 1218 "query.m"
                                                                                                                              if ((strcmp(query__ContourStr_13, (MR_String) "nc") == 0))
#line 1219 "query.m"
                                                                                                                                {
#line 1219 "query.m"
                                                                                                                                  query__Contour_26 = (MR_Integer) 1;
#line 1219 "query.m"
                                                                                                                                  query__succeeded = MR_TRUE;
#line 1219 "query.m"
                                                                                                                                }
#line 1218 "query.m"
                                                                                                                              else
#line 1218 "query.m"
                                                                                                                                query__succeeded = MR_FALSE;
#line 874 "query.m"
                                                                                                                            if (query__succeeded)
#line 874 "query.m"
                                                                                                                              {
#line 1231 "query.m"
                                                                                                                                if ((strcmp(query__TimeStr_14, (MR_String) "mi") == 0))
#line 1232 "query.m"
                                                                                                                                  {
#line 1232 "query.m"
                                                                                                                                    query__Time_27 = (MR_Integer) 1;
#line 1232 "query.m"
                                                                                                                                    query__succeeded = MR_TRUE;
#line 1232 "query.m"
                                                                                                                                  }
#line 1231 "query.m"
                                                                                                                                else
#line 1231 "query.m"
                                                                                                                                  if ((strcmp(query__TimeStr_14, (MR_String) "no") == 0))
#line 1231 "query.m"
                                                                                                                                    {
#line 1231 "query.m"
                                                                                                                                      query__Time_27 = (MR_Integer) 0;
#line 1231 "query.m"
                                                                                                                                      query__succeeded = MR_TRUE;
#line 1231 "query.m"
                                                                                                                                    }
#line 1231 "query.m"
                                                                                                                                  else
#line 1231 "query.m"
                                                                                                                                    if ((strcmp(query__TimeStr_14, (MR_String) "th") == 0))
#line 1233 "query.m"
                                                                                                                                      {
#line 1233 "query.m"
                                                                                                                                        query__Time_27 = (MR_Integer) 2;
#line 1233 "query.m"
                                                                                                                                        query__succeeded = MR_TRUE;
#line 1233 "query.m"
                                                                                                                                      }
#line 1231 "query.m"
                                                                                                                                    else
#line 1231 "query.m"
                                                                                                                                      query__succeeded = MR_FALSE;
#line 874 "query.m"
                                                                                                                                if (query__succeeded)
#line 874 "query.m"
                                                                                                                                  {
#line 1157 "query.m"
                                                                                                                                    if ((strcmp(query__ModuleQualStr_15, (MR_String) "mqa") == 0))
#line 1157 "query.m"
                                                                                                                                      {
#line 1157 "query.m"
                                                                                                                                        query__ModuleQual_28 = (MR_Integer) 0;
#line 1157 "query.m"
                                                                                                                                        query__succeeded = MR_TRUE;
#line 1157 "query.m"
                                                                                                                                      }
#line 1157 "query.m"
                                                                                                                                    else
#line 1157 "query.m"
                                                                                                                                      if ((strcmp(query__ModuleQualStr_15, (MR_String) "mqn") == 0))
#line 1159 "query.m"
                                                                                                                                        {
#line 1159 "query.m"
                                                                                                                                          query__ModuleQual_28 = (MR_Integer) 2;
#line 1159 "query.m"
                                                                                                                                          query__succeeded = MR_TRUE;
#line 1159 "query.m"
                                                                                                                                        }
#line 1157 "query.m"
                                                                                                                                      else
#line 1157 "query.m"
                                                                                                                                        if ((strcmp(query__ModuleQualStr_15, (MR_String) "mqwd") == 0))
#line 1158 "query.m"
                                                                                                                                          {
#line 1158 "query.m"
                                                                                                                                            query__ModuleQual_28 = (MR_Integer) 1;
#line 1158 "query.m"
                                                                                                                                            query__succeeded = MR_TRUE;
#line 1158 "query.m"
                                                                                                                                          }
#line 1157 "query.m"
                                                                                                                                        else
#line 1157 "query.m"
                                                                                                                                          query__succeeded = MR_FALSE;
#line 874 "query.m"
                                                                                                                                    if (query__succeeded)
#line 874 "query.m"
                                                                                                                                      {
#line 892 "query.m"
                                                                                                                                        {
#line 892 "query.m"
                                                                                                                                          query__succeeded = query__string_to_inactive_items_2_p_0(query__InactiveItemsStr_16, &query__InactiveItems_29);
                                                                                                                                        }
#line 874 "query.m"
                                                                                                                                        if (query__succeeded)
#line 1270 "query.m"
                                                                                                                                          {
#line 1270 "query.m"
                                                                                                                                            if ((strcmp(query__DeveloperModeStr_17, (MR_String) "dev") == 0))
#line 1270 "query.m"
                                                                                                                                              {
#line 1270 "query.m"
                                                                                                                                                query__DeveloperMode_30 = (MR_Integer) 0;
#line 1270 "query.m"
                                                                                                                                                query__succeeded = MR_TRUE;
#line 1270 "query.m"
                                                                                                                                              }
#line 1270 "query.m"
                                                                                                                                            else
#line 1270 "query.m"
                                                                                                                                              if ((strcmp(query__DeveloperModeStr_17, (MR_String) "nodev") == 0))
#line 1271 "query.m"
                                                                                                                                                {
#line 1271 "query.m"
                                                                                                                                                  query__DeveloperMode_30 = (MR_Integer) 1;
#line 1271 "query.m"
                                                                                                                                                  query__succeeded = MR_TRUE;
#line 1271 "query.m"
                                                                                                                                                }
#line 1270 "query.m"
                                                                                                                                              else
#line 1270 "query.m"
                                                                                                                                                query__succeeded = MR_FALSE;
#line 1270 "query.m"
                                                                                                                                          }
#line 874 "query.m"
                                                                                                                                      }
#line 874 "query.m"
                                                                                                                                  }
#line 874 "query.m"
                                                                                                                              }
#line 874 "query.m"
                                                                                                                          }
#line 874 "query.m"
                                                                                                                      }
#line 874 "query.m"
                                                                                                                  }
#line 874 "query.m"
                                                                                                              }
#line 874 "query.m"
                                                                                                          }
#line 874 "query.m"
                                                                                                      }
#line 874 "query.m"
                                                                                                  }
#line 874 "query.m"
                                                                                              }
#line 874 "query.m"
                                                                                          }
#line 874 "query.m"
                                                                                      }
#line 874 "query.m"
                                                                                  }
#line 874 "query.m"
                                                                              }
#line 1051 "query.m"
                                                                          }
#line 1051 "query.m"
                                                                      }
#line 1051 "query.m"
                                                                  }
#line 1051 "query.m"
                                                              }
#line 1051 "query.m"
                                                          }
#line 874 "query.m"
                                                      }
#line 874 "query.m"
                                                  }
#line 874 "query.m"
                                              }
#line 873 "query.m"
                                          }
#line 873 "query.m"
                                      }
#line 873 "query.m"
                                  }
#line 873 "query.m"
                              }
#line 872 "query.m"
                          }
#line 872 "query.m"
                      }
#line 871 "query.m"
                  }
#line 871 "query.m"
              }
#line 871 "query.m"
          }
#line 871 "query.m"
      }
#line 899 "query.m"
    if (query__succeeded)
#line 897 "query.m"
      {
#line 897 "query.m"
        MR_Word query__Preferences_31;

#line 895 "query.m"
        {
#line 895 "query.m"
          query__Preferences_31 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 9 * sizeof(MR_Word)), NULL, NULL);
#line 895 "query.m"
          MR_hl_field(MR_mktag(0), query__Preferences_31, 0) = ((MR_Box) (query__Fields_18));
#line 895 "query.m"
          MR_hl_field(MR_mktag(0), query__Preferences_31, 1) = ((MR_Box) ((query__Box_19 | ((query__Colour_20 << (MR_Integer) 1)))));
#line 895 "query.m"
          MR_hl_field(MR_mktag(0), query__Preferences_31, 2) = ((MR_Box) (query__MaybeAncestorLimit_22));
#line 895 "query.m"
          MR_hl_field(MR_mktag(0), query__Preferences_31, 3) = ((MR_Box) (query__ProcStaticsPerRecTypeLimit_23));
#line 895 "query.m"
          MR_hl_field(MR_mktag(0), query__Preferences_31, 4) = ((MR_Box) (query__SummarizeHoCallSites_24));
#line 895 "query.m"
          MR_hl_field(MR_mktag(0), query__Preferences_31, 5) = ((MR_Box) (query__Order_25));
#line 895 "query.m"
          MR_hl_field(MR_mktag(0), query__Preferences_31, 6) = ((MR_Box) ((query__Contour_26 | ((((query__Time_27 << (MR_Integer) 1)) | ((query__ModuleQual_28 << (MR_Integer) 3)))))));
#line 895 "query.m"
          MR_hl_field(MR_mktag(0), query__Preferences_31, 7) = ((MR_Box) (query__InactiveItems_29));
#line 895 "query.m"
          MR_hl_field(MR_mktag(0), query__Preferences_31, 8) = ((MR_Box) (query__DeveloperMode_30));
#line 895 "query.m"
        }
#line 898 "query.m"
        {
#line 898 "query.m"
          query__MaybePreferences_4 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 898 "query.m"
          MR_hl_field(MR_mktag(1), query__MaybePreferences_4, 0) = ((MR_Box) (query__Preferences_31));
#line 898 "query.m"
        }
#line 897 "query.m"
      }
#line 899 "query.m"
    else
#line 900 "query.m"
      query__MaybePreferences_4 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 868 "query.m"
    return query__MaybePreferences_4;
#line 868 "query.m"
  }
#line 68 "query.m"
}

#line 66 "query.m"
MR_Word MR_CALL 
query__string_to_maybe_cmd_1_f_0(
#line 66 "query.m"
  MR_String query__QueryString_3)
#line 66 "query.m"
{
#line 706 "query.m"
  {
#line 706 "query.m"
    MR_bool query__succeeded;
#line 706 "query.m"
    MR_Word query__MaybeCmd_4;
#line 706 "query.m"
    MR_Word query__Pieces_5;
#line 706 "query.m"
    MR_Char query__V_44_44;
#line 720 "query.m"
    MR_Word query__MaybePercent_7;
#line 709 "query.m"
    MR_String query__MaybePercentStr_6;
#line 709 "query.m"
    MR_String query__V_45_45;
#line 709 "query.m"
    MR_Word query__V_46_46;
#line 709 "query.m"
    MR_Word query__V_47_47;
#line 709 "query.m"
    MR_String query__V_272_272;

#line 707 "query.m"
    {
#line 707 "query.m"
      query__V_44_44 = query__pref_separator_char_0_f_0();
    }
#line 707 "query.m"
    {
#line 707 "query.m"
      util__split_3_p_0(query__QueryString_3, query__V_44_44, &query__Pieces_5);
    }
#line 709 "query.m"
    query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 709 "query.m"
    if (query__succeeded)
#line 709 "query.m"
      {
#line 709 "query.m"
        query__V_45_45 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 709 "query.m"
        query__V_46_46 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 709 "query.m"
        {
#line 709 "query.m"
          query__V_272_272 = query__cmd_str_root_0_f_0();
        }
#line 709 "query.m"
        query__succeeded = (strcmp(query__V_45_45, query__V_272_272) == 0);
#line 709 "query.m"
        if (query__succeeded)
#line 709 "query.m"
          {
#line 709 "query.m"
            query__succeeded = ((MR_tag((MR_Word) query__V_46_46)) == (MR_mktag((MR_Integer) 1)));
#line 709 "query.m"
            if (query__succeeded)
#line 709 "query.m"
              {
#line 709 "query.m"
                query__MaybePercentStr_6 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_46_46, (MR_Integer) 0)));
#line 709 "query.m"
                query__V_47_47 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_46_46, (MR_Integer) 1)));
#line 709 "query.m"
                query__succeeded = (query__V_47_47 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 709 "query.m"
                if (query__succeeded)
#line 709 "query.m"
                  {
#line 710 "query.m"
                    query__succeeded = (strcmp(query__MaybePercentStr_6, (MR_String) "no") == 0);
#line 712 "query.m"
                    if (query__succeeded)
#line 711 "query.m"
                      {
#line 711 "query.m"
                        query__MaybePercent_7 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 711 "query.m"
                        query__succeeded = MR_TRUE;
#line 711 "query.m"
                      }
#line 712 "query.m"
                    else
#line 714 "query.m"
                      {
#line 714 "query.m"
                        MR_Integer query__Percent_8;

#line 712 "query.m"
                        {
#line 712 "query.m"
                          query__succeeded = mercury__string__to_int_2_p_0(query__MaybePercentStr_6, &query__Percent_8);
                        }
#line 714 "query.m"
                        if (query__succeeded)
#line 714 "query.m"
                          {
#line 713 "query.m"
                            {
#line 713 "query.m"
                              query__MaybePercent_7 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 713 "query.m"
                              MR_hl_field(MR_mktag(1), query__MaybePercent_7, 0) = ((MR_Box) (query__Percent_8));
#line 713 "query.m"
                            }
#line 713 "query.m"
                            query__succeeded = MR_TRUE;
#line 714 "query.m"
                          }
#line 714 "query.m"
                      }
#line 709 "query.m"
                  }
#line 709 "query.m"
              }
#line 709 "query.m"
          }
#line 709 "query.m"
      }
#line 720 "query.m"
    if (query__succeeded)
#line 718 "query.m"
      {
#line 718 "query.m"
        MR_Word query__Cmd_9;

#line 718 "query.m"
        {
#line 718 "query.m"
          query__Cmd_9 = (MR_Word) MR_mkword(MR_mktag(2), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 718 "query.m"
          MR_hl_field(MR_mktag(2), query__Cmd_9, 0) = ((MR_Box) (query__MaybePercent_7));
#line 718 "query.m"
        }
#line 719 "query.m"
        {
#line 719 "query.m"
          query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 719 "query.m"
          MR_hl_field(MR_mktag(1), query__MaybeCmd_4, 0) = ((MR_Box) (query__Cmd_9));
#line 719 "query.m"
        }
#line 718 "query.m"
      }
#line 720 "query.m"
    else
#line 727 "query.m"
      {
#line 727 "query.m"
        MR_Integer query__CliqueNum_11;
#line 721 "query.m"
        MR_String query__CliqueNumStr_10;
#line 721 "query.m"
        MR_String query__V_48_48;
#line 721 "query.m"
        MR_Word query__V_49_49;
#line 721 "query.m"
        MR_Word query__V_50_50;
#line 721 "query.m"
        MR_String query__V_273_273;

#line 721 "query.m"
        query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 721 "query.m"
        if (query__succeeded)
#line 721 "query.m"
          {
#line 721 "query.m"
            query__V_48_48 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 721 "query.m"
            query__V_49_49 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 721 "query.m"
            {
#line 721 "query.m"
              query__V_273_273 = query__cmd_str_clique_0_f_0();
            }
#line 721 "query.m"
            query__succeeded = (strcmp(query__V_48_48, query__V_273_273) == 0);
#line 721 "query.m"
            if (query__succeeded)
#line 721 "query.m"
              {
#line 721 "query.m"
                query__succeeded = ((MR_tag((MR_Word) query__V_49_49)) == (MR_mktag((MR_Integer) 1)));
#line 721 "query.m"
                if (query__succeeded)
#line 721 "query.m"
                  {
#line 721 "query.m"
                    query__CliqueNumStr_10 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_49_49, (MR_Integer) 0)));
#line 721 "query.m"
                    query__V_50_50 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_49_49, (MR_Integer) 1)));
#line 721 "query.m"
                    query__succeeded = (query__V_50_50 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 721 "query.m"
                    if (query__succeeded)
#line 722 "query.m"
                      {
#line 722 "query.m"
                        query__succeeded = mercury__string__to_int_2_p_0(query__CliqueNumStr_10, &query__CliqueNum_11);
                      }
#line 721 "query.m"
                  }
#line 721 "query.m"
              }
#line 721 "query.m"
          }
#line 727 "query.m"
        if (query__succeeded)
#line 724 "query.m"
          {
#line 724 "query.m"
            MR_Word query__CliquePtr_12 = (MR_Word) query__CliqueNum_11;
#line 724 "query.m"
            MR_Word query__Cmd_118;

#line 725 "query.m"
            {
#line 725 "query.m"
              query__Cmd_118 = (MR_Word) MR_mkword(MR_mktag(3), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 725 "query.m"
              MR_hl_field(MR_mktag(3), query__Cmd_118, 0) = ((MR_Box) (MR_Word) ((MR_Integer) 0));
#line 725 "query.m"
              MR_hl_field(MR_mktag(3), query__Cmd_118, 1) = ((MR_Box) (query__CliquePtr_12));
#line 725 "query.m"
            }
#line 726 "query.m"
            {
#line 726 "query.m"
              query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 726 "query.m"
              MR_hl_field(MR_mktag(1), query__MaybeCmd_4, 0) = ((MR_Box) (query__Cmd_118));
#line 726 "query.m"
            }
#line 724 "query.m"
          }
#line 727 "query.m"
        else
#line 734 "query.m"
          {
#line 734 "query.m"
            MR_Integer query__CliqueNum_269;
#line 728 "query.m"
            MR_String query__V_51_51;
#line 728 "query.m"
            MR_Word query__V_52_52;
#line 728 "query.m"
            MR_Word query__V_53_53;
#line 728 "query.m"
            MR_String query__CliqueNumStr_119;
#line 728 "query.m"
            MR_String query__V_274_274;

#line 728 "query.m"
            query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 728 "query.m"
            if (query__succeeded)
#line 728 "query.m"
              {
#line 728 "query.m"
                query__V_51_51 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 728 "query.m"
                query__V_52_52 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 728 "query.m"
                {
#line 728 "query.m"
                  query__V_274_274 = query__cmd_str_clique_recursive_costs_0_f_0();
                }
#line 728 "query.m"
                query__succeeded = (strcmp(query__V_51_51, query__V_274_274) == 0);
#line 728 "query.m"
                if (query__succeeded)
#line 728 "query.m"
                  {
#line 728 "query.m"
                    query__succeeded = ((MR_tag((MR_Word) query__V_52_52)) == (MR_mktag((MR_Integer) 1)));
#line 728 "query.m"
                    if (query__succeeded)
#line 728 "query.m"
                      {
#line 728 "query.m"
                        query__CliqueNumStr_119 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_52_52, (MR_Integer) 0)));
#line 728 "query.m"
                        query__V_53_53 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_52_52, (MR_Integer) 1)));
#line 728 "query.m"
                        query__succeeded = (query__V_53_53 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 728 "query.m"
                        if (query__succeeded)
#line 729 "query.m"
                          {
#line 729 "query.m"
                            query__succeeded = mercury__string__to_int_2_p_0(query__CliqueNumStr_119, &query__CliqueNum_269);
                          }
#line 728 "query.m"
                      }
#line 728 "query.m"
                  }
#line 728 "query.m"
              }
#line 734 "query.m"
            if (query__succeeded)
#line 731 "query.m"
              {
#line 731 "query.m"
                MR_Word query__Cmd_120;
#line 731 "query.m"
                MR_Word query__CliquePtr_121 = (MR_Word) query__CliqueNum_269;

#line 732 "query.m"
                {
#line 732 "query.m"
                  query__Cmd_120 = (MR_Word) MR_mkword(MR_mktag(3), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 732 "query.m"
                  MR_hl_field(MR_mktag(3), query__Cmd_120, 0) = ((MR_Box) (MR_Word) ((MR_Integer) 1));
#line 732 "query.m"
                  MR_hl_field(MR_mktag(3), query__Cmd_120, 1) = ((MR_Box) (query__CliquePtr_121));
#line 732 "query.m"
                }
#line 733 "query.m"
                {
#line 733 "query.m"
                  query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 733 "query.m"
                  MR_hl_field(MR_mktag(1), query__MaybeCmd_4, 0) = ((MR_Box) (query__Cmd_120));
#line 733 "query.m"
                }
#line 731 "query.m"
              }
#line 734 "query.m"
            else
#line 739 "query.m"
              {
#line 735 "query.m"
                MR_String query__V_54_54;
#line 735 "query.m"
                MR_Word query__V_55_55;
#line 735 "query.m"
                MR_String query__V_275_275;

#line 735 "query.m"
                query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 735 "query.m"
                if (query__succeeded)
#line 735 "query.m"
                  {
#line 735 "query.m"
                    query__V_54_54 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 735 "query.m"
                    query__V_55_55 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 735 "query.m"
                    {
#line 735 "query.m"
                      query__V_275_275 = query__cmd_str_recursion_types_frequency_0_f_0();
                    }
#line 735 "query.m"
                    query__succeeded = (strcmp(query__V_54_54, query__V_275_275) == 0);
#line 735 "query.m"
                    if (query__succeeded)
#line 735 "query.m"
                      query__succeeded = (query__V_55_55 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 735 "query.m"
                  }
#line 739 "query.m"
                if (query__succeeded)
#line 737 "query.m"
                  {
#line 738 "query.m"
                    query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(1), &query_scalar_common_2[1]);
#line 737 "query.m"
                  }
#line 739 "query.m"
                else
#line 746 "query.m"
                  {
#line 746 "query.m"
                    MR_Integer query__PSI_14;
#line 740 "query.m"
                    MR_String query__PSIStr_13;
#line 740 "query.m"
                    MR_String query__V_56_56;
#line 740 "query.m"
                    MR_Word query__V_57_57;
#line 740 "query.m"
                    MR_Word query__V_58_58;
#line 740 "query.m"
                    MR_String query__V_276_276;

#line 740 "query.m"
                    query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 740 "query.m"
                    if (query__succeeded)
#line 740 "query.m"
                      {
#line 740 "query.m"
                        query__V_56_56 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 740 "query.m"
                        query__V_57_57 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 740 "query.m"
                        {
#line 740 "query.m"
                          query__V_276_276 = query__cmd_str_proc_0_f_0();
                        }
#line 740 "query.m"
                        query__succeeded = (strcmp(query__V_56_56, query__V_276_276) == 0);
#line 740 "query.m"
                        if (query__succeeded)
#line 740 "query.m"
                          {
#line 740 "query.m"
                            query__succeeded = ((MR_tag((MR_Word) query__V_57_57)) == (MR_mktag((MR_Integer) 1)));
#line 740 "query.m"
                            if (query__succeeded)
#line 740 "query.m"
                              {
#line 740 "query.m"
                                query__PSIStr_13 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_57_57, (MR_Integer) 0)));
#line 740 "query.m"
                                query__V_58_58 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_57_57, (MR_Integer) 1)));
#line 740 "query.m"
                                query__succeeded = (query__V_58_58 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 740 "query.m"
                                if (query__succeeded)
#line 741 "query.m"
                                  {
#line 741 "query.m"
                                    query__succeeded = mercury__string__to_int_2_p_0(query__PSIStr_13, &query__PSI_14);
                                  }
#line 740 "query.m"
                              }
#line 740 "query.m"
                          }
#line 740 "query.m"
                      }
#line 746 "query.m"
                    if (query__succeeded)
#line 743 "query.m"
                      {
#line 743 "query.m"
                        MR_Word query__PSPtr_15 = (MR_Word) query__PSI_14;
#line 743 "query.m"
                        MR_Word query__Cmd_123;

#line 744 "query.m"
                        {
#line 744 "query.m"
                          query__Cmd_123 = (MR_Word) MR_mkword(MR_mktag(3), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 744 "query.m"
                          MR_hl_field(MR_mktag(3), query__Cmd_123, 0) = ((MR_Box) (MR_Word) ((MR_Integer) 2));
#line 744 "query.m"
                          MR_hl_field(MR_mktag(3), query__Cmd_123, 1) = ((MR_Box) (query__PSPtr_15));
#line 744 "query.m"
                        }
#line 745 "query.m"
                        {
#line 745 "query.m"
                          query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 745 "query.m"
                          MR_hl_field(MR_mktag(1), query__MaybeCmd_4, 0) = ((MR_Box) (query__Cmd_123));
#line 745 "query.m"
                        }
#line 743 "query.m"
                      }
#line 746 "query.m"
                    else
#line 759 "query.m"
                      {
#line 759 "query.m"
                        MR_Word query__GroupCallers_20;
#line 759 "query.m"
                        MR_Integer query__BunchNum_21;
#line 759 "query.m"
                        MR_Integer query__CallersPerBunch_22;
#line 759 "query.m"
                        MR_Word query__Contour_23;
#line 759 "query.m"
                        MR_Integer query__PSI_257;
#line 748 "query.m"
                        MR_String query__GroupCallersStr_16;
#line 748 "query.m"
                        MR_String query__BunchNumStr_17;
#line 748 "query.m"
                        MR_String query__CallersPerBunchStr_18;
#line 748 "query.m"
                        MR_String query__ContourStr_19;
#line 748 "query.m"
                        MR_String query__V_59_59;
#line 748 "query.m"
                        MR_Word query__V_60_60;
#line 748 "query.m"
                        MR_Word query__V_61_61;
#line 748 "query.m"
                        MR_Word query__V_62_62;
#line 748 "query.m"
                        MR_Word query__V_63_63;
#line 748 "query.m"
                        MR_Word query__V_64_64;
#line 748 "query.m"
                        MR_Word query__V_65_65;
#line 748 "query.m"
                        MR_String query__PSIStr_124;
#line 748 "query.m"
                        MR_String query__V_277_277;

#line 747 "query.m"
                        query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 747 "query.m"
                        if (query__succeeded)
#line 747 "query.m"
                          {
#line 747 "query.m"
                            query__V_59_59 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 747 "query.m"
                            query__V_60_60 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 747 "query.m"
                            {
#line 747 "query.m"
                              query__V_277_277 = query__cmd_str_proc_callers_0_f_0();
                            }
#line 747 "query.m"
                            query__succeeded = (strcmp(query__V_59_59, query__V_277_277) == 0);
#line 748 "query.m"
                            if (query__succeeded)
#line 748 "query.m"
                              {
#line 747 "query.m"
                                query__succeeded = ((MR_tag((MR_Word) query__V_60_60)) == (MR_mktag((MR_Integer) 1)));
#line 747 "query.m"
                                if (query__succeeded)
#line 747 "query.m"
                                  {
#line 747 "query.m"
                                    query__PSIStr_124 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_60_60, (MR_Integer) 0)));
#line 747 "query.m"
                                    query__V_61_61 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_60_60, (MR_Integer) 1)));
#line 747 "query.m"
                                    query__succeeded = ((MR_tag((MR_Word) query__V_61_61)) == (MR_mktag((MR_Integer) 1)));
#line 747 "query.m"
                                    if (query__succeeded)
#line 747 "query.m"
                                      {
#line 747 "query.m"
                                        query__GroupCallersStr_16 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_61_61, (MR_Integer) 0)));
#line 747 "query.m"
                                        query__V_62_62 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_61_61, (MR_Integer) 1)));
#line 747 "query.m"
                                        query__succeeded = ((MR_tag((MR_Word) query__V_62_62)) == (MR_mktag((MR_Integer) 1)));
#line 747 "query.m"
                                        if (query__succeeded)
#line 747 "query.m"
                                          {
#line 747 "query.m"
                                            query__BunchNumStr_17 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_62_62, (MR_Integer) 0)));
#line 747 "query.m"
                                            query__V_63_63 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_62_62, (MR_Integer) 1)));
#line 747 "query.m"
                                            query__succeeded = ((MR_tag((MR_Word) query__V_63_63)) == (MR_mktag((MR_Integer) 1)));
#line 747 "query.m"
                                            if (query__succeeded)
#line 747 "query.m"
                                              {
#line 747 "query.m"
                                                query__CallersPerBunchStr_18 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_63_63, (MR_Integer) 0)));
#line 747 "query.m"
                                                query__V_64_64 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_63_63, (MR_Integer) 1)));
#line 748 "query.m"
                                                query__succeeded = ((MR_tag((MR_Word) query__V_64_64)) == (MR_mktag((MR_Integer) 1)));
#line 748 "query.m"
                                                if (query__succeeded)
#line 748 "query.m"
                                                  {
#line 748 "query.m"
                                                    query__ContourStr_19 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_64_64, (MR_Integer) 0)));
#line 748 "query.m"
                                                    query__V_65_65 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_64_64, (MR_Integer) 1)));
#line 748 "query.m"
                                                    query__succeeded = (query__V_65_65 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 748 "query.m"
                                                    if (query__succeeded)
#line 748 "query.m"
                                                      {
#line 749 "query.m"
                                                        {
#line 749 "query.m"
                                                          query__succeeded = mercury__string__to_int_2_p_0(query__PSIStr_124, &query__PSI_257);
                                                        }
#line 748 "query.m"
                                                        if (query__succeeded)
#line 748 "query.m"
                                                          {
#line 750 "query.m"
                                                            {
#line 750 "query.m"
                                                              query__succeeded = query__string_to_caller_groups_2_p_0(query__GroupCallersStr_16, &query__GroupCallers_20);
                                                            }
#line 748 "query.m"
                                                            if (query__succeeded)
#line 748 "query.m"
                                                              {
#line 751 "query.m"
                                                                {
#line 751 "query.m"
                                                                  query__succeeded = mercury__string__to_int_2_p_0(query__BunchNumStr_17, &query__BunchNum_21);
                                                                }
#line 748 "query.m"
                                                                if (query__succeeded)
#line 748 "query.m"
                                                                  {
#line 752 "query.m"
                                                                    {
#line 752 "query.m"
                                                                      query__succeeded = mercury__string__to_int_2_p_0(query__CallersPerBunchStr_18, &query__CallersPerBunch_22);
                                                                    }
#line 748 "query.m"
                                                                    if (query__succeeded)
#line 753 "query.m"
                                                                      {
#line 753 "query.m"
                                                                        query__succeeded = query__string_to_contour_exclusion_2_p_0(query__ContourStr_19, &query__Contour_23);
                                                                      }
#line 748 "query.m"
                                                                  }
#line 748 "query.m"
                                                              }
#line 748 "query.m"
                                                          }
#line 748 "query.m"
                                                      }
#line 748 "query.m"
                                                  }
#line 747 "query.m"
                                              }
#line 747 "query.m"
                                          }
#line 747 "query.m"
                                      }
#line 747 "query.m"
                                  }
#line 748 "query.m"
                              }
#line 747 "query.m"
                          }
#line 759 "query.m"
                        if (query__succeeded)
#line 755 "query.m"
                          {
#line 755 "query.m"
                            MR_Word query__Cmd_125;
#line 755 "query.m"
                            MR_Word query__PSPtr_126 = (MR_Word) query__PSI_257;

#line 756 "query.m"
                            {
#line 756 "query.m"
                              query__Cmd_125 = (MR_Word) MR_mkword(MR_mktag(3), MR_new_object(MR_Word, ((MR_Integer) 6 * sizeof(MR_Word)), NULL, NULL));
#line 756 "query.m"
                              MR_hl_field(MR_mktag(3), query__Cmd_125, 0) = ((MR_Box) (MR_Word) ((MR_Integer) 3));
#line 756 "query.m"
                              MR_hl_field(MR_mktag(3), query__Cmd_125, 1) = ((MR_Box) (query__PSPtr_126));
#line 756 "query.m"
                              MR_hl_field(MR_mktag(3), query__Cmd_125, 2) = ((MR_Box) (query__GroupCallers_20));
#line 756 "query.m"
                              MR_hl_field(MR_mktag(3), query__Cmd_125, 3) = ((MR_Box) (query__BunchNum_21));
#line 756 "query.m"
                              MR_hl_field(MR_mktag(3), query__Cmd_125, 4) = ((MR_Box) (query__CallersPerBunch_22));
#line 756 "query.m"
                              MR_hl_field(MR_mktag(3), query__Cmd_125, 5) = ((MR_Box) (query__Contour_23));
#line 756 "query.m"
                            }
#line 758 "query.m"
                            {
#line 758 "query.m"
                              query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 758 "query.m"
                              MR_hl_field(MR_mktag(1), query__MaybeCmd_4, 0) = ((MR_Box) (query__Cmd_125));
#line 758 "query.m"
                            }
#line 755 "query.m"
                          }
#line 759 "query.m"
                        else
#line 764 "query.m"
                          {
#line 760 "query.m"
                            MR_String query__V_66_66;
#line 760 "query.m"
                            MR_Word query__V_67_67;
#line 760 "query.m"
                            MR_String query__V_278_278;

#line 760 "query.m"
                            query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 760 "query.m"
                            if (query__succeeded)
#line 760 "query.m"
                              {
#line 760 "query.m"
                                query__V_66_66 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 760 "query.m"
                                query__V_67_67 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 760 "query.m"
                                {
#line 760 "query.m"
                                  query__V_278_278 = query__cmd_str_program_modules_0_f_0();
                                }
#line 760 "query.m"
                                query__succeeded = (strcmp(query__V_66_66, query__V_278_278) == 0);
#line 760 "query.m"
                                if (query__succeeded)
#line 760 "query.m"
                                  query__succeeded = (query__V_67_67 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 760 "query.m"
                              }
#line 764 "query.m"
                            if (query__succeeded)
#line 762 "query.m"
                              {
#line 763 "query.m"
                                query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(1), &query_scalar_common_2[2]);
#line 762 "query.m"
                              }
#line 764 "query.m"
                            else
#line 769 "query.m"
                              {
#line 769 "query.m"
                                MR_String query__ModuleName_24;
#line 765 "query.m"
                                MR_String query__V_68_68;
#line 765 "query.m"
                                MR_Word query__V_69_69;
#line 765 "query.m"
                                MR_Word query__V_70_70;
#line 765 "query.m"
                                MR_String query__V_279_279;

#line 765 "query.m"
                                query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 765 "query.m"
                                if (query__succeeded)
#line 765 "query.m"
                                  {
#line 765 "query.m"
                                    query__V_68_68 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 765 "query.m"
                                    query__V_69_69 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 765 "query.m"
                                    {
#line 765 "query.m"
                                      query__V_279_279 = query__cmd_str_module_0_f_0();
                                    }
#line 765 "query.m"
                                    query__succeeded = (strcmp(query__V_68_68, query__V_279_279) == 0);
#line 765 "query.m"
                                    if (query__succeeded)
#line 765 "query.m"
                                      {
#line 765 "query.m"
                                        query__succeeded = ((MR_tag((MR_Word) query__V_69_69)) == (MR_mktag((MR_Integer) 1)));
#line 765 "query.m"
                                        if (query__succeeded)
#line 765 "query.m"
                                          {
#line 765 "query.m"
                                            query__ModuleName_24 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_69_69, (MR_Integer) 0)));
#line 765 "query.m"
                                            query__V_70_70 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_69_69, (MR_Integer) 1)));
#line 765 "query.m"
                                            query__succeeded = (query__V_70_70 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 765 "query.m"
                                          }
#line 765 "query.m"
                                      }
#line 765 "query.m"
                                  }
#line 769 "query.m"
                                if (query__succeeded)
#line 767 "query.m"
                                  {
#line 767 "query.m"
                                    MR_Word query__Cmd_128;

#line 767 "query.m"
                                    {
#line 767 "query.m"
                                      query__Cmd_128 = (MR_Word) MR_mkword(MR_mktag(3), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 767 "query.m"
                                      MR_hl_field(MR_mktag(3), query__Cmd_128, 0) = ((MR_Box) (MR_Word) ((MR_Integer) 4));
#line 767 "query.m"
                                      MR_hl_field(MR_mktag(3), query__Cmd_128, 1) = ((MR_Box) (query__ModuleName_24));
#line 767 "query.m"
                                    }
#line 768 "query.m"
                                    {
#line 768 "query.m"
                                      query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 768 "query.m"
                                      MR_hl_field(MR_mktag(1), query__MaybeCmd_4, 0) = ((MR_Box) (query__Cmd_128));
#line 768 "query.m"
                                    }
#line 767 "query.m"
                                  }
#line 769 "query.m"
                                else
#line 774 "query.m"
                                  {
#line 774 "query.m"
                                    MR_String query__ModuleName_237;
#line 770 "query.m"
                                    MR_String query__V_71_71;
#line 770 "query.m"
                                    MR_Word query__V_72_72;
#line 770 "query.m"
                                    MR_Word query__V_73_73;
#line 770 "query.m"
                                    MR_String query__V_280_280;

#line 770 "query.m"
                                    query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 770 "query.m"
                                    if (query__succeeded)
#line 770 "query.m"
                                      {
#line 770 "query.m"
                                        query__V_71_71 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 770 "query.m"
                                        query__V_72_72 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 770 "query.m"
                                        {
#line 770 "query.m"
                                          query__V_280_280 = query__cmd_str_module_getter_setters_0_f_0();
                                        }
#line 770 "query.m"
                                        query__succeeded = (strcmp(query__V_71_71, query__V_280_280) == 0);
#line 770 "query.m"
                                        if (query__succeeded)
#line 770 "query.m"
                                          {
#line 770 "query.m"
                                            query__succeeded = ((MR_tag((MR_Word) query__V_72_72)) == (MR_mktag((MR_Integer) 1)));
#line 770 "query.m"
                                            if (query__succeeded)
#line 770 "query.m"
                                              {
#line 770 "query.m"
                                                query__ModuleName_237 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_72_72, (MR_Integer) 0)));
#line 770 "query.m"
                                                query__V_73_73 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_72_72, (MR_Integer) 1)));
#line 770 "query.m"
                                                query__succeeded = (query__V_73_73 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 770 "query.m"
                                              }
#line 770 "query.m"
                                          }
#line 770 "query.m"
                                      }
#line 774 "query.m"
                                    if (query__succeeded)
#line 772 "query.m"
                                      {
#line 772 "query.m"
                                        MR_Word query__Cmd_129;

#line 772 "query.m"
                                        {
#line 772 "query.m"
                                          query__Cmd_129 = (MR_Word) MR_mkword(MR_mktag(3), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 772 "query.m"
                                          MR_hl_field(MR_mktag(3), query__Cmd_129, 0) = ((MR_Box) (MR_Word) ((MR_Integer) 5));
#line 772 "query.m"
                                          MR_hl_field(MR_mktag(3), query__Cmd_129, 1) = ((MR_Box) (query__ModuleName_237));
#line 772 "query.m"
                                        }
#line 773 "query.m"
                                        {
#line 773 "query.m"
                                          query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 773 "query.m"
                                          MR_hl_field(MR_mktag(1), query__MaybeCmd_4, 0) = ((MR_Box) (query__Cmd_129));
#line 773 "query.m"
                                        }
#line 772 "query.m"
                                      }
#line 774 "query.m"
                                    else
#line 779 "query.m"
                                      {
#line 779 "query.m"
                                        MR_String query__ModuleName_229;
#line 775 "query.m"
                                        MR_String query__V_74_74;
#line 775 "query.m"
                                        MR_Word query__V_75_75;
#line 775 "query.m"
                                        MR_Word query__V_76_76;
#line 775 "query.m"
                                        MR_String query__V_281_281;

#line 775 "query.m"
                                        query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 775 "query.m"
                                        if (query__succeeded)
#line 775 "query.m"
                                          {
#line 775 "query.m"
                                            query__V_74_74 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 775 "query.m"
                                            query__V_75_75 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 775 "query.m"
                                            {
#line 775 "query.m"
                                              query__V_281_281 = query__cmd_str_module_rep_0_f_0();
                                            }
#line 775 "query.m"
                                            query__succeeded = (strcmp(query__V_74_74, query__V_281_281) == 0);
#line 775 "query.m"
                                            if (query__succeeded)
#line 775 "query.m"
                                              {
#line 775 "query.m"
                                                query__succeeded = ((MR_tag((MR_Word) query__V_75_75)) == (MR_mktag((MR_Integer) 1)));
#line 775 "query.m"
                                                if (query__succeeded)
#line 775 "query.m"
                                                  {
#line 775 "query.m"
                                                    query__ModuleName_229 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_75_75, (MR_Integer) 0)));
#line 775 "query.m"
                                                    query__V_76_76 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_75_75, (MR_Integer) 1)));
#line 775 "query.m"
                                                    query__succeeded = (query__V_76_76 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 775 "query.m"
                                                  }
#line 775 "query.m"
                                              }
#line 775 "query.m"
                                          }
#line 779 "query.m"
                                        if (query__succeeded)
#line 777 "query.m"
                                          {
#line 777 "query.m"
                                            MR_Word query__Cmd_130;

#line 777 "query.m"
                                            {
#line 777 "query.m"
                                              query__Cmd_130 = (MR_Word) MR_mkword(MR_mktag(3), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 777 "query.m"
                                              MR_hl_field(MR_mktag(3), query__Cmd_130, 0) = ((MR_Box) (MR_Word) ((MR_Integer) 6));
#line 777 "query.m"
                                              MR_hl_field(MR_mktag(3), query__Cmd_130, 1) = ((MR_Box) (query__ModuleName_229));
#line 777 "query.m"
                                            }
#line 778 "query.m"
                                            {
#line 778 "query.m"
                                              query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 778 "query.m"
                                              MR_hl_field(MR_mktag(1), query__MaybeCmd_4, 0) = ((MR_Box) (query__Cmd_130));
#line 778 "query.m"
                                            }
#line 777 "query.m"
                                          }
#line 779 "query.m"
                                        else
#line 789 "query.m"
                                          {
#line 789 "query.m"
                                            MR_Word query__Limit_29;
#line 789 "query.m"
                                            MR_Word query__CostKind_30;
#line 789 "query.m"
                                            MR_Word query__InclDesc_31;
#line 789 "query.m"
                                            MR_Word query__Scope_32;
#line 781 "query.m"
                                            MR_String query__LimitStr_25;
#line 781 "query.m"
                                            MR_String query__CostKindStr_26;
#line 781 "query.m"
                                            MR_String query__InclDescStr_27;
#line 781 "query.m"
                                            MR_String query__ScopeStr_28;
#line 781 "query.m"
                                            MR_String query__V_77_77;
#line 781 "query.m"
                                            MR_Word query__V_78_78;
#line 781 "query.m"
                                            MR_Word query__V_79_79;
#line 781 "query.m"
                                            MR_Word query__V_80_80;
#line 781 "query.m"
                                            MR_Word query__V_81_81;
#line 781 "query.m"
                                            MR_Word query__V_82_82;
#line 781 "query.m"
                                            MR_String query__V_282_282;

#line 780 "query.m"
                                            query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 780 "query.m"
                                            if (query__succeeded)
#line 780 "query.m"
                                              {
#line 780 "query.m"
                                                query__V_77_77 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 780 "query.m"
                                                query__V_78_78 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 780 "query.m"
                                                {
#line 780 "query.m"
                                                  query__V_282_282 = query__cmd_str_top_procs_0_f_0();
                                                }
#line 780 "query.m"
                                                query__succeeded = (strcmp(query__V_77_77, query__V_282_282) == 0);
#line 781 "query.m"
                                                if (query__succeeded)
#line 781 "query.m"
                                                  {
#line 780 "query.m"
                                                    query__succeeded = ((MR_tag((MR_Word) query__V_78_78)) == (MR_mktag((MR_Integer) 1)));
#line 780 "query.m"
                                                    if (query__succeeded)
#line 780 "query.m"
                                                      {
#line 780 "query.m"
                                                        query__LimitStr_25 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_78_78, (MR_Integer) 0)));
#line 780 "query.m"
                                                        query__V_79_79 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_78_78, (MR_Integer) 1)));
#line 780 "query.m"
                                                        query__succeeded = ((MR_tag((MR_Word) query__V_79_79)) == (MR_mktag((MR_Integer) 1)));
#line 780 "query.m"
                                                        if (query__succeeded)
#line 780 "query.m"
                                                          {
#line 780 "query.m"
                                                            query__CostKindStr_26 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_79_79, (MR_Integer) 0)));
#line 780 "query.m"
                                                            query__V_80_80 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_79_79, (MR_Integer) 1)));
#line 780 "query.m"
                                                            query__succeeded = ((MR_tag((MR_Word) query__V_80_80)) == (MR_mktag((MR_Integer) 1)));
#line 780 "query.m"
                                                            if (query__succeeded)
#line 780 "query.m"
                                                              {
#line 780 "query.m"
                                                                query__InclDescStr_27 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_80_80, (MR_Integer) 0)));
#line 780 "query.m"
                                                                query__V_81_81 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_80_80, (MR_Integer) 1)));
#line 780 "query.m"
                                                                query__succeeded = ((MR_tag((MR_Word) query__V_81_81)) == (MR_mktag((MR_Integer) 1)));
#line 780 "query.m"
                                                                if (query__succeeded)
#line 780 "query.m"
                                                                  {
#line 780 "query.m"
                                                                    query__ScopeStr_28 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_81_81, (MR_Integer) 0)));
#line 780 "query.m"
                                                                    query__V_82_82 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_81_81, (MR_Integer) 1)));
#line 781 "query.m"
                                                                    query__succeeded = (query__V_82_82 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 781 "query.m"
                                                                    if (query__succeeded)
#line 781 "query.m"
                                                                      {
#line 782 "query.m"
                                                                        {
#line 782 "query.m"
                                                                          query__succeeded = query__string_to_limit_2_p_0(query__LimitStr_25, &query__Limit_29);
                                                                        }
#line 781 "query.m"
                                                                        if (query__succeeded)
#line 781 "query.m"
                                                                          {
#line 783 "query.m"
                                                                            {
#line 783 "query.m"
                                                                              query__succeeded = query__string_to_cost_kind_2_p_0(query__CostKindStr_26, &query__CostKind_30);
                                                                            }
#line 781 "query.m"
                                                                            if (query__succeeded)
#line 781 "query.m"
                                                                              {
#line 784 "query.m"
                                                                                {
#line 784 "query.m"
                                                                                  query__succeeded = query__string_to_incl_desc_2_p_0(query__InclDescStr_27, &query__InclDesc_31);
                                                                                }
#line 781 "query.m"
                                                                                if (query__succeeded)
#line 785 "query.m"
                                                                                  {
#line 785 "query.m"
                                                                                    query__succeeded = query__string_to_scope_2_p_0(query__ScopeStr_28, &query__Scope_32);
                                                                                  }
#line 781 "query.m"
                                                                              }
#line 781 "query.m"
                                                                          }
#line 781 "query.m"
                                                                      }
#line 780 "query.m"
                                                                  }
#line 780 "query.m"
                                                              }
#line 780 "query.m"
                                                          }
#line 780 "query.m"
                                                      }
#line 781 "query.m"
                                                  }
#line 780 "query.m"
                                              }
#line 789 "query.m"
                                            if (query__succeeded)
#line 787 "query.m"
                                              {
#line 787 "query.m"
                                                MR_Word query__Cmd_131;

#line 787 "query.m"
                                                {
#line 787 "query.m"
                                                  query__Cmd_131 = (MR_Word) MR_mkword(MR_mktag(3), MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL));
#line 787 "query.m"
                                                  MR_hl_field(MR_mktag(3), query__Cmd_131, 0) = ((MR_Box) (MR_Word) ((MR_Integer) 7));
#line 787 "query.m"
                                                  MR_hl_field(MR_mktag(3), query__Cmd_131, 1) = ((MR_Box) (query__Limit_29));
#line 787 "query.m"
                                                  MR_hl_field(MR_mktag(3), query__Cmd_131, 2) = ((MR_Box) ((query__CostKind_30 | ((((query__InclDesc_31 << (MR_Integer) 3)) | ((query__Scope_32 << (MR_Integer) 4)))))));
#line 787 "query.m"
                                                }
#line 788 "query.m"
                                                {
#line 788 "query.m"
                                                  query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 788 "query.m"
                                                  MR_hl_field(MR_mktag(1), query__MaybeCmd_4, 0) = ((MR_Box) (query__Cmd_131));
#line 788 "query.m"
                                                }
#line 787 "query.m"
                                              }
#line 789 "query.m"
                                            else
#line 795 "query.m"
                                              {
#line 795 "query.m"
                                                MR_Integer query__PSI_213;
#line 790 "query.m"
                                                MR_String query__V_83_83;
#line 790 "query.m"
                                                MR_Word query__V_84_84;
#line 790 "query.m"
                                                MR_Word query__V_85_85;
#line 790 "query.m"
                                                MR_String query__PSIStr_132;
#line 790 "query.m"
                                                MR_String query__V_283_283;

#line 790 "query.m"
                                                query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 790 "query.m"
                                                if (query__succeeded)
#line 790 "query.m"
                                                  {
#line 790 "query.m"
                                                    query__V_83_83 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 790 "query.m"
                                                    query__V_84_84 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 790 "query.m"
                                                    {
#line 790 "query.m"
                                                      query__V_283_283 = query__cmd_str_static_coverage_0_f_0();
                                                    }
#line 790 "query.m"
                                                    query__succeeded = (strcmp(query__V_83_83, query__V_283_283) == 0);
#line 790 "query.m"
                                                    if (query__succeeded)
#line 790 "query.m"
                                                      {
#line 790 "query.m"
                                                        query__succeeded = ((MR_tag((MR_Word) query__V_84_84)) == (MR_mktag((MR_Integer) 1)));
#line 790 "query.m"
                                                        if (query__succeeded)
#line 790 "query.m"
                                                          {
#line 790 "query.m"
                                                            query__PSIStr_132 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_84_84, (MR_Integer) 0)));
#line 790 "query.m"
                                                            query__V_85_85 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_84_84, (MR_Integer) 1)));
#line 790 "query.m"
                                                            query__succeeded = (query__V_85_85 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 790 "query.m"
                                                            if (query__succeeded)
#line 791 "query.m"
                                                              {
#line 791 "query.m"
                                                                query__succeeded = mercury__string__to_int_2_p_0(query__PSIStr_132, &query__PSI_213);
                                                              }
#line 790 "query.m"
                                                          }
#line 790 "query.m"
                                                      }
#line 790 "query.m"
                                                  }
#line 795 "query.m"
                                                if (query__succeeded)
#line 793 "query.m"
                                                  {
#line 793 "query.m"
                                                    MR_Word query__V_86_86;
#line 793 "query.m"
                                                    MR_Word query__PSPtr_133 = (MR_Word) query__PSI_213;

#line 794 "query.m"
                                                    {
#line 794 "query.m"
                                                      query__V_86_86 = (MR_Word) MR_mkword(MR_mktag(3), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 794 "query.m"
                                                      MR_hl_field(MR_mktag(3), query__V_86_86, 0) = ((MR_Box) (MR_Word) ((MR_Integer) 8));
#line 794 "query.m"
                                                      MR_hl_field(MR_mktag(3), query__V_86_86, 1) = ((MR_Box) (query__PSPtr_133));
#line 794 "query.m"
                                                    }
#line 794 "query.m"
                                                    {
#line 794 "query.m"
                                                      query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 794 "query.m"
                                                      MR_hl_field(MR_mktag(1), query__MaybeCmd_4, 0) = ((MR_Box) (query__V_86_86));
#line 794 "query.m"
                                                    }
#line 793 "query.m"
                                                  }
#line 795 "query.m"
                                                else
#line 801 "query.m"
                                                  {
#line 801 "query.m"
                                                    MR_Integer query__PDI_34;
#line 796 "query.m"
                                                    MR_String query__PDIStr_33;
#line 796 "query.m"
                                                    MR_String query__V_87_87;
#line 796 "query.m"
                                                    MR_Word query__V_88_88;
#line 796 "query.m"
                                                    MR_Word query__V_89_89;
#line 796 "query.m"
                                                    MR_String query__V_284_284;

#line 796 "query.m"
                                                    query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 796 "query.m"
                                                    if (query__succeeded)
#line 796 "query.m"
                                                      {
#line 796 "query.m"
                                                        query__V_87_87 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 796 "query.m"
                                                        query__V_88_88 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 796 "query.m"
                                                        {
#line 796 "query.m"
                                                          query__V_284_284 = query__cmd_str_dynamic_coverage_0_f_0();
                                                        }
#line 796 "query.m"
                                                        query__succeeded = (strcmp(query__V_87_87, query__V_284_284) == 0);
#line 796 "query.m"
                                                        if (query__succeeded)
#line 796 "query.m"
                                                          {
#line 796 "query.m"
                                                            query__succeeded = ((MR_tag((MR_Word) query__V_88_88)) == (MR_mktag((MR_Integer) 1)));
#line 796 "query.m"
                                                            if (query__succeeded)
#line 796 "query.m"
                                                              {
#line 796 "query.m"
                                                                query__PDIStr_33 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_88_88, (MR_Integer) 0)));
#line 796 "query.m"
                                                                query__V_89_89 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_88_88, (MR_Integer) 1)));
#line 796 "query.m"
                                                                query__succeeded = (query__V_89_89 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 796 "query.m"
                                                                if (query__succeeded)
#line 797 "query.m"
                                                                  {
#line 797 "query.m"
                                                                    query__succeeded = mercury__string__to_int_2_p_0(query__PDIStr_33, &query__PDI_34);
                                                                  }
#line 796 "query.m"
                                                              }
#line 796 "query.m"
                                                          }
#line 796 "query.m"
                                                      }
#line 801 "query.m"
                                                    if (query__succeeded)
#line 799 "query.m"
                                                      {
#line 799 "query.m"
                                                        MR_Word query__PDPtr_35 = (MR_Word) query__PDI_34;
#line 799 "query.m"
                                                        MR_Word query__V_90_90;

#line 800 "query.m"
                                                        {
#line 800 "query.m"
                                                          query__V_90_90 = (MR_Word) MR_mkword(MR_mktag(3), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 800 "query.m"
                                                          MR_hl_field(MR_mktag(3), query__V_90_90, 0) = ((MR_Box) (MR_Word) ((MR_Integer) 9));
#line 800 "query.m"
                                                          MR_hl_field(MR_mktag(3), query__V_90_90, 1) = ((MR_Box) (query__PDPtr_35));
#line 800 "query.m"
                                                        }
#line 800 "query.m"
                                                        {
#line 800 "query.m"
                                                          query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 800 "query.m"
                                                          MR_hl_field(MR_mktag(1), query__MaybeCmd_4, 0) = ((MR_Box) (query__V_90_90));
#line 800 "query.m"
                                                        }
#line 799 "query.m"
                                                      }
#line 801 "query.m"
                                                    else
#line 806 "query.m"
                                                      {
#line 802 "query.m"
                                                        MR_String query__V_91_91;
#line 802 "query.m"
                                                        MR_Word query__V_92_92;
#line 802 "query.m"
                                                        MR_String query__V_285_285;

#line 802 "query.m"
                                                        query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 802 "query.m"
                                                        if (query__succeeded)
#line 802 "query.m"
                                                          {
#line 802 "query.m"
                                                            query__V_91_91 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 802 "query.m"
                                                            query__V_92_92 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 802 "query.m"
                                                            {
#line 802 "query.m"
                                                              query__V_285_285 = query__cmd_str_menu_0_f_0();
                                                            }
#line 802 "query.m"
                                                            query__succeeded = (strcmp(query__V_91_91, query__V_285_285) == 0);
#line 802 "query.m"
                                                            if (query__succeeded)
#line 802 "query.m"
                                                              query__succeeded = (query__V_92_92 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 802 "query.m"
                                                          }
#line 806 "query.m"
                                                        if (query__succeeded)
#line 804 "query.m"
                                                          {
#line 805 "query.m"
                                                            query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(1), &query_scalar_common_2[3]);
#line 804 "query.m"
                                                          }
#line 806 "query.m"
                                                        else
#line 813 "query.m"
                                                          {
#line 813 "query.m"
                                                            MR_Integer query__PSI_186;
#line 807 "query.m"
                                                            MR_String query__V_93_93;
#line 807 "query.m"
                                                            MR_Word query__V_94_94;
#line 807 "query.m"
                                                            MR_Word query__V_95_95;
#line 807 "query.m"
                                                            MR_String query__PSIStr_135;
#line 807 "query.m"
                                                            MR_String query__V_286_286;

#line 807 "query.m"
                                                            query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 807 "query.m"
                                                            if (query__succeeded)
#line 807 "query.m"
                                                              {
#line 807 "query.m"
                                                                query__V_93_93 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 807 "query.m"
                                                                query__V_94_94 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 807 "query.m"
                                                                {
#line 807 "query.m"
                                                                  query__V_286_286 = query__cmd_str_dump_proc_static_0_f_0();
                                                                }
#line 807 "query.m"
                                                                query__succeeded = (strcmp(query__V_93_93, query__V_286_286) == 0);
#line 807 "query.m"
                                                                if (query__succeeded)
#line 807 "query.m"
                                                                  {
#line 807 "query.m"
                                                                    query__succeeded = ((MR_tag((MR_Word) query__V_94_94)) == (MR_mktag((MR_Integer) 1)));
#line 807 "query.m"
                                                                    if (query__succeeded)
#line 807 "query.m"
                                                                      {
#line 807 "query.m"
                                                                        query__PSIStr_135 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_94_94, (MR_Integer) 0)));
#line 807 "query.m"
                                                                        query__V_95_95 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_94_94, (MR_Integer) 1)));
#line 807 "query.m"
                                                                        query__succeeded = (query__V_95_95 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 807 "query.m"
                                                                        if (query__succeeded)
#line 808 "query.m"
                                                                          {
#line 808 "query.m"
                                                                            query__succeeded = mercury__string__to_int_2_p_0(query__PSIStr_135, &query__PSI_186);
                                                                          }
#line 807 "query.m"
                                                                      }
#line 807 "query.m"
                                                                  }
#line 807 "query.m"
                                                              }
#line 813 "query.m"
                                                            if (query__succeeded)
#line 810 "query.m"
                                                              {
#line 810 "query.m"
                                                                MR_Word query__Cmd_136;
#line 810 "query.m"
                                                                MR_Word query__PSPtr_137 = (MR_Word) query__PSI_186;

#line 811 "query.m"
                                                                {
#line 811 "query.m"
                                                                  query__Cmd_136 = (MR_Word) MR_mkword(MR_mktag(3), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 811 "query.m"
                                                                  MR_hl_field(MR_mktag(3), query__Cmd_136, 0) = ((MR_Box) (MR_Word) ((MR_Integer) 10));
#line 811 "query.m"
                                                                  MR_hl_field(MR_mktag(3), query__Cmd_136, 1) = ((MR_Box) (query__PSPtr_137));
#line 811 "query.m"
                                                                }
#line 812 "query.m"
                                                                {
#line 812 "query.m"
                                                                  query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 812 "query.m"
                                                                  MR_hl_field(MR_mktag(1), query__MaybeCmd_4, 0) = ((MR_Box) (query__Cmd_136));
#line 812 "query.m"
                                                                }
#line 810 "query.m"
                                                              }
#line 813 "query.m"
                                                            else
#line 820 "query.m"
                                                              {
#line 820 "query.m"
                                                                MR_Integer query__PDI_179;
#line 814 "query.m"
                                                                MR_String query__V_96_96;
#line 814 "query.m"
                                                                MR_Word query__V_97_97;
#line 814 "query.m"
                                                                MR_Word query__V_98_98;
#line 814 "query.m"
                                                                MR_String query__PDIStr_138;
#line 814 "query.m"
                                                                MR_String query__V_287_287;

#line 814 "query.m"
                                                                query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 814 "query.m"
                                                                if (query__succeeded)
#line 814 "query.m"
                                                                  {
#line 814 "query.m"
                                                                    query__V_96_96 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 814 "query.m"
                                                                    query__V_97_97 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 814 "query.m"
                                                                    {
#line 814 "query.m"
                                                                      query__V_287_287 = query__cmd_str_dump_proc_dynamic_0_f_0();
                                                                    }
#line 814 "query.m"
                                                                    query__succeeded = (strcmp(query__V_96_96, query__V_287_287) == 0);
#line 814 "query.m"
                                                                    if (query__succeeded)
#line 814 "query.m"
                                                                      {
#line 814 "query.m"
                                                                        query__succeeded = ((MR_tag((MR_Word) query__V_97_97)) == (MR_mktag((MR_Integer) 1)));
#line 814 "query.m"
                                                                        if (query__succeeded)
#line 814 "query.m"
                                                                          {
#line 814 "query.m"
                                                                            query__PDIStr_138 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_97_97, (MR_Integer) 0)));
#line 814 "query.m"
                                                                            query__V_98_98 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_97_97, (MR_Integer) 1)));
#line 814 "query.m"
                                                                            query__succeeded = (query__V_98_98 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 814 "query.m"
                                                                            if (query__succeeded)
#line 815 "query.m"
                                                                              {
#line 815 "query.m"
                                                                                query__succeeded = mercury__string__to_int_2_p_0(query__PDIStr_138, &query__PDI_179);
                                                                              }
#line 814 "query.m"
                                                                          }
#line 814 "query.m"
                                                                      }
#line 814 "query.m"
                                                                  }
#line 820 "query.m"
                                                                if (query__succeeded)
#line 817 "query.m"
                                                                  {
#line 817 "query.m"
                                                                    MR_Word query__Cmd_139;
#line 817 "query.m"
                                                                    MR_Word query__PDPtr_140 = (MR_Word) query__PDI_179;

#line 818 "query.m"
                                                                    {
#line 818 "query.m"
                                                                      query__Cmd_139 = (MR_Word) MR_mkword(MR_mktag(3), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 818 "query.m"
                                                                      MR_hl_field(MR_mktag(3), query__Cmd_139, 0) = ((MR_Box) (MR_Word) ((MR_Integer) 11));
#line 818 "query.m"
                                                                      MR_hl_field(MR_mktag(3), query__Cmd_139, 1) = ((MR_Box) (query__PDPtr_140));
#line 818 "query.m"
                                                                    }
#line 819 "query.m"
                                                                    {
#line 819 "query.m"
                                                                      query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 819 "query.m"
                                                                      MR_hl_field(MR_mktag(1), query__MaybeCmd_4, 0) = ((MR_Box) (query__Cmd_139));
#line 819 "query.m"
                                                                    }
#line 817 "query.m"
                                                                  }
#line 820 "query.m"
                                                                else
#line 827 "query.m"
                                                                  {
#line 827 "query.m"
                                                                    MR_Integer query__CSSI_37;
#line 821 "query.m"
                                                                    MR_String query__CSSIStr_36;
#line 821 "query.m"
                                                                    MR_String query__V_99_99;
#line 821 "query.m"
                                                                    MR_Word query__V_100_100;
#line 821 "query.m"
                                                                    MR_Word query__V_101_101;
#line 821 "query.m"
                                                                    MR_String query__V_288_288;

#line 821 "query.m"
                                                                    query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 821 "query.m"
                                                                    if (query__succeeded)
#line 821 "query.m"
                                                                      {
#line 821 "query.m"
                                                                        query__V_99_99 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 821 "query.m"
                                                                        query__V_100_100 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 821 "query.m"
                                                                        {
#line 821 "query.m"
                                                                          query__V_288_288 = query__cmd_str_dump_call_site_static_0_f_0();
                                                                        }
#line 821 "query.m"
                                                                        query__succeeded = (strcmp(query__V_99_99, query__V_288_288) == 0);
#line 821 "query.m"
                                                                        if (query__succeeded)
#line 821 "query.m"
                                                                          {
#line 821 "query.m"
                                                                            query__succeeded = ((MR_tag((MR_Word) query__V_100_100)) == (MR_mktag((MR_Integer) 1)));
#line 821 "query.m"
                                                                            if (query__succeeded)
#line 821 "query.m"
                                                                              {
#line 821 "query.m"
                                                                                query__CSSIStr_36 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_100_100, (MR_Integer) 0)));
#line 821 "query.m"
                                                                                query__V_101_101 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_100_100, (MR_Integer) 1)));
#line 821 "query.m"
                                                                                query__succeeded = (query__V_101_101 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 821 "query.m"
                                                                                if (query__succeeded)
#line 822 "query.m"
                                                                                  {
#line 822 "query.m"
                                                                                    query__succeeded = mercury__string__to_int_2_p_0(query__CSSIStr_36, &query__CSSI_37);
                                                                                  }
#line 821 "query.m"
                                                                              }
#line 821 "query.m"
                                                                          }
#line 821 "query.m"
                                                                      }
#line 827 "query.m"
                                                                    if (query__succeeded)
#line 824 "query.m"
                                                                      {
#line 824 "query.m"
                                                                        MR_Word query__CSSPtr_38 = (MR_Word) query__CSSI_37;
#line 824 "query.m"
                                                                        MR_Word query__Cmd_141;

#line 825 "query.m"
                                                                        {
#line 825 "query.m"
                                                                          query__Cmd_141 = (MR_Word) MR_mkword(MR_mktag(3), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 825 "query.m"
                                                                          MR_hl_field(MR_mktag(3), query__Cmd_141, 0) = ((MR_Box) (MR_Word) ((MR_Integer) 12));
#line 825 "query.m"
                                                                          MR_hl_field(MR_mktag(3), query__Cmd_141, 1) = ((MR_Box) (query__CSSPtr_38));
#line 825 "query.m"
                                                                        }
#line 826 "query.m"
                                                                        {
#line 826 "query.m"
                                                                          query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 826 "query.m"
                                                                          MR_hl_field(MR_mktag(1), query__MaybeCmd_4, 0) = ((MR_Box) (query__Cmd_141));
#line 826 "query.m"
                                                                        }
#line 824 "query.m"
                                                                      }
#line 827 "query.m"
                                                                    else
#line 834 "query.m"
                                                                      {
#line 834 "query.m"
                                                                        MR_Integer query__CSDI_40;
#line 828 "query.m"
                                                                        MR_String query__CSDIStr_39;
#line 828 "query.m"
                                                                        MR_String query__V_102_102;
#line 828 "query.m"
                                                                        MR_Word query__V_103_103;
#line 828 "query.m"
                                                                        MR_Word query__V_104_104;
#line 828 "query.m"
                                                                        MR_String query__V_289_289;

#line 828 "query.m"
                                                                        query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 828 "query.m"
                                                                        if (query__succeeded)
#line 828 "query.m"
                                                                          {
#line 828 "query.m"
                                                                            query__V_102_102 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 828 "query.m"
                                                                            query__V_103_103 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 828 "query.m"
                                                                            {
#line 828 "query.m"
                                                                              query__V_289_289 = query__cmd_str_dump_call_site_dynamic_0_f_0();
                                                                            }
#line 828 "query.m"
                                                                            query__succeeded = (strcmp(query__V_102_102, query__V_289_289) == 0);
#line 828 "query.m"
                                                                            if (query__succeeded)
#line 828 "query.m"
                                                                              {
#line 828 "query.m"
                                                                                query__succeeded = ((MR_tag((MR_Word) query__V_103_103)) == (MR_mktag((MR_Integer) 1)));
#line 828 "query.m"
                                                                                if (query__succeeded)
#line 828 "query.m"
                                                                                  {
#line 828 "query.m"
                                                                                    query__CSDIStr_39 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_103_103, (MR_Integer) 0)));
#line 828 "query.m"
                                                                                    query__V_104_104 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_103_103, (MR_Integer) 1)));
#line 828 "query.m"
                                                                                    query__succeeded = (query__V_104_104 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 828 "query.m"
                                                                                    if (query__succeeded)
#line 829 "query.m"
                                                                                      {
#line 829 "query.m"
                                                                                        query__succeeded = mercury__string__to_int_2_p_0(query__CSDIStr_39, &query__CSDI_40);
                                                                                      }
#line 828 "query.m"
                                                                                  }
#line 828 "query.m"
                                                                              }
#line 828 "query.m"
                                                                          }
#line 834 "query.m"
                                                                        if (query__succeeded)
#line 831 "query.m"
                                                                          {
#line 831 "query.m"
                                                                            MR_Word query__CSDPtr_41 = (MR_Word) query__CSDI_40;
#line 831 "query.m"
                                                                            MR_Word query__Cmd_142;

#line 832 "query.m"
                                                                            {
#line 832 "query.m"
                                                                              query__Cmd_142 = (MR_Word) MR_mkword(MR_mktag(3), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 832 "query.m"
                                                                              MR_hl_field(MR_mktag(3), query__Cmd_142, 0) = ((MR_Box) (MR_Word) ((MR_Integer) 13));
#line 832 "query.m"
                                                                              MR_hl_field(MR_mktag(3), query__Cmd_142, 1) = ((MR_Box) (query__CSDPtr_41));
#line 832 "query.m"
                                                                            }
#line 833 "query.m"
                                                                            {
#line 833 "query.m"
                                                                              query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 833 "query.m"
                                                                              MR_hl_field(MR_mktag(1), query__MaybeCmd_4, 0) = ((MR_Box) (query__Cmd_142));
#line 833 "query.m"
                                                                            }
#line 831 "query.m"
                                                                          }
#line 834 "query.m"
                                                                        else
#line 841 "query.m"
                                                                          {
#line 841 "query.m"
                                                                            MR_Integer query__CliqueNum_161;
#line 835 "query.m"
                                                                            MR_String query__V_105_105;
#line 835 "query.m"
                                                                            MR_Word query__V_106_106;
#line 835 "query.m"
                                                                            MR_Word query__V_107_107;
#line 835 "query.m"
                                                                            MR_String query__CliqueNumStr_143;
#line 835 "query.m"
                                                                            MR_String query__V_290_290;

#line 835 "query.m"
                                                                            query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 835 "query.m"
                                                                            if (query__succeeded)
#line 835 "query.m"
                                                                              {
#line 835 "query.m"
                                                                                query__V_105_105 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 835 "query.m"
                                                                                query__V_106_106 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 835 "query.m"
                                                                                {
#line 835 "query.m"
                                                                                  query__V_290_290 = query__cmd_str_dump_raw_clique_0_f_0();
                                                                                }
#line 835 "query.m"
                                                                                query__succeeded = (strcmp(query__V_105_105, query__V_290_290) == 0);
#line 835 "query.m"
                                                                                if (query__succeeded)
#line 835 "query.m"
                                                                                  {
#line 835 "query.m"
                                                                                    query__succeeded = ((MR_tag((MR_Word) query__V_106_106)) == (MR_mktag((MR_Integer) 1)));
#line 835 "query.m"
                                                                                    if (query__succeeded)
#line 835 "query.m"
                                                                                      {
#line 835 "query.m"
                                                                                        query__CliqueNumStr_143 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_106_106, (MR_Integer) 0)));
#line 835 "query.m"
                                                                                        query__V_107_107 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_106_106, (MR_Integer) 1)));
#line 835 "query.m"
                                                                                        query__succeeded = (query__V_107_107 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 835 "query.m"
                                                                                        if (query__succeeded)
#line 836 "query.m"
                                                                                          {
#line 836 "query.m"
                                                                                            query__succeeded = mercury__string__to_int_2_p_0(query__CliqueNumStr_143, &query__CliqueNum_161);
                                                                                          }
#line 835 "query.m"
                                                                                      }
#line 835 "query.m"
                                                                                  }
#line 835 "query.m"
                                                                              }
#line 841 "query.m"
                                                                            if (query__succeeded)
#line 838 "query.m"
                                                                              {
#line 838 "query.m"
                                                                                MR_Word query__Cmd_144;
#line 838 "query.m"
                                                                                MR_Word query__CliquePtr_145 = (MR_Word) query__CliqueNum_161;

#line 839 "query.m"
                                                                                {
#line 839 "query.m"
                                                                                  query__Cmd_144 = (MR_Word) MR_mkword(MR_mktag(3), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 839 "query.m"
                                                                                  MR_hl_field(MR_mktag(3), query__Cmd_144, 0) = ((MR_Box) (MR_Word) ((MR_Integer) 14));
#line 839 "query.m"
                                                                                  MR_hl_field(MR_mktag(3), query__Cmd_144, 1) = ((MR_Box) (query__CliquePtr_145));
#line 839 "query.m"
                                                                                }
#line 840 "query.m"
                                                                                {
#line 840 "query.m"
                                                                                  query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 840 "query.m"
                                                                                  MR_hl_field(MR_mktag(1), query__MaybeCmd_4, 0) = ((MR_Box) (query__Cmd_144));
#line 840 "query.m"
                                                                                }
#line 838 "query.m"
                                                                              }
#line 841 "query.m"
                                                                            else
#line 848 "query.m"
                                                                              {
#line 848 "query.m"
                                                                                MR_Integer query__CSDI_157;
#line 842 "query.m"
                                                                                MR_String query__V_108_108;
#line 842 "query.m"
                                                                                MR_Word query__V_109_109;
#line 842 "query.m"
                                                                                MR_Word query__V_110_110;
#line 842 "query.m"
                                                                                MR_String query__CSDIStr_146;
#line 842 "query.m"
                                                                                MR_String query__V_291_291;

#line 842 "query.m"
                                                                                query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 842 "query.m"
                                                                                if (query__succeeded)
#line 842 "query.m"
                                                                                  {
#line 842 "query.m"
                                                                                    query__V_108_108 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 842 "query.m"
                                                                                    query__V_109_109 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 842 "query.m"
                                                                                    {
#line 842 "query.m"
                                                                                      query__V_291_291 = query__cmd_str_call_site_dynamic_var_use_0_f_0();
                                                                                    }
#line 842 "query.m"
                                                                                    query__succeeded = (strcmp(query__V_108_108, query__V_291_291) == 0);
#line 842 "query.m"
                                                                                    if (query__succeeded)
#line 842 "query.m"
                                                                                      {
#line 842 "query.m"
                                                                                        query__succeeded = ((MR_tag((MR_Word) query__V_109_109)) == (MR_mktag((MR_Integer) 1)));
#line 842 "query.m"
                                                                                        if (query__succeeded)
#line 842 "query.m"
                                                                                          {
#line 842 "query.m"
                                                                                            query__CSDIStr_146 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_109_109, (MR_Integer) 0)));
#line 842 "query.m"
                                                                                            query__V_110_110 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_109_109, (MR_Integer) 1)));
#line 842 "query.m"
                                                                                            query__succeeded = (query__V_110_110 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 842 "query.m"
                                                                                            if (query__succeeded)
#line 843 "query.m"
                                                                                              {
#line 843 "query.m"
                                                                                                query__succeeded = mercury__string__to_int_2_p_0(query__CSDIStr_146, &query__CSDI_157);
                                                                                              }
#line 842 "query.m"
                                                                                          }
#line 842 "query.m"
                                                                                      }
#line 842 "query.m"
                                                                                  }
#line 848 "query.m"
                                                                                if (query__succeeded)
#line 845 "query.m"
                                                                                  {
#line 845 "query.m"
                                                                                    MR_Word query__Cmd_147;
#line 845 "query.m"
                                                                                    MR_Word query__CSDPtr_148 = (MR_Word) query__CSDI_157;

#line 846 "query.m"
                                                                                    {
#line 846 "query.m"
                                                                                      query__Cmd_147 = (MR_Word) MR_mkword(MR_mktag(3), MR_new_object(MR_Word, ((MR_Integer) 2 * sizeof(MR_Word)), NULL, NULL));
#line 846 "query.m"
                                                                                      MR_hl_field(MR_mktag(3), query__Cmd_147, 0) = ((MR_Box) (MR_Word) ((MR_Integer) 15));
#line 846 "query.m"
                                                                                      MR_hl_field(MR_mktag(3), query__Cmd_147, 1) = ((MR_Box) (query__CSDPtr_148));
#line 846 "query.m"
                                                                                    }
#line 847 "query.m"
                                                                                    {
#line 847 "query.m"
                                                                                      query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 847 "query.m"
                                                                                      MR_hl_field(MR_mktag(1), query__MaybeCmd_4, 0) = ((MR_Box) (query__Cmd_147));
#line 847 "query.m"
                                                                                    }
#line 845 "query.m"
                                                                                  }
#line 848 "query.m"
                                                                                else
#line 854 "query.m"
                                                                                  {
#line 854 "query.m"
                                                                                    MR_Integer query__TimeOut_43;
#line 849 "query.m"
                                                                                    MR_String query__TimeOutStr_42;
#line 849 "query.m"
                                                                                    MR_String query__V_111_111;
#line 849 "query.m"
                                                                                    MR_Word query__V_112_112;
#line 849 "query.m"
                                                                                    MR_Word query__V_113_113;
#line 849 "query.m"
                                                                                    MR_String query__V_292_292;

#line 849 "query.m"
                                                                                    query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 849 "query.m"
                                                                                    if (query__succeeded)
#line 849 "query.m"
                                                                                      {
#line 849 "query.m"
                                                                                        query__V_111_111 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 849 "query.m"
                                                                                        query__V_112_112 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 849 "query.m"
                                                                                        {
#line 849 "query.m"
                                                                                          query__V_292_292 = query__cmd_str_timeout_0_f_0();
                                                                                        }
#line 849 "query.m"
                                                                                        query__succeeded = (strcmp(query__V_111_111, query__V_292_292) == 0);
#line 849 "query.m"
                                                                                        if (query__succeeded)
#line 849 "query.m"
                                                                                          {
#line 849 "query.m"
                                                                                            query__succeeded = ((MR_tag((MR_Word) query__V_112_112)) == (MR_mktag((MR_Integer) 1)));
#line 849 "query.m"
                                                                                            if (query__succeeded)
#line 849 "query.m"
                                                                                              {
#line 849 "query.m"
                                                                                                query__TimeOutStr_42 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_112_112, (MR_Integer) 0)));
#line 849 "query.m"
                                                                                                query__V_113_113 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_112_112, (MR_Integer) 1)));
#line 849 "query.m"
                                                                                                query__succeeded = (query__V_113_113 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 849 "query.m"
                                                                                                if (query__succeeded)
#line 850 "query.m"
                                                                                                  {
#line 850 "query.m"
                                                                                                    query__succeeded = mercury__string__to_int_2_p_0(query__TimeOutStr_42, &query__TimeOut_43);
                                                                                                  }
#line 849 "query.m"
                                                                                              }
#line 849 "query.m"
                                                                                          }
#line 849 "query.m"
                                                                                      }
#line 854 "query.m"
                                                                                    if (query__succeeded)
#line 852 "query.m"
                                                                                      {
#line 852 "query.m"
                                                                                        MR_Word query__Cmd_149;

#line 852 "query.m"
                                                                                        {
#line 852 "query.m"
                                                                                          query__Cmd_149 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 852 "query.m"
                                                                                          MR_hl_field(MR_mktag(1), query__Cmd_149, 0) = ((MR_Box) (query__TimeOut_43));
#line 852 "query.m"
                                                                                        }
#line 853 "query.m"
                                                                                        {
#line 853 "query.m"
                                                                                          query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 853 "query.m"
                                                                                          MR_hl_field(MR_mktag(1), query__MaybeCmd_4, 0) = ((MR_Box) (query__Cmd_149));
#line 853 "query.m"
                                                                                        }
#line 852 "query.m"
                                                                                      }
#line 854 "query.m"
                                                                                    else
#line 859 "query.m"
                                                                                      {
#line 855 "query.m"
                                                                                        MR_String query__V_114_114;
#line 855 "query.m"
                                                                                        MR_Word query__V_115_115;
#line 855 "query.m"
                                                                                        MR_String query__V_293_293;

#line 855 "query.m"
                                                                                        query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 855 "query.m"
                                                                                        if (query__succeeded)
#line 855 "query.m"
                                                                                          {
#line 855 "query.m"
                                                                                            query__V_114_114 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 855 "query.m"
                                                                                            query__V_115_115 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 855 "query.m"
                                                                                            {
#line 855 "query.m"
                                                                                              query__V_293_293 = query__cmd_str_restart_0_f_0();
                                                                                            }
#line 855 "query.m"
                                                                                            query__succeeded = (strcmp(query__V_114_114, query__V_293_293) == 0);
#line 855 "query.m"
                                                                                            if (query__succeeded)
#line 855 "query.m"
                                                                                              query__succeeded = (query__V_115_115 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 855 "query.m"
                                                                                          }
#line 859 "query.m"
                                                                                        if (query__succeeded)
#line 857 "query.m"
                                                                                          {
#line 858 "query.m"
                                                                                            query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(1), &query_scalar_common_2[4]);
#line 857 "query.m"
                                                                                          }
#line 859 "query.m"
                                                                                        else
#line 864 "query.m"
                                                                                          {
#line 860 "query.m"
                                                                                            MR_String query__V_116_116;
#line 860 "query.m"
                                                                                            MR_Word query__V_117_117;
#line 860 "query.m"
                                                                                            MR_String query__V_294_294;

#line 860 "query.m"
                                                                                            query__succeeded = ((MR_tag((MR_Word) query__Pieces_5)) == (MR_mktag((MR_Integer) 1)));
#line 860 "query.m"
                                                                                            if (query__succeeded)
#line 860 "query.m"
                                                                                              {
#line 860 "query.m"
                                                                                                query__V_116_116 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 0)));
#line 860 "query.m"
                                                                                                query__V_117_117 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_5, (MR_Integer) 1)));
#line 860 "query.m"
                                                                                                {
#line 860 "query.m"
                                                                                                  query__V_294_294 = query__cmd_str_quit_0_f_0();
                                                                                                }
#line 860 "query.m"
                                                                                                query__succeeded = (strcmp(query__V_116_116, query__V_294_294) == 0);
#line 860 "query.m"
                                                                                                if (query__succeeded)
#line 860 "query.m"
                                                                                                  query__succeeded = (query__V_117_117 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 860 "query.m"
                                                                                              }
#line 864 "query.m"
                                                                                            if (query__succeeded)
#line 862 "query.m"
                                                                                              {
#line 863 "query.m"
                                                                                                query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(1), &query_scalar_common_2[5]);
#line 862 "query.m"
                                                                                              }
#line 864 "query.m"
                                                                                            else
#line 865 "query.m"
                                                                                              query__MaybeCmd_4 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 864 "query.m"
                                                                                          }
#line 859 "query.m"
                                                                                      }
#line 854 "query.m"
                                                                                  }
#line 848 "query.m"
                                                                              }
#line 841 "query.m"
                                                                          }
#line 834 "query.m"
                                                                      }
#line 827 "query.m"
                                                                  }
#line 820 "query.m"
                                                              }
#line 813 "query.m"
                                                          }
#line 806 "query.m"
                                                      }
#line 801 "query.m"
                                                  }
#line 795 "query.m"
                                              }
#line 789 "query.m"
                                          }
#line 779 "query.m"
                                      }
#line 774 "query.m"
                                  }
#line 769 "query.m"
                              }
#line 764 "query.m"
                          }
#line 759 "query.m"
                      }
#line 746 "query.m"
                  }
#line 739 "query.m"
              }
#line 734 "query.m"
          }
#line 727 "query.m"
      }
#line 706 "query.m"
    return query__MaybeCmd_4;
#line 706 "query.m"
  }
#line 66 "query.m"
}

#line 64 "query.m"
MR_Word MR_CALL 
query__string_to_maybe_query_1_f_0(
#line 64 "query.m"
  MR_String query__String_3)
#line 64 "query.m"
{
#line 939 "query.m"
  {
#line 939 "query.m"
    MR_bool query__succeeded;
#line 939 "query.m"
    MR_Word query__MaybeDeepQuery_4;
#line 939 "query.m"
    MR_Word query__MaybeCmdStr_5;
#line 939 "query.m"
    MR_Word query__MaybePrefStr_6;
#line 939 "query.m"
    MR_String query__DeepFileName_7;
#line 946 "query.m"
    MR_Word query__Pieces_19;
#line 952 "query.m"
    MR_String query__DeepFileName0_20;
#line 948 "query.m"
    MR_Word query__V_24_24;

#line 947 "query.m"
    {
#line 947 "query.m"
      util__split_3_p_0(query__String_3, (MR_Char) 38, &query__Pieces_19);
    }
#line 948 "query.m"
    query__succeeded = ((MR_tag((MR_Word) query__Pieces_19)) == (MR_mktag((MR_Integer) 1)));
#line 948 "query.m"
    if (query__succeeded)
#line 948 "query.m"
      {
#line 948 "query.m"
        query__DeepFileName0_20 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_19, (MR_Integer) 0)));
#line 948 "query.m"
        query__V_24_24 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_19, (MR_Integer) 1)));
#line 948 "query.m"
        query__succeeded = (query__V_24_24 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 948 "query.m"
      }
#line 952 "query.m"
    if (query__succeeded)
#line 949 "query.m"
      {
#line 949 "query.m"
        query__MaybeCmdStr_5 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 950 "query.m"
        query__MaybePrefStr_6 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 951 "query.m"
        query__DeepFileName_7 = query__DeepFileName0_20;
#line 949 "query.m"
        query__succeeded = MR_TRUE;
#line 949 "query.m"
      }
#line 952 "query.m"
    else
#line 956 "query.m"
      {
#line 956 "query.m"
        MR_String query__CmdStr_21;
#line 956 "query.m"
        MR_String query__DeepFileName0_32;
#line 952 "query.m"
        MR_Word query__V_25_25;
#line 952 "query.m"
        MR_Word query__V_26_26;

#line 952 "query.m"
        query__succeeded = ((MR_tag((MR_Word) query__Pieces_19)) == (MR_mktag((MR_Integer) 1)));
#line 952 "query.m"
        if (query__succeeded)
#line 952 "query.m"
          {
#line 952 "query.m"
            query__CmdStr_21 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_19, (MR_Integer) 0)));
#line 952 "query.m"
            query__V_25_25 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_19, (MR_Integer) 1)));
#line 952 "query.m"
            query__succeeded = ((MR_tag((MR_Word) query__V_25_25)) == (MR_mktag((MR_Integer) 1)));
#line 952 "query.m"
            if (query__succeeded)
#line 952 "query.m"
              {
#line 952 "query.m"
                query__DeepFileName0_32 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_25_25, (MR_Integer) 0)));
#line 952 "query.m"
                query__V_26_26 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_25_25, (MR_Integer) 1)));
#line 952 "query.m"
                query__succeeded = (query__V_26_26 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 952 "query.m"
              }
#line 952 "query.m"
          }
#line 956 "query.m"
        if (query__succeeded)
#line 953 "query.m"
          {
#line 953 "query.m"
            {
#line 953 "query.m"
              query__MaybeCmdStr_5 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 953 "query.m"
              MR_hl_field(MR_mktag(1), query__MaybeCmdStr_5, 0) = ((MR_Box) (query__CmdStr_21));
#line 953 "query.m"
            }
#line 954 "query.m"
            query__MaybePrefStr_6 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 955 "query.m"
            query__DeepFileName_7 = query__DeepFileName0_32;
#line 953 "query.m"
            query__succeeded = MR_TRUE;
#line 953 "query.m"
          }
#line 956 "query.m"
        else
#line 960 "query.m"
          {
#line 960 "query.m"
            MR_String query__PrefsStr_22;
#line 960 "query.m"
            MR_Word query__V_27_27;
#line 960 "query.m"
            MR_Word query__V_28_28;
#line 960 "query.m"
            MR_Word query__V_29_29;
#line 960 "query.m"
            MR_String query__CmdStr_31;

#line 956 "query.m"
            query__succeeded = ((MR_tag((MR_Word) query__Pieces_19)) == (MR_mktag((MR_Integer) 1)));
#line 956 "query.m"
            if (query__succeeded)
#line 956 "query.m"
              {
#line 956 "query.m"
                query__CmdStr_31 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Pieces_19, (MR_Integer) 0)));
#line 956 "query.m"
                query__V_27_27 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__Pieces_19, (MR_Integer) 1)));
#line 956 "query.m"
                query__succeeded = ((MR_tag((MR_Word) query__V_27_27)) == (MR_mktag((MR_Integer) 1)));
#line 956 "query.m"
                if (query__succeeded)
#line 956 "query.m"
                  {
#line 956 "query.m"
                    query__PrefsStr_22 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_27_27, (MR_Integer) 0)));
#line 956 "query.m"
                    query__V_28_28 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_27_27, (MR_Integer) 1)));
#line 956 "query.m"
                    query__succeeded = ((MR_tag((MR_Word) query__V_28_28)) == (MR_mktag((MR_Integer) 1)));
#line 956 "query.m"
                    if (query__succeeded)
#line 956 "query.m"
                      {
#line 956 "query.m"
                        query__DeepFileName_7 = ((MR_String) (MR_hl_field(MR_mktag(1), query__V_28_28, (MR_Integer) 0)));
#line 956 "query.m"
                        query__V_29_29 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_28_28, (MR_Integer) 1)));
#line 956 "query.m"
                        query__succeeded = (query__V_29_29 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0))));
#line 960 "query.m"
                        if (query__succeeded)
#line 960 "query.m"
                          {
#line 957 "query.m"
                            {
#line 957 "query.m"
                              query__MaybeCmdStr_5 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 957 "query.m"
                              MR_hl_field(MR_mktag(1), query__MaybeCmdStr_5, 0) = ((MR_Box) (query__CmdStr_31));
#line 957 "query.m"
                            }
#line 958 "query.m"
                            {
#line 958 "query.m"
                              query__MaybePrefStr_6 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 958 "query.m"
                              MR_hl_field(MR_mktag(1), query__MaybePrefStr_6, 0) = ((MR_Box) (query__PrefsStr_22));
#line 958 "query.m"
                            }
#line 958 "query.m"
                            query__succeeded = MR_TRUE;
#line 960 "query.m"
                          }
#line 956 "query.m"
                      }
#line 956 "query.m"
                  }
#line 956 "query.m"
              }
#line 960 "query.m"
          }
#line 956 "query.m"
      }
#line 939 "query.m"
    if (query__succeeded)
#line 929 "query.m"
      {
#line 929 "query.m"
        MR_Word query__MaybeCmd_8;
#line 929 "query.m"
        MR_Word query__MaybePreferences_11;
#line 929 "query.m"
        MR_Word query__V_14_14;

#line 926 "query.m"
        if ((query__MaybeCmdStr_5 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 925 "query.m"
          query__MaybeCmd_8 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 926 "query.m"
        else
#line 927 "query.m"
          {
#line 927 "query.m"
            MR_String query__CmdStr_9 = ((MR_String) (MR_hl_field(MR_mktag(1), query__MaybeCmdStr_5, (MR_Integer) 0)));
#line 927 "query.m"
            MR_Word query__V_12_12;
#line 927 "query.m"
            MR_Word query__MaybeCmd_36;

#line 698 "query.m"
            {
#line 698 "query.m"
              query__MaybeCmd_36 = query__string_to_maybe_cmd_1_f_0(query__CmdStr_9);
            }
#line 701 "query.m"
            if ((query__MaybeCmd_36 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 703 "query.m"
              query__V_12_12 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 2));
#line 701 "query.m"
            else
#line 700 "query.m"
              query__V_12_12 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__MaybeCmd_36, (MR_Integer) 0)));
#line 928 "query.m"
            {
#line 928 "query.m"
              query__MaybeCmd_8 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 928 "query.m"
              MR_hl_field(MR_mktag(1), query__MaybeCmd_8, 0) = ((MR_Box) (query__V_12_12));
#line 928 "query.m"
            }
#line 927 "query.m"
          }
#line 933 "query.m"
        if ((query__MaybePrefStr_6 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 935 "query.m"
          query__MaybePreferences_11 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 933 "query.m"
        else
#line 931 "query.m"
          {
#line 931 "query.m"
            MR_String query__PrefStr_10 = ((MR_String) (MR_hl_field(MR_mktag(1), query__MaybePrefStr_6, (MR_Integer) 0)));

#line 932 "query.m"
            {
#line 932 "query.m"
              query__MaybePreferences_11 = query__string_to_maybe_pref_1_f_0(query__PrefStr_10);
            }
#line 931 "query.m"
          }
#line 938 "query.m"
        {
#line 938 "query.m"
          query__V_14_14 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 3 * sizeof(MR_Word)), NULL, NULL);
#line 938 "query.m"
          MR_hl_field(MR_mktag(0), query__V_14_14, 0) = ((MR_Box) (query__MaybeCmd_8));
#line 938 "query.m"
          MR_hl_field(MR_mktag(0), query__V_14_14, 1) = ((MR_Box) (query__DeepFileName_7));
#line 938 "query.m"
          MR_hl_field(MR_mktag(0), query__V_14_14, 2) = ((MR_Box) (query__MaybePreferences_11));
#line 938 "query.m"
        }
#line 937 "query.m"
        {
#line 937 "query.m"
          query__MaybeDeepQuery_4 = (MR_Word) MR_mkword(MR_mktag(1), MR_new_object(MR_Word, ((MR_Integer) 1 * sizeof(MR_Word)), NULL, NULL));
#line 937 "query.m"
          MR_hl_field(MR_mktag(1), query__MaybeDeepQuery_4, 0) = ((MR_Box) (query__V_14_14));
#line 937 "query.m"
        }
#line 929 "query.m"
      }
#line 939 "query.m"
    else
#line 940 "query.m"
      query__MaybeDeepQuery_4 = (MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0));
#line 939 "query.m"
    return query__MaybeDeepQuery_4;
#line 939 "query.m"
  }
#line 64 "query.m"
}

#line 62 "query.m"
MR_String MR_CALL 
query__query_to_string_1_f_0(
#line 62 "query.m"
  MR_Word query__DeepQuery_3)
#line 62 "query.m"
{
#line 903 "query.m"
  {
#line 903 "query.m"
    MR_bool query__succeeded;
#line 903 "query.m"
    MR_String query__String_4;
#line 903 "query.m"
    MR_Word query__Cmd_5;
#line 903 "query.m"
    MR_String query__DeepFileName_6 = ((MR_String) (MR_hl_field(MR_mktag(0), query__DeepQuery_3, (MR_Integer) 1)));
#line 903 "query.m"
    MR_Word query__MaybePreferences_7 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__DeepQuery_3, (MR_Integer) 2)));
#line 903 "query.m"
    MR_String query__PreferencesString_9;
#line 903 "query.m"
    MR_Word query__V_10_10 = ((MR_Word) (MR_hl_field(MR_mktag(0), query__DeepQuery_3, (MR_Integer) 0)));
#line 903 "query.m"
    MR_String query__V_11_11;
#line 903 "query.m"
    MR_String query__V_12_12;
#line 903 "query.m"
    MR_String query__V_13_13;
#line 903 "query.m"
    MR_String query__V_15_15;
#line 903 "query.m"
    MR_String query__V_16_16;
#line 903 "query.m"
    MR_String query__V_17_17;

#line 904 "query.m"
    query__Cmd_5 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__V_10_10, (MR_Integer) 0)));
#line 908 "query.m"
    if ((query__MaybePreferences_7 == ((MR_Word) MR_mkword(MR_mktag(0), MR_mkbody((MR_Integer) 0)))))
#line 910 "query.m"
      query__PreferencesString_9 = (MR_String) "";
#line 908 "query.m"
    else
#line 906 "query.m"
      {
#line 906 "query.m"
        MR_Word query__Preferences_8 = ((MR_Word) (MR_hl_field(MR_mktag(1), query__MaybePreferences_7, (MR_Integer) 0)));

#line 907 "query.m"
        {
#line 907 "query.m"
          query__PreferencesString_9 = query__preferences_to_string_1_f_0(query__Preferences_8);
        }
#line 906 "query.m"
      }
#line 912 "query.m"
    {
#line 912 "query.m"
      query__V_11_11 = query__cmd_to_string_1_f_0(query__Cmd_5);
    }
#line 913 "query.m"
    {
#line 913 "query.m"
      query__V_13_13 = mercury__string__char_to_string_1_f_0((MR_Char) 38);
    }
#line 915 "query.m"
    {
#line 915 "query.m"
      query__V_17_17 = mercury__string__char_to_string_1_f_0((MR_Char) 38);
    }
#line 914 "query.m"
    {
#line 914 "query.m"
      query__V_16_16 = mercury__string__f_43_43_2_f_0(query__V_17_17, query__DeepFileName_6);
    }
#line 913 "query.m"
    {
#line 913 "query.m"
      query__V_15_15 = mercury__string__f_43_43_2_f_0(query__PreferencesString_9, query__V_16_16);
    }
#line 912 "query.m"
    {
#line 912 "query.m"
      query__V_12_12 = mercury__string__f_43_43_2_f_0(query__V_13_13, query__V_15_15);
    }
#line 912 "query.m"
    {
#line 912 "query.m"
      return query__String_4 = mercury__string__f_43_43_2_f_0(query__V_11_11, query__V_12_12);
    }
#line 903 "query.m"
    return query__String_4;
#line 903 "query.m"
  }
#line 62 "query.m"
}

#line 386 "query.m"
static void MR_CALL 
query__try_exec_6_p_0_1(
#line 386 "query.m"
  MR_Box query__closure_arg,
#line 386 "query.m"
  MR_Box * query__wrapper_arg_1,
#line 386 "query.m"
  MR_Box query__wrapper_arg_2,
#line 386 "query.m"
  MR_Box * query__wrapper_arg_3)
#line 386 "query.m"
{
#line 386 "query.m"
  {
#line 386 "query.m"
    MR_Box query__closure = query__closure_arg;
#line 386 "query.m"
    MR_String query__conv0_HTMLStr_10;

#line 386 "query.m"
    {
#line 386 "query.m"
      query__exec_6_p_0(((MR_Word) (MR_hl_field(MR_mktag(0), query__closure, (MR_Integer) 3))), ((MR_Word) (MR_hl_field(MR_mktag(0), query__closure, (MR_Integer) 4))), ((MR_Word) (MR_hl_field(MR_mktag(0), query__closure, (MR_Integer) 5))), &query__conv0_HTMLStr_10);
    }
#line 386 "query.m"
    *query__wrapper_arg_1 = ((MR_Box) (query__conv0_HTMLStr_10));
#line 386 "query.m"
  }
#line 386 "query.m"
}

#line 39 "query.m"
void MR_CALL 
query__try_exec_6_p_0(
#line 39 "query.m"
  MR_Word query__Cmd_7,
#line 39 "query.m"
  MR_Word query__Pref_8,
#line 39 "query.m"
  MR_Word query__Deep_9,
#line 39 "query.m"
  MR_String * query__HTML_10)
#line 39 "query.m"
{
#line 385 "query.m"
  {
#line 385 "query.m"
    MR_bool query__succeeded;
#line 385 "query.m"
    MR_Word query__TypeCtorInfo_42_42;
#line 385 "query.m"
    MR_Word query__Result_12;
#line 385 "query.m"
    MR_Word query__V_24_24;

#line 386 "query.m"
    {
#line 386 "query.m"
      query__V_24_24 = (MR_Word) MR_new_object(MR_Word, ((MR_Integer) 6 * sizeof(MR_Word)), NULL, NULL);
#line 386 "query.m"
      MR_hl_field(MR_mktag(0), query__V_24_24, 0) = ((MR_Box) (&query_scalar_common_3[0]));
#line 386 "query.m"
      MR_hl_field(MR_mktag(0), query__V_24_24, 1) = ((MR_Box) (query__try_exec_6_p_0_1));
#line 386 "query.m"
      MR_hl_field(MR_mktag(0), query__V_24_24, 2) = ((MR_Box) (MR_Word) ((MR_Integer) 3));
#line 386 "query.m"
      MR_hl_field(MR_mktag(0), query__V_24_24, 3) = ((MR_Box) (query__Cmd_7));
#line 386 "query.m"
      MR_hl_field(MR_mktag(0), query__V_24_24, 4) = ((MR_Box) (query__Pref_8));
#line 386 "query.m"
      MR_hl_field(MR_mktag(0), query__V_24_24, 5) = ((MR_Box) (query__Deep_9));
#line 386 "query.m"
    }
#line 19733 "query.c"
    query__TypeCtorInfo_42_42 = (MR_Word) &mercury__builtin__builtin__type_ctor_info_string_0;
#line 386 "query.m"
    {
#line 386 "query.m"
      mercury__exception__try_io_4_p_0(query__TypeCtorInfo_42_42, query__V_24_24, &query__Result_12);
    }
#line 389 "query.m"
    if (((MR_tag((MR_Word) query__Result_12)) == (MR_mktag((MR_Integer) 2))))
#line 390 "query.m"
      {
#line 390 "query.m"
        MR_Word query__Exception_13 = ((MR_Word) (MR_hl_field(MR_mktag(2), query__Result_12, (MR_Integer) 0)));
#line 390 "query.m"
        MR_String query__Msg_15;
#line 390 "query.m"
        MR_String query__V_47_47;
#line 393 "query.m"
        MR_String query__MsgPrime_14;
#line 391 "query.m"
        MR_Box query__conv1_MsgPrime_14;

#line 391 "query.m"
        {
#line 391 "query.m"
          query__succeeded = mercury__univ__univ_to_type_2_p_0(query__TypeCtorInfo_42_42, query__Exception_13, &query__conv1_MsgPrime_14);
        }
#line 391 "query.m"
        if (query__succeeded)
#line 391 "query.m"
          {
#line 391 "query.m"
            query__MsgPrime_14 = ((MR_String) query__conv1_MsgPrime_14);
#line 391 "query.m"
            query__succeeded = MR_TRUE;
#line 391 "query.m"
          }
#line 393 "query.m"
        if (query__succeeded)
#line 392 "query.m"
          query__Msg_15 = query__MsgPrime_14;
#line 393 "query.m"
        else
#line 395 "query.m"
          {
#line 395 "query.m"
            MR_String query__ErrorMsg_16;
#line 393 "query.m"
            MR_Word query__V_26_26;
#line 393 "query.m"
            MR_Box query__conv2_V_26_26;

#line 393 "query.m"
            {
#line 393 "query.m"
              query__succeeded = mercury__univ__univ_to_type_2_p_0((MR_Word) &mercury__exception__exception__type_ctor_info_software_error_0, query__Exception_13, &query__conv2_V_26_26);
            }
#line 393 "query.m"
            if (query__succeeded)
#line 393 "query.m"
              {
#line 393 "query.m"
                query__V_26_26 = ((MR_Word) query__conv2_V_26_26);
#line 393 "query.m"
                query__succeeded = MR_TRUE;
#line 393 "query.m"
              }
#line 393 "query.m"
            if (query__succeeded)
#line 393 "query.m"
              {
#line 393 "query.m"
                query__ErrorMsg_16 = (MR_String) query__V_26_26;
#line 393 "query.m"
                query__succeeded = MR_TRUE;
#line 393 "query.m"
              }
#line 395 "query.m"
            if (query__succeeded)
#line 394 "query.m"
              {
#line 394 "query.m"
                {
#line 394 "query.m"
                  query__Msg_15 = mercury__string__f_43_43_2_f_0((MR_String) "internal software error: ", query__ErrorMsg_16);
                }
#line 394 "query.m"
              }
#line 395 "query.m"
            else
#line 397 "query.m"
              {
#line 397 "query.m"
                MR_String query__DomainMsg_17;
#line 395 "query.m"
                MR_Word query__V_28_28;
#line 395 "query.m"
                MR_Box query__conv3_V_28_28;

#line 395 "query.m"
                {
#line 395 "query.m"
                  query__succeeded = mercury__univ__univ_to_type_2_p_0((MR_Word) &mercury__math__math__type_ctor_info_domain_error_0, query__Exception_13, &query__conv3_V_28_28);
                }
#line 395 "query.m"
                if (query__succeeded)
#line 395 "query.m"
                  {
#line 395 "query.m"
                    query__V_28_28 = ((MR_Word) query__conv3_V_28_28);
#line 395 "query.m"
                    query__succeeded = MR_TRUE;
#line 395 "query.m"
                  }
#line 395 "query.m"
                if (query__succeeded)
#line 395 "query.m"
                  {
#line 395 "query.m"
                    query__DomainMsg_17 = (MR_String) query__V_28_28;
#line 395 "query.m"
                    query__succeeded = MR_TRUE;
#line 395 "query.m"
                  }
#line 397 "query.m"
                if (query__succeeded)
#line 396 "query.m"
                  {
#line 396 "query.m"
                    {
#line 396 "query.m"
                      query__Msg_15 = mercury__string__f_43_43_2_f_0((MR_String) "domain error: ", query__DomainMsg_17);
                    }
#line 396 "query.m"
                  }
#line 397 "query.m"
                else
#line 398 "query.m"
                  query__Msg_15 = (MR_String) "unknown exception";
#line 397 "query.m"
              }
#line 395 "query.m"
          }
#line 19876 "query.c"
        {
#line 19878 "query.c"
          query__V_47_47 = mercury__string__f_43_43_2_f_0(query__Msg_15, (MR_String) "</H3>\n");
        }
#line 19881 "query.c"
        {
#line 19883 "query.c"
          *query__HTML_10 = mercury__string__f_43_43_2_f_0((MR_String) "<H3>AN EXCEPTION HAS OCCURRED: ", query__V_47_47);
        }
#line 390 "query.m"
      }
#line 389 "query.m"
    else
#line 388 "query.m"
      *query__HTML_10 = ((MR_String) (MR_hl_field(MR_mktag(1), query__Result_12, (MR_Integer) 0)));
#line 385 "query.m"
  }
#line 39 "query.m"
}

void mercury__query__init(void)
{
}

void mercury__query__init_type_tables(void)
{
	static MR_bool initialised = MR_FALSE;
	if (initialised) return;
	initialised = MR_TRUE;

	MR_register_type_ctor_info(&query__query__type_ctor_info_alloc_fields_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_box_tables_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_caller_groups_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_callseqs_fields_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_cmd_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_colour_column_groups_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_contour_exclusion_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_cost_kind_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_deep_query_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_descendants_meaningful_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_developer_mode_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_display_limit_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_fields_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_inactive_items_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_inactive_status_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_include_descendants_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_measurement_scope_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_memory_fields_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_module_qual_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_order_criteria_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_port_fields_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_preferences_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_preferences_indication_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_resp_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_summarize_ho_call_sites_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_time_fields_0);
	MR_register_type_ctor_info(&query__query__type_ctor_info_time_format_0);
}

void mercury__query__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 query. */
