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

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

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

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

typedef struct {
  D wrapper;
} _KLintegerGVKd;

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

typedef struct {
  D wrapper;
  D signature_properties_;
  D signature_required_;
  D signature_values_;
} _KLsignatureAvaluesGVKi;

typedef struct {
  D wrapper;
} _KLlocatorGYlocators_protocolVcommon_dylan;

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

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

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

typedef struct {
  D wrapper;
  D instanceQ_iep_;
  D subclass_class_;
} _KLsubclassGVKe;

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

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

typedef struct {
  D wrapper;
} _KLsource_recordGVsource_records;

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

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


/* Typedefs for defined classes */

typedef struct {
  D wrapper;
} _KLfile_source_recordGVfile_source_records;


/* Referenced object declarations */

D KPadd_classVKeI (D);
D KPadd_a_methodVKnI (D, D, D, D, D, D);
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;
D Ksingleton_pointer_idQ_instanceQVKiI (D, D);
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;
D Ksubclass_instanceQVKiI (D, D);
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;
D Kclass_instanceQ_rcpl_single_smallVKiI (D, D);
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;
D KmakeVKdMfile_source_recordsM0I (D, D);
extern _KLsimple_methodGVKe Kid_as_source_recordVsource_recordsMfile_source_recordsM0;
D Kid_as_source_recordVsource_recordsMfile_source_recordsM0I (D, D, D, D);
extern _KLsimple_methodGVKe Kprint_source_line_locationVsource_recordsMfile_source_recordsM0;
D Kprint_source_line_locationVsource_recordsMfile_source_recordsM0I (D, D, D);
extern _KLsimple_methodGVKe Ksource_line_locationVsource_recordsMfile_source_recordsM0;
D Ksource_line_locationVsource_recordsMfile_source_recordsM0I (D, D);
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;
D Kfile_source_record_idsVfile_source_recordsMM0I (D, D, D);
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 D IKJcheck_if_existsQ_ = &KJcheck_if_existsQ_;

/* Variables */

D Lfile_source_recordGVfile_source_records = &KLfile_source_recordGVfile_source_records;
D Tdefault_file_source_record_classTYfile_source_records_implementationVfile_source_records = &KPfalseVKi;
D 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,
  (D) 1,
  &Kfile_source_records_moduleYdylan_userVfile_source_records
};

_KLmm_wrapperGVKi_0 KLfile_source_recordGVfile_source_recordsW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K39,
  (D) 1,
  1,
  33554439,
  (D) 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 */,
  (D) 41945097,
  &K16
};

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

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

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

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

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

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

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

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

static _KLsimple_object_vectorGVKd_1 K24 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 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 */,
  (D) 33555469,
  &K33,
  &KDsignature_LsequenceG_typesVKi
};

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

static _KLsimple_object_vectorGVKd_3 K33 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 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 */,
  (D) 33555469,
  &K36,
  &KDsignature_LsequenceG_typesVKi
};

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

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

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

static _KLimplementation_classGVKe K39 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (D) 410255361,
  &KLfile_source_recordGVfile_source_records,
  &KLfile_source_recordGVfile_source_recordsW,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (D) -3,
  &Kdefault_class_constructorVKi,
  &K40,
  &K41,
  (D) 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 */,
  (D) 5,
  &KLsource_recordGVsource_records
};

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

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

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

/* Code */

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

  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:12
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:15
  T3 = Tdefault_file_source_record_classTYfile_source_records_implementationVfile_source_records;
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:15
  T5_0 = APPLY2(&KmakeVKd, T3, keys_);
  // /Users/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();
  }
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:12
  MV_SET_COUNT(1);
  return(T4_0);
}

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

  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:32
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:38
  T5 = Tdefault_file_source_record_classTYfile_source_records_implementationVfile_source_records;
  // /Users/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_);
  // /Users/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();
  }
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:32
  MV_SET_COUNT(1);
  return(T7_0);
}

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

  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:41
  // /Users/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;
  // /Users/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);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:45
  CONGRUENT_CALL_PROLOG(&Klocator_nameYlocatorsVsystem, 1);
  T5 = CONGRUENT_CALL1(T4);
  // /Users/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_);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:46
  T9 = primitive_cast_integer_as_raw(line_number_);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:46
  T10 = primitive_cast_integer_as_raw(T6);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:46
  T11 = primitive_machine_word_logxor(T10,1);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:46
  T12 = primitive_machine_word_add_signal_overflow(T9,T11);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:46
  T13 = primitive_cast_raw_as_integer(T12);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:44
  T7 = CALL4(&KformatYformatVio, stream_, &K18, T5, T13);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:41
  MV_SET_COUNT(0);
  return(T7);
}

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

  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:49
  // /Users/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);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:52
  CONGRUENT_CALL_PROLOG(&Klocator_nameYlocatorsVsystem, 1);
  T4 = CONGRUENT_CALL1(T3);
  // /Users/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_);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:53
  T6 = primitive_cast_integer_as_raw(line_number_);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:53
  T7 = primitive_cast_integer_as_raw(T5);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:53
  T8 = primitive_machine_word_logxor(T7,1);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:53
  T9 = primitive_machine_word_add_signal_overflow(T6,T8);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:53
  T10 = primitive_cast_raw_as_integer(T9);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:52
  T11_0 = T4;
  T11_1 = T10;
  // /Users/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);
}

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

  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:25
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/file-source-records.dylan:29
  T4 = Tdefault_file_source_record_classTYfile_source_records_implementationVfile_source_records;
  // /Users/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_);
  // /Users/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 D KPresolve_symbolVKiI(D);
  {
    D T0;

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

  // /Users/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 () {
{
  D T0;

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

{
  D T0;

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

{
  D T0;

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

{
  D T0;

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