#include "opendylan/run-time.h"

/* Generated by Open Dylan 2014.1 for x86_64-linux */

/* Typedefs for referenced classes */

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

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

typedef struct {
  dylan_value wrapper;
} _KLobjectGVKd;

typedef struct {
  dylan_value wrapper;
} _KLunboundGVKe;

typedef struct {
  dylan_value wrapper;
} _KLbooleanGVKd;

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

#define  define__KLsimple_object_vectorGVKd(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value size_; \
    dylan_value vector_element_[nrepeated+1]; \
  } _KLsimple_object_vectorGVKd_##nrepeated;
define__KLsimple_object_vectorGVKd(6);
define__KLsimple_object_vectorGVKd(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 {
  dylan_value wrapper;
  dylan_value head_;
  dylan_value tail_;
} _KLempty_listGVKd;

typedef struct {
  dylan_value wrapper;
} _KLsource_locationGVsource_records;

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

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

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

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

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

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

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

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

typedef struct {
  dylan_value wrapper;
} _KLintegerGVKd;

typedef struct {
  dylan_value wrapper;
} _KLbig_source_offsetGVsource_records;

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


/* Typedefs for defined classes */

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

typedef struct {
  dylan_value wrapper;
  dylan_value 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;
dylan_value KerrorVKdMM1I (dylan_value, dylan_value);
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;
dylan_value Kclass_instanceQ_initialVKiI (dylan_value, dylan_value);
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;
dylan_value Ksource_location_end_offsetVsource_recordsMM0I (dylan_value);
extern _KLgetter_methodGVKi Ksource_location_start_offsetVsource_recordsMM0;
extern _KLgetter_methodGVKi Ksource_location_source_recordVsource_recordsMM0;
extern _KLsimple_methodGVKe Ksource_offset_columnVsource_recordsMM0;
dylan_value Ksource_offset_columnVsource_recordsMM0I (dylan_value);
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;
dylan_value KLline_source_locationGZ32ZconstructorYsource_records_implementationVsource_recordsMM0I (dylan_value, dylan_value, dylan_value, dylan_value);
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;
dylan_value KLline_source_offsetGZ32ZconstructorYsource_records_implementationVsource_recordsMM0I (dylan_value, dylan_value, dylan_value);
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;
dylan_value Kmake_line_locationVsource_recordsMM0I (dylan_value, dylan_value);
static _KLsignatureAvaluesGVKi K47;

/* Indirection variables */

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

/* Variables */

dylan_value make_line_locationVsource_records = &Kmake_line_locationVsource_recordsMM0;
dylan_value Lline_source_locationGVsource_records = &KLline_source_locationGVsource_records;
dylan_value 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,
  (dylan_value) 1,
  &Ksource_records_moduleYdylan_userVsource_records
};

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

static _KLimplementation_classGVKe K9 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 477102089,
  &KLline_source_locationGVsource_records,
  &KLline_source_locationGVsource_recordsW,
  &KPfalseVKi,
  &K10,
  (dylan_value) -3,
  &KLline_source_locationGZ32ZconstructorYsource_records_implementationVsource_recordsMM0,
  &K13,
  &K14,
  (dylan_value) 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 */,
  (dylan_value) 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 */,
  (dylan_value) 5,
  &KLsource_locationGVsource_records
};

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

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

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

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

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

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

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

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

_KLinstance_slot_descriptorGVKe Ksource_location_source_recordVsource_recordsHLline_source_locationG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 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 */,
  (dylan_value) 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 */,
  (dylan_value) 89,
  "<line-source-location>"
};

_KLinstance_slot_descriptorGVKe Ksource_offset_lineVsource_recordsHLline_source_offsetG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 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,
  (dylan_value) 1,
  &Ksource_records_moduleYdylan_userVsource_records
};

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

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

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

static _KLimplementation_classGVKe K32 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 477102085,
  &KLline_source_offsetGVsource_records,
  &KLline_source_offsetGVsource_recordsW,
  &KPfalseVKi,
  &K33,
  (dylan_value) -3,
  &KLline_source_offsetGZ32ZconstructorYsource_records_implementationVsource_recordsMM0,
  &K36,
  &K37,
  (dylan_value) 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 */,
  (dylan_value) 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 */,
  (dylan_value) 5,
  &KLbig_source_offsetGVsource_records
};

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

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

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

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

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

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

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

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

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

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

/* Code */

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

  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:19
  // /home/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_);
  // /home/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();
  }
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:19
  MV_SET_COUNT(1);
  return(T3_0);
}

dylan_value Ksource_offset_columnVsource_recordsMM0I (dylan_value offset_) {
  dylan_value T2_0;

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

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

  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:7
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:7
  T12 = primitive_idQ(Uunique_source_location_source_record_,&KPunboundVKi);
  // /home/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);
    // /home/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_;
  }
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:7
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:7
  T15 = primitive_idQ(Uunique_source_location_start_offset_,&KPunboundVKi);
  // /home/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);
    // /home/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_;
  }
  // /home/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;
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:7
  MV_SET_COUNT(1);
  return(T11_0);
}

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

  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:14
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:14
  T9 = primitive_idQ(Uunique_source_offset_line_,&KPunboundVKi);
  // /home/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);
    // /home/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_;
  }
  // /home/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;
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:14
  MV_SET_COUNT(1);
  return(T8_0);
}

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

  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:29
  // /home/bruce/Development/dylan/opendylan/sources/lib/source-records/line-source-locations.dylan:31
  T5.vector_element_[0] = IKJline_;
  T5.vector_element_[1] = line_;
  // /home/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);
  // /home/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_;
  // /home/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);
  // /home/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 dylan_value KPresolve_symbolVKiI(dylan_value);
  {
    dylan_value 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);
    }
  }
  {
    dylan_value 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);
    }
  }
  {
    dylan_value 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 */
