#include "run-time.h"

/* Typedefs for referenced classes */

typedef struct {
  D wrapper;
  D xep_;
  D function_signature_;
  D Pgf_cache_;
  D debug_name_;
  D generic_function_methods_;
  D discriminator_;
} _KLsealed_generic_functionGVKe;

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

typedef struct {
  D wrapper;
} _KLobjectGVKd;

typedef struct {
  D wrapper;
} _KLunboundGVKe;

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

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;
  D xep_;
  D function_signature_;
  D mep_;
} _KLsimple_methodGVKe;

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

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

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


/* Typedefs for defined classes */


/* Referenced object declarations */

D KPadd_a_methodVKnI (D, D, D, D, D, D);
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;
D Kmake_compile_time_literalVdfmc_modelingMM8I (D);
extern _KLempty_listGVKd KPempty_listVKi;
extern _KLclassGVKd KLempty_listGVKd;
extern _KLmm_wrapperGVKi_0 KLempty_listGVKdW;
D Kdefine_model_objectVdfmc_namespaceMM0I (D, D);
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;
D Kcompute_and_install_form_model_objectsVdfmc_commonMdfmc_conversionM8I (D);
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 */,
  (D) 41943045,
  &K4
};

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

/* Code */

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

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

/* USER INIT CODE */

void _Init_dfmc_conversion__X_define_shared_symbols_for_user () {
{
  D T0;

  // /Users/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 */
