#include "opendylan/run-time.h"

/* Generated by Open Dylan 2014.1 for x86_64-linux */

/* Typedefs for referenced classes */

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

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

typedef struct {
  dylan_value wrapper;
} _KLobjectGVKd;

typedef struct {
  dylan_value wrapper;
} _KLunboundGVKe;

typedef struct {
  dylan_value wrapper;
} _KLbooleanGVKd;

typedef struct {
  dylan_value wrapper;
  dylan_value namespace_name_;
  dylan_value home_library_;
} _KLmoduleGVKe;

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

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

#define  define__KLsimple_object_vectorGVKd(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value size_; \
    dylan_value vector_element_[nrepeated+1]; \
  } _KLsimple_object_vectorGVKd_##nrepeated;
define__KLsimple_object_vectorGVKd(3);
define__KLsimple_object_vectorGVKd(8);
define__KLsimple_object_vectorGVKd(0);

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

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

typedef struct {
  dylan_value wrapper;
  dylan_value mangler_;
  dylan_value lambda_stream_;
} _KLc_back_endGVdfmc_c_back_end;

typedef struct {
  dylan_value wrapper;
  dylan_value ref_temp_;
  dylan_value ref_index_;
  dylan_value lhsQ_;
} _KLmultiple_value_temporary_referenceGVdfmc_c_back_end;

typedef struct {
  dylan_value wrapper;
  dylan_value addr_temporary_;
} _KLaddress_of_temporaryGVdfmc_c_back_end;


/* Typedefs for defined classes */


/* Referenced object declarations */

dylan_value Kinitialize_class_dispatch_keys_vectoredVKgI (dylan_value);
dylan_value KPlibrary_version_checkVKeI (dylan_value, dylan_value);
extern _KLclassGVKd KLclassGVKd;
extern _KLmm_wrapperGVKi_0 KLclassGVKdW;
extern _KLclassGVKd KLmm_wrapperGVKi;
extern _KLmm_wrapperGVKi_1 KLmm_wrapperGVKiW;
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 KLmoduleGVKe;
extern _KLmm_wrapperGVKi_0 KLmoduleGVKeW;
extern _KLclassGVKd KLbyte_stringGVKd;
extern _KLmm_wrapperGVKi_0 KLbyte_stringGVKdW;
extern _KLclassGVKd KLlibraryGVKe;
extern _KLmm_wrapperGVKi_0 KLlibraryGVKeW;
extern _KLsimple_object_vectorGVKd_0 KPempty_vectorVKi;
extern _KLclassGVKd KLsimple_object_vectorGVKd;
extern _KLmm_wrapperGVKi_0 KLsimple_object_vectorGVKdW;
extern _KLclassGVKd KLused_libraryGVKe;
extern _KLmm_wrapperGVKi_0 KLused_libraryGVKeW;
extern _KLlibraryGVKe Kbig_integers_libraryYdylan_userVbig_integers;
extern _KLclassGVKd KLsymbolGVKd;
extern _KLmm_wrapperGVKi_0 KLsymbolGVKdW;
extern _KLlibraryGVKe Kcommon_dylan_libraryYdylan_userVcommon_dylan;
extern _KLlibraryGVKe Kio_libraryYdylan_userVio;
extern _KLlibraryGVKe Kdfmc_core_libraryYdylan_userVdfmc_core;
extern _KLlibraryGVKe Kdfmc_back_end_libraryYdylan_userVdfmc_back_end;
extern _KLlibraryGVKe Kdfmc_reader_libraryYdylan_userVdfmc_reader;
extern _KLlibraryGVKe Kdfmc_conversion_libraryYdylan_userVdfmc_conversion;
extern _KLlibraryGVKe Kdfmc_typist_libraryYdylan_userVdfmc_typist;
extern _KLclassGVKd KLc_back_endGVdfmc_c_back_end;
extern _KLclassGVKd KLmultiple_value_temporary_referenceGVdfmc_c_back_end;
extern _KLclassGVKd KLaddress_of_temporaryGVdfmc_c_back_end;

/* Defined object declarations */

extern _KLlibraryGVKe Kdfmc_c_back_end_libraryYdylan_userVdfmc_c_back_end;
extern _KLmoduleGVKe Kdfmc_c_back_end_moduleYdylan_userVdfmc_c_back_end;
static _KLbyte_stringGVKd_15 K5;
static _KLsimple_object_vectorGVKd_8 K6;
static _KLused_libraryGVKe K7;
static _KLused_libraryGVKe K8;
static _KLused_libraryGVKe K9;
static _KLused_libraryGVKe K10;
static _KLused_libraryGVKe K11;
static _KLused_libraryGVKe K12;
static _KLused_libraryGVKe K13;
static _KLused_libraryGVKe K14;
static _KLsymbolGVKd KJtight_;
static _KLbyte_stringGVKd_5 K16;
static _KLsimple_object_vectorGVKd_3 K17;

/* Indirection variables */

static dylan_value IKJtight_ = &KJtight_;

/* Variables */

dylan_value dfmc_c_back_end_moduleYdylan_userVdfmc_c_back_end = &Kdfmc_c_back_end_moduleYdylan_userVdfmc_c_back_end;
dylan_value dfmc_c_back_end_libraryYdylan_userVdfmc_c_back_end = &Kdfmc_c_back_end_libraryYdylan_userVdfmc_c_back_end;

/* Objects */

_KLlibraryGVKe Kdfmc_c_back_end_libraryYdylan_userVdfmc_c_back_end = {
  &KLlibraryGVKeW /* wrapper */,
  &K5,
  (dylan_value) 1,
  (dylan_value) 1,
  (dylan_value) 239100137,
  &K6,
  &KPempty_vectorVKi,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (dylan_value) 2205,
  (dylan_value) 2089
};

_KLmoduleGVKe Kdfmc_c_back_end_moduleYdylan_userVdfmc_c_back_end = {
  &KLmoduleGVKeW /* wrapper */,
  &K5,
  &Kdfmc_c_back_end_libraryYdylan_userVdfmc_c_back_end
};

static _KLbyte_stringGVKd_15 K5 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 61,
  "dfmc-c-back-end"
};

static _KLsimple_object_vectorGVKd_8 K6 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 33,
  &K7,
  &K8,
  &K9,
  &K10,
  &K11,
  &K12,
  &K13,
  &K14
};

static _KLused_libraryGVKe K7 = {
  &KLused_libraryGVKeW /* wrapper */,
  (dylan_value) 1,
  (dylan_value) 1,
  (dylan_value) 238714473,
  &Kdfmc_typist_libraryYdylan_userVdfmc_typist,
  &KJtight_
};

static _KLused_libraryGVKe K8 = {
  &KLused_libraryGVKeW /* wrapper */,
  (dylan_value) 1,
  (dylan_value) 1,
  (dylan_value) 238750281,
  &Kdfmc_conversion_libraryYdylan_userVdfmc_conversion,
  &KJtight_
};

static _KLused_libraryGVKe K9 = {
  &KLused_libraryGVKeW /* wrapper */,
  (dylan_value) 1,
  (dylan_value) 1,
  (dylan_value) 238254345,
  &Kdfmc_reader_libraryYdylan_userVdfmc_reader,
  &KJtight_
};

static _KLused_libraryGVKe K10 = {
  &KLused_libraryGVKeW /* wrapper */,
  (dylan_value) 1,
  (dylan_value) 1,
  (dylan_value) 238958345,
  &Kdfmc_back_end_libraryYdylan_userVdfmc_back_end,
  &KJtight_
};

static _KLused_libraryGVKe K11 = {
  &KLused_libraryGVKeW /* wrapper */,
  (dylan_value) 1,
  (dylan_value) 1,
  (dylan_value) 238706345,
  &Kdfmc_core_libraryYdylan_userVdfmc_core,
  &KJtight_
};

static _KLused_libraryGVKe K12 = {
  &KLused_libraryGVKeW /* wrapper */,
  (dylan_value) 9,
  (dylan_value) 5,
  (dylan_value) 237568009,
  &Kio_libraryYdylan_userVio,
  &KJtight_
};

static _KLused_libraryGVKe K13 = {
  &KLused_libraryGVKeW /* wrapper */,
  (dylan_value) 1,
  (dylan_value) 1,
  (dylan_value) 237613737,
  &Kcommon_dylan_libraryYdylan_userVcommon_dylan,
  &KJtight_
};

static _KLused_libraryGVKe K14 = {
  &KLused_libraryGVKeW /* wrapper */,
  (dylan_value) 9,
  (dylan_value) 5,
  (dylan_value) 238238345,
  &Kbig_integers_libraryYdylan_userVbig_integers,
  &KJtight_
};

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

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

static _KLsimple_object_vectorGVKd_3 K17 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 13,
  &KLc_back_endGVdfmc_c_back_end,
  &KLmultiple_value_temporary_referenceGVdfmc_c_back_end,
  &KLaddress_of_temporaryGVdfmc_c_back_end
};

/* Code */


/* SYSTEM INIT CODE */

void _Init_dfmc_c_back_end__X_c_back_end_library_for_system () {
  extern dylan_value KPresolve_symbolVKiI(dylan_value);
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJtight_);
    if (T0 != &KJtight_) {
      primitive_slot_value_setter(T0, &K7, 4);
      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);
      primitive_slot_value_setter(T0, &K12, 4);
      primitive_slot_value_setter(T0, &K13, 4);
      primitive_slot_value_setter(T0, &K14, 4);
    }
  }
  return;
}

/* USER INIT CODE */

void _Init_dfmc_c_back_end__X_c_back_end_library_for_user () {
{
  dylan_value T0;

  T0 = Kinitialize_class_dispatch_keys_vectoredVKgI(&K17);
  goto I0;
}
I0:

{
  dylan_value T0;

  T0 = &KPfalseVKi;
  goto I1;
}
I1:

{
  dylan_value T0;
  dylan_value T1;

  // /home/bruce/Development/dylan/opendylan/sources/dfmc/c-back-end/c-back-end-library.dylan:7
  T0 = primitive_runtime_module_handle();
  // /home/bruce/Development/dylan/opendylan/sources/dfmc/c-back-end/c-back-end-library.dylan:7
  T1 = KPlibrary_version_checkVKeI(&Kdfmc_c_back_end_libraryYdylan_userVdfmc_c_back_end, T0);
  goto I2;
}
I2:

  return;
}


/* eof */
