#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 class_properties_;
  dylan_value iclass_class_;
  dylan_value class_mm_wrapper_;
  dylan_value repeated_slot_descriptor_;
  dylan_value instance_slot_descriptors_;
  dylan_value iclass_dispatch_key_;
  dylan_value class_constructor_;
  dylan_value direct_superclasses_;
  dylan_value class_rcpl_vector_;
  dylan_value class_rcpl_position_;
  dylan_value class_rcpl_other_positions_;
  dylan_value class_known_joint_;
  dylan_value iclass_dependent_generics_;
  dylan_value iclass_subclass_dependent_generics_;
  dylan_value direct_subclasses_;
  dylan_value direct_methods_;
  dylan_value direct_slot_descriptors_;
  dylan_value slot_descriptors_;
  dylan_value direct_inherited_slot_descriptors_;
  dylan_value direct_initialization_argument_descriptors_;
  dylan_value class_slot_descriptors_;
  dylan_value defaulted_initialization_arguments_slot_;
  dylan_value class_slot_storage_;
} _KLimplementation_classGVKe;

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

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

#define  define__KLbyte_stringGVKd(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value 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 {
  dylan_value wrapper;
  dylan_value symbol_name_;
} _KLsymbolGVKd;

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

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

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

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

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

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

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

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


/* Typedefs for defined classes */

typedef struct {
  dylan_value wrapper;
} _KLBvaluesGVdfmc_modeling;

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


/* Referenced object declarations */

dylan_value KPadd_classVKeI (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 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;
dylan_value KerrorVKdMM1I (dylan_value, dylan_value);
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;
dylan_value Kclass_instanceQ_initialVKiI (dylan_value, dylan_value);
extern _KLmoduleGVKe Kdfmc_modeling_moduleYdylan_userVdfmc_modeling;
extern _KLclassGVKd KLmoduleGVKe;
extern _KLmm_wrapperGVKi_0 KLmoduleGVKeW;
extern _KLkeyword_methodGVKe Kdefault_class_constructorVKi;
dylan_value Kclass_instanceQ_rcpl_single_smallVKiI (dylan_value, dylan_value);

/* 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;
dylan_value KLBstatic_valuesGZ32ZconstructorVdfmc_modelingMM0I (dylan_value, dylan_value, dylan_value);
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 dylan_value IKJmodel_objects_ = &KJmodel_objects_;

/* Variables */

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

/* Objects */

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

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

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

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

static _KLimplementation_classGVKe K5 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 477102085,
  &KLBstatic_valuesGVdfmc_modeling,
  &KLBstatic_valuesGVdfmc_modelingW,
  &KPfalseVKi,
  &K6,
  (dylan_value) -3,
  &KLBstatic_valuesGZ32ZconstructorVdfmc_modelingMM0,
  &K9,
  &K10,
  (dylan_value) 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 */,
  (dylan_value) 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 */,
  (dylan_value) 5,
  &KLBvaluesGVdfmc_modeling
};

static _KLsimple_object_vectorGVKd_6 K10 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 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 */,
  (dylan_value) 93,
  "Missing init keyword %="
};

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

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

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

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

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

_KLinstance_slot_descriptorGVKe KBvalues_model_objectsVdfmc_modelingHLBstatic_valuesG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 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 */,
  (dylan_value) 85,
  "&values-model-objects"
};

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

static _KLimplementation_classGVKe K24 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 410255361,
  &KLBvaluesGVdfmc_modeling,
  &KLBvaluesGVdfmc_modelingW,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (dylan_value) -3,
  &Kdefault_class_constructorVKi,
  &K25,
  &K26,
  (dylan_value) 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 */,
  (dylan_value) 5,
  &KLobjectGVKd
};

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

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

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

/* Code */

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

  // /home/bruce/Development/dylan/opendylan/sources/dfmc/modeling/values.dylan:9
  // /home/bruce/Development/dylan/opendylan/sources/dfmc/modeling/values.dylan:9
  T8 = primitive_idQ(Uunique_Bvalues_model_objects_,&KPunboundVKi);
  // /home/bruce/Development/dylan/opendylan/sources/dfmc/modeling/values.dylan:9
  if (T8 != &KPfalseVKi) {
    T9.vector_element_[0] = IKJmodel_objects_;
    T10 = KerrorVKdMM1I(&K12, &T9);
    // /home/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_;
  }
  // /home/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;
  // /home/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 dylan_value KPresolve_symbolVKiI(dylan_value);
  {
    dylan_value 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;
    }
  }
{
  dylan_value T0;

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