#include "run-time.h"

/* Typedefs for referenced classes */

typedef struct {
  D wrapper;
  D instanceQ_iep_;
  D debug_name_;
  D class_implementation_class_;
  D class_subtype_bit_;
  D class_module_;
} _KLclassGVKd;

#define  define__KLmm_wrapperGVKi(nrepeated) \
  typedef struct { \
    D wrapper; \
    D mm_wrapper_implementation_class_; \
    D mm_wrapper_subtype_mask_; \
    DWORD mm_wrapper_fixed_part_; \
    DWORD mm_wrapper_variable_part_; \
    D mm_wrapper_number_patterns_; \
    DWORD mm_wrapper_pattern_element_[nrepeated+1]; \
  } _KLmm_wrapperGVKi_##nrepeated;
define__KLmm_wrapperGVKi(1);
define__KLmm_wrapperGVKi(0);

typedef struct {
  D wrapper;
} _KLobjectGVKd;

typedef struct {
  D wrapper;
} _KLunboundGVKe;

typedef struct {
  D wrapper;
} _KLbooleanGVKd;

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

#define  define__KLsimple_object_vectorGVKd(nrepeated) \
  typedef struct { \
    D wrapper; \
    D size_; \
    D vector_element_[nrepeated+1]; \
  } _KLsimple_object_vectorGVKd_##nrepeated;
define__KLsimple_object_vectorGVKd(6);
define__KLsimple_object_vectorGVKd(4);
define__KLsimple_object_vectorGVKd(16);
define__KLsimple_object_vectorGVKd(256);
define__KLsimple_object_vectorGVKd(2);
define__KLsimple_object_vectorGVKd(1);
define__KLsimple_object_vectorGVKd(0);

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

typedef struct {
  D wrapper;
} _KLsource_locationGVsource_records;

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

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 symbol_name_;
} _KLsymbolGVKd;

#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(4);
define__KLbyte_stringGVKd(22);
define__KLbyte_stringGVKd(13);
define__KLbyte_stringGVKd(12);
define__KLbyte_stringGVKd(23);

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

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

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

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

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

typedef struct {
  D wrapper;
} _KLintegerGVKd;

typedef struct {
  D wrapper;
} _KLbig_source_offsetGVsource_records;

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

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


/* Typedefs for defined classes */

typedef struct {
  D wrapper;
  D source_location_source_record_;
  D source_location_start_offset_;
} _KLline_source_locationGVsource_records;

typedef struct {
  D wrapper;
  D source_offset_line_;
} _KLline_source_offsetGVsource_records;


/* 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 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;
extern _KLclassGVKd KLsource_locationGVsource_records;
extern _KLmm_wrapperGVKi_0 KLsource_locationGVsource_recordsW;
D KerrorVKdMM1I (D, D);
extern _KLunionGVKe KLsource_offsetGVsource_records;
extern _KLclassGVKd KLunionGVKe;
extern _KLmm_wrapperGVKi_0 KLunionGVKeW;
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 KLsymbolGVKd;
extern _KLmm_wrapperGVKi_0 KLsymbolGVKdW;
extern _KLclassGVKd KLbyte_stringGVKd;
extern _KLmm_wrapperGVKi_0 KLbyte_stringGVKdW;
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 _KLincremental_generic_functionGVKe Ksource_location_start_offsetVsource_records;
extern _KLincremental_generic_functionGVKe Ksource_location_source_recordVsource_records;
D Kclass_instanceQ_initialVKiI (D, D);
extern _KLmoduleGVKe Ksource_records_moduleYdylan_userVsource_records;
extern _KLclassGVKd KLmoduleGVKe;
extern _KLmm_wrapperGVKi_0 KLmoduleGVKeW;
extern _KLclassGVKd KLgetter_methodGVKi;
extern _KLmm_wrapperGVKi_0 KLgetter_methodGVKiW;
extern _KLincremental_generic_functionGVKe Ksource_offset_lineVsource_records;
extern _KLclassGVKd KLintegerGVKd;
extern _KLmm_wrapperGVKi_0 KLintegerGVKdW;
extern _KLclassGVKd KLbig_source_offsetGVsource_records;
extern _KLmm_wrapperGVKi_0 KLbig_source_offsetGVsource_recordsW;
extern _KLfunction_classGVKi KLsimple_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLsimple_methodGVKeW;
extern _KLclassGVKd KLsignatureAvaluesGVKi;
extern _KLmm_wrapperGVKi_0 KLsignatureAvaluesGVKiW;
extern _KLsimple_object_vectorGVKd_16 KDsignature_LintegerG_typesVKi;
extern _KLincremental_generic_functionGVKe KmakeVKd;

/* Defined object declarations */

extern _KLsimple_methodGVKe Ksource_location_end_offsetVsource_recordsMM0;
D Ksource_location_end_offsetVsource_recordsMM0I (D);
extern _KLgetter_methodGVKi Ksource_location_start_offsetVsource_recordsMM0;
extern _KLgetter_methodGVKi Ksource_location_source_recordVsource_recordsMM0;
extern _KLsimple_methodGVKe Ksource_offset_columnVsource_recordsMM0;
D Ksource_offset_columnVsource_recordsMM0I (D);
extern _KLgetter_methodGVKi Ksource_offset_lineVsource_recordsMM0;
extern _KLclassGVKd KLline_source_locationGVsource_records;
extern _KLmm_wrapperGVKi_0 KLline_source_locationGVsource_recordsW;
static _KLimplementation_classGVKe K9;
static _KLsimple_object_vectorGVKd_2 K10;
extern _KLkeyword_methodGVKe KLline_source_locationGZ32ZconstructorYsource_records_implementationVsource_recordsMM0;
D KLline_source_locationGZ32ZconstructorYsource_records_implementationVsource_recordsMM0I (D, D, D, D);
static _KLsimple_object_vectorGVKd_1 K13;
static _KLsimple_object_vectorGVKd_6 K14;
static _KLsymbolGVKd KJsource_record_;
static _KLbyte_stringGVKd_23 K16;
static _KLsymbolGVKd KJstart_offset_;
static _KLbyte_stringGVKd_12 K18;
static _KLbyte_stringGVKd_13 K19;
static _KLkeyword_signatureAvaluesGVKi K20;
static _KLsimple_object_vectorGVKd_4 K21;
static _KLsimple_object_vectorGVKd_2 K22;
static _KLsimple_object_vectorGVKd_1 K23;
extern _KLinstance_slot_descriptorGVKe Ksource_location_source_recordVsource_recordsHLline_source_locationG;
extern _KLinstance_slot_descriptorGVKe Ksource_location_start_offsetVsource_recordsHLline_source_locationG;
static _KLbyte_stringGVKd_22 K26;
extern _KLinstance_slot_descriptorGVKe Ksource_offset_lineVsource_recordsHLline_source_offsetG;
extern _KLclassGVKd KLline_source_offsetGVsource_records;
extern _KLmm_wrapperGVKi_0 KLline_source_offsetGVsource_recordsW;
static _KLsymbolGVKd KJline_;
static _KLbyte_stringGVKd_4 K31;
static _KLimplementation_classGVKe K32;
static _KLsimple_object_vectorGVKd_1 K33;
extern _KLkeyword_methodGVKe KLline_source_offsetGZ32ZconstructorYsource_records_implementationVsource_recordsMM0;
D KLline_source_offsetGZ32ZconstructorYsource_records_implementationVsource_recordsMM0I (D, D, D);
static _KLsimple_object_vectorGVKd_1 K36;
static _KLsimple_object_vectorGVKd_6 K37;
static _KLkeyword_signatureAvaluesGVKi K38;
static _KLsimple_object_vectorGVKd_2 K39;
static _KLsimple_object_vectorGVKd_1 K40;
static _KLsimple_object_vectorGVKd_1 K41;
static _KLbyte_stringGVKd_20 K42;
static _KLsignatureAvaluesGVKi K43;
static _KLsignatureAvaluesGVKi K44;
extern _KLsimple_methodGVKe Kmake_line_locationVsource_recordsMM0;
D Kmake_line_locationVsource_recordsMM0I (D, D);
static _KLsignatureAvaluesGVKi K47;

/* Indirection variables */

static D IKJsource_record_ = &KJsource_record_;
static D IKJstart_offset_ = &KJstart_offset_;
static D IKJline_ = &KJline_;

/* Variables */

D make_line_locationVsource_records = &Kmake_line_locationVsource_recordsMM0;
D Lline_source_locationGVsource_records = &KLline_source_locationGVsource_records;
D Lline_source_offsetGVsource_records = &KLline_source_offsetGVsource_records;

/* Objects */

_KLsimple_methodGVKe Ksource_location_end_offsetVsource_recordsMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K44,
  &Ksource_location_end_offsetVsource_recordsMM0I
};

_KLgetter_methodGVKi Ksource_location_start_offsetVsource_recordsMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Ksource_location_start_offsetVsource_recordsHLline_source_locationG
};

_KLgetter_methodGVKi Ksource_location_source_recordVsource_recordsMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Ksource_location_source_recordVsource_recordsHLline_source_locationG
};

_KLsimple_methodGVKe Ksource_offset_columnVsource_recordsMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K43,
  &Ksource_offset_columnVsource_recordsMM0I
};

_KLgetter_methodGVKi Ksource_offset_lineVsource_recordsMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Ksource_offset_lineVsource_recordsHLline_source_offsetG
};

_KLclassGVKd KLline_source_locationGVsource_records = {
  &KLclassGVKdW /* wrapper */,
  &Kclass_instanceQ_initialVKiI,
  &K26,
  &K9,
  (D) 1,
  &Ksource_records_moduleYdylan_userVsource_records
};

_KLmm_wrapperGVKi_0 KLline_source_locationGVsource_recordsW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K9,
  (D) 1,
  9,
  33554439,
  (D) 1
};

static _KLimplementation_classGVKe K9 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (D) 477102089,
  &KLline_source_locationGVsource_records,
  &KLline_source_locationGVsource_recordsW,
  &KPfalseVKi,
  &K10,
  (D) -3,
  &KLline_source_locationGZ32ZconstructorYsource_records_implementationVsource_recordsMM0,
  &K13,
  &K14,
  (D) 9,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_vectorVKi,
  &K10,
  &K10,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

static _KLsimple_object_vectorGVKd_2 K10 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 9,
  &Ksource_location_source_recordVsource_recordsHLline_source_locationG,
  &Ksource_location_start_offsetVsource_recordsHLline_source_locationG
};

_KLkeyword_methodGVKe KLline_source_locationGZ32ZconstructorYsource_records_implementationVsource_recordsMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_4,
  &K20,
  &key_mep_2,
  &KLline_source_locationGZ32ZconstructorYsource_records_implementationVsource_recordsMM0I,
  &K21
};

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

static _KLsimple_object_vectorGVKd_6 K14 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 25,
  &KLobjectGVKd,
  &KLsource_locationGVsource_records,
  &KLline_source_locationGVsource_records,
  &KPfalseVKi,
  &KPfalseVKi,
  &KPfalseVKi
};

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

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

static _KLsymbolGVKd KJstart_offset_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K18
};

static _KLbyte_stringGVKd_12 K18 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 49,
  "start-offset"
};

static _KLbyte_stringGVKd_13 K19 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 53,
  "source-record"
};

static _KLkeyword_signatureAvaluesGVKi K20 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (D) 35390469,
  &KDsignature_LclassG_typesVKi,
  &K22,
  &KDsignature_LobjectG_typesVKi,
  &K23
};

static _KLsimple_object_vectorGVKd_4 K21 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 17,
  &KJsource_record_,
  &KPunboundVKi,
  &KJstart_offset_,
  &KPunboundVKi
};

static _KLsimple_object_vectorGVKd_2 K22 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 9,
  &KJsource_record_,
  &KJstart_offset_
};

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

_KLinstance_slot_descriptorGVKe Ksource_location_source_recordVsource_recordsHLline_source_locationG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (D) 193,
  &KPfalseVKi,
  &KLline_source_locationGVsource_records,
  &KJsource_record_,
  &Ksource_location_source_recordVsource_records,
  &KPfalseVKi,
  &KLobjectGVKd
};

_KLinstance_slot_descriptorGVKe Ksource_location_start_offsetVsource_recordsHLline_source_locationG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (D) 193,
  &KPfalseVKi,
  &KLline_source_locationGVsource_records,
  &KJstart_offset_,
  &Ksource_location_start_offsetVsource_records,
  &KPfalseVKi,
  &KLsource_offsetGVsource_records
};

static _KLbyte_stringGVKd_22 K26 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 89,
  "<line-source-location>"
};

_KLinstance_slot_descriptorGVKe Ksource_offset_lineVsource_recordsHLline_source_offsetG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (D) 193,
  &KPfalseVKi,
  &KLline_source_offsetGVsource_records,
  &KJline_,
  &Ksource_offset_lineVsource_records,
  &KPfalseVKi,
  &KLintegerGVKd
};

_KLclassGVKd KLline_source_offsetGVsource_records = {
  &KLclassGVKdW /* wrapper */,
  &Kclass_instanceQ_initialVKiI,
  &K42,
  &K32,
  (D) 1,
  &Ksource_records_moduleYdylan_userVsource_records
};

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

static _KLsymbolGVKd KJline_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K31
};

static _KLbyte_stringGVKd_4 K31 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 17,
  "line"
};

static _KLimplementation_classGVKe K32 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (D) 477102085,
  &KLline_source_offsetGVsource_records,
  &KLline_source_offsetGVsource_recordsW,
  &KPfalseVKi,
  &K33,
  (D) -3,
  &KLline_source_offsetGZ32ZconstructorYsource_records_implementationVsource_recordsMM0,
  &K36,
  &K37,
  (D) 9,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_vectorVKi,
  &K33,
  &K33,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

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

_KLkeyword_methodGVKe KLline_source_offsetGZ32ZconstructorYsource_records_implementationVsource_recordsMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_3,
  &K38,
  &key_mep_2,
  &KLline_source_offsetGZ32ZconstructorYsource_records_implementationVsource_recordsMM0I,
  &K39
};

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

static _KLsimple_object_vectorGVKd_6 K37 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 25,
  &KLobjectGVKd,
  &KLbig_source_offsetGVsource_records,
  &KLline_source_offsetGVsource_records,
  &KPfalseVKi,
  &KPfalseVKi,
  &KPfalseVKi
};

static _KLkeyword_signatureAvaluesGVKi K38 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (D) 35390469,
  &KDsignature_LclassG_typesVKi,
  &K40,
  &KDsignature_LobjectG_typesVKi,
  &K41
};

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

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

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

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

static _KLsignatureAvaluesGVKi K43 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (D) 33555461,
  &K41,
  &KDsignature_LintegerG_typesVKi
};

static _KLsignatureAvaluesGVKi K44 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (D) 33555461,
  &K23,
  &K41
};

_KLsimple_methodGVKe Kmake_line_locationVsource_recordsMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K47,
  &Kmake_line_locationVsource_recordsMM0I
};

static _KLsignatureAvaluesGVKi K47 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (D) 33555465,
  &KDsignature_LobjectG_typesVKi,
  &K23
};

/* Code */

D Ksource_location_end_offsetVsource_recordsMM0I (D loc_) {
  D T2_0;
  D T3_0;

  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:19
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:21
  CONGRUENT_CALL_PROLOG(&Ksource_location_start_offsetVsource_records, 1);
  T2_0 = CONGRUENT_CALL1(loc_);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:19
  T3_0 = T2_0;
  {
    MV_CHECK_TYPE_PROLOGUE(T2_0);
    primitive_type_check(T3_0, &KLline_source_offsetGVsource_records);
    MV_CHECK_TYPE_EPILOGUE();
  }
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:19
  MV_SET_COUNT(1);
  return(T3_0);
}

D Ksource_offset_columnVsource_recordsMM0I (D offset_) {
  D T2_0;

  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:24
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:26
  T2_0 = (D) 1;
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:24
  MV_SET_COUNT(1);
  return(T2_0);
}

D KLline_source_locationGZ32ZconstructorYsource_records_implementationVsource_recordsMM0I (D class_, D init_args_, D Uunique_source_location_source_record_, D Uunique_source_location_start_offset_) {
  D T5;
  D Uunique_source_location_source_recordF6;
  D T7;
  D Uunique_source_location_start_offsetF8;
  D T9;
  D Uunique_source_location_start_offsetF10;
  D T11_0;
  D T12;
  _KLsimple_object_vectorGVKd_1 T13 = {&KLsimple_object_vectorGVKdW, (D) 5};
  D T14;
  D T15;
  _KLsimple_object_vectorGVKd_1 T16 = {&KLsimple_object_vectorGVKdW, (D) 5};
  D T17;

  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:7
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:7
  T12 = primitive_idQ(Uunique_source_location_source_record_,&KPunboundVKi);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:7
  if (T12 != &KPfalseVKi) {
    T13.vector_element_[0] = IKJsource_record_;
    T14 = KerrorVKdMM1I(&K16, &T13);
    // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:7
    T5 = T14;
    Uunique_source_location_source_recordF6 = T5;
  } else {
    Uunique_source_location_source_recordF6 = Uunique_source_location_source_record_;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:7
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:7
  T15 = primitive_idQ(Uunique_source_location_start_offset_,&KPunboundVKi);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:7
  if (T15 != &KPfalseVKi) {
    T16.vector_element_[0] = IKJstart_offset_;
    T17 = KerrorVKdMM1I(&K16, &T16);
    // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:7
    T7 = T17;
    Uunique_source_location_start_offsetF8 = T7;
  } else {
    Uunique_source_location_start_offsetF8 = Uunique_source_location_start_offset_;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:7
  T9 = primitive_object_allocate_filled(3,&KLline_source_locationGVsource_recordsW,2,&KPunboundVKi,0,0,&KPunboundVKi);
  SLOT_VALUE_SETTER(Uunique_source_location_source_recordF6, T9, 0);
  primitive_type_check(Uunique_source_location_start_offsetF8, &KLsource_offsetGVsource_records);
  Uunique_source_location_start_offsetF10 = Uunique_source_location_start_offsetF8;
  SLOT_VALUE_SETTER(Uunique_source_location_start_offsetF10, T9, 1);
  APPLY2(&KinitializeVKd, T9, init_args_);
  T11_0 = T9;
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:7
  MV_SET_COUNT(1);
  return(T11_0);
}

D KLline_source_offsetGZ32ZconstructorYsource_records_implementationVsource_recordsMM0I (D class_, D init_args_, D Uunique_source_offset_line_) {
  D T4;
  D Uunique_source_offset_lineF5;
  D T6;
  D Uunique_source_offset_lineF7;
  D T8_0;
  D T9;
  _KLsimple_object_vectorGVKd_1 T10 = {&KLsimple_object_vectorGVKdW, (D) 5};
  D T11;

  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:14
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:14
  T9 = primitive_idQ(Uunique_source_offset_line_,&KPunboundVKi);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:14
  if (T9 != &KPfalseVKi) {
    T10.vector_element_[0] = IKJline_;
    T11 = KerrorVKdMM1I(&K16, &T10);
    // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:14
    T4 = T11;
    Uunique_source_offset_lineF5 = T4;
  } else {
    Uunique_source_offset_lineF5 = Uunique_source_offset_line_;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:14
  T6 = primitive_object_allocate_filled(2,&KLline_source_offsetGVsource_recordsW,1,&KPunboundVKi,0,0,&KPunboundVKi);
  primitive_type_check(Uunique_source_offset_lineF5, &KLintegerGVKd);
  Uunique_source_offset_lineF7 = Uunique_source_offset_lineF5;
  SLOT_VALUE_SETTER(Uunique_source_offset_lineF7, T6, 0);
  APPLY2(&KinitializeVKd, T6, init_args_);
  T8_0 = T6;
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:14
  MV_SET_COUNT(1);
  return(T8_0);
}

D Kmake_line_locationVsource_recordsMM0I (D sr_, D line_) {
  D offset_;
  D T4_0;
  _KLsimple_object_vectorGVKd_2 T5 = {&KLsimple_object_vectorGVKdW, (D) 9};
  _KLsimple_object_vectorGVKd_4 T6 = {&KLsimple_object_vectorGVKdW, (D) 17};

  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:29
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:31
  T5.vector_element_[0] = IKJline_;
  T5.vector_element_[1] = line_;
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:31
  CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
  offset_ = CONGRUENT_CALL2(&KLline_source_offsetGVsource_records, &T5);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:32
  T6.vector_element_[0] = IKJsource_record_;
  T6.vector_element_[1] = sr_;
  T6.vector_element_[2] = IKJstart_offset_;
  T6.vector_element_[3] = offset_;
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:32
  CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
  T4_0 = CONGRUENT_CALL2(&KLline_source_locationGVsource_records, &T6);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:29
  MV_SET_COUNT(1);
  return(T4_0);
}


/* SYSTEM INIT CODE */

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

    T0 = KPresolve_symbolVKiI(&KJsource_record_);
    if (T0 != &KJsource_record_) {
      IKJsource_record_ = T0;
      primitive_slot_value_setter(T0, &Ksource_location_source_recordVsource_recordsHLline_source_locationG, 3);
      primitive_repeated_slot_value_setter(T0, &K22, 1, 0);
      primitive_repeated_slot_value_setter(T0, &K21, 1, 0);
    }
  }
  {
    D T0;

    T0 = KPresolve_symbolVKiI(&KJstart_offset_);
    if (T0 != &KJstart_offset_) {
      IKJstart_offset_ = T0;
      primitive_slot_value_setter(T0, &Ksource_location_start_offsetVsource_recordsHLline_source_locationG, 3);
      primitive_repeated_slot_value_setter(T0, &K22, 1, 1);
      primitive_repeated_slot_value_setter(T0, &K21, 1, 2);
    }
  }
  {
    D T0;

    T0 = KPresolve_symbolVKiI(&KJline_);
    if (T0 != &KJline_) {
      IKJline_ = T0;
      primitive_repeated_slot_value_setter(T0, &K40, 1, 0);
      primitive_repeated_slot_value_setter(T0, &K39, 1, 0);
      primitive_slot_value_setter(T0, &Ksource_offset_lineVsource_recordsHLline_source_offsetG, 3);
    }
  }
  return;
}

/* USER INIT CODE */

void _Init_source_records__X_line_source_locations_for_user () {
  return;
}


/* eof */
