#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 xep_;
  dylan_value function_signature_;
  dylan_value Pgf_cache_;
  dylan_value debug_name_;
  dylan_value generic_function_methods_;
  dylan_value discriminator_;
} _KLsealed_generic_functionGVKe;

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;
  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;

typedef struct {
  dylan_value wrapper;
} _KLbooleanGVKd;

typedef struct {
  dylan_value wrapper;
} _KLobjectGVKd;

typedef struct {
  dylan_value wrapper;
} _KLunboundGVKe;

typedef struct {
  dylan_value wrapper;
  dylan_value xep_;
  dylan_value function_signature_;
  dylan_value Pgf_cache_;
  dylan_value debug_name_;
  dylan_value generic_function_methods_;
  dylan_value discriminator_;
  dylan_value incremental_gf_module_;
  dylan_value incremental_gf_domain_info_;
  dylan_value incremental_gf_method_libraries_;
  dylan_value incremental_gf_properties_;
} _KLincremental_generic_functionGVKe;

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_;
} _KLfunction_classGVKi;

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

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

typedef struct {
  dylan_value wrapper;
  dylan_value signature_properties_;
  dylan_value signature_required_;
} _KLsignatureGVKe;

#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(1);

typedef struct {
  dylan_value wrapper;
  dylan_value private_shadowable_form_init_method_;
  dylan_value private_shadowable_form_system_init_method_;
  dylan_value shadowable_form_properties_flags_;
  dylan_value form_compilation_record_;
  dylan_value private_form_source_location_;
  dylan_value private_form_parent_form_;
  dylan_value form_sequence_number_;
  dylan_value private_form_dependencies_;
  dylan_value private_form_referenced_variables_;
  dylan_value private_form_adjectives_;
  dylan_value private_form_variable_name_or_names_;
  dylan_value form_properties_;
  dylan_value form_shared_symbols_;
} _KLshared_symbols_definitionGVdfmc_definitions;


/* Typedefs for defined classes */


/* Referenced object declarations */

dylan_value KPadd_a_methodVKnI (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLsealed_generic_functionGVKe Kcompute_and_install_form_model_objectsVdfmc_common;
extern _KLclassGVKd KLsealed_generic_functionGVKe;
extern _KLclassGVKd KLclassGVKd;
extern _KLmm_wrapperGVKi_0 KLclassGVKdW;
extern _KLclassGVKd KLmm_wrapperGVKi;
extern _KLmm_wrapperGVKi_1 KLmm_wrapperGVKiW;
extern _KLmm_wrapperGVKi_0 KLsealed_generic_functionGVKeW;
extern _KLlibraryGVKe Kdfmc_conversion_libraryYdylan_userVdfmc_conversion;
extern _KLclassGVKd KLlibraryGVKe;
extern _KLmm_wrapperGVKi_0 KLlibraryGVKeW;
extern _KLbooleanGVKd KPfalseVKi;
extern _KLclassGVKd KLbooleanGVKd;
extern _KLmm_wrapperGVKi_0 KLbooleanGVKdW;
extern _KLclassGVKd KLobjectGVKd;
extern _KLmm_wrapperGVKi_0 KLobjectGVKdW;
extern _KLunboundGVKe KPunboundVKi;
extern _KLclassGVKd KLunboundGVKe;
extern _KLmm_wrapperGVKi_0 KLunboundGVKeW;
extern _KLbooleanGVKd KPtrueVKi;
extern _KLsealed_generic_functionGVKe Kform_dynamicQVdfmc_common;
extern _KLincremental_generic_functionGVKe Kforward_iteration_protocolVKd;
extern _KLfunction_classGVKi KLincremental_generic_functionGVKe;
extern _KLclassGVKd KLfunction_classGVKi;
extern _KLmm_wrapperGVKi_0 KLfunction_classGVKiW;
extern _KLmm_wrapperGVKi_0 KLincremental_generic_functionGVKeW;
extern _KLsealed_generic_functionGVKe Kmodel_definition_setterVdfmc_common;
extern _KLsealed_generic_functionGVKe Kform_variable_nameVdfmc_common;
dylan_value Kmake_compile_time_literalVdfmc_modelingMM8I (dylan_value);
extern _KLempty_listGVKd KPempty_listVKi;
extern _KLclassGVKd KLempty_listGVKd;
extern _KLmm_wrapperGVKi_0 KLempty_listGVKdW;
dylan_value Kdefine_model_objectVdfmc_namespaceMM0I (dylan_value, dylan_value);
extern _KLfunction_classGVKi KLsimple_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLsimple_methodGVKeW;
extern _KLclassGVKd KLsignatureGVKe;
extern _KLmm_wrapperGVKi_0 KLsignatureGVKeW;
extern _KLclassGVKd KLsimple_object_vectorGVKd;
extern _KLmm_wrapperGVKi_0 KLsimple_object_vectorGVKdW;
extern _KLclassGVKd KLshared_symbols_definitionGVdfmc_definitions;
extern _KLmm_wrapperGVKi_0 KLshared_symbols_definitionGVdfmc_definitionsW;

/* Defined object declarations */

extern _KLsimple_methodGVKe Kcompute_and_install_form_model_objectsVdfmc_commonMdfmc_conversionM8;
dylan_value Kcompute_and_install_form_model_objectsVdfmc_commonMdfmc_conversionM8I (dylan_value);
static _KLsignatureGVKe K3;
static _KLsimple_object_vectorGVKd_1 K4;

/* Indirection variables */


/* Variables */


/* Objects */

_KLsimple_methodGVKe Kcompute_and_install_form_model_objectsVdfmc_commonMdfmc_conversionM8 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K3,
  &Kcompute_and_install_form_model_objectsVdfmc_commonMdfmc_conversionM8I
};

static _KLsignatureGVKe K3 = {
  &KLsignatureGVKeW /* wrapper */,
  (dylan_value) 41943045,
  &K4
};

static _KLsimple_object_vectorGVKd_1 K4 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &KLshared_symbols_definitionGVdfmc_definitions
};

/* Code */

dylan_value Kcompute_and_install_form_model_objectsVdfmc_commonMdfmc_conversionM8I (dylan_value form_) {
  dylan_value T2;
  dylan_value T3;
  dylan_value T4;
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9T, T9;
  dylan_value T10;
  dylan_value T11;
  dylan_value T12;
  dylan_value T13;
  dylan_value T14;
  dylan_value T15;
  dylan_value T16;
  dylan_value T17;
  dylan_value T18;

  // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:12
  // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:14
  CONGRUENT_CALL_PROLOG(&Kform_dynamicQVdfmc_common, 1);
  T2 = CONGRUENT_CALL1(form_);
  // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:14
  if (T2 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:14
    T15 = &KPfalseVKi;
    T16 = T15;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:15
    T17 = SLOT_VALUE_INITD(form_, 12);
    // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:15
    CONGRUENT_CALL_PROLOG(&Kforward_iteration_protocolVKd, 1);
    T3 = CONGRUENT_CALL1(T17);
    // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:15
    T4 = T3;
    // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:15
    T5 = MV_GET_ELT(1);
;
    // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:15
    T6 = MV_GET_ELT(2);
;
    // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:15
    T7 = MV_GET_ELT(3);
;
    // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:15
    T8 = MV_GET_ELT(5);
;
    // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:15
    T9T = T4;
  L0: ;
      // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:15
      T9 = T9T;
      // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:15
      T10 = CALL3(T7, T17, T9, T5);
      // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:15
      if (T10 == &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:15
        T11 = CALL2(T8, T17, T9);
        // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:16
        CONGRUENT_CALL_PROLOG(&Kmodel_definition_setterVdfmc_common, 2);
        CONGRUENT_CALL2(form_, T11);
        // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:15
        T12 = CALL2(T6, T17, T9);
        // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:15
        T9T = T12;
        goto L0;
      }
      // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:15
      // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:15
    // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:19
    CONGRUENT_CALL_PROLOG(&Kform_variable_nameVdfmc_common, 1);
    T13 = CONGRUENT_CALL1(form_);
    // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:19
    T18 = Kmake_compile_time_literalVdfmc_modelingMM8I((dylan_value) 1);
    // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:18
    T14 = Kdefine_model_objectVdfmc_namespaceMM0I(T13, T18);
    T16 = T14;
  }
  // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:14
  // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:12
  MV_SET_COUNT(0);
  return(T16);
}


/* SYSTEM INIT CODE */

void _Init_dfmc_conversion__X_define_shared_symbols_for_system () {
  extern dylan_value KPresolve_symbolVKiI(dylan_value);
  return;
}

/* USER INIT CODE */

void _Init_dfmc_conversion__X_define_shared_symbols_for_user () {
{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/dfmc/conversion/define-shared-symbols.dylan:12
  T0 = KPadd_a_methodVKnI(&Kcompute_and_install_form_model_objectsVdfmc_common, &Kcompute_and_install_form_model_objectsVdfmc_commonMdfmc_conversionM8, &Kdfmc_conversion_libraryYdylan_userVdfmc_conversion, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I2;
}
I2:

  return;
}


/* eof */
