#include "run-time.h"

/* Typedefs for referenced classes */

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

typedef struct {
  D wrapper;
} _KLunboundGVKe;

typedef struct {
  D wrapper;
} _KLbooleanGVKd;

typedef struct {
  D wrapper;
  D class_properties_;
  D iclass_class_;
  D class_mm_wrapper_;
  D repeated_slot_descriptor_;
  D instance_slot_descriptors_;
  D iclass_dispatch_key_;
  D class_constructor_;
  D direct_superclasses_;
  D class_rcpl_vector_;
  D class_rcpl_position_;
  D class_rcpl_other_positions_;
  D class_known_joint_;
  D iclass_dependent_generics_;
  D iclass_subclass_dependent_generics_;
  D direct_subclasses_;
  D direct_methods_;
  D direct_slot_descriptors_;
  D slot_descriptors_;
  D direct_inherited_slot_descriptors_;
  D direct_initialization_argument_descriptors_;
  D class_slot_descriptors_;
  D defaulted_initialization_arguments_slot_;
  D class_slot_storage_;
} _KLimplementation_classGVKe;

#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(6);
define__KLsimple_object_vectorGVKd(256);
define__KLsimple_object_vectorGVKd(2);
define__KLsimple_object_vectorGVKd(1);
define__KLsimple_object_vectorGVKd(0);

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

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;

#define  define__KLbyte_stringGVKd(nrepeated) \
  typedef struct { \
    D wrapper; \
    D size_; \
    char string_element_[nrepeated+1]; \
  } _KLbyte_stringGVKd_##nrepeated;
define__KLbyte_stringGVKd(9);
define__KLbyte_stringGVKd(16);
define__KLbyte_stringGVKd(21);
define__KLbyte_stringGVKd(13);
define__KLbyte_stringGVKd(23);

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

typedef struct {
  D wrapper;
  D xep_;
  D function_signature_;
  D mep_;
  D iep_;
  D keyword_specifiers_;
} _KLkeyword_methodGVKe;

typedef struct {
  D wrapper;
  D signature_properties_;
  D signature_required_;
  D signature_keys_;
  D signature_key_types_;
  D signature_values_;
} _KLkeyword_signatureAvaluesGVKi;

typedef struct {
  D wrapper;
  D slot_descriptor_properties_;
  D init_data_slot_;
  D slot_owner_;
  D init_keyword_;
  D slot_getter_;
  D slot_setter_;
  D slot_type_;
} _KLinstance_slot_descriptorGVKe;

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 signature_properties_;
  D signature_required_;
} _KLobject_signatureGVKe;

typedef struct {
  D wrapper;
  D properties_;
  D engine_node_callback_;
  D engine_node_entry_point_;
} _KLabsent_engine_nodeGVKg;

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

typedef struct {
  D wrapper;
  D xep_;
  D method_slot_descriptor_;
} _KLgetter_methodGVKi;

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


/* Typedefs for defined classes */

typedef struct {
  D wrapper;
} _KLBvaluesGVdfmc_modeling;

typedef struct {
  D wrapper;
  D Bvalues_model_objects_;
} _KLBstatic_valuesGVdfmc_modeling;


/* Referenced object declarations */

D KPadd_classVKeI (D);
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 KLimplementation_classGVKe;
extern _KLmm_wrapperGVKi_0 KLimplementation_classGVKeW;
extern _KLsimple_object_vectorGVKd_0 KPempty_vectorVKi;
extern _KLclassGVKd KLsimple_object_vectorGVKd;
extern _KLmm_wrapperGVKi_0 KLsimple_object_vectorGVKdW;
extern _KLempty_listGVKd KPempty_listVKi;
extern _KLclassGVKd KLempty_listGVKd;
extern _KLmm_wrapperGVKi_0 KLempty_listGVKdW;
D KerrorVKdMM1I (D, D);
extern _KLincremental_generic_functionGVKe KinitializeVKd;
extern _KLfunction_classGVKi KLincremental_generic_functionGVKe;
extern _KLclassGVKd KLfunction_classGVKi;
extern _KLmm_wrapperGVKi_0 KLfunction_classGVKiW;
extern _KLmm_wrapperGVKi_0 KLincremental_generic_functionGVKeW;
extern _KLclassGVKd KLbyte_stringGVKd;
extern _KLmm_wrapperGVKi_0 KLbyte_stringGVKdW;
extern _KLclassGVKd KLsymbolGVKd;
extern _KLmm_wrapperGVKi_0 KLsymbolGVKdW;
extern _KLfunction_classGVKi KLkeyword_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLkeyword_methodGVKeW;
extern _KLclassGVKd KLkeyword_signatureAvaluesGVKi;
extern _KLmm_wrapperGVKi_0 KLkeyword_signatureAvaluesGVKiW;
extern _KLsimple_object_vectorGVKd_2 KDsignature_LclassG_typesVKi;
extern _KLsimple_object_vectorGVKd_256 KDsignature_LobjectG_typesVKi;
extern _KLclassGVKd KLinstance_slot_descriptorGVKe;
extern _KLmm_wrapperGVKi_0 KLinstance_slot_descriptorGVKeW;
extern _KLclassGVKd KLsealed_generic_functionGVKe;
extern _KLmm_wrapperGVKi_0 KLsealed_generic_functionGVKeW;
extern _KLobject_signatureGVKe KDsignature_LobjectG_object_rest_value_1VKi;
extern _KLclassGVKd KLobject_signatureGVKe;
extern _KLmm_wrapperGVKi_0 KLobject_signatureGVKeW;
extern _KLabsent_engine_nodeGVKg RSINGULAR_Labsent_engine_nodeG;
extern _KLclassGVKd KLabsent_engine_nodeGVKg;
extern _KLmm_wrapperGVKi_0 KLabsent_engine_nodeGVKgW;
extern _KLclassGVKd KLpairGVKd;
extern _KLmm_wrapperGVKi_0 KLpairGVKdW;
extern _KLclassGVKd KLgetter_methodGVKi;
extern _KLmm_wrapperGVKi_0 KLgetter_methodGVKiW;
D Kclass_instanceQ_initialVKiI (D, D);
extern _KLmoduleGVKe Kdfmc_modeling_moduleYdylan_userVdfmc_modeling;
extern _KLclassGVKd KLmoduleGVKe;
extern _KLmm_wrapperGVKi_0 KLmoduleGVKeW;
extern _KLkeyword_methodGVKe Kdefault_class_constructorVKi;
D Kclass_instanceQ_rcpl_single_smallVKiI (D, D);

/* Defined object declarations */

extern _KLclassGVKd KLBvaluesGVdfmc_modeling;
extern _KLmm_wrapperGVKi_0 KLBvaluesGVdfmc_modelingW;
extern _KLclassGVKd KLBstatic_valuesGVdfmc_modeling;
extern _KLmm_wrapperGVKi_0 KLBstatic_valuesGVdfmc_modelingW;
static _KLimplementation_classGVKe K5;
static _KLsimple_object_vectorGVKd_1 K6;
extern _KLkeyword_methodGVKe KLBstatic_valuesGZ32ZconstructorVdfmc_modelingMM0;
D KLBstatic_valuesGZ32ZconstructorVdfmc_modelingMM0I (D, D, D);
static _KLsimple_object_vectorGVKd_1 K9;
static _KLsimple_object_vectorGVKd_6 K10;
static _KLsymbolGVKd KJmodel_objects_;
static _KLbyte_stringGVKd_23 K12;
static _KLbyte_stringGVKd_13 K13;
static _KLkeyword_signatureAvaluesGVKi K14;
static _KLsimple_object_vectorGVKd_2 K15;
static _KLsimple_object_vectorGVKd_1 K16;
static _KLsimple_object_vectorGVKd_1 K17;
extern _KLinstance_slot_descriptorGVKe KBvalues_model_objectsVdfmc_modelingHLBstatic_valuesG;
extern _KLsealed_generic_functionGVKe KBvalues_model_objectsVdfmc_modeling;
extern _KLgetter_methodGVKi KBvalues_model_objectsVdfmc_modelingMM0;
static _KLpairGVKd K21;
static _KLbyte_stringGVKd_21 K22;
static _KLbyte_stringGVKd_16 K23;
static _KLimplementation_classGVKe K24;
static _KLsimple_object_vectorGVKd_1 K25;
static _KLsimple_object_vectorGVKd_6 K26;
static _KLbyte_stringGVKd_9 K27;
static _KLpairGVKd K28;

/* Indirection variables */

static D IKJmodel_objects_ = &KJmodel_objects_;

/* Variables */

D Bvalues_model_objectsVdfmc_modeling = &KBvalues_model_objectsVdfmc_modeling;
D LBvaluesGVdfmc_modeling = &KLBvaluesGVdfmc_modeling;
D LBstatic_valuesGVdfmc_modeling = &KLBstatic_valuesGVdfmc_modeling;

/* Objects */

_KLclassGVKd KLBvaluesGVdfmc_modeling = {
  &KLclassGVKdW /* wrapper */,
  &Kclass_instanceQ_rcpl_single_smallVKiI,
  &K27,
  &K24,
  (D) 1,
  &Kdfmc_modeling_moduleYdylan_userVdfmc_modeling
};

_KLmm_wrapperGVKi_0 KLBvaluesGVdfmc_modelingW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K24,
  (D) 1,
  1,
  33554439,
  (D) 1
};

_KLclassGVKd KLBstatic_valuesGVdfmc_modeling = {
  &KLclassGVKdW /* wrapper */,
  &Kclass_instanceQ_initialVKiI,
  &K23,
  &K5,
  (D) 1,
  &Kdfmc_modeling_moduleYdylan_userVdfmc_modeling
};

_KLmm_wrapperGVKi_0 KLBstatic_valuesGVdfmc_modelingW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K5,
  (D) 1,
  5,
  33554439,
  (D) 1
};

static _KLimplementation_classGVKe K5 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (D) 477102085,
  &KLBstatic_valuesGVdfmc_modeling,
  &KLBstatic_valuesGVdfmc_modelingW,
  &KPfalseVKi,
  &K6,
  (D) -3,
  &KLBstatic_valuesGZ32ZconstructorVdfmc_modelingMM0,
  &K9,
  &K10,
  (D) 9,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_vectorVKi,
  &K6,
  &K6,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

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

_KLkeyword_methodGVKe KLBstatic_valuesGZ32ZconstructorVdfmc_modelingMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_3,
  &K14,
  &key_mep_2,
  &KLBstatic_valuesGZ32ZconstructorVdfmc_modelingMM0I,
  &K15
};

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

static _KLsimple_object_vectorGVKd_6 K10 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 25,
  &KLobjectGVKd,
  &KLBvaluesGVdfmc_modeling,
  &KLBstatic_valuesGVdfmc_modeling,
  &KPfalseVKi,
  &KPfalseVKi,
  &KPfalseVKi
};

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

static _KLbyte_stringGVKd_23 K12 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 93,
  "Missing init keyword %="
};

static _KLbyte_stringGVKd_13 K13 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 53,
  "model-objects"
};

static _KLkeyword_signatureAvaluesGVKi K14 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (D) 35390469,
  &KDsignature_LclassG_typesVKi,
  &K16,
  &KDsignature_LobjectG_typesVKi,
  &K17
};

static _KLsimple_object_vectorGVKd_2 K15 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 9,
  &KJmodel_objects_,
  &KPunboundVKi
};

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

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

_KLinstance_slot_descriptorGVKe KBvalues_model_objectsVdfmc_modelingHLBstatic_valuesG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (D) 193,
  &KPfalseVKi,
  &KLBstatic_valuesGVdfmc_modeling,
  &KJmodel_objects_,
  &KBvalues_model_objectsVdfmc_modeling,
  &KPfalseVKi,
  &KLobjectGVKd
};

_KLsealed_generic_functionGVKe KBvalues_model_objectsVdfmc_modeling = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &KDsignature_LobjectG_object_rest_value_1VKi,
  &KPfalseVKi,
  &K22,
  &K21,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLgetter_methodGVKi KBvalues_model_objectsVdfmc_modelingMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &KBvalues_model_objectsVdfmc_modelingHLBstatic_valuesG
};

static _KLpairGVKd K21 = {
  &KLpairGVKdW /* wrapper */,
  &KBvalues_model_objectsVdfmc_modelingMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_21 K22 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 85,
  "&values-model-objects"
};

static _KLbyte_stringGVKd_16 K23 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 65,
  "<&static-values>"
};

static _KLimplementation_classGVKe K24 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (D) 410255361,
  &KLBvaluesGVdfmc_modeling,
  &KLBvaluesGVdfmc_modelingW,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (D) -3,
  &Kdefault_class_constructorVKi,
  &K25,
  &K26,
  (D) 5,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &K28,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

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

static _KLsimple_object_vectorGVKd_6 K26 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 25,
  &KLobjectGVKd,
  &KLBvaluesGVdfmc_modeling,
  &KPfalseVKi,
  &KPfalseVKi,
  &KPfalseVKi,
  &KPfalseVKi
};

static _KLbyte_stringGVKd_9 K27 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 37,
  "<&values>"
};

static _KLpairGVKd K28 = {
  &KLpairGVKdW /* wrapper */,
  &KLBstatic_valuesGVdfmc_modeling,
  &KPempty_listVKi
};

/* Code */

D KLBstatic_valuesGZ32ZconstructorVdfmc_modelingMM0I (D class_, D init_args_, D Uunique_Bvalues_model_objects_) {
  D T4;
  D Uunique_Bvalues_model_objectsF5;
  D T6;
  D T7_0;
  D T8;
  _KLsimple_object_vectorGVKd_1 T9 = {&KLsimple_object_vectorGVKdW, (D) 5};
  D T10;

  // /Users/bruce/Development/dylan/opendylan/sources/dfmc/modeling/values.dylan:9
  // /Users/bruce/Development/dylan/opendylan/sources/dfmc/modeling/values.dylan:9
  T8 = primitive_idQ(Uunique_Bvalues_model_objects_,&KPunboundVKi);
  // /Users/bruce/Development/dylan/opendylan/sources/dfmc/modeling/values.dylan:9
  if (T8 != &KPfalseVKi) {
    T9.vector_element_[0] = IKJmodel_objects_;
    T10 = KerrorVKdMM1I(&K12, &T9);
    // /Users/bruce/Development/dylan/opendylan/sources/dfmc/modeling/values.dylan:9
    T4 = T10;
    Uunique_Bvalues_model_objectsF5 = T4;
  } else {
    Uunique_Bvalues_model_objectsF5 = Uunique_Bvalues_model_objects_;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/dfmc/modeling/values.dylan:9
  T6 = primitive_object_allocate_filled(2,&KLBstatic_valuesGVdfmc_modelingW,1,&KPunboundVKi,0,0,&KPunboundVKi);
  SLOT_VALUE_SETTER(Uunique_Bvalues_model_objectsF5, T6, 0);
  APPLY2(&KinitializeVKd, T6, init_args_);
  T7_0 = T6;
  // /Users/bruce/Development/dylan/opendylan/sources/dfmc/modeling/values.dylan:9
  MV_SET_COUNT(1);
  return(T7_0);
}


/* SYSTEM INIT CODE */

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

    T0 = KPresolve_symbolVKiI(&KJmodel_objects_);
    if (T0 != &KJmodel_objects_) {
      primitive_slot_value_setter(T0, &KBvalues_model_objectsVdfmc_modelingHLBstatic_valuesG, 3);
      primitive_repeated_slot_value_setter(T0, &K16, 1, 0);
      primitive_repeated_slot_value_setter(T0, &K15, 1, 0);
      IKJmodel_objects_ = T0;
    }
  }
{
  D T0;

  // /Users/bruce/Development/dylan/opendylan/sources/dfmc/modeling/values.dylan:7
  T0 = KPadd_classVKeI(&KLBvaluesGVdfmc_modeling);
  goto I0;
}
I0:

  return;
}

/* USER INIT CODE */

void _Init_dfmc_modeling__X_values_for_user () {
  return;
}


/* eof */
