#include "opendylan/run-time.h"

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

/* Typedefs for referenced classes */

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

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

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;

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_;
} _KLobject_signatureGVKe;

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

#define  define__KLbyte_stringGVKd(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value size_; \
    char string_element_[nrepeated+1]; \
  } _KLbyte_stringGVKd_##nrepeated;
define__KLbyte_stringGVKd(19);
define__KLbyte_stringGVKd(6);
define__KLbyte_stringGVKd(2);
define__KLbyte_stringGVKd(36);
define__KLbyte_stringGVKd(23);
define__KLbyte_stringGVKd(3);
define__KLbyte_stringGVKd(17);
define__KLbyte_stringGVKd(13);
define__KLbyte_stringGVKd(7);
define__KLbyte_stringGVKd(4);
define__KLbyte_stringGVKd(25);
define__KLbyte_stringGVKd(16);

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

typedef struct {
  dylan_value wrapper;
  dylan_value properties_;
  dylan_value engine_node_callback_;
  dylan_value engine_node_entry_point_;
  dylan_value cache_header_engine_node_next_;
  dylan_value cache_header_engine_node_parent_;
} _KLsimple_typechecked_cache_header_engine_nodeGVKg;

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

typedef struct {
  dylan_value wrapper;
} _KLstreamGYcommon_extensionsVcommon_dylan;

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

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

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

typedef struct {
  dylan_value wrapper;
  dylan_value 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 xep_;
  dylan_value method_slot_descriptor_;
} _KLgetter_methodGVKi;

typedef struct {
  dylan_value wrapper;
  dylan_value element_type_;
  dylan_value table_vector_;
  dylan_value initial_entries_;
  dylan_value grow_size_function_;
  dylan_value weakQ_;
} _KLstring_tableGVKe;

#define  define__KLsimple_closure_methodGVKi(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value xep_; \
    dylan_value function_signature_; \
    dylan_value mep_; \
    dylan_value environment_size_; \
    dylan_value environment_element_[nrepeated+1]; \
  } _KLsimple_closure_methodGVKi_##nrepeated;
define__KLsimple_closure_methodGVKi(0);

typedef struct {
  dylan_value wrapper;
  dylan_value report_format_;
} _KLreportGVenvironment_reports;

typedef struct {
  dylan_value wrapper;
  dylan_value report_format_;
  dylan_value report_project_;
} _KLproject_reportGVenvironment_reports;

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


/* Typedefs for defined classes */

typedef struct {
  dylan_value wrapper;
  dylan_value report_format_;
  dylan_value report_project_;
  dylan_value visited_;
} _KLdependency_reportGVenvironment_reports;


/* Referenced object declarations */

extern _KLclassGVKd KLsimple_object_vectorGVKd;
extern _KLclassGVKd KLclassGVKd;
extern _KLmm_wrapperGVKi_0 KLclassGVKdW;
extern _KLclassGVKd KLmm_wrapperGVKi;
extern _KLmm_wrapperGVKi_1 KLmm_wrapperGVKiW;
extern _KLmm_wrapperGVKi_0 KLsimple_object_vectorGVKdW;
dylan_value Kinstall_reportVenvironment_reportsI (dylan_value, dylan_value, dylan_value, dylan_value);
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;
dylan_value Kproject_nameVenvironment_protocolsI (dylan_value);
extern _KLsealed_generic_functionGVKe KformatYformatVio;
extern _KLclassGVKd KLsealed_generic_functionGVKe;
extern _KLmm_wrapperGVKi_0 KLsealed_generic_functionGVKeW;
extern _KLempty_listGVKd KPempty_listVKi;
extern _KLclassGVKd KLempty_listGVKd;
extern _KLmm_wrapperGVKi_0 KLempty_listGVKdW;
extern _KLincremental_generic_functionGVKe KelementVKd;
extern _KLfunction_classGVKi KLincremental_generic_functionGVKe;
extern _KLclassGVKd KLfunction_classGVKi;
extern _KLmm_wrapperGVKi_0 KLfunction_classGVKiW;
extern _KLmm_wrapperGVKi_0 KLincremental_generic_functionGVKeW;
extern _KLsymbolGVKd KJdefault_;
extern _KLclassGVKd KLsymbolGVKd;
extern _KLmm_wrapperGVKi_0 KLsymbolGVKdW;
extern _KLincremental_generic_functionGVKe Kelement_setterVKd;
extern _KLincremental_generic_functionGVKe Kopen_project_compiler_databaseVenvironment_protocols;
extern _KLsimple_object_vectorGVKd_0 KPempty_vectorVKi;
extern _KLincremental_generic_functionGVKe Kparse_project_sourceVenvironment_protocols;
dylan_value Kproject_used_projectsVenvironment_protocolsI (dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLincremental_generic_functionGVKe Kforward_iteration_protocolVKd;
extern _KLsimple_methodGVKe Kproject_nameVenvironment_protocols;
extern _KLfunction_classGVKi KLsimple_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLsimple_methodGVKeW;
extern _KLobject_signatureGVKe KDsignature_LobjectG_object_rest_value_4VKi;
extern _KLclassGVKd KLobject_signatureGVKe;
extern _KLmm_wrapperGVKi_0 KLobject_signatureGVKeW;
extern _KLabsent_engine_nodeGVKg RSINGULAR_Labsent_engine_nodeG;
extern _KLclassGVKd KLabsent_engine_nodeGVKg;
extern _KLmm_wrapperGVKi_0 KLabsent_engine_nodeGVKgW;
extern _KLclassGVKd KLbyte_stringGVKd;
extern _KLmm_wrapperGVKi_0 KLbyte_stringGVKdW;
extern _KLclassGVKd KLpairGVKd;
extern _KLmm_wrapperGVKi_0 KLpairGVKdW;
extern _KLclassGVKd KLsimple_typechecked_cache_header_engine_nodeGVKg;
extern _KLmm_wrapperGVKi_0 KLsimple_typechecked_cache_header_engine_nodeGVKgW;
extern _KLclassGVKd KLsignatureGVKe;
extern _KLmm_wrapperGVKi_0 KLsignatureGVKeW;
extern _KLclassGVKd KLstreamGYcommon_extensionsVcommon_dylan;
extern _KLmm_wrapperGVKi_0 KLstreamGYcommon_extensionsVcommon_dylanW;
extern _KLclassGVKd KLproject_objectGVenvironment_protocols;
extern _KLmm_wrapperGVKi_0 KLproject_objectGVenvironment_protocolsW;
extern _KLclassGVKd KLsingletonGVKd;
extern _KLmm_wrapperGVKi_0 KLsingletonGVKdW;
dylan_value Ksingleton_pointer_idQ_instanceQVKiI (dylan_value, dylan_value);
extern _KLclassGVKd KLimplementation_classGVKe;
extern _KLmm_wrapperGVKi_0 KLimplementation_classGVKeW;
extern _KLclassGVKd KLinstance_slot_descriptorGVKe;
extern _KLmm_wrapperGVKi_0 KLinstance_slot_descriptorGVKeW;
extern _KLobject_signatureGVKe KDsignature_LobjectG_object_rest_value_1VKi;
extern _KLclassGVKd KLgetter_methodGVKi;
extern _KLmm_wrapperGVKi_0 KLgetter_methodGVKiW;
extern _KLincremental_generic_functionGVKe KmakeVKd;
extern _KLclassGVKd KLstring_tableGVKe;
extern _KLmm_wrapperGVKi_0 KLstring_tableGVKeW;
extern _KLfunction_classGVKi KLsimple_closure_methodGVKi;
extern _KLmm_wrapperGVKi_0 KLsimple_closure_methodGVKiW;
extern _KLclassGVKd KLreportGVenvironment_reports;
extern _KLmm_wrapperGVKi_0 KLreportGVenvironment_reportsW;
extern _KLclassGVKd KLproject_reportGVenvironment_reports;
extern _KLmm_wrapperGVKi_0 KLproject_reportGVenvironment_reportsW;
dylan_value KerrorVKdMM1I (dylan_value, dylan_value);
extern _KLunionGVKe KLreport_formatGVenvironment_reports;
extern _KLclassGVKd KLunionGVKe;
extern _KLmm_wrapperGVKi_0 KLunionGVKeW;
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 _KLinstance_slot_descriptorGVKe Kreport_formatVenvironment_reportsHLreportG;
extern _KLinstance_slot_descriptorGVKe Kreport_projectVenvironment_reportsHLproject_reportG;
dylan_value Kclass_instanceQ_initialVKiI (dylan_value, dylan_value);
extern _KLmoduleGVKe Kenvironment_reports_moduleYdylan_userVenvironment_reports;
extern _KLclassGVKd KLmoduleGVKe;
extern _KLmm_wrapperGVKi_0 KLmoduleGVKeW;

/* Defined object declarations */

static _KLsymbolGVKd KJformats_;
static _KLsimple_object_vectorGVKd_2 K2;
static _KLsymbolGVKd KJdependency_graph_;
static _KLbyte_stringGVKd_16 K4;
extern _KLclassGVKd KLdependency_reportGVenvironment_reports;
extern _KLmm_wrapperGVKi_0 KLdependency_reportGVenvironment_reportsW;
extern _KLsimple_methodGVKe Kwrite_report_asVenvironment_reportsMM4;
dylan_value Kwrite_report_asVenvironment_reportsMM4I (dylan_value, dylan_value, dylan_value);
extern _KLsimple_methodGVKe Kwrite_report_asVenvironment_reportsMM3;
dylan_value Kwrite_report_asVenvironment_reportsMM3I (dylan_value, dylan_value, dylan_value);
static _KLsimple_typechecked_cache_header_engine_nodeGVKg K11;
static _KLbyte_stringGVKd_25 K12;
dylan_value Kwrite_projectVenvironment_reportsMM0I (dylan_value, dylan_value, dylan_value, dylan_value);
static _KLsimple_typechecked_cache_header_engine_nodeGVKg K14;
static _KLbyte_stringGVKd_4 K15;
static _KLsimple_typechecked_cache_header_engine_nodeGVKg K16;
static _KLbyte_stringGVKd_7 K17;
static _KLsimple_typechecked_cache_header_engine_nodeGVKg K18;
extern _KLsealed_generic_functionGVKe Kwrite_projectVenvironment_reports;
extern _KLsimple_methodGVKe Kwrite_projectVenvironment_reportsMM0;
extern _KLsimple_methodGVKe Kwrite_projectVenvironment_reportsMM1;
dylan_value Kwrite_projectVenvironment_reportsMM1I (dylan_value, dylan_value, dylan_value, dylan_value);
static _KLpairGVKd K23;
static _KLpairGVKd K24;
static _KLbyte_stringGVKd_13 K25;
static _KLsimple_typechecked_cache_header_engine_nodeGVKg K26;
static _KLbyte_stringGVKd_17 K27;
static _KLsimple_typechecked_cache_header_engine_nodeGVKg K28;
static _KLsignatureGVKe K29;
static _KLsimple_object_vectorGVKd_4 K30;
static _KLsingletonGVKd K31;
static _KLsymbolGVKd KJdot_;
static _KLbyte_stringGVKd_3 K33;
static _KLsignatureGVKe K34;
static _KLsimple_object_vectorGVKd_4 K35;
static _KLsingletonGVKd K36;
static _KLsymbolGVKd KJtext_;
static _KLbyte_stringGVKd_4 K38;
static _KLsignatureGVKe K39;
static _KLsimple_object_vectorGVKd_3 K40;
static _KLsimple_typechecked_cache_header_engine_nodeGVKg K41;
static _KLbyte_stringGVKd_23 K42;
static _KLsimple_typechecked_cache_header_engine_nodeGVKg K43;
static _KLbyte_stringGVKd_36 K44;
static _KLsimple_typechecked_cache_header_engine_nodeGVKg K45;
static _KLbyte_stringGVKd_16 K46;
static _KLsimple_typechecked_cache_header_engine_nodeGVKg K47;
static _KLbyte_stringGVKd_2 K48;
static _KLsignatureGVKe K49;
static _KLsimple_object_vectorGVKd_3 K50;
static _KLimplementation_classGVKe K51;
static _KLsimple_object_vectorGVKd_3 K52;
extern _KLkeyword_methodGVKe KLdependency_reportGZ32ZconstructorVenvironment_reportsMM0;
dylan_value KLdependency_reportGZ32ZconstructorVenvironment_reportsMM0I (dylan_value, dylan_value, dylan_value, dylan_value);
static _KLsimple_object_vectorGVKd_1 K55;
static _KLsimple_object_vectorGVKd_6 K56;
static _KLsimple_object_vectorGVKd_1 K57;
extern _KLinstance_slot_descriptorGVKe KvisitedVenvironment_reportsHLdependency_reportG;
static _KLsimple_closure_methodGVKi_0 K65;
static dylan_value K65I ();
extern _KLsealed_generic_functionGVKe KvisitedVenvironment_reports;
extern _KLgetter_methodGVKi KvisitedVenvironment_reportsMM0;
static _KLpairGVKd K63;
static _KLbyte_stringGVKd_7 K64;
static _KLsignatureGVKe K66;
static _KLsymbolGVKd KJproject_;
static _KLbyte_stringGVKd_23 K68;
static dylan_value K70I ();
static _KLbyte_stringGVKd_7 K71;
static _KLkeyword_signatureAvaluesGVKi K72;
static _KLsimple_object_vectorGVKd_4 K73;
static _KLsymbolGVKd KJformat_;
static _KLbyte_stringGVKd_6 K75;
static _KLsimple_object_vectorGVKd_2 K76;
static _KLsimple_object_vectorGVKd_1 K77;
static _KLbyte_stringGVKd_19 K78;
static _KLbyte_stringGVKd_16 K79;
static _KLbyte_stringGVKd_7 K80;

/* Indirection variables */

static dylan_value IKJformats_ = &KJformats_;
static dylan_value IKJdependency_graph_ = &KJdependency_graph_;
static dylan_value IKJdot_ = &KJdot_;
static dylan_value IKJtext_ = &KJtext_;
static dylan_value IKJproject_ = &KJproject_;
static dylan_value IKJformat_ = &KJformat_;

/* Variables */

dylan_value Ldependency_reportGVenvironment_reports = &KLdependency_reportGVenvironment_reports;

/* Objects */

static _KLsymbolGVKd KJformats_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K80
};

static _KLsimple_object_vectorGVKd_2 K2 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KJtext_,
  &KJdot_
};

static _KLsymbolGVKd KJdependency_graph_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K79
};

static _KLbyte_stringGVKd_16 K4 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 65,
  "Dependency graph"
};

_KLclassGVKd KLdependency_reportGVenvironment_reports = {
  &KLclassGVKdW /* wrapper */,
  &Kclass_instanceQ_initialVKiI,
  &K78,
  &K51,
  (dylan_value) 1,
  &Kenvironment_reports_moduleYdylan_userVenvironment_reports
};

_KLmm_wrapperGVKi_0 KLdependency_reportGVenvironment_reportsW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K51,
  (dylan_value) 1,
  13,
  33554439,
  (dylan_value) 1
};

_KLsimple_methodGVKe Kwrite_report_asVenvironment_reportsMM4 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_3,
  &K49,
  &Kwrite_report_asVenvironment_reportsMM4I
};

_KLsimple_methodGVKe Kwrite_report_asVenvironment_reportsMM3 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_3,
  &K39,
  &Kwrite_report_asVenvironment_reportsMM3I
};

static _KLsimple_typechecked_cache_header_engine_nodeGVKg K11 = {
  &KLsimple_typechecked_cache_header_engine_nodeGVKgW /* wrapper */,
  (dylan_value) 131129,
  &KPfalseVKi,
  &cache_header_engine_3,
  &RSINGULAR_Labsent_engine_nodeG,
  &KformatYformatVio
};

static _KLbyte_stringGVKd_25 K12 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 101,
  "Dependency data for %s:\n\n"
};

static _KLsimple_typechecked_cache_header_engine_nodeGVKg K14 = {
  &KLsimple_typechecked_cache_header_engine_nodeGVKgW /* wrapper */,
  (dylan_value) 131129,
  &KPfalseVKi,
  &cache_header_engine_3,
  &RSINGULAR_Labsent_engine_nodeG,
  &KformatYformatVio
};

static _KLbyte_stringGVKd_4 K15 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 17,
  "%s:\n"
};

static _KLsimple_typechecked_cache_header_engine_nodeGVKg K16 = {
  &KLsimple_typechecked_cache_header_engine_nodeGVKgW /* wrapper */,
  (dylan_value) 131129,
  &KPfalseVKi,
  &cache_header_engine_3,
  &RSINGULAR_Labsent_engine_nodeG,
  &KformatYformatVio
};

static _KLbyte_stringGVKd_7 K17 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 29,
  "    %s\n"
};

static _KLsimple_typechecked_cache_header_engine_nodeGVKg K18 = {
  &KLsimple_typechecked_cache_header_engine_nodeGVKgW /* wrapper */,
  (dylan_value) 196665,
  &KPfalseVKi,
  &cache_header_engine_4,
  &RSINGULAR_Labsent_engine_nodeG,
  &Kwrite_projectVenvironment_reports
};

_KLsealed_generic_functionGVKe Kwrite_projectVenvironment_reports = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_4,
  &KDsignature_LobjectG_object_rest_value_4VKi,
  (dylan_value) 29,
  &K25,
  &K23,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLsimple_methodGVKe Kwrite_projectVenvironment_reportsMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_4,
  &K34,
  &Kwrite_projectVenvironment_reportsMM0I
};

_KLsimple_methodGVKe Kwrite_projectVenvironment_reportsMM1 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_4,
  &K29,
  &Kwrite_projectVenvironment_reportsMM1I
};

static _KLpairGVKd K23 = {
  &KLpairGVKdW /* wrapper */,
  &Kwrite_projectVenvironment_reportsMM0,
  &K24
};

static _KLpairGVKd K24 = {
  &KLpairGVKdW /* wrapper */,
  &Kwrite_projectVenvironment_reportsMM1,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_13 K25 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 53,
  "write-project"
};

static _KLsimple_typechecked_cache_header_engine_nodeGVKg K26 = {
  &KLsimple_typechecked_cache_header_engine_nodeGVKgW /* wrapper */,
  (dylan_value) 131129,
  &KPfalseVKi,
  &cache_header_engine_3,
  &RSINGULAR_Labsent_engine_nodeG,
  &KformatYformatVio
};

static _KLbyte_stringGVKd_17 K27 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 69,
  "    \"%s\" -> \"%s\"\n"
};

static _KLsimple_typechecked_cache_header_engine_nodeGVKg K28 = {
  &KLsimple_typechecked_cache_header_engine_nodeGVKgW /* wrapper */,
  (dylan_value) 196665,
  &KPfalseVKi,
  &cache_header_engine_4,
  &RSINGULAR_Labsent_engine_nodeG,
  &Kwrite_projectVenvironment_reports
};

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

static _KLsimple_object_vectorGVKd_4 K30 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 17,
  &KLdependency_reportGVenvironment_reports,
  &KLstreamGYcommon_extensionsVcommon_dylan,
  &KLproject_objectGVenvironment_protocols,
  &K31
};

static _KLsingletonGVKd K31 = {
  &KLsingletonGVKdW /* wrapper */,
  &Ksingleton_pointer_idQ_instanceQVKiI,
  &KJdot_
};

static _KLsymbolGVKd KJdot_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K33
};

static _KLbyte_stringGVKd_3 K33 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 13,
  "dot"
};

static _KLsignatureGVKe K34 = {
  &KLsignatureGVKeW /* wrapper */,
  (dylan_value) 44040209,
  &K35
};

static _KLsimple_object_vectorGVKd_4 K35 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 17,
  &KLdependency_reportGVenvironment_reports,
  &KLstreamGYcommon_extensionsVcommon_dylan,
  &KLproject_objectGVenvironment_protocols,
  &K36
};

static _KLsingletonGVKd K36 = {
  &KLsingletonGVKdW /* wrapper */,
  &Ksingleton_pointer_idQ_instanceQVKiI,
  &KJtext_
};

static _KLsymbolGVKd KJtext_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K38
};

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

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

static _KLsimple_object_vectorGVKd_3 K40 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 13,
  &KLstreamGYcommon_extensionsVcommon_dylan,
  &KLdependency_reportGVenvironment_reports,
  &K36
};

static _KLsimple_typechecked_cache_header_engine_nodeGVKg K41 = {
  &KLsimple_typechecked_cache_header_engine_nodeGVKgW /* wrapper */,
  (dylan_value) 131129,
  &KPfalseVKi,
  &cache_header_engine_3,
  &RSINGULAR_Labsent_engine_nodeG,
  &KformatYformatVio
};

static _KLbyte_stringGVKd_23 K42 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 93,
  "digraph dependencies {\n"
};

static _KLsimple_typechecked_cache_header_engine_nodeGVKg K43 = {
  &KLsimple_typechecked_cache_header_engine_nodeGVKgW /* wrapper */,
  (dylan_value) 131129,
  &KPfalseVKi,
  &cache_header_engine_3,
  &RSINGULAR_Labsent_engine_nodeG,
  &KformatYformatVio
};

static _KLbyte_stringGVKd_36 K44 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 145,
  "    label=\"Dependency graph for %s\"\n"
};

static _KLsimple_typechecked_cache_header_engine_nodeGVKg K45 = {
  &KLsimple_typechecked_cache_header_engine_nodeGVKgW /* wrapper */,
  (dylan_value) 131129,
  &KPfalseVKi,
  &cache_header_engine_3,
  &RSINGULAR_Labsent_engine_nodeG,
  &KformatYformatVio
};

static _KLbyte_stringGVKd_16 K46 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 65,
  "    fontsize=20\n"
};

static _KLsimple_typechecked_cache_header_engine_nodeGVKg K47 = {
  &KLsimple_typechecked_cache_header_engine_nodeGVKgW /* wrapper */,
  (dylan_value) 131129,
  &KPfalseVKi,
  &cache_header_engine_3,
  &RSINGULAR_Labsent_engine_nodeG,
  &KformatYformatVio
};

static _KLbyte_stringGVKd_2 K48 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 9,
  "}\n"
};

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

static _KLsimple_object_vectorGVKd_3 K50 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 13,
  &KLstreamGYcommon_extensionsVcommon_dylan,
  &KLdependency_reportGVenvironment_reports,
  &K31
};

static _KLimplementation_classGVKe K51 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 527433741,
  &KLdependency_reportGVenvironment_reports,
  &KLdependency_reportGVenvironment_reportsW,
  &KPfalseVKi,
  &K52,
  (dylan_value) -3,
  &KLdependency_reportGZ32ZconstructorVenvironment_reportsMM0,
  &K55,
  &K56,
  (dylan_value) 13,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_vectorVKi,
  &K57,
  &K52,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

static _KLsimple_object_vectorGVKd_3 K52 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 13,
  &Kreport_formatVenvironment_reportsHLreportG,
  &Kreport_projectVenvironment_reportsHLproject_reportG,
  &KvisitedVenvironment_reportsHLdependency_reportG
};

_KLkeyword_methodGVKe KLdependency_reportGZ32ZconstructorVenvironment_reportsMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_4,
  &K72,
  &key_mep_2,
  &KLdependency_reportGZ32ZconstructorVenvironment_reportsMM0I,
  &K73
};

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

static _KLsimple_object_vectorGVKd_6 K56 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 25,
  &KLobjectGVKd,
  &KLreportGVenvironment_reports,
  &KLproject_reportGVenvironment_reports,
  &KLdependency_reportGVenvironment_reports,
  &KPfalseVKi,
  &KPfalseVKi
};

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

_KLinstance_slot_descriptorGVKe KvisitedVenvironment_reportsHLdependency_reportG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 149,
  &K65,
  &KLdependency_reportGVenvironment_reports,
  &KPfalseVKi,
  &KvisitedVenvironment_reports,
  &KPfalseVKi,
  &KLobjectGVKd
};

static _KLsimple_closure_methodGVKi_0 K65 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_0,
  &K66,
  &K65I,
  (dylan_value) 1
};

_KLsealed_generic_functionGVKe KvisitedVenvironment_reports = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &KDsignature_LobjectG_object_rest_value_1VKi,
  &KPfalseVKi,
  &K64,
  &K63,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLgetter_methodGVKi KvisitedVenvironment_reportsMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &KvisitedVenvironment_reportsHLdependency_reportG
};

static _KLpairGVKd K63 = {
  &KLpairGVKdW /* wrapper */,
  &KvisitedVenvironment_reportsMM0,
  &KPempty_listVKi
};

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

static _KLsignatureGVKe K66 = {
  &KLsignatureGVKeW /* wrapper */,
  (dylan_value) 41944065,
  &KPempty_vectorVKi
};

static _KLsymbolGVKd KJproject_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K71
};

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

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

static _KLkeyword_signatureAvaluesGVKi K72 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 35390469,
  &KDsignature_LclassG_typesVKi,
  &K76,
  &KDsignature_LobjectG_typesVKi,
  &K77
};

static _KLsimple_object_vectorGVKd_4 K73 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 17,
  &KJformat_,
  &KJtext_,
  &KJproject_,
  &KPunboundVKi
};

static _KLsymbolGVKd KJformat_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K75
};

static _KLbyte_stringGVKd_6 K75 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 25,
  "format"
};

static _KLsimple_object_vectorGVKd_2 K76 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KJformat_,
  &KJproject_
};

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

static _KLbyte_stringGVKd_19 K78 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 77,
  "<dependency-report>"
};

static _KLbyte_stringGVKd_16 K79 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 65,
  "dependency-graph"
};

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

/* Code */

dylan_value Kwrite_report_asVenvironment_reportsMM4I (dylan_value stream_, dylan_value report_, dylan_value Uformat_) {
  dylan_value T4;
  dylan_value T5;
  _KLsimple_object_vectorGVKd_1 T6 = {&KLsimple_object_vectorGVKdW, (dylan_value) 5};
  dylan_value T7;

  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:42
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:44
  T5 = SLOT_VALUE_INITD(report_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:45
  ENGINE_NODE_CALL_PROLOG(&KformatYformatVio, &K41, 3);
  ENGINE_NODE_CALL3(&K41, stream_, &K42, &KPempty_vectorVKi);
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:46
  Kwrite_projectVenvironment_reportsMM1I(report_, stream_, T5, Uformat_);
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:47
  T4 = Kproject_nameVenvironment_protocolsI(T5);
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:47
  T6.vector_element_[0] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:47
  ENGINE_NODE_CALL_PROLOG(&KformatYformatVio, &K43, 3);
  ENGINE_NODE_CALL3(&K43, stream_, &K44, &T6);
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:48
  ENGINE_NODE_CALL_PROLOG(&KformatYformatVio, &K45, 3);
  ENGINE_NODE_CALL3(&K45, stream_, &K46, &KPempty_vectorVKi);
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:49
  ENGINE_NODE_CALL_PROLOG(&KformatYformatVio, &K47, 3);
  T7 = ENGINE_NODE_CALL3(&K47, stream_, &K48, &KPempty_vectorVKi);
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:42
  MV_SET_COUNT(0);
  return(T7);
}

dylan_value Kwrite_report_asVenvironment_reportsMM3I (dylan_value stream_, dylan_value report_, dylan_value Uformat_) {
  dylan_value T4;
  dylan_value T5;
  _KLsimple_object_vectorGVKd_1 T6 = {&KLsimple_object_vectorGVKdW, (dylan_value) 5};
  dylan_value T7;

  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:16
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:18
  T5 = SLOT_VALUE_INITD(report_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:19
  T4 = Kproject_nameVenvironment_protocolsI(T5);
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:19
  T6.vector_element_[0] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:19
  ENGINE_NODE_CALL_PROLOG(&KformatYformatVio, &K11, 3);
  ENGINE_NODE_CALL3(&K11, stream_, &K12, &T6);
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:20
  T7 = Kwrite_projectVenvironment_reportsMM0I(report_, stream_, T5, Uformat_);
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:16
  MV_SET_COUNT(0);
  return(T7);
}

dylan_value Kwrite_projectVenvironment_reportsMM0I (dylan_value report_, dylan_value stream_, dylan_value project_, dylan_value Uformat_) {
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value used_;
  dylan_value T10;
  dylan_value T11;
  dylan_value T12;
  dylan_value T13;
  dylan_value T14;
  dylan_value T15;
  dylan_value T16;
  dylan_value T17T, T17;
  dylan_value T18;
  dylan_value T19;
  dylan_value T20;
  dylan_value T21;
  dylan_value T22;
  dylan_value T23;
  dylan_value T24;
  dylan_value T25;
  dylan_value T26;
  dylan_value T27;
  dylan_value T28T, T28;
  dylan_value T29;
  dylan_value T30;
  dylan_value T31;
  dylan_value T32;
  dylan_value T33;
  dylan_value T34;
  dylan_value T35;
  _KLsimple_object_vectorGVKd_1 T36 = {&KLsimple_object_vectorGVKdW, (dylan_value) 5};
  _KLsimple_object_vectorGVKd_1 T37 = {&KLsimple_object_vectorGVKdW, (dylan_value) 5};

  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:23
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:26
  T35 = SLOT_VALUE_INITD(report_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:26
  T5 = Kproject_nameVenvironment_protocolsI(project_);
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:26
  T6 = CALL4(&KelementVKd, T35, T5, &KJdefault_, &KPfalseVKi);
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:26
  if (T6 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:26
    T33 = &KPfalseVKi;
    MV_SET_ELT(0, &KPfalseVKi);
    MV_SET_COUNT(1);
    T34 = T33;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:27
    T7 = Kproject_nameVenvironment_protocolsI(project_);
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:27
    CALL3(&Kelement_setterVKd, &KPtrueVKi, T35, T7);
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:28
    CONGRUENT_CALL_PROLOG(&Kopen_project_compiler_databaseVenvironment_protocols, 2);
    T8 = CONGRUENT_CALL2(project_, &KPempty_vectorVKi);
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:28
    if (T8 == &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:29
      CONGRUENT_CALL_PROLOG(&Kparse_project_sourceVenvironment_protocols, 2);
      CONGRUENT_CALL2(project_, &KPempty_vectorVKi);
    }
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:28
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:31
    used_ = Kproject_used_projectsVenvironment_protocolsI(project_, &KPempty_vectorVKi, &KPfalseVKi, &KPfalseVKi);
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:32
    T10 = Kproject_nameVenvironment_protocolsI(project_);
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:32
    T36.vector_element_[0] = T10;
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:32
    ENGINE_NODE_CALL_PROLOG(&KformatYformatVio, &K14, 3);
    ENGINE_NODE_CALL3(&K14, stream_, &K15, &T36);
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:33
    CONGRUENT_CALL_PROLOG(&Kforward_iteration_protocolVKd, 1);
    T11 = CONGRUENT_CALL1(used_);
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:33
    T12 = T11;
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:33
    T13 = MV_GET_ELT(1);
;
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:33
    T14 = MV_GET_ELT(2);
;
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:33
    T15 = MV_GET_ELT(3);
;
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:33
    T16 = MV_GET_ELT(5);
;
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:33
    T17T = T12;
  L0: ;
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:33
      T17 = T17T;
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:33
      T18 = CALL3(T15, used_, T17, T13);
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:33
      if (T18 == &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:33
        T19 = CALL2(T16, used_, T17);
        // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:34
        T20 = CALL1(&Kproject_nameVenvironment_protocols, T19);
        // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:34
        T37.vector_element_[0] = T20;
        // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:34
        ENGINE_NODE_CALL_PROLOG(&KformatYformatVio, &K16, 3);
        ENGINE_NODE_CALL3(&K16, stream_, &K17, &T37);
        // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:33
        T21 = CALL2(T14, used_, T17);
        // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:33
        T17T = T21;
        goto L0;
      }
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:33
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:33
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:36
    CONGRUENT_CALL_PROLOG(&Kforward_iteration_protocolVKd, 1);
    T22 = CONGRUENT_CALL1(used_);
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:36
    T23 = T22;
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:36
    T24 = MV_GET_ELT(1);
;
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:36
    T25 = MV_GET_ELT(2);
;
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:36
    T26 = MV_GET_ELT(3);
;
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:36
    T27 = MV_GET_ELT(5);
;
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:36
    T28T = T23;
  L1: ;
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:36
      T28 = T28T;
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:36
      T29 = CALL3(T26, used_, T28, T24);
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:36
      if (T29 == &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:36
        T30 = CALL2(T27, used_, T28);
        // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:37
        ENGINE_NODE_CALL_PROLOG(&Kwrite_projectVenvironment_reports, &K18, 4);
        ENGINE_NODE_CALL4(&K18, report_, stream_, T30, Uformat_);
        // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:36
        T31 = CALL2(T25, used_, T28);
        // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:36
        T28T = T31;
        goto L1;
      }
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:36
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:36
      T32 = &KPfalseVKi;
      MV_SET_ELT(0, &KPfalseVKi);
      MV_SET_COUNT(1);
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:36
    T34 = T32;
  }
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:26
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:23
  return(T34);
}

dylan_value Kwrite_projectVenvironment_reportsMM1I (dylan_value report_, dylan_value stream_, dylan_value project_, dylan_value Uformat_) {
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value used_;
  dylan_value T10;
  dylan_value T11;
  dylan_value T12;
  dylan_value T13;
  dylan_value T14;
  dylan_value T15;
  dylan_value T16T, T16;
  dylan_value T17;
  dylan_value T18;
  dylan_value T19;
  dylan_value T20;
  dylan_value T21;
  dylan_value T22;
  dylan_value T23;
  dylan_value T24;
  dylan_value T25;
  dylan_value T26;
  dylan_value T27;
  dylan_value T28T, T28;
  dylan_value T29;
  dylan_value T30;
  dylan_value T31;
  dylan_value T32;
  dylan_value T33;
  dylan_value T34;
  dylan_value T35;
  _KLsimple_object_vectorGVKd_2 T36 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};

  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:52
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:55
  T35 = SLOT_VALUE_INITD(report_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:55
  T5 = Kproject_nameVenvironment_protocolsI(project_);
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:55
  T6 = CALL4(&KelementVKd, T35, T5, &KJdefault_, &KPfalseVKi);
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:55
  if (T6 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:55
    T33 = &KPfalseVKi;
    MV_SET_ELT(0, &KPfalseVKi);
    MV_SET_COUNT(1);
    T34 = T33;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:56
    T7 = Kproject_nameVenvironment_protocolsI(project_);
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:56
    CALL3(&Kelement_setterVKd, &KPtrueVKi, T35, T7);
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:57
    CONGRUENT_CALL_PROLOG(&Kopen_project_compiler_databaseVenvironment_protocols, 2);
    T8 = CONGRUENT_CALL2(project_, &KPempty_vectorVKi);
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:57
    if (T8 == &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:58
      CONGRUENT_CALL_PROLOG(&Kparse_project_sourceVenvironment_protocols, 2);
      CONGRUENT_CALL2(project_, &KPempty_vectorVKi);
    }
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:57
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:60
    used_ = Kproject_used_projectsVenvironment_protocolsI(project_, &KPempty_vectorVKi, &KPfalseVKi, &KPfalseVKi);
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:61
    CONGRUENT_CALL_PROLOG(&Kforward_iteration_protocolVKd, 1);
    T10 = CONGRUENT_CALL1(used_);
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:61
    T11 = T10;
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:61
    T12 = MV_GET_ELT(1);
;
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:61
    T13 = MV_GET_ELT(2);
;
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:61
    T14 = MV_GET_ELT(3);
;
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:61
    T15 = MV_GET_ELT(5);
;
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:61
    T16T = T11;
  L0: ;
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:61
      T16 = T16T;
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:61
      T17 = CALL3(T14, used_, T16, T12);
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:61
      if (T17 == &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:61
        T18 = CALL2(T15, used_, T16);
        // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:62
        T19 = Kproject_nameVenvironment_protocolsI(project_);
        // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:62
        T20 = CALL1(&Kproject_nameVenvironment_protocols, T18);
        // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:62
        T36.vector_element_[0] = T19;
        T36.vector_element_[1] = T20;
        // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:62
        ENGINE_NODE_CALL_PROLOG(&KformatYformatVio, &K26, 3);
        ENGINE_NODE_CALL3(&K26, stream_, &K27, &T36);
        // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:61
        T21 = CALL2(T13, used_, T16);
        // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:61
        T16T = T21;
        goto L0;
      }
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:61
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:61
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:64
    CONGRUENT_CALL_PROLOG(&Kforward_iteration_protocolVKd, 1);
    T22 = CONGRUENT_CALL1(used_);
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:64
    T23 = T22;
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:64
    T24 = MV_GET_ELT(1);
;
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:64
    T25 = MV_GET_ELT(2);
;
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:64
    T26 = MV_GET_ELT(3);
;
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:64
    T27 = MV_GET_ELT(5);
;
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:64
    T28T = T23;
  L1: ;
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:64
      T28 = T28T;
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:64
      T29 = CALL3(T26, used_, T28, T24);
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:64
      if (T29 == &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:64
        T30 = CALL2(T27, used_, T28);
        // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:65
        ENGINE_NODE_CALL_PROLOG(&Kwrite_projectVenvironment_reports, &K28, 4);
        ENGINE_NODE_CALL4(&K28, report_, stream_, T30, Uformat_);
        // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:64
        T31 = CALL2(T25, used_, T28);
        // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:64
        T28T = T31;
        goto L1;
      }
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:64
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:64
      T32 = &KPfalseVKi;
      MV_SET_ELT(0, &KPfalseVKi);
      MV_SET_COUNT(1);
      // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:64
    T34 = T32;
  }
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:55
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:52
  return(T34);
}

dylan_value KLdependency_reportGZ32ZconstructorVenvironment_reportsMM0I (dylan_value class_, dylan_value init_args_, dylan_value Uunique_report_format_, dylan_value Uunique_report_project_) {
  dylan_value T5;
  dylan_value Uunique_report_projectF6;
  dylan_value T7;
  dylan_value Uunique_report_formatF8;
  dylan_value Uunique_report_projectF9;
  dylan_value T10;
  dylan_value T11_0;
  dylan_value T12;
  _KLsimple_object_vectorGVKd_1 T13 = {&KLsimple_object_vectorGVKdW, (dylan_value) 5};
  dylan_value T14;

  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:9
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:9
  T12 = primitive_idQ(Uunique_report_project_,&KPunboundVKi);
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:9
  if (T12 != &KPfalseVKi) {
    T13.vector_element_[0] = IKJproject_;
    T14 = KerrorVKdMM1I(&K68, &T13);
    // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:9
    T5 = T14;
    Uunique_report_projectF6 = T5;
  } else {
    Uunique_report_projectF6 = Uunique_report_project_;
  }
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:9
  T7 = primitive_object_allocate_filled(4,&KLdependency_reportGVenvironment_reportsW,3,&KPunboundVKi,0,0,&KPunboundVKi);
  primitive_type_check(Uunique_report_format_, &KLreport_formatGVenvironment_reports);
  Uunique_report_formatF8 = Uunique_report_format_;
  SLOT_VALUE_SETTER(Uunique_report_formatF8, T7, 0);
  primitive_type_check(Uunique_report_projectF6, &KLproject_objectGVenvironment_protocols);
  Uunique_report_projectF9 = Uunique_report_projectF6;
  SLOT_VALUE_SETTER(Uunique_report_projectF9, T7, 1);
  T10 = K70I();
  SLOT_VALUE_SETTER(T10, T7, 2);
  T11_0 = T7;
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:9
  MV_SET_COUNT(1);
  return(T11_0);
}

static dylan_value K65I () {
  dylan_value init_value_;
  dylan_value T2_0;

  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:10
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:10
  CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
  init_value_ = CONGRUENT_CALL2(&KLstring_tableGVKe, &KPempty_vectorVKi);
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:10
  T2_0 = init_value_;
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:10
  MV_SET_COUNT(1);
  return(T2_0);
}

static dylan_value K70I () {
  dylan_value init_value_;
  dylan_value T2_0;

  CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
  init_value_ = CONGRUENT_CALL2(&KLstring_tableGVKe, &KPempty_vectorVKi);
  T2_0 = init_value_;
  MV_SET_COUNT(1);
  return(T2_0);
}


/* SYSTEM INIT CODE */

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

    T0 = KPresolve_symbolVKiI(&KJformats_);
    if (T0 != &KJformats_) {
      IKJformats_ = T0;
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJdependency_graph_);
    if (T0 != &KJdependency_graph_) {
      IKJdependency_graph_ = T0;
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJdot_);
    if (T0 != &KJdot_) {
      primitive_repeated_slot_value_setter(T0, &K2, 1, 1);
      primitive_slot_value_setter(T0, &K31, 1);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJtext_);
    if (T0 != &KJtext_) {
      primitive_repeated_slot_value_setter(T0, &K2, 1, 0);
      primitive_repeated_slot_value_setter(T0, &K73, 1, 1);
      primitive_slot_value_setter(T0, &K36, 1);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJproject_);
    if (T0 != &KJproject_) {
      primitive_repeated_slot_value_setter(T0, &K76, 1, 1);
      primitive_repeated_slot_value_setter(T0, &K73, 1, 2);
      IKJproject_ = T0;
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJformat_);
    if (T0 != &KJformat_) {
      primitive_repeated_slot_value_setter(T0, &K76, 1, 0);
      primitive_repeated_slot_value_setter(T0, &K73, 1, 0);
    }
  }
  return;
}

/* USER INIT CODE */

void _Init_environment_reports__X_dependency_report_for_user () {
{
  dylan_value T0;
  _KLsimple_object_vectorGVKd_2 T1 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};

  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:13
  T1.vector_element_[0] = IKJformats_;
  T1.vector_element_[1] = &K2;
  // /home/bruce/Development/dylan/opendylan/sources/environment/reports/dependency-report.dylan:13
  T0 = Kinstall_reportVenvironment_reportsI(IKJdependency_graph_, &K4, &KLdependency_reportGVenvironment_reports, &T1);
  goto I0;
}
I0:

  return;
}


/* eof */
