#include "run-time.h"

/* Typedefs for referenced classes */

#define  define__KLsimple_object_vectorGVKd(nrepeated) \
  typedef struct { \
    D wrapper; \
    D size_; \
    D vector_element_[nrepeated+1]; \
  } _KLsimple_object_vectorGVKd_##nrepeated;
define__KLsimple_object_vectorGVKd(33);
define__KLsimple_object_vectorGVKd(4);
define__KLsimple_object_vectorGVKd(2);
define__KLsimple_object_vectorGVKd(0);
define__KLsimple_object_vectorGVKd(1);

typedef struct {
  D wrapper;
  D instanceQ_iep_;
  D debug_name_;
  D class_implementation_class_;
  D class_subtype_bit_;
  D class_module_;
} _KLclassGVKd;

#define  define__KLmm_wrapperGVKi(nrepeated) \
  typedef struct { \
    D wrapper; \
    D mm_wrapper_implementation_class_; \
    D mm_wrapper_subtype_mask_; \
    DWORD mm_wrapper_fixed_part_; \
    DWORD mm_wrapper_variable_part_; \
    D mm_wrapper_number_patterns_; \
    DWORD mm_wrapper_pattern_element_[nrepeated+1]; \
  } _KLmm_wrapperGVKi_##nrepeated;
define__KLmm_wrapperGVKi(1);
define__KLmm_wrapperGVKi(0);

typedef struct {
  D wrapper;
  D xep_;
  D function_signature_;
  D mep_;
} _KLsimple_methodGVKe;

typedef struct {
  D wrapper;
  D instanceQ_iep_;
  D debug_name_;
  D class_implementation_class_;
  D class_subtype_bit_;
  D class_module_;
} _KLfunction_classGVKi;

typedef struct {
  D wrapper;
  D head_;
  D tail_;
} _KLempty_listGVKd;

typedef struct {
  D wrapper;
} _KLobjectGVKd;

typedef struct {
  D wrapper;
} _KLunboundGVKe;

typedef struct {
  D wrapper;
} _KLbooleanGVKd;

typedef struct {
  D wrapper;
  D namespace_name_;
  D library_major_version_;
  D library_minor_version_;
  D library_build_count_;
  D used_libraries_;
  D all_used_libraries_;
  D runtime_module_;
  D library_defined_generics_;
  D library_number_static_dispatches_;
  D library_number_dynamic_dispatches_;
} _KLlibraryGVKe;

typedef struct {
  D wrapper;
  D library_major_version_;
  D library_minor_version_;
  D library_build_count_;
  D used_library_;
  D used_library_binding_;
} _KLused_libraryGVKe;

typedef struct {
  D wrapper;
  D symbol_name_;
} _KLsymbolGVKd;

#define  define__KLbyte_stringGVKd(nrepeated) \
  typedef struct { \
    D wrapper; \
    D size_; \
    char string_element_[nrepeated+1]; \
  } _KLbyte_stringGVKd_##nrepeated;
define__KLbyte_stringGVKd(5);
define__KLbyte_stringGVKd(19);

typedef struct {
  D wrapper;
} _KLserious_conditionGVKd;

typedef struct {
  D wrapper;
} _KLerrorGVKd;

typedef struct {
  D wrapper;
  D condition_format_string_;
  D condition_format_arguments_;
} _KLsimple_conditionGVKe;

typedef struct {
  D wrapper;
  D outer_stream_;
  D private_stream_element_type_value_;
  D private_stream_direction_value_;
  D private_stream_lock_value_;
  D Pinner_stream_;
} _KLhtml_wrapper_streamGVenvironment_reports;

typedef struct {
  D wrapper;
  D anchor_name_;
} _KLhtml_anchorGVenvironment_reports;

typedef struct {
  D wrapper;
  D reference_name_;
} _KLhtml_referenceGVenvironment_reports;

typedef struct {
  D wrapper;
  D report_format_;
} _KLreportGVenvironment_reports;

typedef struct {
  D wrapper;
  D report_format_;
  D report_directory_;
} _KLmulti_file_reportGVenvironment_reports;

typedef struct {
  D wrapper;
  D report_format_;
  D report_project_;
} _KLproject_reportGVenvironment_reports;

typedef struct {
  D wrapper;
  D condition_format_string_;
  D condition_format_arguments_;
} _KLreport_errorGVenvironment_reports;

typedef struct {
  D wrapper;
  D report_info_name_;
  D report_info_class_;
  D report_info_title_;
  D report_info_formats_;
  D report_info_multi_fileQ_;
} _KLreport_infoGVenvironment_reports;

typedef struct {
  D wrapper;
  D report_format_;
  D report_project_;
  D report_objects_;
  D report_threads_;
  D report_maximum_contents_;
  D report_describe_depth_;
  D report_show_internal_functionsQ_;
  D report_qualify_namesQ_;
} _KLbug_reportGVenvironment_reports;

typedef struct {
  D wrapper;
  D report_format_;
  D report_project_;
  D visited_;
} _KLdependency_reportGVenvironment_reports;

typedef struct {
  D wrapper;
  D report_format_;
  D report_directory_;
  D report_project_;
  D report_multi_fileQ_;
} _KLnamespace_reportGVenvironment_reports;

typedef struct {
  D wrapper;
  D report_format_;
  D report_directory_;
  D report_project_;
  D report_multi_fileQ_;
  D report_dtd_;
  D report_organization_;
  D report_copyright_;
  D report_version_;
  D report_children_;
  D report_contents_file_;
  D report_object_filenames_;
  D report_anonymous_count_;
} _KLlibrary_reportGVenvironment_reports;

typedef struct {
  D wrapper;
  D report_format_;
  D report_directory_;
  D report_project_;
  D report_multi_fileQ_;
  D report_namespace_;
  D report_parent_;
} _KLmodule_reportGVenvironment_reports;

typedef struct {
  D wrapper;
  D outer_stream_;
  D private_stream_element_type_value_;
  D private_stream_direction_value_;
  D private_stream_lock_value_;
  D Pinner_stream_;
} _KLreport_streamGVenvironment_reports;

typedef struct {
  D wrapper;
  D outer_stream_;
  D private_stream_element_type_value_;
  D private_stream_direction_value_;
  D private_stream_lock_value_;
  D Pinner_stream_;
} _KLtext_report_streamGVenvironment_reports;

typedef struct {
  D wrapper;
  D outer_stream_;
  D private_stream_element_type_value_;
  D private_stream_direction_value_;
  D private_stream_lock_value_;
  D Pinner_stream_;
} _KLrst_report_streamGVenvironment_reports;

typedef struct {
  D wrapper;
  D outer_stream_;
  D private_stream_element_type_value_;
  D private_stream_direction_value_;
  D private_stream_lock_value_;
  D Pinner_stream_;
} _KLhtml_report_streamGVenvironment_reports;

typedef struct {
  D wrapper;
  D outer_stream_;
  D private_stream_element_type_value_;
  D private_stream_direction_value_;
  D private_stream_lock_value_;
  D Pinner_stream_;
} _KLxml_report_streamGVenvironment_reports;

typedef struct {
  D wrapper;
  D report_format_;
  D report_project_;
  D report_qualify_namesQ_;
} _KLprofile_reportGVenvironment_reports;

typedef struct {
  D wrapper;
  D report_format_;
  D report_project_;
  D report_qualify_namesQ_;
} _KLraw_profile_reportGVenvironment_reports;

typedef struct {
  D wrapper;
  D report_format_;
  D report_project_;
  D report_qualify_namesQ_;
} _KLprofile_summary_reportGVenvironment_reports;

typedef struct {
  D wrapper;
  D report_format_;
  D report_project_;
  D report_qualify_namesQ_;
} _KLprofile_call_history_reportGVenvironment_reports;

typedef struct {
  D wrapper;
} _KLprofile_infoGVenvironment_reports;

typedef struct {
  D wrapper;
  D info_threads_;
  D info_count_;
  D info_wall_time_;
  D info_page_faults_;
} _KLprofile_summary_infoGVenvironment_reports;

typedef struct {
  D wrapper;
  D info_thread_;
  D info_objects_;
  D info_count_;
  D info_cpu_time_;
  D info_allocation_;
} _KLprofile_thread_infoGVenvironment_reports;

typedef struct {
  D wrapper;
  D info_count_;
  D info_cpu_time_;
  D info_allocation_;
} _KLprofile_object_infoGVenvironment_reports;

typedef struct {
  D wrapper;
  D info_count_;
  D info_cpu_time_;
  D info_allocation_;
  D info_function_;
} _KLprofile_function_infoGVenvironment_reports;

typedef struct {
  D wrapper;
  D info_count_;
  D info_cpu_time_;
  D info_allocation_;
  D info_class_;
} _KLprofile_class_infoGVenvironment_reports;

typedef struct {
  D wrapper;
  D call_history_root_references_;
  D call_history_total_cpu_time_;
  D call_history_total_wall_time_;
} _KLprofile_call_historyGVenvironment_reports;

typedef struct {
  D wrapper;
  D profile_frame_frame_;
  D profile_frame_references_;
  D profile_frame_start_cpu_time_;
  D profile_frame_start_wall_time_;
  D profile_frame_cpu_time_;
  D profile_frame_wall_time_;
  D profile_frame_allocation_;
} _KLprofile_frame_historyGVenvironment_reports;

typedef struct {
  D wrapper;
  D profile_frame_allocated_class_;
  D profile_frame_source_location_;
} _KLprofile_frame_allocated_classGVenvironment_reports;

typedef struct {
  D wrapper;
  D report_format_;
  D report_project_;
} _KLwarnings_reportGVenvironment_reports;

typedef struct {
  D wrapper;
  D report_format_;
  D report_project_;
  D report_directory_;
} _KLtest_suite_reportGVenvironment_reports;


/* Typedefs for defined classes */


/* Referenced object declarations */

extern _KLclassGVKd KLsimple_object_vectorGVKd;
extern _KLclassGVKd KLclassGVKd;
extern _KLmm_wrapperGVKi_0 KLclassGVKdW;
extern _KLclassGVKd KLmm_wrapperGVKi;
extern _KLmm_wrapperGVKi_1 KLmm_wrapperGVKiW;
extern _KLmm_wrapperGVKi_0 KLsimple_object_vectorGVKdW;
D Kinitialize_class_dispatch_keys_vectoredVKgI (D);
D KdoVKdMM0I (D, D, D);
extern _KLsimple_methodGVKe Kaugment_class_known_jointVKiMM0;
extern _KLfunction_classGVKi KLsimple_methodGVKe;
extern _KLclassGVKd KLfunction_classGVKi;
extern _KLmm_wrapperGVKi_0 KLfunction_classGVKiW;
extern _KLmm_wrapperGVKi_0 KLsimple_methodGVKeW;
extern _KLempty_listGVKd KPempty_listVKi;
extern _KLclassGVKd KLempty_listGVKd;
extern _KLmm_wrapperGVKi_0 KLempty_listGVKdW;
D KPlibrary_version_checkVKeI (D, D);
extern _KLclassGVKd KLobjectGVKd;
extern _KLmm_wrapperGVKi_0 KLobjectGVKdW;
extern _KLunboundGVKe KPunboundVKi;
extern _KLclassGVKd KLunboundGVKe;
extern _KLmm_wrapperGVKi_0 KLunboundGVKeW;
extern _KLbooleanGVKd KPtrueVKi;
extern _KLclassGVKd KLbooleanGVKd;
extern _KLmm_wrapperGVKi_0 KLbooleanGVKdW;
extern _KLbooleanGVKd KPfalseVKi;
extern _KLclassGVKd KLlibraryGVKe;
extern _KLmm_wrapperGVKi_0 KLlibraryGVKeW;
extern _KLsimple_object_vectorGVKd_0 KPempty_vectorVKi;
extern _KLclassGVKd KLused_libraryGVKe;
extern _KLmm_wrapperGVKi_0 KLused_libraryGVKeW;
extern _KLlibraryGVKe Kdylan_libraryYdylan_userVdylan;
extern _KLclassGVKd KLsymbolGVKd;
extern _KLmm_wrapperGVKi_0 KLsymbolGVKdW;
extern _KLclassGVKd KLbyte_stringGVKd;
extern _KLmm_wrapperGVKi_0 KLbyte_stringGVKdW;
extern _KLlibraryGVKe Ksystem_libraryYdylan_userVsystem;
extern _KLlibraryGVKe Kenvironment_protocols_libraryYdylan_userVenvironment_protocols;
extern _KLlibraryGVKe Kenvironment_manager_libraryYdylan_userVenvironment_manager;
extern _KLclassGVKd KLserious_conditionGVKd;
extern _KLmm_wrapperGVKi_0 KLserious_conditionGVKdW;
extern _KLclassGVKd KLerrorGVKd;
extern _KLmm_wrapperGVKi_0 KLerrorGVKdW;
extern _KLclassGVKd KLsimple_conditionGVKe;
extern _KLmm_wrapperGVKi_0 KLsimple_conditionGVKeW;
extern _KLclassGVKd KLhtml_wrapper_streamGVenvironment_reports;
extern _KLclassGVKd KLhtml_anchorGVenvironment_reports;
extern _KLclassGVKd KLhtml_referenceGVenvironment_reports;
extern _KLclassGVKd KLreportGVenvironment_reports;
extern _KLclassGVKd KLmulti_file_reportGVenvironment_reports;
extern _KLclassGVKd KLproject_reportGVenvironment_reports;
extern _KLclassGVKd KLreport_errorGVenvironment_reports;
extern _KLclassGVKd KLreport_infoGVenvironment_reports;
extern _KLclassGVKd KLbug_reportGVenvironment_reports;
extern _KLclassGVKd KLdependency_reportGVenvironment_reports;
extern _KLclassGVKd KLnamespace_reportGVenvironment_reports;
extern _KLclassGVKd KLlibrary_reportGVenvironment_reports;
extern _KLclassGVKd KLmodule_reportGVenvironment_reports;
extern _KLclassGVKd KLreport_streamGVenvironment_reports;
extern _KLclassGVKd KLtext_report_streamGVenvironment_reports;
extern _KLclassGVKd KLrst_report_streamGVenvironment_reports;
extern _KLclassGVKd KLhtml_report_streamGVenvironment_reports;
extern _KLclassGVKd KLxml_report_streamGVenvironment_reports;
extern _KLclassGVKd KLprofile_reportGVenvironment_reports;
extern _KLclassGVKd KLraw_profile_reportGVenvironment_reports;
extern _KLclassGVKd KLprofile_summary_reportGVenvironment_reports;
extern _KLclassGVKd KLprofile_call_history_reportGVenvironment_reports;
extern _KLclassGVKd KLprofile_infoGVenvironment_reports;
extern _KLclassGVKd KLprofile_summary_infoGVenvironment_reports;
extern _KLclassGVKd KLprofile_thread_infoGVenvironment_reports;
extern _KLclassGVKd KLprofile_object_infoGVenvironment_reports;
extern _KLclassGVKd KLprofile_function_infoGVenvironment_reports;
extern _KLclassGVKd KLprofile_class_infoGVenvironment_reports;
extern _KLclassGVKd KLprofile_call_historyGVenvironment_reports;
extern _KLclassGVKd KLprofile_frame_historyGVenvironment_reports;
extern _KLclassGVKd KLprofile_frame_allocated_classGVenvironment_reports;
extern _KLclassGVKd KLwarnings_reportGVenvironment_reports;
extern _KLclassGVKd KLtest_suite_reportGVenvironment_reports;

/* Defined object declarations */

static _KLsimple_object_vectorGVKd_2 K1;
static _KLsimple_object_vectorGVKd_2 K2;
extern _KLlibraryGVKe Kenvironment_reports_libraryYdylan_userVenvironment_reports;
static _KLbyte_stringGVKd_19 K6;
static _KLsimple_object_vectorGVKd_4 K7;
static _KLused_libraryGVKe K8;
static _KLused_libraryGVKe K9;
static _KLused_libraryGVKe K10;
static _KLused_libraryGVKe K11;
static _KLsymbolGVKd KJtight_;
static _KLbyte_stringGVKd_5 K13;
static _KLsimple_object_vectorGVKd_1 K14;
static _KLsimple_object_vectorGVKd_33 K15;

/* Indirection variables */

static D IKJtight_ = &KJtight_;

/* Variables */

D environment_reports_libraryYdylan_userVenvironment_reports = &Kenvironment_reports_libraryYdylan_userVenvironment_reports;

/* Objects */

static _KLsimple_object_vectorGVKd_2 K1 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 9,
  &K14,
  &K14
};

static _KLsimple_object_vectorGVKd_2 K2 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 9,
  &KLserious_conditionGVKd,
  &KLerrorGVKd
};

_KLlibraryGVKe Kenvironment_reports_libraryYdylan_userVenvironment_reports = {
  &KLlibraryGVKeW /* wrapper */,
  &K6,
  (D) 9,
  (D) 5,
  (D) 128604853,
  &K7,
  &KPempty_vectorVKi,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (D) 2941,
  (D) 2749
};

static _KLbyte_stringGVKd_19 K6 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 77,
  "environment-reports"
};

static _KLsimple_object_vectorGVKd_4 K7 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 17,
  &K8,
  &K9,
  &K10,
  &K11
};

static _KLused_libraryGVKe K8 = {
  &KLused_libraryGVKeW /* wrapper */,
  (D) 9,
  (D) 5,
  (D) 128596981,
  &Kenvironment_manager_libraryYdylan_userVenvironment_manager,
  &KJtight_
};

static _KLused_libraryGVKe K9 = {
  &KLused_libraryGVKeW /* wrapper */,
  (D) 9,
  (D) 5,
  (D) 128312085,
  &Kenvironment_protocols_libraryYdylan_userVenvironment_protocols,
  &KJtight_
};

static _KLused_libraryGVKe K10 = {
  &KLused_libraryGVKeW /* wrapper */,
  (D) 9,
  (D) 5,
  (D) 128323797,
  &Ksystem_libraryYdylan_userVsystem,
  &KJtight_
};

static _KLused_libraryGVKe K11 = {
  &KLused_libraryGVKeW /* wrapper */,
  (D) 9,
  (D) 5,
  (D) 128132821,
  &Kdylan_libraryYdylan_userVdylan,
  &KJtight_
};

static _KLsymbolGVKd KJtight_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K13
};

static _KLbyte_stringGVKd_5 K13 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 21,
  "tight"
};

static _KLsimple_object_vectorGVKd_1 K14 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 5,
  &KLsimple_conditionGVKe
};

static _KLsimple_object_vectorGVKd_33 K15 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 133,
  &KLhtml_wrapper_streamGVenvironment_reports,
  &KLhtml_anchorGVenvironment_reports,
  &KLhtml_referenceGVenvironment_reports,
  &KLreportGVenvironment_reports,
  &KLmulti_file_reportGVenvironment_reports,
  &KLproject_reportGVenvironment_reports,
  &KLreport_errorGVenvironment_reports,
  &KLreport_infoGVenvironment_reports,
  &KLbug_reportGVenvironment_reports,
  &KLdependency_reportGVenvironment_reports,
  &KLnamespace_reportGVenvironment_reports,
  &KLlibrary_reportGVenvironment_reports,
  &KLmodule_reportGVenvironment_reports,
  &KLreport_streamGVenvironment_reports,
  &KLtext_report_streamGVenvironment_reports,
  &KLrst_report_streamGVenvironment_reports,
  &KLhtml_report_streamGVenvironment_reports,
  &KLxml_report_streamGVenvironment_reports,
  &KLprofile_reportGVenvironment_reports,
  &KLraw_profile_reportGVenvironment_reports,
  &KLprofile_summary_reportGVenvironment_reports,
  &KLprofile_call_history_reportGVenvironment_reports,
  &KLprofile_infoGVenvironment_reports,
  &KLprofile_summary_infoGVenvironment_reports,
  &KLprofile_thread_infoGVenvironment_reports,
  &KLprofile_object_infoGVenvironment_reports,
  &KLprofile_function_infoGVenvironment_reports,
  &KLprofile_class_infoGVenvironment_reports,
  &KLprofile_call_historyGVenvironment_reports,
  &KLprofile_frame_historyGVenvironment_reports,
  &KLprofile_frame_allocated_classGVenvironment_reports,
  &KLwarnings_reportGVenvironment_reports,
  &KLtest_suite_reportGVenvironment_reports
};

/* Code */


/* SYSTEM INIT CODE */

void _Init_environment_reports__X_library_for_system () {
  extern D KPresolve_symbolVKiI(D);
  {
    D T0;

    T0 = KPresolve_symbolVKiI(&KJtight_);
    if (T0 != &KJtight_) {
      primitive_slot_value_setter(T0, &K8, 4);
      primitive_slot_value_setter(T0, &K9, 4);
      primitive_slot_value_setter(T0, &K10, 4);
      primitive_slot_value_setter(T0, &K11, 4);
    }
  }
  return;
}

/* USER INIT CODE */

void _Init_environment_reports__X_library_for_user () {
{
  _KLsimple_object_vectorGVKd_1 T0 = {&KLsimple_object_vectorGVKdW, (D) 5};
  D T1;

  Kinitialize_class_dispatch_keys_vectoredVKgI(&K15);
  T0.vector_element_[0] = &K1;
  T1 = KdoVKdMM0I(&Kaugment_class_known_jointVKiMM0, &K2, &T0);
  goto I0;
}
I0:

{
  D T0;

  T0 = &KPfalseVKi;
  goto I3;
}
I3:

{
  D T0;
  D T1;

  // /Users/bruce/Development/dylan/opendylan/sources/environment/reports/library.dylan:9
  T0 = primitive_runtime_module_handle();
  // /Users/bruce/Development/dylan/opendylan/sources/environment/reports/library.dylan:9
  T1 = KPlibrary_version_checkVKeI(&Kenvironment_reports_libraryYdylan_userVenvironment_reports, T0);
  goto I4;
}
I4:

  return;
}


/* eof */
