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

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

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

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

typedef struct {
  dylan_value wrapper;
} _KLintegerGVKd;

#define  define__KLbyte_stringGVKd(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value size_; \
    char string_element_[nrepeated+1]; \
  } _KLbyte_stringGVKd_##nrepeated;
define__KLbyte_stringGVKd(20);
define__KLbyte_stringGVKd(22);
define__KLbyte_stringGVKd(16);
define__KLbyte_stringGVKd(5);

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_values_;
} _KLsignatureAvaluesGVKi;

typedef struct {
  dylan_value wrapper;
} _KLlocatorGYlocators_protocolVcommon_dylan;

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

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

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 instanceQ_iep_;
  dylan_value subclass_class_;
} _KLsubclassGVKe;

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

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

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

typedef struct {
  dylan_value wrapper;
  dylan_value cached_source_record_module_name_;
  dylan_value cached_source_record_language_;
  dylan_value cached_source_record_start_line_;
  dylan_value cached_source_record_contents_;
  dylan_value source_record_removed_;
  dylan_value source_record_modified_;
  dylan_value source_record_project_;
  dylan_value source_record_unique_id_;
  dylan_value source_record_location_slot_;
} _KLflat_file_source_recordGVfile_source_records;


/* Typedefs for defined classes */

typedef struct {
  dylan_value wrapper;
} _KLfile_source_recordGVfile_source_records;


/* Referenced object declarations */

dylan_value KPadd_classVKeI (dylan_value);
dylan_value KPadd_a_methodVKnI (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLincremental_generic_functionGVKe KmakeVKd;
extern _KLfunction_classGVKi KLincremental_generic_functionGVKe;
extern _KLclassGVKd KLfunction_classGVKi;
extern _KLclassGVKd KLclassGVKd;
extern _KLmm_wrapperGVKi_0 KLclassGVKdW;
extern _KLclassGVKd KLmm_wrapperGVKi;
extern _KLmm_wrapperGVKi_1 KLmm_wrapperGVKiW;
extern _KLmm_wrapperGVKi_0 KLfunction_classGVKiW;
extern _KLmm_wrapperGVKi_0 KLincremental_generic_functionGVKeW;
extern _KLlibraryGVKe Kfile_source_records_libraryYdylan_userVfile_source_records;
extern _KLclassGVKd KLlibraryGVKe;
extern _KLmm_wrapperGVKi_0 KLlibraryGVKeW;
extern _KLbooleanGVKd KPfalseVKi;
extern _KLclassGVKd KLbooleanGVKd;
extern _KLmm_wrapperGVKi_0 KLbooleanGVKdW;
extern _KLincremental_generic_functionGVKe Kid_as_source_recordVsource_records;
extern _KLincremental_generic_functionGVKe Kprint_source_line_locationVsource_records;
extern _KLincremental_generic_functionGVKe Ksource_line_locationVsource_records;
extern _KLclassGVKd KLobjectGVKd;
extern _KLmm_wrapperGVKi_0 KLobjectGVKdW;
extern _KLunboundGVKe KPunboundVKi;
extern _KLclassGVKd KLunboundGVKe;
extern _KLmm_wrapperGVKi_0 KLunboundGVKeW;
extern _KLbooleanGVKd KPtrueVKi;
extern _KLincremental_generic_functionGVKe Ksource_record_locationVsource_records;
extern _KLsimple_object_vectorGVKd_0 KPempty_vectorVKi;
extern _KLclassGVKd KLsimple_object_vectorGVKd;
extern _KLmm_wrapperGVKi_0 KLsimple_object_vectorGVKdW;
extern _KLsealed_generic_functionGVKe Klocator_nameYlocatorsVsystem;
extern _KLclassGVKd KLsealed_generic_functionGVKe;
extern _KLmm_wrapperGVKi_0 KLsealed_generic_functionGVKeW;
extern _KLincremental_generic_functionGVKe Ksource_record_start_lineVsource_records;
extern _KLfunction_classGVKi KLsimple_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLsimple_methodGVKeW;
extern _KLclassGVKd KLsignatureGVKe;
extern _KLmm_wrapperGVKi_0 KLsignatureGVKeW;
extern _KLclassGVKd KLintegerGVKd;
extern _KLmm_wrapperGVKi_0 KLintegerGVKdW;
extern _KLsealed_generic_functionGVKe KformatYformatVio;
extern _KLclassGVKd KLbyte_stringGVKd;
extern _KLmm_wrapperGVKi_0 KLbyte_stringGVKdW;
extern _KLclassGVKd KLsymbolGVKd;
extern _KLmm_wrapperGVKi_0 KLsymbolGVKdW;
extern _KLclassGVKd KLsignatureAvaluesGVKi;
extern _KLmm_wrapperGVKi_0 KLsignatureAvaluesGVKiW;
extern _KLclassGVKd KLlocatorGYlocators_protocolVcommon_dylan;
extern _KLmm_wrapperGVKi_0 KLlocatorGYlocators_protocolVcommon_dylanW;
extern _KLclassGVKd KLsingletonGVKd;
extern _KLmm_wrapperGVKi_0 KLsingletonGVKdW;
dylan_value Ksingleton_pointer_idQ_instanceQVKiI (dylan_value, dylan_value);
extern _KLsimple_methodGVKe Kfile_source_record_idsVfile_source_recordsMM1;
extern _KLempty_listGVKd KPempty_listVKi;
extern _KLclassGVKd KLempty_listGVKd;
extern _KLmm_wrapperGVKi_0 KLempty_listGVKdW;
extern _KLabsent_engine_nodeGVKg RSINGULAR_Labsent_engine_nodeG;
extern _KLclassGVKd KLabsent_engine_nodeGVKg;
extern _KLmm_wrapperGVKi_0 KLabsent_engine_nodeGVKgW;
extern _KLsimple_object_vectorGVKd_2 KDsignature_LsequenceG_typesVKi;
extern _KLclassGVKd KLsubclassGVKe;
extern _KLmm_wrapperGVKi_0 KLsubclassGVKeW;
dylan_value Ksubclass_instanceQVKiI (dylan_value, dylan_value);
extern _KLclassGVKd KLpairGVKd;
extern _KLmm_wrapperGVKi_0 KLpairGVKdW;
extern _KLfunction_classGVKi KLkeyword_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLkeyword_methodGVKeW;
extern _KLclassGVKd KLkeyword_signatureAvaluesGVKi;
extern _KLmm_wrapperGVKi_0 KLkeyword_signatureAvaluesGVKiW;
extern _KLclassGVKd KLimplementation_classGVKe;
extern _KLmm_wrapperGVKi_0 KLimplementation_classGVKeW;
extern _KLkeyword_methodGVKe Kdefault_class_constructorVKi;
extern _KLclassGVKd KLsource_recordGVsource_records;
extern _KLmm_wrapperGVKi_0 KLsource_recordGVsource_recordsW;
dylan_value Kclass_instanceQ_rcpl_single_smallVKiI (dylan_value, dylan_value);
extern _KLmoduleGVKe Kfile_source_records_moduleYdylan_userVfile_source_records;
extern _KLclassGVKd KLmoduleGVKe;
extern _KLmm_wrapperGVKi_0 KLmoduleGVKeW;
extern _KLclassGVKd KLflat_file_source_recordGVfile_source_records;

/* Defined object declarations */

extern _KLclassGVKd KLfile_source_recordGVfile_source_records;
extern _KLmm_wrapperGVKi_0 KLfile_source_recordGVfile_source_recordsW;
extern _KLkeyword_methodGVKe KmakeVKdMfile_source_recordsM0;
dylan_value KmakeVKdMfile_source_recordsM0I (dylan_value, dylan_value);
extern _KLsimple_methodGVKe Kid_as_source_recordVsource_recordsMfile_source_recordsM0;
dylan_value Kid_as_source_recordVsource_recordsMfile_source_recordsM0I (dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLsimple_methodGVKe Kprint_source_line_locationVsource_recordsMfile_source_recordsM0;
dylan_value Kprint_source_line_locationVsource_recordsMfile_source_recordsM0I (dylan_value, dylan_value, dylan_value);
extern _KLsimple_methodGVKe Ksource_line_locationVsource_recordsMfile_source_recordsM0;
dylan_value Ksource_line_locationVsource_recordsMfile_source_recordsM0I (dylan_value, dylan_value);
static _KLsignatureGVKe K15;
static _KLsimple_object_vectorGVKd_2 K16;
static _KLsymbolGVKd KJcheck_if_existsQ_;
static _KLbyte_stringGVKd_5 K18;
static _KLbyte_stringGVKd_16 K19;
static _KLsignatureGVKe K20;
static _KLsimple_object_vectorGVKd_3 K21;
static _KLsignatureAvaluesGVKi K22;
static _KLsimple_object_vectorGVKd_4 K23;
static _KLsimple_object_vectorGVKd_1 K24;
static _KLsingletonGVKd K25;
extern _KLsealed_generic_functionGVKe Kfile_source_record_idsVfile_source_records;
extern _KLsimple_methodGVKe Kfile_source_record_idsVfile_source_recordsMM0;
dylan_value Kfile_source_record_idsVfile_source_recordsMM0I (dylan_value, dylan_value, dylan_value);
static _KLpairGVKd K29;
static _KLpairGVKd K30;
static _KLsignatureAvaluesGVKi K31;
static _KLbyte_stringGVKd_22 K32;
static _KLsimple_object_vectorGVKd_3 K33;
static _KLsubclassGVKe K34;
static _KLsignatureAvaluesGVKi K35;
static _KLsimple_object_vectorGVKd_3 K36;
static _KLkeyword_signatureAvaluesGVKi K37;
static _KLsimple_object_vectorGVKd_1 K38;
static _KLimplementation_classGVKe K39;
static _KLsimple_object_vectorGVKd_1 K40;
static _KLsimple_object_vectorGVKd_6 K41;
static _KLbyte_stringGVKd_20 K42;
static _KLpairGVKd K43;

/* Indirection variables */

static dylan_value IKJcheck_if_existsQ_ = &KJcheck_if_existsQ_;

/* Variables */

dylan_value Lfile_source_recordGVfile_source_records = &KLfile_source_recordGVfile_source_records;
dylan_value Tdefault_file_source_record_classTYfile_source_records_implementationVfile_source_records = &KPfalseVKi;
dylan_value file_source_record_idsVfile_source_records = &Kfile_source_record_idsVfile_source_records;

/* Objects */

_KLclassGVKd KLfile_source_recordGVfile_source_records = {
  &KLclassGVKdW /* wrapper */,
  &Kclass_instanceQ_rcpl_single_smallVKiI,
  &K42,
  &K39,
  (dylan_value) 1,
  &Kfile_source_records_moduleYdylan_userVfile_source_records
};

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

_KLkeyword_methodGVKe KmakeVKdMfile_source_recordsM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_2,
  &K37,
  &key_mep_2,
  &KmakeVKdMfile_source_recordsM0I,
  &KPempty_vectorVKi
};

_KLsimple_methodGVKe Kid_as_source_recordVsource_recordsMfile_source_recordsM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_4,
  &K22,
  &Kid_as_source_recordVsource_recordsMfile_source_recordsM0I
};

_KLsimple_methodGVKe Kprint_source_line_locationVsource_recordsMfile_source_recordsM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_3,
  &K20,
  &Kprint_source_line_locationVsource_recordsMfile_source_recordsM0I
};

_KLsimple_methodGVKe Ksource_line_locationVsource_recordsMfile_source_recordsM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K15,
  &Ksource_line_locationVsource_recordsMfile_source_recordsM0I
};

static _KLsignatureGVKe K15 = {
  &KLsignatureGVKeW /* wrapper */,
  (dylan_value) 41945097,
  &K16
};

static _KLsimple_object_vectorGVKd_2 K16 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KLfile_source_recordGVfile_source_records,
  &KLintegerGVKd
};

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

static _KLbyte_stringGVKd_5 K18 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 21,
  "%s:%s"
};

static _KLbyte_stringGVKd_16 K19 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 65,
  "check-if-exists?"
};

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

static _KLsimple_object_vectorGVKd_3 K21 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 13,
  &KLfile_source_recordGVfile_source_records,
  &KLintegerGVKd,
  &KLobjectGVKd
};

static _KLsignatureAvaluesGVKi K22 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555473,
  &K23,
  &K24
};

static _KLsimple_object_vectorGVKd_4 K23 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 17,
  &K25,
  &KLobjectGVKd,
  &KLlocatorGYlocators_protocolVcommon_dylan,
  &KLobjectGVKd
};

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

static _KLsingletonGVKd K25 = {
  &KLsingletonGVKdW /* wrapper */,
  &Ksingleton_pointer_idQ_instanceQVKiI,
  &KLfile_source_recordGVfile_source_records
};

_KLsealed_generic_functionGVKe Kfile_source_record_idsVfile_source_records = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_3,
  &K31,
  &KPfalseVKi,
  &K32,
  &K29,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLsimple_methodGVKe Kfile_source_record_idsVfile_source_recordsMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_3,
  &K35,
  &Kfile_source_record_idsVfile_source_recordsMM0I
};

static _KLpairGVKd K29 = {
  &KLpairGVKdW /* wrapper */,
  &Kfile_source_record_idsVfile_source_recordsMM0,
  &K30
};

static _KLpairGVKd K30 = {
  &KLpairGVKdW /* wrapper */,
  &Kfile_source_record_idsVfile_source_recordsMM1,
  &KPempty_listVKi
};

static _KLsignatureAvaluesGVKi K31 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555469,
  &K33,
  &KDsignature_LsequenceG_typesVKi
};

static _KLbyte_stringGVKd_22 K32 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 89,
  "file-source-record-ids"
};

static _KLsimple_object_vectorGVKd_3 K33 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 13,
  &K34,
  &KLlocatorGYlocators_protocolVcommon_dylan,
  &KLlocatorGYlocators_protocolVcommon_dylan
};

static _KLsubclassGVKe K34 = {
  &KLsubclassGVKeW /* wrapper */,
  &Ksubclass_instanceQVKiI,
  &KLfile_source_recordGVfile_source_records
};

static _KLsignatureAvaluesGVKi K35 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555469,
  &K36,
  &KDsignature_LsequenceG_typesVKi
};

static _KLsimple_object_vectorGVKd_3 K36 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 13,
  &K25,
  &KLlocatorGYlocators_protocolVcommon_dylan,
  &KLlocatorGYlocators_protocolVcommon_dylan
};

static _KLkeyword_signatureAvaluesGVKi K37 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 35390469,
  &K38,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &K24
};

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

static _KLimplementation_classGVKe K39 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 410255361,
  &KLfile_source_recordGVfile_source_records,
  &KLfile_source_recordGVfile_source_recordsW,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (dylan_value) -3,
  &Kdefault_class_constructorVKi,
  &K40,
  &K41,
  (dylan_value) 9,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &K43,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

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

static _KLsimple_object_vectorGVKd_6 K41 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 25,
  &KLobjectGVKd,
  &KLsource_recordGVsource_records,
  &KLfile_source_recordGVfile_source_records,
  &KPfalseVKi,
  &KPfalseVKi,
  &KPfalseVKi
};

static _KLbyte_stringGVKd_20 K42 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 81,
  "<file-source-record>"
};

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

/* Code */

dylan_value KmakeVKdMfile_source_recordsM0I (dylan_value class_, dylan_value keys_) {
  dylan_value T3;
  dylan_value T4_0;
  dylan_value T5_0;

  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:12
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:15
  T3 = Tdefault_file_source_record_classTYfile_source_records_implementationVfile_source_records;
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:15
  T5_0 = APPLY2(&KmakeVKd, T3, keys_);
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:12
  T4_0 = T5_0;
  {
    MV_CHECK_TYPE_PROLOGUE(T5_0);
    primitive_type_check(T4_0, &KLfile_source_recordGVfile_source_records);
    MV_CHECK_TYPE_EPILOGUE();
  }
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:12
  MV_SET_COUNT(1);
  return(T4_0);
}

dylan_value Kid_as_source_recordVsource_recordsMfile_source_recordsM0I (dylan_value class_, dylan_value project_, dylan_value location_, dylan_value id_) {
  dylan_value T5;
  dylan_value T6_0;
  dylan_value T7_0;

  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:32
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:38
  T5 = Tdefault_file_source_record_classTYfile_source_records_implementationVfile_source_records;
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:37
  T6_0 = CALL4(&Kid_as_source_recordVsource_records, T5, project_, location_, id_);
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:32
  T7_0 = T6_0;
  {
    MV_CHECK_TYPE_PROLOGUE(T6_0);
    primitive_type_check(T7_0, &KLfile_source_recordGVfile_source_records);
    MV_CHECK_TYPE_EPILOGUE();
  }
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:32
  MV_SET_COUNT(1);
  return(T7_0);
}

dylan_value Kprint_source_line_locationVsource_recordsMfile_source_recordsM0I (dylan_value sr_, dylan_value line_number_, dylan_value stream_) {
  dylan_value T4;
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  _KLsimple_object_vectorGVKd_2 T8 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};
  DWORD T9;
  DWORD T10;
  DWORD T11;
  DWORD T12;
  dylan_value T13;

  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:41
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:45
  T8.vector_element_[0] = IKJcheck_if_existsQ_;
  T8.vector_element_[1] = &KPfalseVKi;
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:45
  CONGRUENT_CALL_PROLOG(&Ksource_record_locationVsource_records, 2);
  T4 = CONGRUENT_CALL2(sr_, &T8);
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:45
  CONGRUENT_CALL_PROLOG(&Klocator_nameYlocatorsVsystem, 1);
  T5 = CONGRUENT_CALL1(T4);
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:46
  CONGRUENT_CALL_PROLOG(&Ksource_record_start_lineVsource_records, 1);
  T6 = CONGRUENT_CALL1(sr_);
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:46
  T9 = primitive_cast_integer_as_raw(line_number_);
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:46
  T10 = primitive_cast_integer_as_raw(T6);
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:46
  T11 = primitive_machine_word_logxor(T10,1);
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:46
  T12 = primitive_machine_word_add_signal_overflow(T9,T11);
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:46
  T13 = primitive_cast_raw_as_integer(T12);
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:44
  T7 = CALL4(&KformatYformatVio, stream_, &K18, T5, T13);
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:41
  MV_SET_COUNT(0);
  return(T7);
}

dylan_value Ksource_line_locationVsource_recordsMfile_source_recordsM0I (dylan_value sr_, dylan_value line_number_) {
  dylan_value T3;
  dylan_value T4;
  dylan_value T5;
  DWORD T6;
  DWORD T7;
  DWORD T8;
  DWORD T9;
  dylan_value T10;
  dylan_value T11_0;
  dylan_value T11_1;

  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:49
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:52
  CONGRUENT_CALL_PROLOG(&Ksource_record_locationVsource_records, 2);
  T3 = CONGRUENT_CALL2(sr_, &KPempty_vectorVKi);
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:52
  CONGRUENT_CALL_PROLOG(&Klocator_nameYlocatorsVsystem, 1);
  T4 = CONGRUENT_CALL1(T3);
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:53
  CONGRUENT_CALL_PROLOG(&Ksource_record_start_lineVsource_records, 1);
  T5 = CONGRUENT_CALL1(sr_);
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:53
  T6 = primitive_cast_integer_as_raw(line_number_);
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:53
  T7 = primitive_cast_integer_as_raw(T5);
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:53
  T8 = primitive_machine_word_logxor(T7,1);
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:53
  T9 = primitive_machine_word_add_signal_overflow(T6,T8);
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:53
  T10 = primitive_cast_raw_as_integer(T9);
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:52
  T11_0 = T4;
  T11_1 = T10;
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:49
  MV_SET_ELT(1, T11_1);
  MV_SET_COUNT(2);
  return(T11_0);
}

dylan_value Kfile_source_record_idsVfile_source_recordsMM0I (dylan_value class_, dylan_value directory_, dylan_value file_) {
  dylan_value T4;
  dylan_value T5_0;

  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:25
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:29
  T4 = Tdefault_file_source_record_classTYfile_source_records_implementationVfile_source_records;
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:29
  T5_0 = CALL3(&Kfile_source_record_idsVfile_source_records, T4, directory_, file_);
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:25
  MV_SET_COUNT(1);
  return(T5_0);
}


/* SYSTEM INIT CODE */

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

    T0 = KPresolve_symbolVKiI(&KJcheck_if_existsQ_);
    if (T0 != &KJcheck_if_existsQ_) {
      IKJcheck_if_existsQ_ = T0;
    }
  }
{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:7
  T0 = KPadd_classVKeI(&KLfile_source_recordGVfile_source_records);
  goto I0;
}
I0:

  return;
}

/* USER INIT CODE */

void _Init_file_source_records__X_file_source_records_for_user () {
{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:12
  T0 = KPadd_a_methodVKnI(&KmakeVKd, &KmakeVKdMfile_source_recordsM0, &Kfile_source_records_libraryYdylan_userVfile_source_records, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I5;
}
I5:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:32
  T0 = KPadd_a_methodVKnI(&Kid_as_source_recordVsource_records, &Kid_as_source_recordVsource_recordsMfile_source_recordsM0, &Kfile_source_records_libraryYdylan_userVfile_source_records, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I8;
}
I8:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:41
  T0 = KPadd_a_methodVKnI(&Kprint_source_line_locationVsource_records, &Kprint_source_line_locationVsource_recordsMfile_source_recordsM0, &Kfile_source_records_libraryYdylan_userVfile_source_records, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I11;
}
I11:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:49
  T0 = KPadd_a_methodVKnI(&Ksource_line_locationVsource_records, &Ksource_line_locationVsource_recordsMfile_source_recordsM0, &Kfile_source_records_libraryYdylan_userVfile_source_records, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I14;
}
I14:

  return;
}


/* eof */
