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

#define  define__KLbyte_stringGVKd(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value size_; \
    char string_element_[nrepeated+1]; \
  } _KLbyte_stringGVKd_##nrepeated;
define__KLbyte_stringGVKd(27);
define__KLbyte_stringGVKd(26);
define__KLbyte_stringGVKd(16);
define__KLbyte_stringGVKd(24);
define__KLbyte_stringGVKd(7);

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

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

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

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;

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

typedef struct {
  dylan_value wrapper;
  dylan_value Pprimitive_name_;
} _KLenvironment_objectGVenvironment_protocols;

typedef struct {
  dylan_value wrapper;
  dylan_value Pprimitive_name_;
  dylan_value application_object_proxy_;
} _KLapplication_objectGVenvironment_protocols;

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 head_;
  dylan_value tail_;
} _KLpairGVKd;

typedef struct {
  dylan_value wrapper;
  dylan_value instanceQ_iep_;
  dylan_value union_type1_;
  dylan_value union_type2_;
} _KLunionGVKe;

typedef struct {
  dylan_value wrapper;
} _KLstringGVKd;

typedef struct {
  dylan_value wrapper;
  dylan_value instanceQ_iep_;
  dylan_value singleton_object_;
} _KLsingletonGVKd;

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

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 namespace_name_;
  dylan_value home_library_;
} _KLmoduleGVKe;

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 properties_;
  dylan_value engine_node_callback_;
  dylan_value engine_node_entry_point_;
} _KLabsent_engine_nodeGVKg;

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

typedef struct {
  dylan_value wrapper;
} _KLserverGVenvironment_protocols;

typedef struct {
  dylan_value wrapper;
  dylan_value Pprimitive_name_;
  dylan_value application_object_proxy_;
  dylan_value thread_runtime_state_;
  dylan_value thread_suspendedQ_;
} _KLthread_objectGVenvironment_protocols;

typedef struct {
  dylan_value wrapper;
  dylan_value Pprimitive_name_;
  dylan_value project_proxy_;
  dylan_value project_application_;
  dylan_value project_compiler_database_;
  dylan_value project_next_numeric_id_;
  dylan_value project_object_table_;
  dylan_value project_query_database_;
  dylan_value project_server_path_;
  dylan_value environment_object_breakpoints_;
  dylan_value source_location_breakpoints_;
  dylan_value project_properties_;
  dylan_value project_profile_state_;
} _KLproject_objectGVenvironment_protocols;


/* Typedefs for defined classes */

typedef struct {
  dylan_value wrapper;
  dylan_value Pprimitive_name_;
  dylan_value application_object_proxy_;
} _KLrestart_objectGVenvironment_protocols;


/* Referenced object declarations */

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 KLbyte_stringGVKd;
extern _KLmm_wrapperGVKi_0 KLbyte_stringGVKdW;
extern _KLfunction_classGVKi KLsimple_methodGVKe;
extern _KLclassGVKd KLfunction_classGVKi;
extern _KLmm_wrapperGVKi_0 KLfunction_classGVKiW;
extern _KLmm_wrapperGVKi_0 KLsimple_methodGVKeW;
extern _KLclassGVKd KLsignatureAvaluesGVKi;
extern _KLmm_wrapperGVKi_0 KLsignatureAvaluesGVKiW;
extern _KLsimple_object_vectorGVKd_2 KDsignature_LstringG_typesVKi;
extern _KLclassGVKd KLsimple_object_vectorGVKd;
extern _KLmm_wrapperGVKi_0 KLsimple_object_vectorGVKdW;
extern _KLclassGVKd KLimplementation_classGVKe;
extern _KLmm_wrapperGVKi_0 KLimplementation_classGVKeW;
extern _KLsimple_object_vectorGVKd_0 KPempty_vectorVKi;
extern _KLempty_listGVKd KPempty_listVKi;
extern _KLclassGVKd KLempty_listGVKd;
extern _KLmm_wrapperGVKi_0 KLempty_listGVKdW;
extern _KLclassGVKd KLenvironment_objectGVenvironment_protocols;
extern _KLmm_wrapperGVKi_0 KLenvironment_objectGVenvironment_protocolsW;
extern _KLclassGVKd KLapplication_objectGVenvironment_protocols;
extern _KLmm_wrapperGVKi_0 KLapplication_objectGVenvironment_protocolsW;
extern _KLkeyword_methodGVKe KinitializeVKdMenvironment_protocolsM0;
extern _KLfunction_classGVKi KLkeyword_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLkeyword_methodGVKeW;
extern _KLclassGVKd KLpairGVKd;
extern _KLmm_wrapperGVKi_0 KLpairGVKdW;
extern _KLkeyword_methodGVKe KinitializeVKdMM1;
extern _KLclassGVKd KLunionGVKe;
extern _KLmm_wrapperGVKi_0 KLunionGVKeW;
dylan_value Kunion_instanceQVKiI (dylan_value, dylan_value);
extern _KLclassGVKd KLstringGVKd;
extern _KLmm_wrapperGVKi_0 KLstringGVKdW;
extern _KLclassGVKd KLsingletonGVKd;
extern _KLmm_wrapperGVKi_0 KLsingletonGVKdW;
dylan_value Ksingleton_pointer_idQ_instanceQVKiI (dylan_value, dylan_value);
extern _KLsymbolGVKd KJname_;
extern _KLclassGVKd KLsymbolGVKd;
extern _KLmm_wrapperGVKi_0 KLsymbolGVKdW;
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 _KLinstance_slot_descriptorGVKe KPprimitive_nameVenvironment_protocolsHLenvironment_objectG;
extern _KLclassGVKd KLinstance_slot_descriptorGVKe;
extern _KLmm_wrapperGVKi_0 KLinstance_slot_descriptorGVKeW;
extern _KLinstance_slot_descriptorGVKe Kapplication_object_proxyVenvironment_protocolsHLapplication_objectG;
dylan_value Kclass_instanceQ_initialVKiI (dylan_value, dylan_value);
extern _KLmoduleGVKe Kenvironment_protocols_moduleYdylan_userVenvironment_protocols;
extern _KLclassGVKd KLmoduleGVKe;
extern _KLmm_wrapperGVKi_0 KLmoduleGVKeW;
extern _KLfunction_classGVKi KLincremental_generic_functionGVKe;
extern _KLmm_wrapperGVKi_0 KLincremental_generic_functionGVKeW;
extern _KLabsent_engine_nodeGVKg RSINGULAR_Labsent_engine_nodeG;
extern _KLclassGVKd KLabsent_engine_nodeGVKg;
extern _KLmm_wrapperGVKi_0 KLabsent_engine_nodeGVKgW;
extern _KLclassGVKd KLsignatureGVKe;
extern _KLmm_wrapperGVKi_0 KLsignatureGVKeW;
extern _KLclassGVKd KLserverGVenvironment_protocols;
extern _KLmm_wrapperGVKi_0 KLserverGVenvironment_protocolsW;
extern _KLclassGVKd KLthread_objectGVenvironment_protocols;
extern _KLmm_wrapperGVKi_0 KLthread_objectGVenvironment_protocolsW;
dylan_value Kchoose_serverVenvironment_protocolsMM0I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLclassGVKd KLproject_objectGVenvironment_protocols;
extern _KLmm_wrapperGVKi_0 KLproject_objectGVenvironment_protocolsW;
extern _KLsimple_object_vectorGVKd_16 KDsignature_LbooleanG_typesVKi;
extern _KLsimple_object_vectorGVKd_2 KDsignature_LsequenceG_typesVKi;

/* Defined object declarations */

extern _KLsimple_methodGVKe Kenvironment_object_type_nameVenvironment_protocolsMM39;
dylan_value Kenvironment_object_type_nameVenvironment_protocolsMM39I (dylan_value);
static _KLbyte_stringGVKd_7 K2;
static _KLsignatureAvaluesGVKi K3;
static _KLsimple_object_vectorGVKd_1 K4;
extern _KLclassGVKd KLrestart_objectGVenvironment_protocols;
extern _KLmm_wrapperGVKi_0 KLrestart_objectGVenvironment_protocolsW;
static _KLimplementation_classGVKe K7;
static _KLsimple_object_vectorGVKd_2 K8;
extern _KLkeyword_methodGVKe KLrestart_objectGZ32ZconstructorVenvironment_protocolsMM0;
dylan_value KLrestart_objectGZ32ZconstructorVenvironment_protocolsMM0I (dylan_value, dylan_value, dylan_value, dylan_value);
static _KLsimple_object_vectorGVKd_1 K11;
static _KLsimple_object_vectorGVKd_6 K12;
static _KLunionGVKe K13;
static _KLpairGVKd K14;
static _KLsingletonGVKd K15;
static _KLkeyword_signatureAvaluesGVKi K16;
static _KLsimple_object_vectorGVKd_4 K17;
static _KLsymbolGVKd KJapplication_object_proxy_;
static _KLbyte_stringGVKd_24 K19;
static _KLsimple_object_vectorGVKd_2 K20;
static _KLbyte_stringGVKd_16 K21;
extern _KLincremental_generic_functionGVKe Kinvoke_application_restartVenvironment_protocols;
extern _KLsimple_methodGVKe Kinvoke_application_restartVenvironment_protocolsMM0;
dylan_value Kinvoke_application_restartVenvironment_protocolsMM0I (dylan_value, dylan_value, dylan_value);
static _KLpairGVKd K25;
static _KLsignatureGVKe K26;
static _KLbyte_stringGVKd_26 K27;
static _KLsimple_object_vectorGVKd_3 K28;
static _KLsignatureGVKe K29;
static _KLsimple_object_vectorGVKd_3 K30;
extern _KLincremental_generic_functionGVKe Kapplication_restart_abortQVenvironment_protocols;
extern _KLsimple_methodGVKe Kapplication_restart_abortQVenvironment_protocolsMM0;
dylan_value Kapplication_restart_abortQVenvironment_protocolsMM0I (dylan_value, dylan_value);
static _KLpairGVKd K34;
static _KLsignatureAvaluesGVKi K35;
static _KLbyte_stringGVKd_26 K36;
static _KLsimple_object_vectorGVKd_2 K37;
static _KLsignatureAvaluesGVKi K38;
static _KLsimple_object_vectorGVKd_2 K39;
extern _KLincremental_generic_functionGVKe Kapplication_restart_messageVenvironment_protocols;
extern _KLsimple_methodGVKe Kapplication_restart_messageVenvironment_protocolsMM0;
dylan_value Kapplication_restart_messageVenvironment_protocolsMM0I (dylan_value, dylan_value);
static _KLpairGVKd K43;
static _KLsignatureAvaluesGVKi K44;
static _KLbyte_stringGVKd_27 K45;
static _KLsignatureAvaluesGVKi K46;
extern _KLincremental_generic_functionGVKe Kapplication_thread_restartsVenvironment_protocols;
extern _KLsimple_methodGVKe Kapplication_thread_restartsVenvironment_protocolsMM0;
dylan_value Kapplication_thread_restartsVenvironment_protocolsMM0I (dylan_value, dylan_value);
static _KLpairGVKd K50;
static _KLsignatureAvaluesGVKi K51;
static _KLbyte_stringGVKd_27 K52;
static _KLsimple_object_vectorGVKd_2 K53;
static _KLsignatureAvaluesGVKi K54;
static _KLsimple_object_vectorGVKd_2 K55;

/* Indirection variables */

static dylan_value IKJapplication_object_proxy_ = &KJapplication_object_proxy_;

/* Variables */

dylan_value Lrestart_objectGVenvironment_protocols = &KLrestart_objectGVenvironment_protocols;
dylan_value application_thread_restartsVenvironment_protocols = &Kapplication_thread_restartsVenvironment_protocols;
dylan_value application_restart_messageVenvironment_protocols = &Kapplication_restart_messageVenvironment_protocols;
dylan_value application_restart_abortQVenvironment_protocols = &Kapplication_restart_abortQVenvironment_protocols;
dylan_value invoke_application_restartVenvironment_protocols = &Kinvoke_application_restartVenvironment_protocols;

/* Objects */

_KLsimple_methodGVKe Kenvironment_object_type_nameVenvironment_protocolsMM39 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K3,
  &Kenvironment_object_type_nameVenvironment_protocolsMM39I
};

static _KLbyte_stringGVKd_7 K2 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 29,
  "Restart"
};

static _KLsignatureAvaluesGVKi K3 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555461,
  &K4,
  &KDsignature_LstringG_typesVKi
};

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

_KLclassGVKd KLrestart_objectGVenvironment_protocols = {
  &KLclassGVKdW /* wrapper */,
  &Kclass_instanceQ_initialVKiI,
  &K21,
  &K7,
  (dylan_value) 1,
  &Kenvironment_protocols_moduleYdylan_userVenvironment_protocols
};

_KLmm_wrapperGVKi_0 KLrestart_objectGVenvironment_protocolsW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K7,
  (dylan_value) 1,
  9,
  33554439,
  (dylan_value) 1
};

static _KLimplementation_classGVKe K7 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 477102089,
  &KLrestart_objectGVenvironment_protocols,
  &KLrestart_objectGVenvironment_protocolsW,
  &KPfalseVKi,
  &K8,
  (dylan_value) -3,
  &KLrestart_objectGZ32ZconstructorVenvironment_protocolsMM0,
  &K11,
  &K12,
  (dylan_value) 13,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &K8,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

static _KLsimple_object_vectorGVKd_2 K8 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KPprimitive_nameVenvironment_protocolsHLenvironment_objectG,
  &Kapplication_object_proxyVenvironment_protocolsHLapplication_objectG
};

_KLkeyword_methodGVKe KLrestart_objectGZ32ZconstructorVenvironment_protocolsMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_4,
  &K16,
  &key_mep_2,
  &KLrestart_objectGZ32ZconstructorVenvironment_protocolsMM0I,
  &K17
};

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

static _KLsimple_object_vectorGVKd_6 K12 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 25,
  &KLobjectGVKd,
  &KLenvironment_objectGVenvironment_protocols,
  &KLapplication_objectGVenvironment_protocols,
  &KLrestart_objectGVenvironment_protocols,
  &KPfalseVKi,
  &KPfalseVKi
};

static _KLunionGVKe K13 = {
  &KLunionGVKeW /* wrapper */,
  &Kunion_instanceQVKiI,
  &K15,
  &KLstringGVKd
};

static _KLpairGVKd K14 = {
  &KLpairGVKdW /* wrapper */,
  &KinitializeVKdMM1,
  &KPempty_listVKi
};

static _KLsingletonGVKd K15 = {
  &KLsingletonGVKdW /* wrapper */,
  &Ksingleton_pointer_idQ_instanceQVKiI,
  &KPfalseVKi
};

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

static _KLsimple_object_vectorGVKd_4 K17 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 17,
  &KJname_,
  &KPfalseVKi,
  &KJapplication_object_proxy_,
  &KPfalseVKi
};

static _KLsymbolGVKd KJapplication_object_proxy_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K19
};

static _KLbyte_stringGVKd_24 K19 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 97,
  "application-object-proxy"
};

static _KLsimple_object_vectorGVKd_2 K20 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KJname_,
  &KJapplication_object_proxy_
};

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

_KLincremental_generic_functionGVKe Kinvoke_application_restartVenvironment_protocols = {
  &KLincremental_generic_functionGVKeW /* wrapper */,
  &gf_xep_3,
  &K26,
  &KPfalseVKi,
  &K27,
  &K25,
  &RSINGULAR_Labsent_engine_nodeG,
  &Kenvironment_protocols_moduleYdylan_userVenvironment_protocols,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (dylan_value) 25
};

_KLsimple_methodGVKe Kinvoke_application_restartVenvironment_protocolsMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_3,
  &K29,
  &Kinvoke_application_restartVenvironment_protocolsMM0I
};

static _KLpairGVKd K25 = {
  &KLpairGVKdW /* wrapper */,
  &Kinvoke_application_restartVenvironment_protocolsMM0,
  &KPempty_listVKi
};

static _KLsignatureGVKe K26 = {
  &KLsignatureGVKeW /* wrapper */,
  (dylan_value) 41943053,
  &K28
};

static _KLbyte_stringGVKd_26 K27 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 105,
  "invoke-application-restart"
};

static _KLsimple_object_vectorGVKd_3 K28 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 13,
  &KLserverGVenvironment_protocols,
  &KLthread_objectGVenvironment_protocols,
  &KLrestart_objectGVenvironment_protocols
};

static _KLsignatureGVKe K29 = {
  &KLsignatureGVKeW /* wrapper */,
  (dylan_value) 41943053,
  &K30
};

static _KLsimple_object_vectorGVKd_3 K30 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 13,
  &KLproject_objectGVenvironment_protocols,
  &KLthread_objectGVenvironment_protocols,
  &KLrestart_objectGVenvironment_protocols
};

_KLincremental_generic_functionGVKe Kapplication_restart_abortQVenvironment_protocols = {
  &KLincremental_generic_functionGVKeW /* wrapper */,
  &gf_xep_2,
  &K35,
  &KPfalseVKi,
  &K36,
  &K34,
  &RSINGULAR_Labsent_engine_nodeG,
  &Kenvironment_protocols_moduleYdylan_userVenvironment_protocols,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (dylan_value) 25
};

_KLsimple_methodGVKe Kapplication_restart_abortQVenvironment_protocolsMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K38,
  &Kapplication_restart_abortQVenvironment_protocolsMM0I
};

static _KLpairGVKd K34 = {
  &KLpairGVKdW /* wrapper */,
  &Kapplication_restart_abortQVenvironment_protocolsMM0,
  &KPempty_listVKi
};

static _KLsignatureAvaluesGVKi K35 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555465,
  &K37,
  &KDsignature_LbooleanG_typesVKi
};

static _KLbyte_stringGVKd_26 K36 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 105,
  "application-restart-abort?"
};

static _KLsimple_object_vectorGVKd_2 K37 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KLserverGVenvironment_protocols,
  &KLrestart_objectGVenvironment_protocols
};

static _KLsignatureAvaluesGVKi K38 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555465,
  &K39,
  &KDsignature_LbooleanG_typesVKi
};

static _KLsimple_object_vectorGVKd_2 K39 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KLproject_objectGVenvironment_protocols,
  &KLrestart_objectGVenvironment_protocols
};

_KLincremental_generic_functionGVKe Kapplication_restart_messageVenvironment_protocols = {
  &KLincremental_generic_functionGVKeW /* wrapper */,
  &gf_xep_2,
  &K44,
  &KPfalseVKi,
  &K45,
  &K43,
  &RSINGULAR_Labsent_engine_nodeG,
  &Kenvironment_protocols_moduleYdylan_userVenvironment_protocols,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (dylan_value) 25
};

_KLsimple_methodGVKe Kapplication_restart_messageVenvironment_protocolsMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K46,
  &Kapplication_restart_messageVenvironment_protocolsMM0I
};

static _KLpairGVKd K43 = {
  &KLpairGVKdW /* wrapper */,
  &Kapplication_restart_messageVenvironment_protocolsMM0,
  &KPempty_listVKi
};

static _KLsignatureAvaluesGVKi K44 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555465,
  &K37,
  &KDsignature_LstringG_typesVKi
};

static _KLbyte_stringGVKd_27 K45 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 109,
  "application-restart-message"
};

static _KLsignatureAvaluesGVKi K46 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555465,
  &K39,
  &KDsignature_LstringG_typesVKi
};

_KLincremental_generic_functionGVKe Kapplication_thread_restartsVenvironment_protocols = {
  &KLincremental_generic_functionGVKeW /* wrapper */,
  &gf_xep_2,
  &K51,
  &KPfalseVKi,
  &K52,
  &K50,
  &RSINGULAR_Labsent_engine_nodeG,
  &Kenvironment_protocols_moduleYdylan_userVenvironment_protocols,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (dylan_value) 25
};

_KLsimple_methodGVKe Kapplication_thread_restartsVenvironment_protocolsMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K54,
  &Kapplication_thread_restartsVenvironment_protocolsMM0I
};

static _KLpairGVKd K50 = {
  &KLpairGVKdW /* wrapper */,
  &Kapplication_thread_restartsVenvironment_protocolsMM0,
  &KPempty_listVKi
};

static _KLsignatureAvaluesGVKi K51 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555465,
  &K53,
  &KDsignature_LsequenceG_typesVKi
};

static _KLbyte_stringGVKd_27 K52 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 109,
  "application-thread-restarts"
};

static _KLsimple_object_vectorGVKd_2 K53 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KLserverGVenvironment_protocols,
  &KLthread_objectGVenvironment_protocols
};

static _KLsignatureAvaluesGVKi K54 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555465,
  &K55,
  &KDsignature_LsequenceG_typesVKi
};

static _KLsimple_object_vectorGVKd_2 K55 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KLproject_objectGVenvironment_protocols,
  &KLthread_objectGVenvironment_protocols
};

/* Code */

dylan_value Kenvironment_object_type_nameVenvironment_protocolsMM39I (dylan_value object_) {
  dylan_value T2_0;

  // /home/bruce/Development/dylan/opendylan/sources/environment/protocols/restart-objects.dylan:76
  // /home/bruce/Development/dylan/opendylan/sources/environment/protocols/restart-objects.dylan:78
  T2_0 = &K2;
  // /home/bruce/Development/dylan/opendylan/sources/environment/protocols/restart-objects.dylan:76
  MV_SET_COUNT(1);
  return(T2_0);
}

dylan_value KLrestart_objectGZ32ZconstructorVenvironment_protocolsMM0I (dylan_value class_, dylan_value init_args_, dylan_value Uunique_Pprimitive_name_, dylan_value Uunique_application_object_proxy_) {
  dylan_value T5;
  dylan_value Uunique_Pprimitive_nameF6;
  dylan_value T7_0;

  // /home/bruce/Development/dylan/opendylan/sources/environment/protocols/restart-objects.dylan:18
  T5 = primitive_object_allocate_filled(3,&KLrestart_objectGVenvironment_protocolsW,2,&KPunboundVKi,0,0,&KPunboundVKi);
  primitive_type_check(Uunique_Pprimitive_name_, &K13);
  Uunique_Pprimitive_nameF6 = Uunique_Pprimitive_name_;
  SLOT_VALUE_SETTER(Uunique_Pprimitive_nameF6, T5, 0);
  SLOT_VALUE_SETTER(Uunique_application_object_proxy_, T5, 1);
  MEP_APPLY2(&KinitializeVKdMenvironment_protocolsM0, &K14, T5, init_args_);
  T7_0 = T5;
  // /home/bruce/Development/dylan/opendylan/sources/environment/protocols/restart-objects.dylan:18
  MV_SET_COUNT(1);
  return(T7_0);
}

dylan_value Kinvoke_application_restartVenvironment_protocolsMM0I (dylan_value project_, dylan_value thread_, dylan_value rst_) {
  dylan_value T4;
  dylan_value server_;

  // /home/bruce/Development/dylan/opendylan/sources/environment/protocols/restart-objects.dylan:68
  // /home/bruce/Development/dylan/opendylan/sources/environment/protocols/restart-objects.dylan:72
  server_ = Kchoose_serverVenvironment_protocolsMM0I(project_, rst_, &KPempty_vectorVKi, &KPtrueVKi, &KPfalseVKi);
  // /home/bruce/Development/dylan/opendylan/sources/environment/protocols/restart-objects.dylan:73
  T4 = CALL3(&Kinvoke_application_restartVenvironment_protocols, server_, thread_, rst_);
  // /home/bruce/Development/dylan/opendylan/sources/environment/protocols/restart-objects.dylan:68
  MV_SET_COUNT(0);
  return(T4);
}

dylan_value Kapplication_restart_abortQVenvironment_protocolsMM0I (dylan_value project_, dylan_value rst_) {
  dylan_value T3_0;
  dylan_value server_;

  // /home/bruce/Development/dylan/opendylan/sources/environment/protocols/restart-objects.dylan:61
  // /home/bruce/Development/dylan/opendylan/sources/environment/protocols/restart-objects.dylan:64
  server_ = Kchoose_serverVenvironment_protocolsMM0I(project_, rst_, &KPempty_vectorVKi, &KPtrueVKi, &KPfalseVKi);
  // /home/bruce/Development/dylan/opendylan/sources/environment/protocols/restart-objects.dylan:65
  T3_0 = CALL2(&Kapplication_restart_abortQVenvironment_protocols, server_, rst_);
  // /home/bruce/Development/dylan/opendylan/sources/environment/protocols/restart-objects.dylan:61
  MV_SET_COUNT(1);
  return(T3_0);
}

dylan_value Kapplication_restart_messageVenvironment_protocolsMM0I (dylan_value project_, dylan_value rst_) {
  dylan_value T3_0;
  dylan_value server_;

  // /home/bruce/Development/dylan/opendylan/sources/environment/protocols/restart-objects.dylan:54
  // /home/bruce/Development/dylan/opendylan/sources/environment/protocols/restart-objects.dylan:57
  server_ = Kchoose_serverVenvironment_protocolsMM0I(project_, rst_, &KPempty_vectorVKi, &KPtrueVKi, &KPfalseVKi);
  // /home/bruce/Development/dylan/opendylan/sources/environment/protocols/restart-objects.dylan:58
  T3_0 = CALL2(&Kapplication_restart_messageVenvironment_protocols, server_, rst_);
  // /home/bruce/Development/dylan/opendylan/sources/environment/protocols/restart-objects.dylan:54
  MV_SET_COUNT(1);
  return(T3_0);
}

dylan_value Kapplication_thread_restartsVenvironment_protocolsMM0I (dylan_value project_, dylan_value thread_) {
  dylan_value T3_0;
  dylan_value server_;

  // /home/bruce/Development/dylan/opendylan/sources/environment/protocols/restart-objects.dylan:47
  // /home/bruce/Development/dylan/opendylan/sources/environment/protocols/restart-objects.dylan:50
  server_ = Kchoose_serverVenvironment_protocolsMM0I(project_, thread_, &KPempty_vectorVKi, &KPtrueVKi, &KPfalseVKi);
  // /home/bruce/Development/dylan/opendylan/sources/environment/protocols/restart-objects.dylan:51
  T3_0 = CALL2(&Kapplication_thread_restartsVenvironment_protocols, server_, thread_);
  // /home/bruce/Development/dylan/opendylan/sources/environment/protocols/restart-objects.dylan:47
  MV_SET_COUNT(1);
  return(T3_0);
}


/* SYSTEM INIT CODE */

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

    T0 = KPresolve_symbolVKiI(&KJapplication_object_proxy_);
    if (T0 != &KJapplication_object_proxy_) {
      primitive_repeated_slot_value_setter(T0, &K20, 1, 1);
      primitive_repeated_slot_value_setter(T0, &K17, 1, 2);
    }
  }
  return;
}

/* USER INIT CODE */

void _Init_environment_protocols__X_restart_objects_for_user () {
  return;
}


/* eof */
