// Lean compiler output
// Module: Lake.Build.Module
// Imports: public import Lake.Config.FacetConfig public import Lake.Build.Job.Monad public import Lake.Build.Infos import Lean.Elab.ParseImportsFast import Lake.Util.Proc import Lake.Build.Job.Register import Lake.Build.Common import Lake.Build.Target import Init.Omega
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
size_t lean_usize_add(size_t, size_t);
uint8_t lean_usize_dec_eq(size_t, size_t);
lean_object* lean_array_uget(lean_object*, size_t);
uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*);
extern lean_object* l_Lake_LeanLib_sharedFacet;
lean_object* l_Lean_Name_mkStr1(lean_object*);
lean_object* lean_array_push(lean_object*, lean_object*);
lean_object* l_Lean_NameSet_insert(lean_object*, lean_object*);
lean_object* l_System_FilePath_normalize(lean_object*);
lean_object* l_Lake_joinRelative(lean_object*, lean_object*);
lean_object* l_Lean_modToFilePath(lean_object*, lean_object*, lean_object*);
lean_object* lean_io_metadata(lean_object*);
uint8_t l_IO_FS_instOrdSystemTime_ord(lean_object*, lean_object*);
uint8_t lean_internal_has_llvm_backend(lean_object*);
extern lean_object* l_Lake_instDataKindFilePath;
extern lean_object* l_Lake_Module_cFacet;
extern lean_object* l_Lake_Module_keyword;
lean_object* l_Array_append___redArg(lean_object*, lean_object*);
lean_object* l_Lake_BuildTrace_nil(lean_object*);
lean_object* l_Lake_buildLeanO(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lake_BuildType_leancArgs(uint8_t);
uint8_t l_Lake_instOrdBuildType_ord(uint8_t, uint8_t);
lean_object* l_Lake_ensureJob___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_st_ref_take(lean_object*);
lean_object* l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(lean_object*, uint8_t);
lean_object* lean_string_append(lean_object*, lean_object*);
lean_object* l_Lake_Job_toOpaque___redArg(lean_object*);
lean_object* lean_st_ref_set(lean_object*, lean_object*);
lean_object* l_Lake_Job_renew___redArg(lean_object*);
uint8_t l_Lake_instDecidableEqVerbosity(uint8_t, uint8_t);
lean_object* lean_array_get_size(lean_object*);
lean_object* lean_nat_mul(lean_object*, lean_object*);
lean_object* lean_mk_array(lean_object*, lean_object*);
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
lean_object* lean_array_fget(lean_object*, lean_object*);
lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*);
uint64_t lean_uint64_shift_right(uint64_t, uint64_t);
uint64_t lean_uint64_xor(uint64_t, uint64_t);
size_t lean_uint64_to_usize(uint64_t);
size_t lean_usize_of_nat(lean_object*);
size_t lean_usize_sub(size_t, size_t);
size_t lean_usize_land(size_t, size_t);
lean_object* lean_array_uget_borrowed(lean_object*, size_t);
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
uint64_t lean_uint64_of_nat(lean_object*);
lean_object* lean_nat_add(lean_object*, lean_object*);
uint8_t l___private_Lean_Data_Name_0__Lean_Name_quickCmpImpl(lean_object*, lean_object*);
lean_object* l_Lake_BuildType_leanOptions(uint8_t);
lean_object* l_Lean_LeanOptions_ofArray(lean_object*);
lean_object* l_Lean_LeanOptions_append(lean_object*, lean_object*);
lean_object* l_Lean_LeanOptions_appendArray(lean_object*, lean_object*);
lean_object* l_List_reverse___redArg(lean_object*);
lean_object* l_String_intercalate(lean_object*, lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
uint8_t lean_string_dec_lt(lean_object*, lean_object*);
uint8_t lean_string_dec_eq(lean_object*, lean_object*);
size_t lean_array_size(lean_object*);
uint8_t lean_usize_dec_lt(size_t, size_t);
extern uint8_t l_System_Platform_isOSX;
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
lean_object* l_Lake_Package_id_x3f(lean_object*);
lean_object* l_Lake_BuildTrace_mix(lean_object*, lean_object*);
extern lean_object* l_Lake_platformTrace;
lean_object* l_Lean_Name_toString(lean_object*, uint8_t);
lean_object* lean_task_get_own(lean_object*);
lean_object* l_Lake_Job_mapM___redArg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Json_compress(lean_object*);
lean_object* l_IO_FS_readFile(lean_object*);
lean_object* l_String_crlfToLf(lean_object*);
extern uint64_t l_Lake_Hash_nil;
uint64_t lean_string_hash(lean_object*);
uint64_t lean_uint64_mix_hash(uint64_t, uint64_t);
lean_object* l_Lean_parseImports_x27(lean_object*, lean_object*);
lean_object* l_Lake_Workspace_findModule_x3f(lean_object*, lean_object*);
lean_object* lean_io_error_to_string(lean_object*);
lean_object* l_Lake_Job_async___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lake_Module_inputFacet;
lean_object* l_Lake_mkRelPathString(lean_object*);
lean_object* lean_task_map(lean_object*, lean_object*, lean_object*, uint8_t);
extern lean_object* l_Lake_Module_leanFacet;
lean_object* l_Lean_instToJsonModuleHeader_toJson(lean_object*);
extern lean_object* l_Lake_Module_headerFacet;
lean_object* lean_string_utf8_byte_size(lean_object*);
lean_object* l_String_Slice_Pos_prevn(lean_object*, lean_object*, lean_object*);
lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
uint8_t lean_name_eq(lean_object*, lean_object*);
lean_object* lean_nat_div(lean_object*, lean_object*);
extern lean_object* l_Lake_Module_importsFacet;
lean_object* l_Lake_Job_await___redArg(lean_object*, lean_object*);
extern lean_object* l_Lake_Module_transImportsFacet;
lean_object* lean_task_pure(lean_object*);
lean_object* l_Lake_relPathFrom(lean_object*, lean_object*);
lean_object* lean_task_bind(lean_object*, lean_object*, lean_object*, uint8_t);
extern lean_object* l_Lake_Module_precompileImportsFacet;
lean_object* l_Lake_Workspace_findModules(lean_object*, lean_object*);
extern lean_object* l_Lake_Module_exportInfoFacet;
lean_object* lean_array_fget_borrowed(lean_object*, lean_object*);
lean_object* l_Lake_Job_collectVector___redArg(lean_object*, lean_object*, lean_object*);
uint8_t l_Std_DTreeMap_Internal_Impl_contains___at___00Lean_NameMap_contains_spec__0___redArg(lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___00Lean_NameMap_insert_spec__0___redArg(lean_object*, lean_object*, lean_object*);
uint8_t lean_uint64_dec_eq(uint64_t, uint64_t);
lean_object* lean_nat_sub(lean_object*, lean_object*);
uint8_t l_Lake_instDecidableEqStdVer_decEq(lean_object*, lean_object*);
lean_object* l_Lake_StdVer_toString(lean_object*);
lean_object* l_Lake_Hash_hex(uint64_t);
lean_object* l_Lake_Job_bindM___redArg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lake_JobState_merge(lean_object*, lean_object*);
extern lean_object* l_Lake_Module_importInfoFacet;
lean_object* l_Lean_instToJsonModuleSetup_toJson(lean_object*);
extern lean_object* l_Lake_LeanLib_extraDepFacet;
lean_object* l___private_Lake_Build_Target_Fetch_0__Lake_PartialBuildKey_fetchInCoreAux(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lake_instDataKindDynlib;
lean_object* l_Lake_PartialBuildKey_toString(lean_object*);
uint8_t l_Lean_Name_isAnonymous(lean_object*);
lean_object* l_Lake_Job_collectArray___redArg(lean_object*, lean_object*);
extern lean_object* l_Lean_NameSet_empty;
extern lean_object* l_Lake_Module_dynlibFacet;
extern lean_object* l_Lake_ExternLib_dynlibFacet;
extern lean_object* l_Lake_ExternLib_keyword;
extern lean_object* l_Lake_Module_setupFacet;
extern lean_object* l_Lake_Module_depsFacet;
lean_object* lean_array_to_list(lean_object*);
lean_object* lean_string_push(lean_object*, uint32_t);
lean_object* l_Lake_computeArtifact___redArg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*);
uint8_t l_Lake_instDecidableEqOutputStatus(uint8_t, uint8_t);
lean_object* l_Lake_Cache_saveArtifact(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t);
uint8_t l_System_FilePath_pathExists(lean_object*);
lean_object* l_Lake_Package_cacheScope(lean_object*);
lean_object* l_Lake_ModuleOutputArtifacts_descrs(lean_object*);
lean_object* l_Lake_ModuleOutputDescrs_toJson(lean_object*);
lean_object* l___private_Lake_Config_Cache_0__Lake_Cache_writeOutputsCore(lean_object*, lean_object*, uint64_t, lean_object*, lean_object*, lean_object*);
lean_object* l_Lake_readTraceFile(lean_object*, lean_object*);
lean_object* l_Lake_restoreArtifact(lean_object*, lean_object*, uint8_t, lean_object*);
lean_object* lean_mk_io_user_error(lean_object*);
lean_object* l_Lake_removeFileIfExists(lean_object*);
lean_object* l_Lean_Name_getPrefix(lean_object*);
lean_object* l_Lake_proc(lean_object*, uint8_t, lean_object*);
lean_object* l_Array_shrink___redArg(lean_object*, lean_object*);
lean_object* l_Lake_ModuleOutputDescrs_fromJson_x3f(lean_object*);
lean_object* l_Lean_Json_render(lean_object*);
lean_object* l_Std_Format_pretty(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lake_resolveArtifact___redArg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*);
lean_object* l_Lake_SavedTrace_replayOrFetchIfUpToDate___redArg(uint64_t, lean_object*, lean_object*);
lean_object* l_Lake_BuildMetadata_ofFetch(uint64_t, lean_object*);
lean_object* l_Lake_BuildMetadata_writeFile(lean_object*, lean_object*);
lean_object* l_Lake_Cache_readOutputs_x3f(lean_object*, lean_object*, uint64_t, lean_object*);
lean_object* l_Lake_ArtifactDescr_ofFilePath_x3f(lean_object*);
lean_object* l_Array_extract___redArg(lean_object*, lean_object*, lean_object*);
lean_object* l_String_Slice_Pos_nextn(lean_object*, lean_object*, lean_object*);
lean_object* l_String_Slice_toString(lean_object*);
uint8_t l_Lake_JobAction_merge(uint8_t, uint8_t);
lean_object* l___private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lake_BuildType_leanArgs(uint8_t);
lean_object* l_System_FilePath_addExtension(lean_object*, lean_object*);
lean_object* lean_io_mono_ms_now();
lean_object* lean_array_pop(lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___00Lean_NameMap_find_x3f_spec__0___redArg(lean_object*, lean_object*);
lean_object* l_Lean_ImportArtifacts_size(lean_object*);
uint8_t lean_strict_or(uint8_t, uint8_t);
lean_object* l_Lake_Workspace_leanPath(lean_object*);
lean_object* l_Lake_compileLeanModule(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lake_clearFileHash(lean_object*);
lean_object* l___private_Lake_Build_Common_0__Lake_BuildMetadata_ofBuildCore(lean_object*, lean_object*, lean_object*);
lean_object* l_Lake_CacheMap_insertCore(uint64_t, lean_object*, lean_object*);
lean_object* l_Lean_Name_getString_x21(lean_object*);
lean_object* l_addParenHeuristic(lean_object*);
lean_object* lean_string_append(lean_object*, lean_object*);
lean_object* lean_nat_to_int(lean_object*);
lean_object* l_Lean_LeanOptionValue_asCliFlagValue(lean_object*);
extern lean_object* l_Lake_Module_leanArtsFacet;
extern lean_object* l_Lake_Module_importArtsFacet;
extern lean_object* l_Lake_Module_importAllArtsFacet;
lean_object* l_Lake_Artifact_trace(lean_object*);
extern lean_object* l_Lake_Module_ltarFacet;
extern lean_object* l_Lake_Module_oleanFacet;
extern lean_object* l_Lake_Module_oleanServerFacet;
extern lean_object* l_Lake_Module_oleanPrivateFacet;
extern lean_object* l_Lake_Module_ileanFacet;
extern lean_object* l_Lake_Module_irFacet;
extern lean_object* l_Lake_Module_bcFacet;
extern uint8_t l_System_Platform_isWindows;
extern lean_object* l_Lake_Module_coExportFacet;
extern lean_object* l_Lake_Module_coNoExportFacet;
extern lean_object* l_Lake_Module_coFacet;
extern lean_object* l_Lake_Module_bcoFacet;
uint8_t l_Lake_Backend_orPreferLeft(uint8_t, uint8_t);
extern lean_object* l_Lake_Module_oFacet;
extern lean_object* l_Lake_Module_oExportFacet;
extern lean_object* l_Lake_Module_oNoExportFacet;
lean_object* l_Lake_ModuleFacet_fetch___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_mkModuleInitializationStem(lean_object*, lean_object*);
extern lean_object* l_Lake_sharedLibExt;
lean_object* l_Lake_buildLeanSharedLib(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_io_create_tempfile();
lean_object* lean_io_prim_handle_put_str(lean_object*, lean_object*);
lean_object* l_Lake_Workspace_augmentedEnvVars(lean_object*);
lean_object* l_Lake_mkCmdLog(lean_object*);
lean_object* l_Lake_Workspace_findModuleBySrc_x3f(lean_object*, lean_object*);
extern lean_object* l_Lake_Package_extraDepFacet;
extern lean_object* l_Lake_Package_keyword;
lean_object* lean_string_length(lean_object*);
lean_object* l_Id_instMonad___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lake_OrdHashSet_appendArray___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lake_OrdHashSet_insert___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lake_instBEqModule___lam__0___boxed(lean_object*, lean_object*);
lean_object* l_Lake_instReprDynlib_repr___redArg(lean_object*);
lean_object* l_Id_instMonad___lam__3(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Std_Format_fill(lean_object*);
lean_object* l_instMonadST(lean_object*);
lean_object* l_Lake_cacheFileHash(lean_object*, uint8_t);
lean_object* l_Lake_EStateT_instMonad___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lake_EStateT_instMonad___redArg___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lake_EStateT_instMonad___redArg___lam__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lake_EStateT_instMonad___redArg___lam__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lake_EStateT_instFunctor___redArg(lean_object*);
lean_object* l_Lake_EStateT_instPure___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_ReaderT_instMonad___redArg(lean_object*);
lean_object* l_Lake_EquipT_instMonad___redArg(lean_object*);
lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
lean_object* l_Lake_instHashableModule___lam__0___boxed(lean_object*);
lean_object* l_Lake_OrdHashSet_empty(lean_object*, lean_object*, lean_object*);
lean_object* l_Id_instMonad___lam__6(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Id_instMonad___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Id_instMonad___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Id_instMonad___lam__2___boxed(lean_object*, lean_object*);
lean_object* l_Id_instMonad___lam__0(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
lean_object* l_Lake_resolvePath(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchInput_spec__0___redArg(size_t, size_t, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchInput_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_array_object l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_array_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 246}, .m_size = 0, .m_capacity = 0, .m_data = {}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0___closed__0_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 5, .m_capacity = 5, .m_length = 4, .m_data = "lean"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__0_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 1, .m_capacity = 1, .m_length = 0, .m_data = ""};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchInput(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchInput_spec__0(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchInput_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_once_cell_t l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg___closed__0_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg___closed__0;
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg(uint8_t);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0(uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_inputFacetConfig___lam__0(uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_inputFacetConfig___lam__0___boxed(lean_object*, lean_object*);
static const lean_closure_object l_Lake_Module_inputFacetConfig___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_Module_inputFacetConfig___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_inputFacetConfig___closed__0 = (const lean_object*)&l_Lake_Module_inputFacetConfig___closed__0_value;
static const lean_closure_object l_Lake_Module_inputFacetConfig___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___boxed, .m_arity = 8, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_inputFacetConfig___closed__1 = (const lean_object*)&l_Lake_Module_inputFacetConfig___closed__1_value;
static lean_once_cell_t l_Lake_Module_inputFacetConfig___closed__2_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_inputFacetConfig___closed__2;
LEAN_EXPORT lean_object* l_Lake_Module_inputFacetConfig;
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_leanFacetConfig_spec__0(uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_leanFacetConfig_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_leanFacetConfig___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_leanFacetConfig___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_leanFacetConfig___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_closure_object l_Lake_Module_leanFacetConfig___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_formatQuery___at___00Lake_Module_leanFacetConfig_spec__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_leanFacetConfig___closed__0 = (const lean_object*)&l_Lake_Module_leanFacetConfig___closed__0_value;
static const lean_closure_object l_Lake_Module_leanFacetConfig___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_Module_leanFacetConfig___lam__0, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_leanFacetConfig___closed__1 = (const lean_object*)&l_Lake_Module_leanFacetConfig___closed__1_value;
static lean_once_cell_t l_Lake_Module_leanFacetConfig___closed__2_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_leanFacetConfig___closed__2;
static lean_once_cell_t l_Lake_Module_leanFacetConfig___closed__3_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_leanFacetConfig___closed__3;
LEAN_EXPORT lean_object* l_Lake_Module_leanFacetConfig;
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_headerFacetConfig_spec__0(uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_headerFacetConfig_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_headerFacetConfig___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_headerFacetConfig___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_headerFacetConfig___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_closure_object l_Lake_Module_headerFacetConfig___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_formatQuery___at___00Lake_Module_headerFacetConfig_spec__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_headerFacetConfig___closed__0 = (const lean_object*)&l_Lake_Module_headerFacetConfig___closed__0_value;
static const lean_closure_object l_Lake_Module_headerFacetConfig___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_Module_headerFacetConfig___lam__0, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_headerFacetConfig___closed__1 = (const lean_object*)&l_Lake_Module_headerFacetConfig___closed__1_value;
static const lean_closure_object l_Lake_Module_headerFacetConfig___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*2, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_Module_headerFacetConfig___lam__1___boxed, .m_arity = 10, .m_num_fixed = 2, .m_objs = {((lean_object*)&l_Lake_Module_headerFacetConfig___closed__1_value),((lean_object*)(((size_t)(0) << 1) | 1))} };
static const lean_object* l_Lake_Module_headerFacetConfig___closed__2 = (const lean_object*)&l_Lake_Module_headerFacetConfig___closed__2_value;
static lean_once_cell_t l_Lake_Module_headerFacetConfig___closed__3_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_headerFacetConfig___closed__3;
LEAN_EXPORT lean_object* l_Lake_Module_headerFacetConfig;
static lean_once_cell_t l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1___closed__0_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1___closed__0;
static lean_once_cell_t l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1___closed__1;
static const lean_array_object l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_array_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 246}, .m_size = 0, .m_capacity = 0, .m_data = {}};
static const lean_object* l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1___closed__2 = (const lean_object*)&l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1___closed__2_value;
static lean_once_cell_t l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1___closed__3_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1___closed__3;
LEAN_EXPORT lean_object* l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1;
LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0_spec__2___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0_spec__2___redArg___boxed(lean_object*, lean_object*);
static lean_once_cell_t l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___redArg___closed__0_once = LEAN_ONCE_CELL_INITIALIZER;
static uint64_t l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___redArg___closed__0;
LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1_spec__4_spec__6_spec__7___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1_spec__4_spec__6___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1_spec__4___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__2(lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recParseImports___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recParseImports___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_closure_object l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Lake_Build_Module_0__Lake_Module_recParseImports___lam__0___boxed, .m_arity = 8, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__0_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 6, .m_capacity = 6, .m_length = 5, .m_data = "<nil>"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__1 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__1_value;
static lean_once_cell_t l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recParseImports(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recParseImports___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0_spec__2(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0_spec__2___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1_spec__4(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1_spec__4_spec__6(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1_spec__4_spec__6_spec__7(lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = "\n"};
static const lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__0___closed__0 = (const lean_object*)&l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__0___closed__0_value;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__0(lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__1_spec__2(size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__1_spec__2___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_toJson___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0(uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0___boxed(lean_object*, lean_object*);
static const lean_closure_object l_Lake_Module_importsFacetConfig___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_importsFacetConfig___closed__0 = (const lean_object*)&l_Lake_Module_importsFacetConfig___closed__0_value;
static const lean_closure_object l_Lake_Module_importsFacetConfig___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Lake_Build_Module_0__Lake_Module_recParseImports___boxed, .m_arity = 8, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_importsFacetConfig___closed__1 = (const lean_object*)&l_Lake_Module_importsFacetConfig___closed__1_value;
static lean_once_cell_t l_Lake_Module_importsFacetConfig___closed__2_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_importsFacetConfig___closed__2;
LEAN_EXPORT lean_object* l_Lake_Module_importsFacetConfig;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__1(lean_object*);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__2___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 15, .m_capacity = 15, .m_length = 14, .m_data = ": bad import '"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__2___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__2___closed__0_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__2___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = "'"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__2___closed__1 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__2___closed__1_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__4(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_once_cell_t l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__0_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__0;
static const lean_closure_object l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__1, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__1 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__1_value;
static const lean_closure_object l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_instHashableModule___lam__0___boxed, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__2 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__2_value;
static const lean_closure_object l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_instBEqModule___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__3 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__3_value;
static lean_once_cell_t l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__4_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__4;
static const lean_array_object l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_array_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 246}, .m_size = 0, .m_capacity = 0, .m_data = {}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__5 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__5_value;
static lean_once_cell_t l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__6_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__6;
static lean_once_cell_t l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__7_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__7;
static lean_once_cell_t l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__8_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__8;
static const lean_closure_object l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__9_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Id_instMonad___lam__0, .m_arity = 4, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__9 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__9_value;
static const lean_closure_object l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__10_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Id_instMonad___lam__1___boxed, .m_arity = 4, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__10 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__10_value;
static const lean_closure_object l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__11_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Id_instMonad___lam__2___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__11 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__11_value;
static const lean_closure_object l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__12_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Id_instMonad___lam__3, .m_arity = 4, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__12 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__12_value;
static const lean_closure_object l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__13_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Id_instMonad___lam__4___boxed, .m_arity = 4, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__13 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__13_value;
static const lean_closure_object l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__14_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Id_instMonad___lam__5___boxed, .m_arity = 4, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__14 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__14_value;
static const lean_closure_object l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__15_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Id_instMonad___lam__6, .m_arity = 4, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__15 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__15_value;
static const lean_ctor_object l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__16_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__9_value),((lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__10_value)}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__16 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__16_value;
static const lean_ctor_object l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__17_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*5 + 0, .m_other = 5, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__16_value),((lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__11_value),((lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__12_value),((lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__13_value),((lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__14_value)}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__17 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__17_value;
static const lean_ctor_object l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__18_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__17_value),((lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__15_value)}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__18 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__18_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_OrdHashSet_appendArray___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__0_spec__0(lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_OrdHashSet_appendArray___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_OrdHashSet_appendArray___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_OrdHashSet_appendArray___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__2___lam__0(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__2___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__2___lam__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_once_cell_t l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__0_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__0;
static lean_once_cell_t l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__1;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_computeTransImportsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recComputeTransImports___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recComputeTransImports___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recComputeTransImports(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recComputeTransImports___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_closure_object l_Lake_Module_transImportsFacetConfig___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Lake_Build_Module_0__Lake_Module_recComputeTransImports___boxed, .m_arity = 8, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_transImportsFacetConfig___closed__0 = (const lean_object*)&l_Lake_Module_transImportsFacetConfig___closed__0_value;
static lean_once_cell_t l_Lake_Module_transImportsFacetConfig___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_transImportsFacetConfig___closed__1;
LEAN_EXPORT lean_object* l_Lake_Module_transImportsFacetConfig;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_computePrecompileImportsAux_spec__0(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_computePrecompileImportsAux_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_computePrecompileImportsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_computePrecompileImportsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recComputePrecompileImports___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recComputePrecompileImports___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recComputePrecompileImports(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recComputePrecompileImports___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_closure_object l_Lake_Module_precompileImportsFacetConfig___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Lake_Build_Module_0__Lake_Module_recComputePrecompileImports___boxed, .m_arity = 8, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_precompileImportsFacetConfig___closed__0 = (const lean_object*)&l_Lake_Module_precompileImportsFacetConfig___closed__0_value;
static lean_once_cell_t l_Lake_Module_precompileImportsFacetConfig___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_precompileImportsFacetConfig___closed__1;
LEAN_EXPORT lean_object* l_Lake_Module_precompileImportsFacetConfig;
static const lean_string_object l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_fetchImportLibs_spec__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 9, .m_capacity = 9, .m_length = 8, .m_data = "lean_lib"};
static const lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_fetchImportLibs_spec__0___closed__0 = (const lean_object*)&l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_fetchImportLibs_spec__0___closed__0_value;
static const lean_ctor_object l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_fetchImportLibs_spec__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 8, .m_other = 2, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1)),((lean_object*)&l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_fetchImportLibs_spec__0___closed__0_value),LEAN_SCALAR_PTR_LITERAL(99, 123, 8, 14, 20, 41, 164, 170)}};
static const lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_fetchImportLibs_spec__0___closed__1 = (const lean_object*)&l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_fetchImportLibs_spec__0___closed__1_value;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_fetchImportLibs_spec__0(uint8_t, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_fetchImportLibs_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_array_object l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_array_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 246}, .m_size = 0, .m_capacity = 0, .m_data = {}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___closed__0_value;
static lean_once_cell_t l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___closed__1;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportLibs_spec__0(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportLibs_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_fetchImportLibs___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 15, .m_capacity = 15, .m_length = 14, .m_data = "import dynlibs"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_fetchImportLibs___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_fetchImportLibs___closed__0_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchImportLibs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchImportLibs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_List_elem___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_elem___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__1___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__3___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__0___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__0___redArg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder_go(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__0(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__0___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l_List_mapTR_loop___at___00Lake_formatCycle___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_spec__0_spec__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = "  "};
static const lean_object* l_List_mapTR_loop___at___00Lake_formatCycle___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_spec__0_spec__0___closed__0 = (const lean_object*)&l_List_mapTR_loop___at___00Lake_formatCycle___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_spec__0_spec__0___closed__0_value;
LEAN_EXPORT lean_object* l_List_mapTR_loop___at___00Lake_formatCycle___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_spec__0_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatCycle___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_spec__0(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_spec__1(lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_mkLoadOrder___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 27, .m_capacity = 27, .m_length = 26, .m_data = "library dependency cycle:\n"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder___redArg___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_mkLoadOrder___redArg___closed__0_value;
static const lean_array_object l___private_Lake_Build_Module_0__Lake_mkLoadOrder___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_array_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 246}, .m_size = 0, .m_capacity = 0, .m_data = {}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder___redArg___closed__1 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_mkLoadOrder___redArg___closed__1_value;
static const lean_ctor_object l___private_Lake_Build_Module_0__Lake_mkLoadOrder___redArg___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 0}, .m_objs = {((lean_object*)(((size_t)(1) << 1) | 1)),((lean_object*)&l___private_Lake_Build_Module_0__Lake_mkLoadOrder___redArg___closed__1_value)}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder___redArg___closed__2 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_mkLoadOrder___redArg___closed__2_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder___redArg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_array_object l___private_Lake_Build_Module_0__Lake_instInhabitedModuleDeps_default___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_array_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 246}, .m_size = 0, .m_capacity = 0, .m_data = {}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_instInhabitedModuleDeps_default___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_instInhabitedModuleDeps_default___closed__0_value;
static lean_once_cell_t l___private_Lake_Build_Module_0__Lake_instInhabitedModuleDeps_default___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l___private_Lake_Build_Module_0__Lake_instInhabitedModuleDeps_default___closed__1;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_instInhabitedModuleDeps_default;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_instInhabitedModuleDeps;
LEAN_EXPORT lean_object* l_Nat_cast___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__1(lean_object*);
LEAN_EXPORT lean_object* l_List_foldl___at___00List_foldl___at___00Std_Format_joinSep___at___00Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0_spec__0_spec__2_spec__3(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_foldl___at___00Std_Format_joinSep___at___00Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0_spec__0_spec__2(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Format_joinSep___at___00Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0_spec__0(lean_object*, lean_object*);
static const lean_string_object l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = "#["};
static const lean_object* l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__0 = (const lean_object*)&l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__0_value;
static const lean_string_object l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = ","};
static const lean_object* l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__1 = (const lean_object*)&l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__1_value;
static const lean_ctor_object l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 3}, .m_objs = {((lean_object*)&l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__1_value)}};
static const lean_object* l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__2 = (const lean_object*)&l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__2_value;
static const lean_ctor_object l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 5}, .m_objs = {((lean_object*)&l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__2_value),((lean_object*)(((size_t)(1) << 1) | 1))}};
static const lean_object* l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__3 = (const lean_object*)&l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__3_value;
static const lean_string_object l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = "]"};
static const lean_object* l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__4 = (const lean_object*)&l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__4_value;
static lean_once_cell_t l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__5_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__5;
static lean_once_cell_t l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__6_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__6;
static const lean_ctor_object l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__7_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 3}, .m_objs = {((lean_object*)&l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__0_value)}};
static const lean_object* l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__7 = (const lean_object*)&l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__7_value;
static const lean_ctor_object l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__8_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 3}, .m_objs = {((lean_object*)&l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__4_value)}};
static const lean_object* l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__8 = (const lean_object*)&l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__8_value;
static const lean_string_object l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__9_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 4, .m_capacity = 4, .m_length = 3, .m_data = "#[]"};
static const lean_object* l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__9 = (const lean_object*)&l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__9_value;
static const lean_ctor_object l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__10_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 3}, .m_objs = {((lean_object*)&l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__9_value)}};
static const lean_object* l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__10 = (const lean_object*)&l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__10_value;
LEAN_EXPORT lean_object* l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0(lean_object*);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = "{ "};
static const lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__0_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 8, .m_capacity = 8, .m_length = 7, .m_data = "dynlibs"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__1 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__1_value;
static const lean_ctor_object l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 3}, .m_objs = {((lean_object*)&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__1_value)}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__2 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__2_value;
static const lean_ctor_object l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 5}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1)),((lean_object*)&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__2_value)}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__3 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__3_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 5, .m_capacity = 5, .m_length = 4, .m_data = " := "};
static const lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__4 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__4_value;
static const lean_ctor_object l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 3}, .m_objs = {((lean_object*)&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__4_value)}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__5 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__5_value;
static const lean_ctor_object l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 5}, .m_objs = {((lean_object*)&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__3_value),((lean_object*)&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__5_value)}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__6 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__6_value;
static lean_once_cell_t l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__7_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__7;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__8_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 8, .m_capacity = 8, .m_length = 7, .m_data = "plugins"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__8 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__8_value;
static const lean_ctor_object l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__9_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 3}, .m_objs = {((lean_object*)&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__8_value)}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__9 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__9_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__10_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = " }"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__10 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__10_value;
static lean_once_cell_t l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__11_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__11;
static lean_once_cell_t l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__12_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__12;
static const lean_ctor_object l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__13_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 3}, .m_objs = {((lean_object*)&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__0_value)}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__13 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__13_value;
static const lean_ctor_object l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__14_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 3}, .m_objs = {((lean_object*)&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__10_value)}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__14 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__14_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg(lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___boxed(lean_object*, lean_object*);
static const lean_closure_object l___private_Lake_Build_Module_0__Lake_instReprModuleDeps___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps___closed__0_value;
LEAN_EXPORT const lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps___closed__0_value;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Lake_Build_Module_0__Lake_computeModuleDeps_spec__0___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Lake_Build_Module_0__Lake_computeModuleDeps_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_computeModuleDeps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_computeModuleDeps___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Lake_Build_Module_0__Lake_computeModuleDeps_spec__0(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Lake_Build_Module_0__Lake_computeModuleDeps_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldrMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchTransImportArts_enqueue_spec__0(uint8_t, uint8_t, lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldrMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchTransImportArts_enqueue_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchTransImportArts_enqueue(uint8_t, uint8_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchTransImportArts_enqueue___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchTransImportArts_walk(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchTransImportArts_walk___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchTransImportArts_spec__0(uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchTransImportArts_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_array_object l___private_Lake_Build_Module_0__Lake_fetchTransImportArts___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_array_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 246}, .m_size = 0, .m_capacity = 0, .m_data = {}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_fetchTransImportArts___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_fetchTransImportArts___closed__0_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchTransImportArts(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchTransImportArts___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 8, .m_capacity = 8, .m_length = 7, .m_data = "imports"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__0_value;
static lean_once_cell_t l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__1;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 29, .m_capacity = 29, .m_length = 28, .m_data = " transitive imports (public)"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__2 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__2_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 27, .m_capacity = 27, .m_length = 26, .m_data = " transitive imports (meta)"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__3 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__3_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 26, .m_capacity = 26, .m_length = 25, .m_data = " transitive imports (all)"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__4 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__4_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 29, .m_capacity = 29, .m_length = 28, .m_data = " transitive imports (legacy)"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__5 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__5_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil(lean_object*);
LEAN_EXPORT uint64_t l___private_Lake_Build_Module_0__Lake_ModuleExportInfo_disambiguationHash(lean_object*, uint8_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleExportInfo_disambiguationHash___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_addImport(lean_object*, uint8_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_addImport___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_ctor_object l___private_Lake_Build_Module_0__Lake_Package_discriminant___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*3 + 0, .m_other = 3, .m_tag = 0}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1)),((lean_object*)(((size_t)(0) << 1) | 1)),((lean_object*)(((size_t)(0) << 1) | 1))}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Package_discriminant___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Package_discriminant___closed__0_value;
static const lean_ctor_object l___private_Lake_Build_Module_0__Lake_Package_discriminant___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Lake_Build_Module_0__Lake_Package_discriminant___closed__0_value),((lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1_value)}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Package_discriminant___closed__1 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Package_discriminant___closed__1_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Package_discriminant___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = "@"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Package_discriminant___closed__2 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Package_discriminant___closed__2_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Package_discriminant(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__3(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__4(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Vector_Basic_0__Vector_mapM_go___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Vector_Basic_0__Vector_mapM_go___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__1(uint8_t, lean_object*, uint64_t, lean_object*, size_t, size_t);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 4, .m_capacity = 4, .m_length = 3, .m_data = "\n  "};
static const lean_object* l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2___redArg___closed__0 = (const lean_object*)&l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2___redArg___closed__0_value;
static const lean_string_object l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 9, .m_capacity = 9, .m_length = 8, .m_data = " (hash: "};
static const lean_object* l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2___redArg___closed__1 = (const lean_object*)&l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2___redArg___closed__1_value;
static const lean_string_object l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2___redArg___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = ")"};
static const lean_object* l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2___redArg___closed__2 = (const lean_object*)&l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2___redArg___closed__2_value;
LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__1___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 38, .m_capacity = 38, .m_length = 37, .m_data = ": could not disambiguate the module `"};
static const lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__1___closed__0 = (const lean_object*)&l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__1___closed__0_value;
static const lean_string_object l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__1___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 51, .m_capacity = 51, .m_length = 50, .m_data = "`; multiple packages provide distinct definitions:"};
static const lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__1___closed__1 = (const lean_object*)&l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__1___closed__1_value;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__1___boxed(lean_object**);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__2___boxed(lean_object**);
static const lean_closure_object l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__0___boxed, .m_arity = 8, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___closed__0 = (const lean_object*)&l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___closed__0_value;
static const lean_array_object l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_array_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 246}, .m_size = 0, .m_capacity = 0, .m_data = {}};
static const lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___closed__1 = (const lean_object*)&l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___closed__1_value;
static const lean_string_object l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 13, .m_capacity = 13, .m_length = 12, .m_data = "<collection>"};
static const lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___closed__2 = (const lean_object*)&l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___closed__2_value;
static const lean_string_object l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 24, .m_capacity = 24, .m_length = 23, .m_data = ": module imports itself"};
static const lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___closed__3 = (const lean_object*)&l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___closed__3_value;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3(lean_object*, uint8_t, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchImportInfo___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchImportInfo___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchImportInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchImportInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Vector_Basic_0__Vector_mapM_go___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Vector_Basic_0__Vector_mapM_go___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_importInfoFacetConfig_spec__0___redArg(uint8_t);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_importInfoFacetConfig_spec__0___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_importInfoFacetConfig_spec__0(uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_importInfoFacetConfig_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_importInfoFacetConfig___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_importInfoFacetConfig___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_importInfoFacetConfig___lam__1(uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_importInfoFacetConfig___lam__1___boxed(lean_object*, lean_object*);
static const lean_closure_object l_Lake_Module_importInfoFacetConfig___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_Module_importInfoFacetConfig___lam__0___boxed, .m_arity = 8, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_importInfoFacetConfig___closed__0 = (const lean_object*)&l_Lake_Module_importInfoFacetConfig___closed__0_value;
static const lean_closure_object l_Lake_Module_importInfoFacetConfig___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_Module_importInfoFacetConfig___lam__1___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_importInfoFacetConfig___closed__1 = (const lean_object*)&l_Lake_Module_importInfoFacetConfig___closed__1_value;
static lean_once_cell_t l_Lake_Module_importInfoFacetConfig___closed__2_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_importInfoFacetConfig___closed__2;
LEAN_EXPORT lean_object* l_Lake_Module_importInfoFacetConfig;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_noServerOLeanError___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 64, .m_capacity = 64, .m_length = 63, .m_data = "No server olean generated. Ensure the module system is enabled."};
static const lean_object* l___private_Lake_Build_Module_0__Lake_noServerOLeanError___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_noServerOLeanError___closed__0_value;
LEAN_EXPORT const lean_object* l___private_Lake_Build_Module_0__Lake_noServerOLeanError = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_noServerOLeanError___closed__0_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_noPrivateOLeanError___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 65, .m_capacity = 65, .m_length = 64, .m_data = "No private olean generated. Ensure the module system is enabled."};
static const lean_object* l___private_Lake_Build_Module_0__Lake_noPrivateOLeanError___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_noPrivateOLeanError___closed__0_value;
LEAN_EXPORT const lean_object* l___private_Lake_Build_Module_0__Lake_noPrivateOLeanError = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_noPrivateOLeanError___closed__0_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_noIRError___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 57, .m_capacity = 57, .m_length = 56, .m_data = "No `.ir` generated. Ensure the module system is enabled."};
static const lean_object* l___private_Lake_Build_Module_0__Lake_noIRError___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_noIRError___closed__0_value;
LEAN_EXPORT const lean_object* l___private_Lake_Build_Module_0__Lake_noIRError = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_noIRError___closed__0_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 12, .m_capacity = 12, .m_length = 11, .m_data = ":importArts"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__0_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 19, .m_capacity = 19, .m_length = 18, .m_data = ":importArts (meta)"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__1 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__1_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 15, .m_capacity = 15, .m_length = 14, .m_data = ":importAllArts"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__2 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__2_value;
static const lean_ctor_object l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 8, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Lake_Build_Module_0__Lake_noPrivateOLeanError___closed__0_value),LEAN_SCALAR_PTR_LITERAL(3, 0, 0, 0, 0, 0, 0, 0)}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__3 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__3_value;
static const lean_ctor_object l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 8, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Lake_Build_Module_0__Lake_noIRError___closed__0_value),LEAN_SCALAR_PTR_LITERAL(3, 0, 0, 0, 0, 0, 0, 0)}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__4 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__4_value;
static const lean_ctor_object l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 8, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Lake_Build_Module_0__Lake_noServerOLeanError___closed__0_value),LEAN_SCALAR_PTR_LITERAL(3, 0, 0, 0, 0, 0, 0, 0)}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__5 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__5_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_exportInfoFacetConfig_spec__0___redArg(uint8_t);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_exportInfoFacetConfig_spec__0___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_exportInfoFacetConfig_spec__0(uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_exportInfoFacetConfig_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_exportInfoFacetConfig___lam__0(uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_exportInfoFacetConfig___lam__0___boxed(lean_object*, lean_object*);
static const lean_closure_object l_Lake_Module_exportInfoFacetConfig___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_Module_exportInfoFacetConfig___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_exportInfoFacetConfig___closed__0 = (const lean_object*)&l_Lake_Module_exportInfoFacetConfig___closed__0_value;
static const lean_closure_object l_Lake_Module_exportInfoFacetConfig___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___boxed, .m_arity = 8, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_exportInfoFacetConfig___closed__1 = (const lean_object*)&l_Lake_Module_exportInfoFacetConfig___closed__1_value;
static lean_once_cell_t l_Lake_Module_exportInfoFacetConfig___closed__2_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_exportInfoFacetConfig___closed__2;
LEAN_EXPORT lean_object* l_Lake_Module_exportInfoFacetConfig;
LEAN_EXPORT lean_object* l_Lake_Module_importArtsFacetConfig___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_importArtsFacetConfig___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_importArtsFacetConfig___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lake_formatQuery___at___00Lake_Module_importArtsFacetConfig_spec__0_spec__0_spec__1(size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lake_formatQuery___at___00Lake_Module_importArtsFacetConfig_spec__0_spec__0_spec__1___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_toJson___at___00Lake_formatQuery___at___00Lake_Module_importArtsFacetConfig_spec__0_spec__0(lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_importArtsFacetConfig_spec__0(uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_importArtsFacetConfig_spec__0___boxed(lean_object*, lean_object*);
static const lean_closure_object l_Lake_Module_importArtsFacetConfig___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_formatQuery___at___00Lake_Module_importArtsFacetConfig_spec__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_importArtsFacetConfig___closed__0 = (const lean_object*)&l_Lake_Module_importArtsFacetConfig___closed__0_value;
static const lean_closure_object l_Lake_Module_importArtsFacetConfig___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_Module_importArtsFacetConfig___lam__0, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_importArtsFacetConfig___closed__1 = (const lean_object*)&l_Lake_Module_importArtsFacetConfig___closed__1_value;
static const lean_closure_object l_Lake_Module_importArtsFacetConfig___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*2, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_Module_importArtsFacetConfig___lam__1___boxed, .m_arity = 10, .m_num_fixed = 2, .m_objs = {((lean_object*)&l_Lake_Module_importArtsFacetConfig___closed__1_value),((lean_object*)(((size_t)(0) << 1) | 1))} };
static const lean_object* l_Lake_Module_importArtsFacetConfig___closed__2 = (const lean_object*)&l_Lake_Module_importArtsFacetConfig___closed__2_value;
static lean_once_cell_t l_Lake_Module_importArtsFacetConfig___closed__3_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_importArtsFacetConfig___closed__3;
LEAN_EXPORT lean_object* l_Lake_Module_importArtsFacetConfig;
LEAN_EXPORT lean_object* l_Lake_Module_importAllArtsFacetConfig___lam__0(lean_object*);
static const lean_closure_object l_Lake_Module_importAllArtsFacetConfig___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_Module_importAllArtsFacetConfig___lam__0, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_importAllArtsFacetConfig___closed__0 = (const lean_object*)&l_Lake_Module_importAllArtsFacetConfig___closed__0_value;
static const lean_closure_object l_Lake_Module_importAllArtsFacetConfig___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*2, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_Module_importArtsFacetConfig___lam__1___boxed, .m_arity = 10, .m_num_fixed = 2, .m_objs = {((lean_object*)&l_Lake_Module_importAllArtsFacetConfig___closed__0_value),((lean_object*)(((size_t)(0) << 1) | 1))} };
static const lean_object* l_Lake_Module_importAllArtsFacetConfig___closed__1 = (const lean_object*)&l_Lake_Module_importAllArtsFacetConfig___closed__1_value;
static lean_once_cell_t l_Lake_Module_importAllArtsFacetConfig___closed__2_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_importAllArtsFacetConfig___closed__2;
LEAN_EXPORT lean_object* l_Lake_Module_importAllArtsFacetConfig;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__1(size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__1___boxed(lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 5, .m_capacity = 5, .m_length = 4, .m_data = "deps"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0___closed__0_value;
static lean_once_cell_t l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0___closed__1;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 6, .m_capacity = 6, .m_length = 5, .m_data = ":deps"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0___closed__2 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0___closed__2_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 5, .m_capacity = 5, .m_length = 4, .m_data = "libs"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0___closed__3 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0___closed__3_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0___boxed(lean_object**);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__1___boxed(lean_object**);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__2___boxed(lean_object**);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__3___boxed(lean_object**);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__4___boxed(lean_object**);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__5(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__6___boxed(lean_object**);
static const lean_string_object l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 26, .m_capacity = 26, .m_length = 25, .m_data = "type mismatch in target '"};
static const lean_object* l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___closed__0 = (const lean_object*)&l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___closed__0_value;
static const lean_string_object l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 14, .m_capacity = 14, .m_length = 13, .m_data = "': expected '"};
static const lean_object* l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___closed__1 = (const lean_object*)&l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___closed__1_value;
static lean_once_cell_t l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___closed__2_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___closed__2;
static const lean_string_object l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 8, .m_capacity = 8, .m_length = 7, .m_data = "', got "};
static const lean_object* l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___closed__3 = (const lean_object*)&l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___closed__3_value;
static const lean_string_object l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 8, .m_capacity = 8, .m_length = 7, .m_data = "unknown"};
static const lean_object* l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___closed__4 = (const lean_object*)&l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___closed__4_value;
LEAN_EXPORT lean_object* l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 15, .m_capacity = 15, .m_length = 14, .m_data = "module dynlibs"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__0_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 15, .m_capacity = 15, .m_length = 14, .m_data = "module plugins"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__1 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__1_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 27, .m_capacity = 27, .m_length = 26, .m_data = "package external libraries"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__2 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__2_value;
static const lean_array_object l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_array_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 246}, .m_size = 0, .m_capacity = 0, .m_data = {}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__3 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__3_value;
static lean_once_cell_t l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__4_once = LEAN_ONCE_CELL_INITIALIZER;
static size_t l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__4;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_setupFacetConfig_spec__0(uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_setupFacetConfig_spec__0___boxed(lean_object*, lean_object*);
static const lean_closure_object l_Lake_Module_setupFacetConfig___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_formatQuery___at___00Lake_Module_setupFacetConfig_spec__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_setupFacetConfig___closed__0 = (const lean_object*)&l_Lake_Module_setupFacetConfig___closed__0_value;
static const lean_closure_object l_Lake_Module_setupFacetConfig___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___boxed, .m_arity = 8, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_setupFacetConfig___closed__1 = (const lean_object*)&l_Lake_Module_setupFacetConfig___closed__1_value;
static lean_once_cell_t l_Lake_Module_setupFacetConfig___closed__2_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_setupFacetConfig___closed__2;
LEAN_EXPORT lean_object* l_Lake_Module_setupFacetConfig;
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_depsFacetConfig_spec__0___redArg(uint8_t);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_depsFacetConfig_spec__0___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_depsFacetConfig_spec__0(uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_depsFacetConfig_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_depsFacetConfig___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_depsFacetConfig___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_depsFacetConfig___lam__1(uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_depsFacetConfig___lam__1___boxed(lean_object*, lean_object*);
static const lean_closure_object l_Lake_Module_depsFacetConfig___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_Module_depsFacetConfig___lam__0___boxed, .m_arity = 8, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_depsFacetConfig___closed__0 = (const lean_object*)&l_Lake_Module_depsFacetConfig___closed__0_value;
static const lean_closure_object l_Lake_Module_depsFacetConfig___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_Module_depsFacetConfig___lam__1___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_depsFacetConfig___closed__1 = (const lean_object*)&l_Lake_Module_depsFacetConfig___closed__1_value;
static lean_once_cell_t l_Lake_Module_depsFacetConfig___closed__2_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_depsFacetConfig___closed__2;
LEAN_EXPORT lean_object* l_Lake_Module_depsFacetConfig;
static const lean_string_object l_Lake_Module_clearOutputArtifacts___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 36, .m_capacity = 36, .m_length = 35, .m_data = "failed to remove output artifacts: "};
static const lean_object* l_Lake_Module_clearOutputArtifacts___closed__0 = (const lean_object*)&l_Lake_Module_clearOutputArtifacts___closed__0_value;
static const lean_string_object l_Lake_Module_clearOutputArtifacts___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 5, .m_capacity = 5, .m_length = 4, .m_data = "ltar"};
static const lean_object* l_Lake_Module_clearOutputArtifacts___closed__1 = (const lean_object*)&l_Lake_Module_clearOutputArtifacts___closed__1_value;
static const lean_string_object l_Lake_Module_clearOutputArtifacts___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 6, .m_capacity = 6, .m_length = 5, .m_data = "olean"};
static const lean_object* l_Lake_Module_clearOutputArtifacts___closed__2 = (const lean_object*)&l_Lake_Module_clearOutputArtifacts___closed__2_value;
static const lean_string_object l_Lake_Module_clearOutputArtifacts___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 13, .m_capacity = 13, .m_length = 12, .m_data = "olean.server"};
static const lean_object* l_Lake_Module_clearOutputArtifacts___closed__3 = (const lean_object*)&l_Lake_Module_clearOutputArtifacts___closed__3_value;
static const lean_string_object l_Lake_Module_clearOutputArtifacts___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 14, .m_capacity = 14, .m_length = 13, .m_data = "olean.private"};
static const lean_object* l_Lake_Module_clearOutputArtifacts___closed__4 = (const lean_object*)&l_Lake_Module_clearOutputArtifacts___closed__4_value;
static const lean_string_object l_Lake_Module_clearOutputArtifacts___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 6, .m_capacity = 6, .m_length = 5, .m_data = "ilean"};
static const lean_object* l_Lake_Module_clearOutputArtifacts___closed__5 = (const lean_object*)&l_Lake_Module_clearOutputArtifacts___closed__5_value;
static const lean_string_object l_Lake_Module_clearOutputArtifacts___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = "ir"};
static const lean_object* l_Lake_Module_clearOutputArtifacts___closed__6 = (const lean_object*)&l_Lake_Module_clearOutputArtifacts___closed__6_value;
static const lean_string_object l_Lake_Module_clearOutputArtifacts___closed__7_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = "c"};
static const lean_object* l_Lake_Module_clearOutputArtifacts___closed__7 = (const lean_object*)&l_Lake_Module_clearOutputArtifacts___closed__7_value;
static const lean_string_object l_Lake_Module_clearOutputArtifacts___closed__8_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = "bc"};
static const lean_object* l_Lake_Module_clearOutputArtifacts___closed__8 = (const lean_object*)&l_Lake_Module_clearOutputArtifacts___closed__8_value;
LEAN_EXPORT lean_object* l_Lake_Module_clearOutputArtifacts(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_clearOutputArtifacts___boxed(lean_object*, lean_object*);
static const lean_string_object l_Lake_Module_clearOutputHashes___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 33, .m_capacity = 33, .m_length = 32, .m_data = "failed to remove output hashes: "};
static const lean_object* l_Lake_Module_clearOutputHashes___closed__0 = (const lean_object*)&l_Lake_Module_clearOutputHashes___closed__0_value;
LEAN_EXPORT lean_object* l_Lake_Module_clearOutputHashes(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_clearOutputHashes___boxed(lean_object*, lean_object*);
static lean_once_cell_t l_Lake_Module_cacheOutputHashes___closed__0_once = LEAN_ONCE_CELL_INITIALIZER;
static uint8_t l_Lake_Module_cacheOutputHashes___closed__0;
LEAN_EXPORT lean_object* l_Lake_Module_cacheOutputHashes(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_cacheOutputHashes___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve_resolve___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve_resolve___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve_resolve(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve_resolve___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 53, .m_capacity = 53, .m_length = 52, .m_data = "LLVM backend enabled but module outputs lack bitcode"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve___redArg___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve___redArg___closed__0_value;
static const lean_ctor_object l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 8, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve___redArg___closed__0_value),LEAN_SCALAR_PTR_LITERAL(3, 0, 0, 0, 0, 0, 0, 0)}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve___redArg___closed__1 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve___redArg___closed__1_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_resolveModuleOutputArtifacts___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 28, .m_capacity = 28, .m_length = 27, .m_data = "ill-formed module outputs:\n"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_resolveModuleOutputArtifacts___redArg___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_resolveModuleOutputArtifacts___redArg___closed__0_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_resolveModuleOutputArtifacts___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_resolveModuleOutputArtifacts___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_resolveModuleOutputArtifacts(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_resolveModuleOutputArtifacts___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_closure_object l___private_Lake_Build_Module_0__Lake_instResolveOutputsModuleOutputArtifacts___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Lake_Build_Module_0__Lake_resolveModuleOutputArtifacts___boxed, .m_arity = 8, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l___private_Lake_Build_Module_0__Lake_instResolveOutputsModuleOutputArtifacts___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_instResolveOutputsModuleOutputArtifacts___closed__0_value;
LEAN_EXPORT const lean_object* l___private_Lake_Build_Module_0__Lake_instResolveOutputsModuleOutputArtifacts = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_instResolveOutputsModuleOutputArtifacts___closed__0_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputs_ctorIdx(lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputs_ctorIdx___boxed(lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputs_ctorElim___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputs_ctorElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputs_ctorElim___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputs_ltar_elim___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputs_ltar_elim(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputs_arts_elim___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputs_arts_elim(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_instCoeModuleOutputArtifactsModuleOutputs___lam__0(lean_object*);
static const lean_closure_object l___private_Lake_Build_Module_0__Lake_instCoeModuleOutputArtifactsModuleOutputs___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Lake_Build_Module_0__Lake_instCoeModuleOutputArtifactsModuleOutputs___lam__0, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l___private_Lake_Build_Module_0__Lake_instCoeModuleOutputArtifactsModuleOutputs___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_instCoeModuleOutputArtifactsModuleOutputs___closed__0_value;
LEAN_EXPORT const lean_object* l___private_Lake_Build_Module_0__Lake_instCoeModuleOutputArtifactsModuleOutputs = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_instCoeModuleOutputArtifactsModuleOutputs___closed__0_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_resolveModuleOutputs___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 35, .m_capacity = 35, .m_length = 34, .m_data = "ill-formed module archive output:\n"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_resolveModuleOutputs___redArg___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_resolveModuleOutputs___redArg___closed__0_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_resolveModuleOutputs___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_resolveModuleOutputs___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_resolveModuleOutputs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_resolveModuleOutputs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_closure_object l___private_Lake_Build_Module_0__Lake_instResolveOutputsModuleOutputs___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Lake_Build_Module_0__Lake_resolveModuleOutputs___boxed, .m_arity = 8, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l___private_Lake_Build_Module_0__Lake_instResolveOutputsModuleOutputs___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_instResolveOutputsModuleOutputs___closed__0_value;
LEAN_EXPORT const lean_object* l___private_Lake_Build_Module_0__Lake_instResolveOutputsModuleOutputs = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_instResolveOutputsModuleOutputs___closed__0_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cache___redArg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cache___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cache(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cache___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f___redArg(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts___redArg(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreNeededArtifacts___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreNeededArtifacts___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreNeededArtifacts(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreNeededArtifacts___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts_restoreSome___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts_restoreSome___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts_restoreSome(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts_restoreSome___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Lake_Module_checkArtifactsExsist(lean_object*, uint8_t);
LEAN_EXPORT lean_object* l_Lake_Module_checkArtifactsExsist___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Lake_Module_checkExists(lean_object*, uint8_t);
LEAN_EXPORT lean_object* l_Lake_Module_checkExists___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Lake_instCheckExistsModule___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Lake_instCheckExistsModule___lam__0___boxed(lean_object*, lean_object*);
static const lean_closure_object l_Lake_instCheckExistsModule___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_instCheckExistsModule___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_instCheckExistsModule___closed__0 = (const lean_object*)&l_Lake_instCheckExistsModule___closed__0_value;
LEAN_EXPORT const lean_object* l_Lake_instCheckExistsModule = (const lean_object*)&l_Lake_instCheckExistsModule___closed__0_value;
LEAN_EXPORT lean_object* l_Lake_Module_getMTime___lam__0(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_getMTime___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_getMTime(lean_object*, uint8_t);
LEAN_EXPORT lean_object* l_Lake_Module_getMTime___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instGetMTimeModule___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Lake_instGetMTimeModule___lam__0___boxed(lean_object*, lean_object*);
static const lean_closure_object l_Lake_instGetMTimeModule___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_instGetMTimeModule___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_instGetMTimeModule___closed__0 = (const lean_object*)&l_Lake_instGetMTimeModule___closed__0_value;
LEAN_EXPORT const lean_object* l_Lake_instGetMTimeModule = (const lean_object*)&l_Lake_instGetMTimeModule___closed__0_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputArtifacts_setMTime___lam__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputArtifacts_setMTime(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_mkArtifacts(lean_object*, lean_object*, uint8_t);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_mkArtifacts___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_compute___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_compute___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_compute(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_compute___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_computeIf___redArg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_computeIf___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_computeIf(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_computeIf___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___redArg(lean_object*, uint8_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_instToOutputJsonModuleOutputArtifacts___lam__0(lean_object*);
static const lean_closure_object l___private_Lake_Build_Module_0__Lake_instToOutputJsonModuleOutputArtifacts___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Lake_Build_Module_0__Lake_instToOutputJsonModuleOutputArtifacts___lam__0, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l___private_Lake_Build_Module_0__Lake_instToOutputJsonModuleOutputArtifacts___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_instToOutputJsonModuleOutputArtifacts___closed__0_value;
LEAN_EXPORT const lean_object* l___private_Lake_Build_Module_0__Lake_instToOutputJsonModuleOutputArtifacts = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_instToOutputJsonModuleOutputArtifacts___closed__0_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_packLtar___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = "-i"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_packLtar___lam__0___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_packLtar___lam__0___closed__0_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_packLtar___lam__0(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_packLtar___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_packLtar___lam__1___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = "1"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_packLtar___lam__1___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_packLtar___lam__1___closed__0_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_packLtar___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_packLtar___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_ctor_object l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*0 + 8, .m_other = 0, .m_tag = 0}, .m_objs = {LEAN_SCALAR_PTR_LITERAL(1, 1, 1, 0, 0, 0, 0, 0)}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__0_value;
static const lean_array_object l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_array_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 246}, .m_size = 0, .m_capacity = 0, .m_data = {}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__1 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__1_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = "-C"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__2 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__2_value;
static lean_once_cell_t l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__3_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__3;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 6, .m_capacity = 6, .m_length = 5, .m_data = "trace"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__4 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__4_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = "0"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__5 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__5_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_packLtar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_packLtar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_unpackLtar___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = "-x"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_unpackLtar___redArg___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_unpackLtar___redArg___closed__0_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_unpackLtar___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_unpackLtar___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_unpackLtar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_unpackLtar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 45, .m_capacity = 45, .m_length = 44, .m_data = "archive does not exist and needs to be built"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___lam__0___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___lam__0___closed__0_value;
static const lean_ctor_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___lam__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 8, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___lam__0___closed__0_value),LEAN_SCALAR_PTR_LITERAL(3, 0, 0, 0, 0, 0, 0, 0)}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___lam__0___closed__1 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___lam__0___closed__1_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 6, .m_capacity = 6, .m_length = 5, .m_data = ":ltar"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___closed__0_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_closure_object l_Lake_Module_ltarFacetConfig___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___boxed, .m_arity = 8, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_ltarFacetConfig___closed__0 = (const lean_object*)&l_Lake_Module_ltarFacetConfig___closed__0_value;
static lean_once_cell_t l_Lake_Module_ltarFacetConfig___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_ltarFacetConfig___closed__1;
LEAN_EXPORT lean_object* l_Lake_Module_ltarFacetConfig;
LEAN_EXPORT lean_object* l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___lam__0(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 46, .m_capacity = 46, .m_length = 45, .m_data = "target is out-of-date and needs to be rebuilt"};
static const lean_object* l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___closed__0 = (const lean_object*)&l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___closed__0_value;
static const lean_ctor_object l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 8, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___closed__0_value),LEAN_SCALAR_PTR_LITERAL(3, 0, 0, 0, 0, 0, 0, 0)}};
static const lean_object* l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___closed__1 = (const lean_object*)&l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___closed__1_value;
static const lean_string_object l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 8, .m_capacity = 8, .m_length = 7, .m_data = "nobuild"};
static const lean_object* l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___closed__2 = (const lean_object*)&l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___closed__2_value;
static const lean_string_object l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 11, .m_capacity = 11, .m_length = 10, .m_data = "setup.json"};
static const lean_object* l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___closed__3 = (const lean_object*)&l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___closed__3_value;
LEAN_EXPORT lean_object* l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_buildLean(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_buildLean___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = "-D"};
static const lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__0 = (const lean_object*)&l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__0_value;
static const lean_string_object l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = "="};
static const lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__1 = (const lean_object*)&l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__1_value;
static lean_once_cell_t l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__2_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__2;
static lean_once_cell_t l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__3_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__3;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_traceOptions(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__0___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 35, .m_capacity = 35, .m_length = 34, .m_data = "could not write outputs to cache: "};
static const lean_object* l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__0___closed__0 = (const lean_object*)&l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__0___closed__0_value;
LEAN_EXPORT lean_object* l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__0(lean_object*, uint64_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__2___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__2___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__2(lean_object*, uint64_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1_spec__1___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 4, .m_capacity = 4, .m_length = 3, .m_data = "\n- "};
static const lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1_spec__1___closed__0 = (const lean_object*)&l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1_spec__1___closed__0_value;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1_spec__1(lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 8, .m_capacity = 8, .m_length = 7, .m_data = "input '"};
static const lean_object* l___private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1___redArg___closed__0 = (const lean_object*)&l___private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1___redArg___closed__0_value;
static const lean_string_object l___private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 67, .m_capacity = 67, .m_length = 66, .m_data = "' found in package artifact cache, but some output(s) have issues:"};
static const lean_object* l___private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1___redArg___closed__1 = (const lean_object*)&l___private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1___redArg___closed__1_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1___redArg(uint64_t, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1(lean_object*, uint64_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Lake_MTime_checkUpToDate___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Option_instBEq_beq___at___00__private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__0_spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Option_instBEq_beq___at___00__private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__0_spec__1___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_trackOutputsIfEnabled___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = "."};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_trackOutputsIfEnabled___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_trackOutputsIfEnabled___closed__0_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_trackOutputsIfEnabled(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_trackOutputsIfEnabled___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_adjustMTime___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 55, .m_capacity = 55, .m_length = 54, .m_data = "failed to retrieve module artifact modification time: "};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_adjustMTime___redArg___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_adjustMTime___redArg___closed__0_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_adjustMTime___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_adjustMTime___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_adjustMTime(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_adjustMTime___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l_List_foldl___at___00List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0_spec__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = ", "};
static const lean_object* l_List_foldl___at___00List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0_spec__0___closed__0 = (const lean_object*)&l_List_foldl___at___00List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0_spec__0___closed__0_value;
LEAN_EXPORT lean_object* l_List_foldl___at___00List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_foldl___at___00List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0_spec__0___boxed(lean_object*, lean_object*);
static const lean_string_object l_List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = "[]"};
static const lean_object* l_List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0___closed__0 = (const lean_object*)&l_List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0___closed__0_value;
static const lean_string_object l_List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = "["};
static const lean_object* l_List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0___closed__1 = (const lean_object*)&l_List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0___closed__1_value;
LEAN_EXPORT lean_object* l_List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0(lean_object*);
LEAN_EXPORT lean_object* l_List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0___boxed(lean_object*);
LEAN_EXPORT uint64_t l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__1(lean_object*, size_t, size_t, uint64_t);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 18, .m_capacity = 18, .m_length = 17, .m_data = "Module.leanArgs: "};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__0_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = "#"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__1 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__1_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 10, .m_capacity = 10, .m_length = 9, .m_data = ":leanArts"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__2 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__2_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 14, .m_capacity = 14, .m_length = 13, .m_data = "Package.id\?: "};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__3 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__3_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 5, .m_capacity = 5, .m_length = 4, .m_data = "none"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__4 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__4_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 7, .m_capacity = 7, .m_length = 6, .m_data = "(some "};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__5 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__5_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 14, .m_capacity = 14, .m_length = 13, .m_data = "Module.name: "};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__6 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__6_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__7_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 11, .m_capacity = 11, .m_length = 10, .m_data = "isModule: "};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__7 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__7_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__8_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 6, .m_capacity = 6, .m_length = 5, .m_data = "false"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__8 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__8_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__9_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 5, .m_capacity = 5, .m_length = 4, .m_data = "true"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__9 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__9_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__10_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 8, .m_capacity = 8, .m_length = 7, .m_data = "options"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__10 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__10_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1___boxed(lean_object**);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_leanArtsFacetConfig_spec__0___redArg(uint8_t);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_leanArtsFacetConfig_spec__0___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_leanArtsFacetConfig_spec__0(uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_leanArtsFacetConfig_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_leanArtsFacetConfig___lam__0(uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_leanArtsFacetConfig___lam__0___boxed(lean_object*, lean_object*);
static const lean_closure_object l_Lake_Module_leanArtsFacetConfig___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_Module_leanArtsFacetConfig___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_leanArtsFacetConfig___closed__0 = (const lean_object*)&l_Lake_Module_leanArtsFacetConfig___closed__0_value;
static const lean_closure_object l_Lake_Module_leanArtsFacetConfig___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___boxed, .m_arity = 8, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_leanArtsFacetConfig___closed__1 = (const lean_object*)&l_Lake_Module_leanArtsFacetConfig___closed__1_value;
static lean_once_cell_t l_Lake_Module_leanArtsFacetConfig___closed__2_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_leanArtsFacetConfig___closed__2;
LEAN_EXPORT lean_object* l_Lake_Module_leanArtsFacetConfig;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = ":"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___lam__0___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___lam__0___closed__0_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_oleanFacetConfig___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_oleanFacetConfig___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_oleanFacetConfig___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_oleanFacetConfig___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_once_cell_t l_Lake_Module_oleanFacetConfig___closed__0_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_oleanFacetConfig___closed__0;
static lean_once_cell_t l_Lake_Module_oleanFacetConfig___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_oleanFacetConfig___closed__1;
LEAN_EXPORT lean_object* l_Lake_Module_oleanFacetConfig;
LEAN_EXPORT lean_object* l_Lake_Module_oleanServerFacetConfig___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_oleanServerFacetConfig___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_oleanServerFacetConfig___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_oleanServerFacetConfig___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_once_cell_t l_Lake_Module_oleanServerFacetConfig___closed__0_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_oleanServerFacetConfig___closed__0;
static lean_once_cell_t l_Lake_Module_oleanServerFacetConfig___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_oleanServerFacetConfig___closed__1;
LEAN_EXPORT lean_object* l_Lake_Module_oleanServerFacetConfig;
LEAN_EXPORT lean_object* l_Lake_Module_oleanPrivateFacetConfig___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_oleanPrivateFacetConfig___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_oleanPrivateFacetConfig___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_oleanPrivateFacetConfig___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_once_cell_t l_Lake_Module_oleanPrivateFacetConfig___closed__0_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_oleanPrivateFacetConfig___closed__0;
static lean_once_cell_t l_Lake_Module_oleanPrivateFacetConfig___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_oleanPrivateFacetConfig___closed__1;
LEAN_EXPORT lean_object* l_Lake_Module_oleanPrivateFacetConfig;
static const lean_string_object l_Lake_Module_ileanFacetConfig___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 7, .m_capacity = 7, .m_length = 6, .m_data = ":ilean"};
static const lean_object* l_Lake_Module_ileanFacetConfig___lam__0___closed__0 = (const lean_object*)&l_Lake_Module_ileanFacetConfig___lam__0___closed__0_value;
LEAN_EXPORT lean_object* l_Lake_Module_ileanFacetConfig___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_ileanFacetConfig___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_ileanFacetConfig___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_ileanFacetConfig___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_once_cell_t l_Lake_Module_ileanFacetConfig___closed__0_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_ileanFacetConfig___closed__0;
static lean_once_cell_t l_Lake_Module_ileanFacetConfig___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_ileanFacetConfig___closed__1;
LEAN_EXPORT lean_object* l_Lake_Module_ileanFacetConfig;
LEAN_EXPORT lean_object* l_Lake_Module_irFacetConfig___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_irFacetConfig___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_irFacetConfig___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_irFacetConfig___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_once_cell_t l_Lake_Module_irFacetConfig___closed__0_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_irFacetConfig___closed__0;
static lean_once_cell_t l_Lake_Module_irFacetConfig___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_irFacetConfig___closed__1;
LEAN_EXPORT lean_object* l_Lake_Module_irFacetConfig;
static const lean_string_object l_Lake_Module_cFacetConfig___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = ":c"};
static const lean_object* l_Lake_Module_cFacetConfig___lam__0___closed__0 = (const lean_object*)&l_Lake_Module_cFacetConfig___lam__0___closed__0_value;
LEAN_EXPORT lean_object* l_Lake_Module_cFacetConfig___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_cFacetConfig___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_cFacetConfig___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_cFacetConfig___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_once_cell_t l_Lake_Module_cFacetConfig___closed__0_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_cFacetConfig___closed__0;
static lean_once_cell_t l_Lake_Module_cFacetConfig___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_cFacetConfig___closed__1;
LEAN_EXPORT lean_object* l_Lake_Module_cFacetConfig;
static const lean_string_object l_Lake_Module_bcFacetConfig___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 4, .m_capacity = 4, .m_length = 3, .m_data = ":bc"};
static const lean_object* l_Lake_Module_bcFacetConfig___lam__0___closed__0 = (const lean_object*)&l_Lake_Module_bcFacetConfig___lam__0___closed__0_value;
static const lean_string_object l_Lake_Module_bcFacetConfig___lam__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 79, .m_capacity = 79, .m_length = 78, .m_data = "No LLVM bitcode generated. Ensure your Lean version supports the LLVM backend."};
static const lean_object* l_Lake_Module_bcFacetConfig___lam__0___closed__1 = (const lean_object*)&l_Lake_Module_bcFacetConfig___lam__0___closed__1_value;
static const lean_ctor_object l_Lake_Module_bcFacetConfig___lam__0___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 8, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l_Lake_Module_bcFacetConfig___lam__0___closed__1_value),LEAN_SCALAR_PTR_LITERAL(3, 0, 0, 0, 0, 0, 0, 0)}};
static const lean_object* l_Lake_Module_bcFacetConfig___lam__0___closed__2 = (const lean_object*)&l_Lake_Module_bcFacetConfig___lam__0___closed__2_value;
LEAN_EXPORT lean_object* l_Lake_Module_bcFacetConfig___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_bcFacetConfig___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_bcFacetConfig___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_bcFacetConfig___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_once_cell_t l_Lake_Module_bcFacetConfig___closed__0_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_bcFacetConfig___closed__0;
static lean_once_cell_t l_Lake_Module_bcFacetConfig___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_bcFacetConfig___closed__1;
LEAN_EXPORT lean_object* l_Lake_Module_bcFacetConfig;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 11, .m_capacity = 11, .m_length = 10, .m_data = "c.o.export"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___lam__0___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___lam__0___closed__0_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___lam__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 8, .m_capacity = 8, .m_length = 7, .m_data = "include"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___lam__0___closed__1 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___lam__0___closed__1_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___lam__0___boxed(lean_object**);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 17, .m_capacity = 17, .m_length = 16, .m_data = "-DLEAN_EXPORTING"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___closed__0_value;
static const lean_array_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_array_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 246}, .m_size = 1, .m_capacity = 1, .m_data = {((lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___closed__0_value)}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___closed__1 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___closed__1_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 5, .m_capacity = 5, .m_length = 4, .m_data = ":c.o"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___closed__2 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___closed__2_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 16, .m_capacity = 16, .m_length = 15, .m_data = " (with exports)"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___closed__3 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___closed__3_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_closure_object l_Lake_Module_coExportFacetConfig___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___boxed, .m_arity = 8, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_coExportFacetConfig___closed__0 = (const lean_object*)&l_Lake_Module_coExportFacetConfig___closed__0_value;
static lean_once_cell_t l_Lake_Module_coExportFacetConfig___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_coExportFacetConfig___closed__1;
LEAN_EXPORT lean_object* l_Lake_Module_coExportFacetConfig;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToONoExport___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 13, .m_capacity = 13, .m_length = 12, .m_data = "c.o.noexport"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToONoExport___lam__0___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToONoExport___lam__0___closed__0_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToONoExport___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToONoExport___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToONoExport___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 19, .m_capacity = 19, .m_length = 18, .m_data = " (without exports)"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToONoExport___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToONoExport___closed__0_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToONoExport(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToONoExport___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_closure_object l_Lake_Module_coNoExportFacetConfig___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToONoExport___boxed, .m_arity = 8, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_coNoExportFacetConfig___closed__0 = (const lean_object*)&l_Lake_Module_coNoExportFacetConfig___closed__0_value;
static lean_once_cell_t l_Lake_Module_coNoExportFacetConfig___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_coNoExportFacetConfig___closed__1;
LEAN_EXPORT lean_object* l_Lake_Module_coNoExportFacetConfig;
LEAN_EXPORT lean_object* l_Lake_Module_coFacetConfig___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_coFacetConfig___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_closure_object l_Lake_Module_coFacetConfig___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_Module_coFacetConfig___lam__0___boxed, .m_arity = 8, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_coFacetConfig___closed__0 = (const lean_object*)&l_Lake_Module_coFacetConfig___closed__0_value;
static lean_once_cell_t l_Lake_Module_coFacetConfig___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_coFacetConfig___closed__1;
LEAN_EXPORT lean_object* l_Lake_Module_coFacetConfig;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanBcToO___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 5, .m_capacity = 5, .m_length = 4, .m_data = "bc.o"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanBcToO___lam__0___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanBcToO___lam__0___closed__0_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanBcToO___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanBcToO___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanBcToO___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 6, .m_capacity = 6, .m_length = 5, .m_data = ":bc.o"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanBcToO___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanBcToO___closed__0_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanBcToO(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanBcToO___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_closure_object l_Lake_Module_bcoFacetConfig___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanBcToO___boxed, .m_arity = 8, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_bcoFacetConfig___closed__0 = (const lean_object*)&l_Lake_Module_bcoFacetConfig___closed__0_value;
static lean_once_cell_t l_Lake_Module_bcoFacetConfig___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_bcoFacetConfig___closed__1;
LEAN_EXPORT lean_object* l_Lake_Module_bcoFacetConfig;
LEAN_EXPORT lean_object* l_Lake_Module_oExportFacetConfig___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_oExportFacetConfig___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_closure_object l_Lake_Module_oExportFacetConfig___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_Module_oExportFacetConfig___lam__0___boxed, .m_arity = 8, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_oExportFacetConfig___closed__0 = (const lean_object*)&l_Lake_Module_oExportFacetConfig___closed__0_value;
static lean_once_cell_t l_Lake_Module_oExportFacetConfig___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_oExportFacetConfig___closed__1;
LEAN_EXPORT lean_object* l_Lake_Module_oExportFacetConfig;
static const lean_string_object l_Lake_Module_oNoExportFacetConfig___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 54, .m_capacity = 54, .m_length = 53, .m_data = "the LLVM backend only supports exporting Lean symbols"};
static const lean_object* l_Lake_Module_oNoExportFacetConfig___lam__0___closed__0 = (const lean_object*)&l_Lake_Module_oNoExportFacetConfig___lam__0___closed__0_value;
static const lean_ctor_object l_Lake_Module_oNoExportFacetConfig___lam__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 8, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l_Lake_Module_oNoExportFacetConfig___lam__0___closed__0_value),LEAN_SCALAR_PTR_LITERAL(3, 0, 0, 0, 0, 0, 0, 0)}};
static const lean_object* l_Lake_Module_oNoExportFacetConfig___lam__0___closed__1 = (const lean_object*)&l_Lake_Module_oNoExportFacetConfig___lam__0___closed__1_value;
LEAN_EXPORT lean_object* l_Lake_Module_oNoExportFacetConfig___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_oNoExportFacetConfig___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_closure_object l_Lake_Module_oNoExportFacetConfig___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_Module_oNoExportFacetConfig___lam__0___boxed, .m_arity = 8, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_oNoExportFacetConfig___closed__0 = (const lean_object*)&l_Lake_Module_oNoExportFacetConfig___closed__0_value;
static lean_once_cell_t l_Lake_Module_oNoExportFacetConfig___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_oNoExportFacetConfig___closed__1;
LEAN_EXPORT lean_object* l_Lake_Module_oNoExportFacetConfig;
LEAN_EXPORT lean_object* l_Lake_Module_oFacetConfig___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_oFacetConfig___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_closure_object l_Lake_Module_oFacetConfig___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_Module_oFacetConfig___lam__0___boxed, .m_arity = 8, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_oFacetConfig___closed__0 = (const lean_object*)&l_Lake_Module_oFacetConfig___closed__0_value;
static lean_once_cell_t l_Lake_Module_oFacetConfig___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_oFacetConfig___closed__1;
LEAN_EXPORT lean_object* l_Lake_Module_oFacetConfig;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildDynlib_spec__0(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildDynlib_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildDynlib_spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildDynlib_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildDynlib_spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildDynlib_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildDynlib___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildDynlib___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_Module_recBuildDynlib___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 8, .m_capacity = 8, .m_length = 7, .m_data = ":dynlib"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildDynlib___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_Module_recBuildDynlib___closed__0_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildDynlib(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildDynlib___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_dynlibFacetConfig_spec__0(uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_dynlibFacetConfig_spec__0___boxed(lean_object*, lean_object*);
static const lean_closure_object l_Lake_Module_dynlibFacetConfig___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Lake_formatQuery___at___00Lake_Module_dynlibFacetConfig_spec__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_dynlibFacetConfig___closed__0 = (const lean_object*)&l_Lake_Module_dynlibFacetConfig___closed__0_value;
static const lean_closure_object l_Lake_Module_dynlibFacetConfig___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Lake_Build_Module_0__Lake_Module_recBuildDynlib___boxed, .m_arity = 8, .m_num_fixed = 0, .m_objs = {} };
static const lean_object* l_Lake_Module_dynlibFacetConfig___closed__1 = (const lean_object*)&l_Lake_Module_dynlibFacetConfig___closed__1_value;
static lean_once_cell_t l_Lake_Module_dynlibFacetConfig___closed__2_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_dynlibFacetConfig___closed__2;
LEAN_EXPORT lean_object* l_Lake_Module_dynlibFacetConfig;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(lean_object*, lean_object*, lean_object*);
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__0_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__0;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__1_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__1;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__2_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__2;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__3_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__3;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__4_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__4;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__5_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__5;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__6_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__6;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__7_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__7;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__8_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__8;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__9_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__9;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__10_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__10;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__11_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__11;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__12_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__12;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__13_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__13;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__14_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__14;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__15_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__15;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__16_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__16;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__17_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__17;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__18_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__18;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__19_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__19;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__20_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__20;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__21_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__21;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__22_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__22;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__23_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__23;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__24_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__24;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__25_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__25;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__26_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__26;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__27_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__27;
static lean_once_cell_t l_Lake_Module_initFacetConfigs___closed__28_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l_Lake_Module_initFacetConfigs___closed__28;
LEAN_EXPORT lean_object* l_Lake_Module_initFacetConfigs;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_initModuleFacetConfigs;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, size_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__0___boxed(lean_object**);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, size_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__1___boxed(lean_object**);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, size_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__2___boxed(lean_object**);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, size_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__3___boxed(lean_object**);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__4(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, size_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__4___boxed(lean_object**);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__0___redArg(size_t, size_t, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Array_filterMapM___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__1_spec__1(lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Array_filterMapM___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_array_object l_Array_filterMapM___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__1___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_array_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 246}, .m_size = 0, .m_capacity = 0, .m_data = {}};
static const lean_object* l_Array_filterMapM___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__1___closed__0 = (const lean_object*)&l_Array_filterMapM___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__1___closed__0_value;
LEAN_EXPORT lean_object* l_Array_filterMapM___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_filterMapM___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__1___boxed(lean_object*, lean_object*, lean_object*);
static const lean_ctor_object l___private_Lake_Build_Module_0__Lake_setupEditedModule___boxed__const__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*0 + sizeof(size_t)*1, .m_other = 0, .m_tag = 0}, .m_objs = {(lean_object*)(size_t)(0ULL)}};
LEAN_EXPORT const lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule___boxed__const__1 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_setupEditedModule___boxed__const__1_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__0(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 9, .m_capacity = 9, .m_length = 8, .m_data = "_unknown"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__0___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__0___closed__0_value;
static const lean_ctor_object l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 8, .m_other = 2, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1)),((lean_object*)&l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__0___closed__0_value),LEAN_SCALAR_PTR_LITERAL(21, 170, 72, 88, 178, 140, 198, 70)}};
static const lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__0___closed__1 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__0___closed__1_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__0___boxed(lean_object**);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__1___boxed(lean_object**);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__2(lean_object*, lean_object*, lean_object*, size_t, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__2___boxed(lean_object**);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__3(lean_object*, lean_object*, size_t, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__3___boxed(lean_object**);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__4(lean_object*, size_t, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__4___boxed(lean_object**);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__5(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_setupExternalModule___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 10, .m_capacity = 10, .m_length = 9, .m_data = "<targets>"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_setupExternalModule___closed__0_value;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l_Lake_setupServerModule___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 28, .m_capacity = 28, .m_length = 27, .m_data = "file identified as module: "};
static const lean_object* l_Lake_setupServerModule___lam__0___closed__0 = (const lean_object*)&l_Lake_setupServerModule___lam__0___closed__0_value;
LEAN_EXPORT lean_object* l_Lake_setupServerModule___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_setupServerModule___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l_Lake_setupServerModule___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 12, .m_capacity = 12, .m_length = 11, .m_data = "setup-file "};
static const lean_object* l_Lake_setupServerModule___closed__0 = (const lean_object*)&l_Lake_setupServerModule___closed__0_value;
LEAN_EXPORT lean_object* l_Lake_setupServerModule(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_setupServerModule___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 15, .m_capacity = 15, .m_length = 14, .m_data = "module setup: "};
static const lean_object* l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___redArg___closed__0 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___redArg___closed__0_value;
static const lean_string_object l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 8, .m_capacity = 8, .m_length = 7, .m_data = "--setup"};
static const lean_object* l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___redArg___closed__1 = (const lean_object*)&l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___redArg___closed__1_value;
static lean_once_cell_t l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___redArg___closed__2_once = LEAN_ONCE_CELL_INITIALIZER;
static lean_object* l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___redArg___closed__2;
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkSpawnArgs___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkSpawnArgs___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkSpawnArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkSpawnArgs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_prepareLeanCommand___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_prepareLeanCommand___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_prepareLeanCommand___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_prepareLeanCommand___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l_Lake_prepareLeanCommand___lam__2___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 17, .m_capacity = 17, .m_length = 16, .m_data = "file not found: "};
static const lean_object* l_Lake_prepareLeanCommand___lam__2___closed__0 = (const lean_object*)&l_Lake_prepareLeanCommand___lam__2___closed__0_value;
LEAN_EXPORT lean_object* l_Lake_prepareLeanCommand___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_prepareLeanCommand___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static const lean_string_object l_Lake_prepareLeanCommand___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 14, .m_capacity = 14, .m_length = 13, .m_data = "prepare lean "};
static const lean_object* l_Lake_prepareLeanCommand___closed__0 = (const lean_object*)&l_Lake_prepareLeanCommand___closed__0_value;
LEAN_EXPORT lean_object* l_Lake_prepareLeanCommand(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_prepareLeanCommand___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchInput_spec__0___redArg(size_t v_sz_1_, size_t v_i_2_, lean_object* v_bs_3_, lean_object* v___y_4_, lean_object* v___y_5_){
_start:
{
uint8_t v___x_7_; 
v___x_7_ = lean_usize_dec_lt(v_i_2_, v_sz_1_);
if (v___x_7_ == 0)
{
lean_object* v___x_8_; 
v___x_8_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_8_, 0, v_bs_3_);
lean_ctor_set(v___x_8_, 1, v___y_5_);
return v___x_8_;
}
else
{
lean_object* v_v_9_; lean_object* v_module_10_; lean_object* v_toContext_11_; lean_object* v___x_12_; lean_object* v_bs_x27_13_; lean_object* v___x_14_; lean_object* v___x_15_; size_t v___x_16_; size_t v___x_17_; lean_object* v___x_18_; 
v_v_9_ = lean_array_uget(v_bs_3_, v_i_2_);
v_module_10_ = lean_ctor_get(v_v_9_, 0);
v_toContext_11_ = lean_ctor_get(v___y_4_, 1);
v___x_12_ = lean_unsigned_to_nat(0u);
v_bs_x27_13_ = lean_array_uset(v_bs_3_, v_i_2_, v___x_12_);
lean_inc(v_module_10_);
v___x_14_ = l_Lake_Workspace_findModule_x3f(v_module_10_, v_toContext_11_);
v___x_15_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_15_, 0, v_v_9_);
lean_ctor_set(v___x_15_, 1, v___x_14_);
v___x_16_ = ((size_t)1ULL);
v___x_17_ = lean_usize_add(v_i_2_, v___x_16_);
v___x_18_ = lean_array_uset(v_bs_x27_13_, v_i_2_, v___x_15_);
v_i_2_ = v___x_17_;
v_bs_3_ = v___x_18_;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchInput_spec__0___redArg___boxed(lean_object* v_sz_20_, lean_object* v_i_21_, lean_object* v_bs_22_, lean_object* v___y_23_, lean_object* v___y_24_, lean_object* v___y_25_){
_start:
{
size_t v_sz_boxed_26_; size_t v_i_boxed_27_; lean_object* v_res_28_; 
v_sz_boxed_26_ = lean_unbox_usize(v_sz_20_);
lean_dec(v_sz_20_);
v_i_boxed_27_ = lean_unbox_usize(v_i_21_);
lean_dec(v_i_21_);
v_res_28_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchInput_spec__0___redArg(v_sz_boxed_26_, v_i_boxed_27_, v_bs_22_, v___y_23_, v___y_24_);
lean_dec_ref(v___y_23_);
return v_res_28_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0(lean_object* v_path_31_, lean_object* v___y_32_, lean_object* v___y_33_, lean_object* v___y_34_, lean_object* v___y_35_, lean_object* v___y_36_, lean_object* v___y_37_){
_start:
{
lean_object* v_log_39_; uint8_t v_action_40_; uint8_t v_wantsRebuild_41_; lean_object* v_trace_42_; lean_object* v_buildTime_43_; lean_object* v___x_45_; uint8_t v_isShared_46_; uint8_t v_isSharedCheck_116_; 
v_log_39_ = lean_ctor_get(v___y_37_, 0);
v_action_40_ = lean_ctor_get_uint8(v___y_37_, sizeof(void*)*3);
v_wantsRebuild_41_ = lean_ctor_get_uint8(v___y_37_, sizeof(void*)*3 + 1);
v_trace_42_ = lean_ctor_get(v___y_37_, 1);
v_buildTime_43_ = lean_ctor_get(v___y_37_, 2);
v_isSharedCheck_116_ = !lean_is_exclusive(v___y_37_);
if (v_isSharedCheck_116_ == 0)
{
v___x_45_ = v___y_37_;
v_isShared_46_ = v_isSharedCheck_116_;
goto v_resetjp_44_;
}
else
{
lean_inc(v_buildTime_43_);
lean_inc(v_trace_42_);
lean_inc(v_log_39_);
lean_dec(v___y_37_);
v___x_45_ = lean_box(0);
v_isShared_46_ = v_isSharedCheck_116_;
goto v_resetjp_44_;
}
v_resetjp_44_:
{
lean_object* v___x_47_; 
v___x_47_ = l_IO_FS_readFile(v_path_31_);
if (lean_obj_tag(v___x_47_) == 0)
{
lean_object* v_a_48_; lean_object* v___x_49_; 
v_a_48_ = lean_ctor_get(v___x_47_, 0);
lean_inc(v_a_48_);
lean_dec_ref(v___x_47_);
v___x_49_ = lean_io_metadata(v_path_31_);
if (lean_obj_tag(v___x_49_) == 0)
{
lean_object* v_a_50_; lean_object* v_modified_51_; lean_object* v___x_52_; lean_object* v___x_53_; uint64_t v___x_54_; uint64_t v___x_55_; uint64_t v___x_56_; lean_object* v___x_57_; lean_object* v___x_58_; 
lean_dec_ref(v_trace_42_);
v_a_50_ = lean_ctor_get(v___x_49_, 0);
lean_inc(v_a_50_);
lean_dec_ref(v___x_49_);
v_modified_51_ = lean_ctor_get(v_a_50_, 1);
lean_inc_ref(v_modified_51_);
lean_dec(v_a_50_);
v___x_52_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0___closed__0));
v___x_53_ = l_String_crlfToLf(v_a_48_);
v___x_54_ = l_Lake_Hash_nil;
v___x_55_ = lean_string_hash(v___x_53_);
lean_dec_ref(v___x_53_);
v___x_56_ = lean_uint64_mix_hash(v___x_54_, v___x_55_);
lean_inc_ref(v_path_31_);
v___x_57_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v___x_57_, 0, v_path_31_);
lean_ctor_set(v___x_57_, 1, v___x_52_);
lean_ctor_set(v___x_57_, 2, v_modified_51_);
lean_ctor_set_uint64(v___x_57_, sizeof(void*)*3, v___x_56_);
lean_inc_ref(v_path_31_);
v___x_58_ = l_Lean_parseImports_x27(v_a_48_, v_path_31_);
if (lean_obj_tag(v___x_58_) == 0)
{
lean_object* v_a_59_; lean_object* v_imports_60_; lean_object* v___x_62_; 
v_a_59_ = lean_ctor_get(v___x_58_, 0);
lean_inc(v_a_59_);
lean_dec_ref(v___x_58_);
v_imports_60_ = lean_ctor_get(v_a_59_, 0);
lean_inc_ref(v___x_57_);
if (v_isShared_46_ == 0)
{
lean_ctor_set(v___x_45_, 1, v___x_57_);
v___x_62_ = v___x_45_;
goto v_reusejp_61_;
}
else
{
lean_object* v_reuseFailAlloc_85_; 
v_reuseFailAlloc_85_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_85_, 0, v_log_39_);
lean_ctor_set(v_reuseFailAlloc_85_, 1, v___x_57_);
lean_ctor_set(v_reuseFailAlloc_85_, 2, v_buildTime_43_);
lean_ctor_set_uint8(v_reuseFailAlloc_85_, sizeof(void*)*3, v_action_40_);
lean_ctor_set_uint8(v_reuseFailAlloc_85_, sizeof(void*)*3 + 1, v_wantsRebuild_41_);
v___x_62_ = v_reuseFailAlloc_85_;
goto v_reusejp_61_;
}
v_reusejp_61_:
{
size_t v_sz_63_; size_t v___x_64_; lean_object* v___x_65_; 
v_sz_63_ = lean_array_size(v_imports_60_);
v___x_64_ = ((size_t)0ULL);
lean_inc_ref(v_imports_60_);
v___x_65_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchInput_spec__0___redArg(v_sz_63_, v___x_64_, v_imports_60_, v___y_36_, v___x_62_);
if (lean_obj_tag(v___x_65_) == 0)
{
lean_object* v_a_66_; lean_object* v_a_67_; lean_object* v___x_69_; uint8_t v_isShared_70_; uint8_t v_isSharedCheck_75_; 
v_a_66_ = lean_ctor_get(v___x_65_, 0);
v_a_67_ = lean_ctor_get(v___x_65_, 1);
v_isSharedCheck_75_ = !lean_is_exclusive(v___x_65_);
if (v_isSharedCheck_75_ == 0)
{
v___x_69_ = v___x_65_;
v_isShared_70_ = v_isSharedCheck_75_;
goto v_resetjp_68_;
}
else
{
lean_inc(v_a_67_);
lean_inc(v_a_66_);
lean_dec(v___x_65_);
v___x_69_ = lean_box(0);
v_isShared_70_ = v_isSharedCheck_75_;
goto v_resetjp_68_;
}
v_resetjp_68_:
{
lean_object* v___x_71_; lean_object* v___x_73_; 
v___x_71_ = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(v___x_71_, 0, v_path_31_);
lean_ctor_set(v___x_71_, 1, v___x_57_);
lean_ctor_set(v___x_71_, 2, v_a_59_);
lean_ctor_set(v___x_71_, 3, v_a_66_);
if (v_isShared_70_ == 0)
{
lean_ctor_set(v___x_69_, 0, v___x_71_);
v___x_73_ = v___x_69_;
goto v_reusejp_72_;
}
else
{
lean_object* v_reuseFailAlloc_74_; 
v_reuseFailAlloc_74_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_74_, 0, v___x_71_);
lean_ctor_set(v_reuseFailAlloc_74_, 1, v_a_67_);
v___x_73_ = v_reuseFailAlloc_74_;
goto v_reusejp_72_;
}
v_reusejp_72_:
{
return v___x_73_;
}
}
}
else
{
lean_object* v_a_76_; lean_object* v_a_77_; lean_object* v___x_79_; uint8_t v_isShared_80_; uint8_t v_isSharedCheck_84_; 
lean_dec(v_a_59_);
lean_dec_ref(v___x_57_);
lean_dec_ref(v_path_31_);
v_a_76_ = lean_ctor_get(v___x_65_, 0);
v_a_77_ = lean_ctor_get(v___x_65_, 1);
v_isSharedCheck_84_ = !lean_is_exclusive(v___x_65_);
if (v_isSharedCheck_84_ == 0)
{
v___x_79_ = v___x_65_;
v_isShared_80_ = v_isSharedCheck_84_;
goto v_resetjp_78_;
}
else
{
lean_inc(v_a_77_);
lean_inc(v_a_76_);
lean_dec(v___x_65_);
v___x_79_ = lean_box(0);
v_isShared_80_ = v_isSharedCheck_84_;
goto v_resetjp_78_;
}
v_resetjp_78_:
{
lean_object* v___x_82_; 
if (v_isShared_80_ == 0)
{
v___x_82_ = v___x_79_;
goto v_reusejp_81_;
}
else
{
lean_object* v_reuseFailAlloc_83_; 
v_reuseFailAlloc_83_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_83_, 0, v_a_76_);
lean_ctor_set(v_reuseFailAlloc_83_, 1, v_a_77_);
v___x_82_ = v_reuseFailAlloc_83_;
goto v_reusejp_81_;
}
v_reusejp_81_:
{
return v___x_82_;
}
}
}
}
}
else
{
lean_object* v_a_86_; lean_object* v___x_87_; uint8_t v___x_88_; lean_object* v___x_89_; lean_object* v___x_90_; lean_object* v___x_91_; lean_object* v___x_93_; 
lean_dec_ref(v_path_31_);
v_a_86_ = lean_ctor_get(v___x_58_, 0);
lean_inc(v_a_86_);
lean_dec_ref(v___x_58_);
v___x_87_ = lean_io_error_to_string(v_a_86_);
v___x_88_ = 3;
v___x_89_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_89_, 0, v___x_87_);
lean_ctor_set_uint8(v___x_89_, sizeof(void*)*1, v___x_88_);
v___x_90_ = lean_array_get_size(v_log_39_);
v___x_91_ = lean_array_push(v_log_39_, v___x_89_);
if (v_isShared_46_ == 0)
{
lean_ctor_set(v___x_45_, 1, v___x_57_);
lean_ctor_set(v___x_45_, 0, v___x_91_);
v___x_93_ = v___x_45_;
goto v_reusejp_92_;
}
else
{
lean_object* v_reuseFailAlloc_95_; 
v_reuseFailAlloc_95_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_95_, 0, v___x_91_);
lean_ctor_set(v_reuseFailAlloc_95_, 1, v___x_57_);
lean_ctor_set(v_reuseFailAlloc_95_, 2, v_buildTime_43_);
lean_ctor_set_uint8(v_reuseFailAlloc_95_, sizeof(void*)*3, v_action_40_);
lean_ctor_set_uint8(v_reuseFailAlloc_95_, sizeof(void*)*3 + 1, v_wantsRebuild_41_);
v___x_93_ = v_reuseFailAlloc_95_;
goto v_reusejp_92_;
}
v_reusejp_92_:
{
lean_object* v___x_94_; 
v___x_94_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_94_, 0, v___x_90_);
lean_ctor_set(v___x_94_, 1, v___x_93_);
return v___x_94_;
}
}
}
else
{
lean_object* v_a_96_; lean_object* v___x_97_; uint8_t v___x_98_; lean_object* v___x_99_; lean_object* v___x_100_; lean_object* v___x_101_; lean_object* v___x_103_; 
lean_dec(v_a_48_);
lean_dec_ref(v_path_31_);
v_a_96_ = lean_ctor_get(v___x_49_, 0);
lean_inc(v_a_96_);
lean_dec_ref(v___x_49_);
v___x_97_ = lean_io_error_to_string(v_a_96_);
v___x_98_ = 3;
v___x_99_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_99_, 0, v___x_97_);
lean_ctor_set_uint8(v___x_99_, sizeof(void*)*1, v___x_98_);
v___x_100_ = lean_array_get_size(v_log_39_);
v___x_101_ = lean_array_push(v_log_39_, v___x_99_);
if (v_isShared_46_ == 0)
{
lean_ctor_set(v___x_45_, 0, v___x_101_);
v___x_103_ = v___x_45_;
goto v_reusejp_102_;
}
else
{
lean_object* v_reuseFailAlloc_105_; 
v_reuseFailAlloc_105_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_105_, 0, v___x_101_);
lean_ctor_set(v_reuseFailAlloc_105_, 1, v_trace_42_);
lean_ctor_set(v_reuseFailAlloc_105_, 2, v_buildTime_43_);
lean_ctor_set_uint8(v_reuseFailAlloc_105_, sizeof(void*)*3, v_action_40_);
lean_ctor_set_uint8(v_reuseFailAlloc_105_, sizeof(void*)*3 + 1, v_wantsRebuild_41_);
v___x_103_ = v_reuseFailAlloc_105_;
goto v_reusejp_102_;
}
v_reusejp_102_:
{
lean_object* v___x_104_; 
v___x_104_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_104_, 0, v___x_100_);
lean_ctor_set(v___x_104_, 1, v___x_103_);
return v___x_104_;
}
}
}
else
{
lean_object* v_a_106_; lean_object* v___x_107_; uint8_t v___x_108_; lean_object* v___x_109_; lean_object* v___x_110_; lean_object* v___x_111_; lean_object* v___x_113_; 
lean_dec_ref(v_path_31_);
v_a_106_ = lean_ctor_get(v___x_47_, 0);
lean_inc(v_a_106_);
lean_dec_ref(v___x_47_);
v___x_107_ = lean_io_error_to_string(v_a_106_);
v___x_108_ = 3;
v___x_109_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_109_, 0, v___x_107_);
lean_ctor_set_uint8(v___x_109_, sizeof(void*)*1, v___x_108_);
v___x_110_ = lean_array_get_size(v_log_39_);
v___x_111_ = lean_array_push(v_log_39_, v___x_109_);
if (v_isShared_46_ == 0)
{
lean_ctor_set(v___x_45_, 0, v___x_111_);
v___x_113_ = v___x_45_;
goto v_reusejp_112_;
}
else
{
lean_object* v_reuseFailAlloc_115_; 
v_reuseFailAlloc_115_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_115_, 0, v___x_111_);
lean_ctor_set(v_reuseFailAlloc_115_, 1, v_trace_42_);
lean_ctor_set(v_reuseFailAlloc_115_, 2, v_buildTime_43_);
lean_ctor_set_uint8(v_reuseFailAlloc_115_, sizeof(void*)*3, v_action_40_);
lean_ctor_set_uint8(v_reuseFailAlloc_115_, sizeof(void*)*3 + 1, v_wantsRebuild_41_);
v___x_113_ = v_reuseFailAlloc_115_;
goto v_reusejp_112_;
}
v_reusejp_112_:
{
lean_object* v___x_114_; 
v___x_114_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_114_, 0, v___x_110_);
lean_ctor_set(v___x_114_, 1, v___x_113_);
return v___x_114_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0___boxed(lean_object* v_path_117_, lean_object* v___y_118_, lean_object* v___y_119_, lean_object* v___y_120_, lean_object* v___y_121_, lean_object* v___y_122_, lean_object* v___y_123_, lean_object* v___y_124_){
_start:
{
lean_object* v_res_125_; 
v_res_125_ = l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0(v_path_117_, v___y_118_, v___y_119_, v___y_120_, v___y_121_, v___y_122_, v___y_123_);
lean_dec_ref(v___y_122_);
lean_dec(v___y_121_);
lean_dec(v___y_120_);
lean_dec(v___y_119_);
lean_dec_ref(v___y_118_);
return v_res_125_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchInput(lean_object* v_mod_128_, lean_object* v_a_129_, lean_object* v_a_130_, lean_object* v_a_131_, lean_object* v_a_132_, lean_object* v_a_133_, lean_object* v_a_134_){
_start:
{
lean_object* v_lib_136_; lean_object* v_pkg_137_; lean_object* v_config_138_; lean_object* v_config_139_; lean_object* v_name_140_; lean_object* v___x_142_; uint8_t v_isShared_143_; uint8_t v_isSharedCheck_161_; 
v_lib_136_ = lean_ctor_get(v_mod_128_, 0);
v_pkg_137_ = lean_ctor_get(v_lib_136_, 0);
lean_inc_ref(v_pkg_137_);
v_config_138_ = lean_ctor_get(v_pkg_137_, 6);
lean_inc_ref(v_config_138_);
v_config_139_ = lean_ctor_get(v_lib_136_, 2);
lean_inc(v_config_139_);
v_name_140_ = lean_ctor_get(v_mod_128_, 1);
v_isSharedCheck_161_ = !lean_is_exclusive(v_mod_128_);
if (v_isSharedCheck_161_ == 0)
{
lean_object* v_unused_162_; 
v_unused_162_ = lean_ctor_get(v_mod_128_, 0);
lean_dec(v_unused_162_);
v___x_142_ = v_mod_128_;
v_isShared_143_ = v_isSharedCheck_161_;
goto v_resetjp_141_;
}
else
{
lean_inc(v_name_140_);
lean_dec(v_mod_128_);
v___x_142_ = lean_box(0);
v_isShared_143_ = v_isSharedCheck_161_;
goto v_resetjp_141_;
}
v_resetjp_141_:
{
lean_object* v_dir_144_; lean_object* v_srcDir_145_; lean_object* v_srcDir_146_; lean_object* v___x_147_; lean_object* v___x_148_; lean_object* v___x_149_; lean_object* v___x_150_; lean_object* v___x_151_; lean_object* v___x_152_; lean_object* v_path_153_; lean_object* v___f_154_; lean_object* v___x_155_; lean_object* v___x_156_; lean_object* v___x_157_; lean_object* v___x_159_; 
v_dir_144_ = lean_ctor_get(v_pkg_137_, 4);
lean_inc_ref(v_dir_144_);
lean_dec_ref(v_pkg_137_);
v_srcDir_145_ = lean_ctor_get(v_config_138_, 5);
lean_inc_ref(v_srcDir_145_);
lean_dec_ref(v_config_138_);
v_srcDir_146_ = lean_ctor_get(v_config_139_, 1);
lean_inc_ref(v_srcDir_146_);
lean_dec(v_config_139_);
v___x_147_ = lean_box(0);
v___x_148_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__0));
v___x_149_ = l_System_FilePath_normalize(v_srcDir_145_);
v___x_150_ = l_Lake_joinRelative(v_dir_144_, v___x_149_);
v___x_151_ = l_System_FilePath_normalize(v_srcDir_146_);
v___x_152_ = l_Lake_joinRelative(v___x_150_, v___x_151_);
v_path_153_ = l_Lean_modToFilePath(v___x_152_, v_name_140_, v___x_148_);
lean_dec_ref(v___x_152_);
v___f_154_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0___boxed), 8, 1);
lean_closure_set(v___f_154_, 0, v_path_153_);
v___x_155_ = lean_unsigned_to_nat(0u);
v___x_156_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1));
v___x_157_ = l_Lake_Job_async___redArg(v___x_147_, v___f_154_, v___x_155_, v___x_156_, v_a_129_, v_a_130_, v_a_131_, v_a_132_, v_a_133_);
if (v_isShared_143_ == 0)
{
lean_ctor_set(v___x_142_, 1, v_a_134_);
lean_ctor_set(v___x_142_, 0, v___x_157_);
v___x_159_ = v___x_142_;
goto v_reusejp_158_;
}
else
{
lean_object* v_reuseFailAlloc_160_; 
v_reuseFailAlloc_160_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_160_, 0, v___x_157_);
lean_ctor_set(v_reuseFailAlloc_160_, 1, v_a_134_);
v___x_159_ = v_reuseFailAlloc_160_;
goto v_reusejp_158_;
}
v_reusejp_158_:
{
return v___x_159_;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___boxed(lean_object* v_mod_163_, lean_object* v_a_164_, lean_object* v_a_165_, lean_object* v_a_166_, lean_object* v_a_167_, lean_object* v_a_168_, lean_object* v_a_169_, lean_object* v_a_170_){
_start:
{
lean_object* v_res_171_; 
v_res_171_ = l___private_Lake_Build_Module_0__Lake_Module_recFetchInput(v_mod_163_, v_a_164_, v_a_165_, v_a_166_, v_a_167_, v_a_168_, v_a_169_);
return v_res_171_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchInput_spec__0(size_t v_sz_172_, size_t v_i_173_, lean_object* v_bs_174_, lean_object* v___y_175_, lean_object* v___y_176_, lean_object* v___y_177_, lean_object* v___y_178_, lean_object* v___y_179_, lean_object* v___y_180_){
_start:
{
lean_object* v___x_182_; 
v___x_182_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchInput_spec__0___redArg(v_sz_172_, v_i_173_, v_bs_174_, v___y_179_, v___y_180_);
return v___x_182_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchInput_spec__0___boxed(lean_object* v_sz_183_, lean_object* v_i_184_, lean_object* v_bs_185_, lean_object* v___y_186_, lean_object* v___y_187_, lean_object* v___y_188_, lean_object* v___y_189_, lean_object* v___y_190_, lean_object* v___y_191_, lean_object* v___y_192_){
_start:
{
size_t v_sz_boxed_193_; size_t v_i_boxed_194_; lean_object* v_res_195_; 
v_sz_boxed_193_ = lean_unbox_usize(v_sz_183_);
lean_dec(v_sz_183_);
v_i_boxed_194_ = lean_unbox_usize(v_i_184_);
lean_dec(v_i_184_);
v_res_195_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchInput_spec__0(v_sz_boxed_193_, v_i_boxed_194_, v_bs_185_, v___y_186_, v___y_187_, v___y_188_, v___y_189_, v___y_190_, v___y_191_);
lean_dec_ref(v___y_190_);
lean_dec(v___y_189_);
lean_dec(v___y_188_);
lean_dec(v___y_187_);
lean_dec_ref(v___y_186_);
return v_res_195_;
}
}
static lean_object* _init_l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg___closed__0(void){
_start:
{
lean_object* v___x_196_; lean_object* v___x_197_; 
v___x_196_ = lean_box(0);
v___x_197_ = l_Lean_Json_compress(v___x_196_);
return v___x_197_;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg(uint8_t v_fmt_198_){
_start:
{
if (v_fmt_198_ == 0)
{
lean_object* v___x_199_; 
v___x_199_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1));
return v___x_199_;
}
else
{
lean_object* v___x_200_; 
v___x_200_ = lean_obj_once(&l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg___closed__0, &l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg___closed__0_once, _init_l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg___closed__0);
return v___x_200_;
}
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg___boxed(lean_object* v_fmt_201_){
_start:
{
uint8_t v_fmt_boxed_202_; lean_object* v_res_203_; 
v_fmt_boxed_202_ = lean_unbox(v_fmt_201_);
v_res_203_ = l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg(v_fmt_boxed_202_);
return v_res_203_;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0(uint8_t v_fmt_204_, lean_object* v_a_205_){
_start:
{
lean_object* v___x_206_; 
v___x_206_ = l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg(v_fmt_204_);
return v___x_206_;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___boxed(lean_object* v_fmt_207_, lean_object* v_a_208_){
_start:
{
uint8_t v_fmt_boxed_209_; lean_object* v_res_210_; 
v_fmt_boxed_209_ = lean_unbox(v_fmt_207_);
v_res_210_ = l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0(v_fmt_boxed_209_, v_a_208_);
lean_dec_ref(v_a_208_);
return v_res_210_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_inputFacetConfig___lam__0(uint8_t v___y_211_, lean_object* v___y_212_){
_start:
{
lean_object* v___x_213_; 
v___x_213_ = l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg(v___y_211_);
return v___x_213_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_inputFacetConfig___lam__0___boxed(lean_object* v___y_214_, lean_object* v___y_215_){
_start:
{
uint8_t v___y_68__boxed_216_; lean_object* v_res_217_; 
v___y_68__boxed_216_ = lean_unbox(v___y_214_);
v_res_217_ = l_Lake_Module_inputFacetConfig___lam__0(v___y_68__boxed_216_, v___y_215_);
lean_dec_ref(v___y_215_);
return v_res_217_;
}
}
static lean_object* _init_l_Lake_Module_inputFacetConfig___closed__2(void){
_start:
{
uint8_t v___x_220_; lean_object* v___f_221_; uint8_t v___x_222_; lean_object* v___x_223_; lean_object* v___x_224_; lean_object* v___x_225_; lean_object* v___x_226_; 
v___x_220_ = 1;
v___f_221_ = ((lean_object*)(l_Lake_Module_inputFacetConfig___closed__0));
v___x_222_ = 0;
v___x_223_ = lean_box(0);
v___x_224_ = ((lean_object*)(l_Lake_Module_inputFacetConfig___closed__1));
v___x_225_ = l_Lake_Module_keyword;
v___x_226_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_226_, 0, v___x_225_);
lean_ctor_set(v___x_226_, 1, v___x_224_);
lean_ctor_set(v___x_226_, 2, v___x_223_);
lean_ctor_set(v___x_226_, 3, v___f_221_);
lean_ctor_set_uint8(v___x_226_, sizeof(void*)*4, v___x_222_);
lean_ctor_set_uint8(v___x_226_, sizeof(void*)*4 + 1, v___x_220_);
return v___x_226_;
}
}
static lean_object* _init_l_Lake_Module_inputFacetConfig(void){
_start:
{
lean_object* v___x_227_; 
v___x_227_ = lean_obj_once(&l_Lake_Module_inputFacetConfig___closed__2, &l_Lake_Module_inputFacetConfig___closed__2_once, _init_l_Lake_Module_inputFacetConfig___closed__2);
return v___x_227_;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_leanFacetConfig_spec__0(uint8_t v_fmt_228_, lean_object* v_a_229_){
_start:
{
if (v_fmt_228_ == 0)
{
return v_a_229_;
}
else
{
lean_object* v___x_230_; lean_object* v___x_231_; lean_object* v___x_232_; 
v___x_230_ = l_Lake_mkRelPathString(v_a_229_);
v___x_231_ = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(v___x_231_, 0, v___x_230_);
v___x_232_ = l_Lean_Json_compress(v___x_231_);
return v___x_232_;
}
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_leanFacetConfig_spec__0___boxed(lean_object* v_fmt_233_, lean_object* v_a_234_){
_start:
{
uint8_t v_fmt_boxed_235_; lean_object* v_res_236_; 
v_fmt_boxed_235_ = lean_unbox(v_fmt_233_);
v_res_236_ = l_Lake_formatQuery___at___00Lake_Module_leanFacetConfig_spec__0(v_fmt_boxed_235_, v_a_234_);
return v_res_236_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_leanFacetConfig___lam__0(lean_object* v_x_237_){
_start:
{
if (lean_obj_tag(v_x_237_) == 0)
{
lean_object* v_a_238_; lean_object* v_a_239_; lean_object* v___x_241_; uint8_t v_isShared_242_; uint8_t v_isSharedCheck_247_; 
v_a_238_ = lean_ctor_get(v_x_237_, 0);
v_a_239_ = lean_ctor_get(v_x_237_, 1);
v_isSharedCheck_247_ = !lean_is_exclusive(v_x_237_);
if (v_isSharedCheck_247_ == 0)
{
v___x_241_ = v_x_237_;
v_isShared_242_ = v_isSharedCheck_247_;
goto v_resetjp_240_;
}
else
{
lean_inc(v_a_239_);
lean_inc(v_a_238_);
lean_dec(v_x_237_);
v___x_241_ = lean_box(0);
v_isShared_242_ = v_isSharedCheck_247_;
goto v_resetjp_240_;
}
v_resetjp_240_:
{
lean_object* v_path_243_; lean_object* v___x_245_; 
v_path_243_ = lean_ctor_get(v_a_238_, 0);
lean_inc_ref(v_path_243_);
lean_dec(v_a_238_);
if (v_isShared_242_ == 0)
{
lean_ctor_set(v___x_241_, 0, v_path_243_);
v___x_245_ = v___x_241_;
goto v_reusejp_244_;
}
else
{
lean_object* v_reuseFailAlloc_246_; 
v_reuseFailAlloc_246_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_246_, 0, v_path_243_);
lean_ctor_set(v_reuseFailAlloc_246_, 1, v_a_239_);
v___x_245_ = v_reuseFailAlloc_246_;
goto v_reusejp_244_;
}
v_reusejp_244_:
{
return v___x_245_;
}
}
}
else
{
lean_object* v_a_248_; lean_object* v_a_249_; lean_object* v___x_251_; uint8_t v_isShared_252_; uint8_t v_isSharedCheck_256_; 
v_a_248_ = lean_ctor_get(v_x_237_, 0);
v_a_249_ = lean_ctor_get(v_x_237_, 1);
v_isSharedCheck_256_ = !lean_is_exclusive(v_x_237_);
if (v_isSharedCheck_256_ == 0)
{
v___x_251_ = v_x_237_;
v_isShared_252_ = v_isSharedCheck_256_;
goto v_resetjp_250_;
}
else
{
lean_inc(v_a_249_);
lean_inc(v_a_248_);
lean_dec(v_x_237_);
v___x_251_ = lean_box(0);
v_isShared_252_ = v_isSharedCheck_256_;
goto v_resetjp_250_;
}
v_resetjp_250_:
{
lean_object* v___x_254_; 
if (v_isShared_252_ == 0)
{
v___x_254_ = v___x_251_;
goto v_reusejp_253_;
}
else
{
lean_object* v_reuseFailAlloc_255_; 
v_reuseFailAlloc_255_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_255_, 0, v_a_248_);
lean_ctor_set(v_reuseFailAlloc_255_, 1, v_a_249_);
v___x_254_ = v_reuseFailAlloc_255_;
goto v_reusejp_253_;
}
v_reusejp_253_:
{
return v___x_254_;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_leanFacetConfig___lam__1(lean_object* v___f_257_, lean_object* v___x_258_, lean_object* v_mod_259_, lean_object* v___y_260_, lean_object* v___y_261_, lean_object* v___y_262_, lean_object* v___y_263_, lean_object* v___y_264_, lean_object* v___y_265_){
_start:
{
lean_object* v_lib_267_; lean_object* v_pkg_268_; lean_object* v_name_269_; lean_object* v_keyName_270_; lean_object* v___x_271_; lean_object* v___x_272_; lean_object* v___x_273_; lean_object* v___x_274_; lean_object* v___x_275_; 
v_lib_267_ = lean_ctor_get(v_mod_259_, 0);
v_pkg_268_ = lean_ctor_get(v_lib_267_, 0);
v_name_269_ = lean_ctor_get(v_mod_259_, 1);
v_keyName_270_ = lean_ctor_get(v_pkg_268_, 2);
v___x_271_ = l_Lake_Module_inputFacet;
lean_inc(v_name_269_);
lean_inc(v_keyName_270_);
v___x_272_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_272_, 0, v_keyName_270_);
lean_ctor_set(v___x_272_, 1, v_name_269_);
v___x_273_ = l_Lake_Module_keyword;
v___x_274_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_274_, 0, v___x_272_);
lean_ctor_set(v___x_274_, 1, v___x_273_);
lean_ctor_set(v___x_274_, 2, v_mod_259_);
lean_ctor_set(v___x_274_, 3, v___x_271_);
v___x_275_ = lean_apply_7(v___y_260_, v___x_274_, v___y_261_, v___y_262_, v___y_263_, v___y_264_, v___y_265_, lean_box(0));
if (lean_obj_tag(v___x_275_) == 0)
{
lean_object* v_a_276_; lean_object* v_a_277_; lean_object* v___x_279_; uint8_t v_isShared_280_; uint8_t v_isSharedCheck_298_; 
v_a_276_ = lean_ctor_get(v___x_275_, 0);
v_a_277_ = lean_ctor_get(v___x_275_, 1);
v_isSharedCheck_298_ = !lean_is_exclusive(v___x_275_);
if (v_isSharedCheck_298_ == 0)
{
v___x_279_ = v___x_275_;
v_isShared_280_ = v_isSharedCheck_298_;
goto v_resetjp_278_;
}
else
{
lean_inc(v_a_277_);
lean_inc(v_a_276_);
lean_dec(v___x_275_);
v___x_279_ = lean_box(0);
v_isShared_280_ = v_isSharedCheck_298_;
goto v_resetjp_278_;
}
v_resetjp_278_:
{
lean_object* v_task_281_; lean_object* v_caption_282_; uint8_t v_optional_283_; lean_object* v___x_285_; uint8_t v_isShared_286_; uint8_t v_isSharedCheck_296_; 
v_task_281_ = lean_ctor_get(v_a_276_, 0);
v_caption_282_ = lean_ctor_get(v_a_276_, 2);
v_optional_283_ = lean_ctor_get_uint8(v_a_276_, sizeof(void*)*3);
v_isSharedCheck_296_ = !lean_is_exclusive(v_a_276_);
if (v_isSharedCheck_296_ == 0)
{
lean_object* v_unused_297_; 
v_unused_297_ = lean_ctor_get(v_a_276_, 1);
lean_dec(v_unused_297_);
v___x_285_ = v_a_276_;
v_isShared_286_ = v_isSharedCheck_296_;
goto v_resetjp_284_;
}
else
{
lean_inc(v_caption_282_);
lean_inc(v_task_281_);
lean_dec(v_a_276_);
v___x_285_ = lean_box(0);
v_isShared_286_ = v_isSharedCheck_296_;
goto v_resetjp_284_;
}
v_resetjp_284_:
{
lean_object* v___x_287_; uint8_t v___x_288_; lean_object* v___x_289_; lean_object* v___x_291_; 
v___x_287_ = lean_unsigned_to_nat(0u);
v___x_288_ = 1;
v___x_289_ = lean_task_map(v___f_257_, v_task_281_, v___x_287_, v___x_288_);
if (v_isShared_286_ == 0)
{
lean_ctor_set(v___x_285_, 1, v___x_258_);
lean_ctor_set(v___x_285_, 0, v___x_289_);
v___x_291_ = v___x_285_;
goto v_reusejp_290_;
}
else
{
lean_object* v_reuseFailAlloc_295_; 
v_reuseFailAlloc_295_ = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(v_reuseFailAlloc_295_, 0, v___x_289_);
lean_ctor_set(v_reuseFailAlloc_295_, 1, v___x_258_);
lean_ctor_set(v_reuseFailAlloc_295_, 2, v_caption_282_);
lean_ctor_set_uint8(v_reuseFailAlloc_295_, sizeof(void*)*3, v_optional_283_);
v___x_291_ = v_reuseFailAlloc_295_;
goto v_reusejp_290_;
}
v_reusejp_290_:
{
lean_object* v___x_293_; 
if (v_isShared_280_ == 0)
{
lean_ctor_set(v___x_279_, 0, v___x_291_);
v___x_293_ = v___x_279_;
goto v_reusejp_292_;
}
else
{
lean_object* v_reuseFailAlloc_294_; 
v_reuseFailAlloc_294_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_294_, 0, v___x_291_);
lean_ctor_set(v_reuseFailAlloc_294_, 1, v_a_277_);
v___x_293_ = v_reuseFailAlloc_294_;
goto v_reusejp_292_;
}
v_reusejp_292_:
{
return v___x_293_;
}
}
}
}
}
else
{
lean_object* v_a_299_; lean_object* v_a_300_; lean_object* v___x_302_; uint8_t v_isShared_303_; uint8_t v_isSharedCheck_307_; 
lean_dec(v___x_258_);
lean_dec_ref(v___f_257_);
v_a_299_ = lean_ctor_get(v___x_275_, 0);
v_a_300_ = lean_ctor_get(v___x_275_, 1);
v_isSharedCheck_307_ = !lean_is_exclusive(v___x_275_);
if (v_isSharedCheck_307_ == 0)
{
v___x_302_ = v___x_275_;
v_isShared_303_ = v_isSharedCheck_307_;
goto v_resetjp_301_;
}
else
{
lean_inc(v_a_300_);
lean_inc(v_a_299_);
lean_dec(v___x_275_);
v___x_302_ = lean_box(0);
v_isShared_303_ = v_isSharedCheck_307_;
goto v_resetjp_301_;
}
v_resetjp_301_:
{
lean_object* v___x_305_; 
if (v_isShared_303_ == 0)
{
v___x_305_ = v___x_302_;
goto v_reusejp_304_;
}
else
{
lean_object* v_reuseFailAlloc_306_; 
v_reuseFailAlloc_306_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_306_, 0, v_a_299_);
lean_ctor_set(v_reuseFailAlloc_306_, 1, v_a_300_);
v___x_305_ = v_reuseFailAlloc_306_;
goto v_reusejp_304_;
}
v_reusejp_304_:
{
return v___x_305_;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_leanFacetConfig___lam__1___boxed(lean_object* v___f_308_, lean_object* v___x_309_, lean_object* v_mod_310_, lean_object* v___y_311_, lean_object* v___y_312_, lean_object* v___y_313_, lean_object* v___y_314_, lean_object* v___y_315_, lean_object* v___y_316_, lean_object* v___y_317_){
_start:
{
lean_object* v_res_318_; 
v_res_318_ = l_Lake_Module_leanFacetConfig___lam__1(v___f_308_, v___x_309_, v_mod_310_, v___y_311_, v___y_312_, v___y_313_, v___y_314_, v___y_315_, v___y_316_);
return v_res_318_;
}
}
static lean_object* _init_l_Lake_Module_leanFacetConfig___closed__2(void){
_start:
{
lean_object* v___x_321_; lean_object* v___f_322_; lean_object* v___f_323_; 
v___x_321_ = l_Lake_instDataKindFilePath;
v___f_322_ = ((lean_object*)(l_Lake_Module_leanFacetConfig___closed__1));
v___f_323_ = lean_alloc_closure((void*)(l_Lake_Module_leanFacetConfig___lam__1___boxed), 10, 2);
lean_closure_set(v___f_323_, 0, v___f_322_);
lean_closure_set(v___f_323_, 1, v___x_321_);
return v___f_323_;
}
}
static lean_object* _init_l_Lake_Module_leanFacetConfig___closed__3(void){
_start:
{
lean_object* v___f_324_; uint8_t v___x_325_; lean_object* v___x_326_; lean_object* v___f_327_; lean_object* v___x_328_; lean_object* v___x_329_; 
v___f_324_ = ((lean_object*)(l_Lake_Module_leanFacetConfig___closed__0));
v___x_325_ = 1;
v___x_326_ = l_Lake_instDataKindFilePath;
v___f_327_ = lean_obj_once(&l_Lake_Module_leanFacetConfig___closed__2, &l_Lake_Module_leanFacetConfig___closed__2_once, _init_l_Lake_Module_leanFacetConfig___closed__2);
v___x_328_ = l_Lake_Module_keyword;
v___x_329_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_329_, 0, v___x_328_);
lean_ctor_set(v___x_329_, 1, v___f_327_);
lean_ctor_set(v___x_329_, 2, v___x_326_);
lean_ctor_set(v___x_329_, 3, v___f_324_);
lean_ctor_set_uint8(v___x_329_, sizeof(void*)*4, v___x_325_);
lean_ctor_set_uint8(v___x_329_, sizeof(void*)*4 + 1, v___x_325_);
return v___x_329_;
}
}
static lean_object* _init_l_Lake_Module_leanFacetConfig(void){
_start:
{
lean_object* v___x_330_; 
v___x_330_ = lean_obj_once(&l_Lake_Module_leanFacetConfig___closed__3, &l_Lake_Module_leanFacetConfig___closed__3_once, _init_l_Lake_Module_leanFacetConfig___closed__3);
return v___x_330_;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_headerFacetConfig_spec__0(uint8_t v_fmt_331_, lean_object* v_a_332_){
_start:
{
if (v_fmt_331_ == 0)
{
lean_object* v___x_333_; 
lean_dec_ref(v_a_332_);
v___x_333_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1));
return v___x_333_;
}
else
{
lean_object* v___x_334_; lean_object* v___x_335_; 
v___x_334_ = l_Lean_instToJsonModuleHeader_toJson(v_a_332_);
v___x_335_ = l_Lean_Json_compress(v___x_334_);
return v___x_335_;
}
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_headerFacetConfig_spec__0___boxed(lean_object* v_fmt_336_, lean_object* v_a_337_){
_start:
{
uint8_t v_fmt_boxed_338_; lean_object* v_res_339_; 
v_fmt_boxed_338_ = lean_unbox(v_fmt_336_);
v_res_339_ = l_Lake_formatQuery___at___00Lake_Module_headerFacetConfig_spec__0(v_fmt_boxed_338_, v_a_337_);
return v_res_339_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_headerFacetConfig___lam__0(lean_object* v_x_340_){
_start:
{
if (lean_obj_tag(v_x_340_) == 0)
{
lean_object* v_a_341_; lean_object* v_a_342_; lean_object* v___x_344_; uint8_t v_isShared_345_; uint8_t v_isSharedCheck_350_; 
v_a_341_ = lean_ctor_get(v_x_340_, 0);
v_a_342_ = lean_ctor_get(v_x_340_, 1);
v_isSharedCheck_350_ = !lean_is_exclusive(v_x_340_);
if (v_isSharedCheck_350_ == 0)
{
v___x_344_ = v_x_340_;
v_isShared_345_ = v_isSharedCheck_350_;
goto v_resetjp_343_;
}
else
{
lean_inc(v_a_342_);
lean_inc(v_a_341_);
lean_dec(v_x_340_);
v___x_344_ = lean_box(0);
v_isShared_345_ = v_isSharedCheck_350_;
goto v_resetjp_343_;
}
v_resetjp_343_:
{
lean_object* v_header_346_; lean_object* v___x_348_; 
v_header_346_ = lean_ctor_get(v_a_341_, 2);
lean_inc_ref(v_header_346_);
lean_dec(v_a_341_);
if (v_isShared_345_ == 0)
{
lean_ctor_set(v___x_344_, 0, v_header_346_);
v___x_348_ = v___x_344_;
goto v_reusejp_347_;
}
else
{
lean_object* v_reuseFailAlloc_349_; 
v_reuseFailAlloc_349_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_349_, 0, v_header_346_);
lean_ctor_set(v_reuseFailAlloc_349_, 1, v_a_342_);
v___x_348_ = v_reuseFailAlloc_349_;
goto v_reusejp_347_;
}
v_reusejp_347_:
{
return v___x_348_;
}
}
}
else
{
lean_object* v_a_351_; lean_object* v_a_352_; lean_object* v___x_354_; uint8_t v_isShared_355_; uint8_t v_isSharedCheck_359_; 
v_a_351_ = lean_ctor_get(v_x_340_, 0);
v_a_352_ = lean_ctor_get(v_x_340_, 1);
v_isSharedCheck_359_ = !lean_is_exclusive(v_x_340_);
if (v_isSharedCheck_359_ == 0)
{
v___x_354_ = v_x_340_;
v_isShared_355_ = v_isSharedCheck_359_;
goto v_resetjp_353_;
}
else
{
lean_inc(v_a_352_);
lean_inc(v_a_351_);
lean_dec(v_x_340_);
v___x_354_ = lean_box(0);
v_isShared_355_ = v_isSharedCheck_359_;
goto v_resetjp_353_;
}
v_resetjp_353_:
{
lean_object* v___x_357_; 
if (v_isShared_355_ == 0)
{
v___x_357_ = v___x_354_;
goto v_reusejp_356_;
}
else
{
lean_object* v_reuseFailAlloc_358_; 
v_reuseFailAlloc_358_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_358_, 0, v_a_351_);
lean_ctor_set(v_reuseFailAlloc_358_, 1, v_a_352_);
v___x_357_ = v_reuseFailAlloc_358_;
goto v_reusejp_356_;
}
v_reusejp_356_:
{
return v___x_357_;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_headerFacetConfig___lam__1(lean_object* v___f_360_, lean_object* v___x_361_, lean_object* v_mod_362_, lean_object* v___y_363_, lean_object* v___y_364_, lean_object* v___y_365_, lean_object* v___y_366_, lean_object* v___y_367_, lean_object* v___y_368_){
_start:
{
lean_object* v_lib_370_; lean_object* v_pkg_371_; lean_object* v_name_372_; lean_object* v_keyName_373_; lean_object* v___x_374_; lean_object* v___x_375_; lean_object* v___x_376_; lean_object* v___x_377_; lean_object* v___x_378_; 
v_lib_370_ = lean_ctor_get(v_mod_362_, 0);
v_pkg_371_ = lean_ctor_get(v_lib_370_, 0);
v_name_372_ = lean_ctor_get(v_mod_362_, 1);
v_keyName_373_ = lean_ctor_get(v_pkg_371_, 2);
v___x_374_ = l_Lake_Module_inputFacet;
lean_inc(v_name_372_);
lean_inc(v_keyName_373_);
v___x_375_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_375_, 0, v_keyName_373_);
lean_ctor_set(v___x_375_, 1, v_name_372_);
v___x_376_ = l_Lake_Module_keyword;
v___x_377_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_377_, 0, v___x_375_);
lean_ctor_set(v___x_377_, 1, v___x_376_);
lean_ctor_set(v___x_377_, 2, v_mod_362_);
lean_ctor_set(v___x_377_, 3, v___x_374_);
v___x_378_ = lean_apply_7(v___y_363_, v___x_377_, v___y_364_, v___y_365_, v___y_366_, v___y_367_, v___y_368_, lean_box(0));
if (lean_obj_tag(v___x_378_) == 0)
{
lean_object* v_a_379_; lean_object* v_a_380_; lean_object* v___x_382_; uint8_t v_isShared_383_; uint8_t v_isSharedCheck_401_; 
v_a_379_ = lean_ctor_get(v___x_378_, 0);
v_a_380_ = lean_ctor_get(v___x_378_, 1);
v_isSharedCheck_401_ = !lean_is_exclusive(v___x_378_);
if (v_isSharedCheck_401_ == 0)
{
v___x_382_ = v___x_378_;
v_isShared_383_ = v_isSharedCheck_401_;
goto v_resetjp_381_;
}
else
{
lean_inc(v_a_380_);
lean_inc(v_a_379_);
lean_dec(v___x_378_);
v___x_382_ = lean_box(0);
v_isShared_383_ = v_isSharedCheck_401_;
goto v_resetjp_381_;
}
v_resetjp_381_:
{
lean_object* v_task_384_; lean_object* v_caption_385_; uint8_t v_optional_386_; lean_object* v___x_388_; uint8_t v_isShared_389_; uint8_t v_isSharedCheck_399_; 
v_task_384_ = lean_ctor_get(v_a_379_, 0);
v_caption_385_ = lean_ctor_get(v_a_379_, 2);
v_optional_386_ = lean_ctor_get_uint8(v_a_379_, sizeof(void*)*3);
v_isSharedCheck_399_ = !lean_is_exclusive(v_a_379_);
if (v_isSharedCheck_399_ == 0)
{
lean_object* v_unused_400_; 
v_unused_400_ = lean_ctor_get(v_a_379_, 1);
lean_dec(v_unused_400_);
v___x_388_ = v_a_379_;
v_isShared_389_ = v_isSharedCheck_399_;
goto v_resetjp_387_;
}
else
{
lean_inc(v_caption_385_);
lean_inc(v_task_384_);
lean_dec(v_a_379_);
v___x_388_ = lean_box(0);
v_isShared_389_ = v_isSharedCheck_399_;
goto v_resetjp_387_;
}
v_resetjp_387_:
{
lean_object* v___x_390_; uint8_t v___x_391_; lean_object* v___x_392_; lean_object* v___x_394_; 
v___x_390_ = lean_unsigned_to_nat(0u);
v___x_391_ = 1;
v___x_392_ = lean_task_map(v___f_360_, v_task_384_, v___x_390_, v___x_391_);
if (v_isShared_389_ == 0)
{
lean_ctor_set(v___x_388_, 1, v___x_361_);
lean_ctor_set(v___x_388_, 0, v___x_392_);
v___x_394_ = v___x_388_;
goto v_reusejp_393_;
}
else
{
lean_object* v_reuseFailAlloc_398_; 
v_reuseFailAlloc_398_ = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(v_reuseFailAlloc_398_, 0, v___x_392_);
lean_ctor_set(v_reuseFailAlloc_398_, 1, v___x_361_);
lean_ctor_set(v_reuseFailAlloc_398_, 2, v_caption_385_);
lean_ctor_set_uint8(v_reuseFailAlloc_398_, sizeof(void*)*3, v_optional_386_);
v___x_394_ = v_reuseFailAlloc_398_;
goto v_reusejp_393_;
}
v_reusejp_393_:
{
lean_object* v___x_396_; 
if (v_isShared_383_ == 0)
{
lean_ctor_set(v___x_382_, 0, v___x_394_);
v___x_396_ = v___x_382_;
goto v_reusejp_395_;
}
else
{
lean_object* v_reuseFailAlloc_397_; 
v_reuseFailAlloc_397_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_397_, 0, v___x_394_);
lean_ctor_set(v_reuseFailAlloc_397_, 1, v_a_380_);
v___x_396_ = v_reuseFailAlloc_397_;
goto v_reusejp_395_;
}
v_reusejp_395_:
{
return v___x_396_;
}
}
}
}
}
else
{
lean_object* v_a_402_; lean_object* v_a_403_; lean_object* v___x_405_; uint8_t v_isShared_406_; uint8_t v_isSharedCheck_410_; 
lean_dec(v___x_361_);
lean_dec_ref(v___f_360_);
v_a_402_ = lean_ctor_get(v___x_378_, 0);
v_a_403_ = lean_ctor_get(v___x_378_, 1);
v_isSharedCheck_410_ = !lean_is_exclusive(v___x_378_);
if (v_isSharedCheck_410_ == 0)
{
v___x_405_ = v___x_378_;
v_isShared_406_ = v_isSharedCheck_410_;
goto v_resetjp_404_;
}
else
{
lean_inc(v_a_403_);
lean_inc(v_a_402_);
lean_dec(v___x_378_);
v___x_405_ = lean_box(0);
v_isShared_406_ = v_isSharedCheck_410_;
goto v_resetjp_404_;
}
v_resetjp_404_:
{
lean_object* v___x_408_; 
if (v_isShared_406_ == 0)
{
v___x_408_ = v___x_405_;
goto v_reusejp_407_;
}
else
{
lean_object* v_reuseFailAlloc_409_; 
v_reuseFailAlloc_409_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_409_, 0, v_a_402_);
lean_ctor_set(v_reuseFailAlloc_409_, 1, v_a_403_);
v___x_408_ = v_reuseFailAlloc_409_;
goto v_reusejp_407_;
}
v_reusejp_407_:
{
return v___x_408_;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_headerFacetConfig___lam__1___boxed(lean_object* v___f_411_, lean_object* v___x_412_, lean_object* v_mod_413_, lean_object* v___y_414_, lean_object* v___y_415_, lean_object* v___y_416_, lean_object* v___y_417_, lean_object* v___y_418_, lean_object* v___y_419_, lean_object* v___y_420_){
_start:
{
lean_object* v_res_421_; 
v_res_421_ = l_Lake_Module_headerFacetConfig___lam__1(v___f_411_, v___x_412_, v_mod_413_, v___y_414_, v___y_415_, v___y_416_, v___y_417_, v___y_418_, v___y_419_);
return v_res_421_;
}
}
static lean_object* _init_l_Lake_Module_headerFacetConfig___closed__3(void){
_start:
{
uint8_t v___x_427_; lean_object* v___f_428_; uint8_t v___x_429_; lean_object* v___x_430_; lean_object* v___f_431_; lean_object* v___x_432_; lean_object* v___x_433_; 
v___x_427_ = 1;
v___f_428_ = ((lean_object*)(l_Lake_Module_headerFacetConfig___closed__0));
v___x_429_ = 0;
v___x_430_ = lean_box(0);
v___f_431_ = ((lean_object*)(l_Lake_Module_headerFacetConfig___closed__2));
v___x_432_ = l_Lake_Module_keyword;
v___x_433_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_433_, 0, v___x_432_);
lean_ctor_set(v___x_433_, 1, v___f_431_);
lean_ctor_set(v___x_433_, 2, v___x_430_);
lean_ctor_set(v___x_433_, 3, v___f_428_);
lean_ctor_set_uint8(v___x_433_, sizeof(void*)*4, v___x_429_);
lean_ctor_set_uint8(v___x_433_, sizeof(void*)*4 + 1, v___x_427_);
return v___x_433_;
}
}
static lean_object* _init_l_Lake_Module_headerFacetConfig(void){
_start:
{
lean_object* v___x_434_; 
v___x_434_ = lean_obj_once(&l_Lake_Module_headerFacetConfig___closed__3, &l_Lake_Module_headerFacetConfig___closed__3_once, _init_l_Lake_Module_headerFacetConfig___closed__3);
return v___x_434_;
}
}
static lean_object* _init_l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1___closed__0(void){
_start:
{
lean_object* v___x_435_; lean_object* v___x_436_; lean_object* v___x_437_; 
v___x_435_ = lean_box(0);
v___x_436_ = lean_unsigned_to_nat(16u);
v___x_437_ = lean_mk_array(v___x_436_, v___x_435_);
return v___x_437_;
}
}
static lean_object* _init_l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1___closed__1(void){
_start:
{
lean_object* v___x_438_; lean_object* v___x_439_; lean_object* v___x_440_; 
v___x_438_ = lean_obj_once(&l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1___closed__0, &l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1___closed__0_once, _init_l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1___closed__0);
v___x_439_ = lean_unsigned_to_nat(0u);
v___x_440_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_440_, 0, v___x_439_);
lean_ctor_set(v___x_440_, 1, v___x_438_);
return v___x_440_;
}
}
static lean_object* _init_l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1___closed__3(void){
_start:
{
lean_object* v___x_443_; lean_object* v___x_444_; lean_object* v___x_445_; 
v___x_443_ = ((lean_object*)(l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1___closed__2));
v___x_444_ = lean_obj_once(&l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1___closed__1, &l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1___closed__1_once, _init_l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1___closed__1);
v___x_445_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_445_, 0, v___x_444_);
lean_ctor_set(v___x_445_, 1, v___x_443_);
return v___x_445_;
}
}
static lean_object* _init_l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1(void){
_start:
{
lean_object* v___x_446_; 
v___x_446_ = lean_obj_once(&l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1___closed__3, &l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1___closed__3_once, _init_l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1___closed__3);
return v___x_446_;
}
}
LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0_spec__2___redArg(lean_object* v_a_447_, lean_object* v_x_448_){
_start:
{
if (lean_obj_tag(v_x_448_) == 0)
{
uint8_t v___x_449_; 
v___x_449_ = 0;
return v___x_449_;
}
else
{
lean_object* v_key_450_; lean_object* v_tail_451_; lean_object* v_name_452_; lean_object* v_name_453_; uint8_t v___x_454_; 
v_key_450_ = lean_ctor_get(v_x_448_, 0);
v_tail_451_ = lean_ctor_get(v_x_448_, 2);
v_name_452_ = lean_ctor_get(v_key_450_, 1);
v_name_453_ = lean_ctor_get(v_a_447_, 1);
v___x_454_ = lean_name_eq(v_name_452_, v_name_453_);
if (v___x_454_ == 0)
{
v_x_448_ = v_tail_451_;
goto _start;
}
else
{
return v___x_454_;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0_spec__2___redArg___boxed(lean_object* v_a_456_, lean_object* v_x_457_){
_start:
{
uint8_t v_res_458_; lean_object* v_r_459_; 
v_res_458_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0_spec__2___redArg(v_a_456_, v_x_457_);
lean_dec(v_x_457_);
lean_dec_ref(v_a_456_);
v_r_459_ = lean_box(v_res_458_);
return v_r_459_;
}
}
static uint64_t _init_l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___redArg___closed__0(void){
_start:
{
lean_object* v___x_460_; uint64_t v___x_461_; 
v___x_460_ = lean_unsigned_to_nat(1723u);
v___x_461_ = lean_uint64_of_nat(v___x_460_);
return v___x_461_;
}
}
LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___redArg(lean_object* v_m_462_, lean_object* v_a_463_){
_start:
{
lean_object* v_buckets_464_; lean_object* v_name_465_; lean_object* v___x_466_; uint64_t v___y_468_; 
v_buckets_464_ = lean_ctor_get(v_m_462_, 1);
v_name_465_ = lean_ctor_get(v_a_463_, 1);
v___x_466_ = lean_array_get_size(v_buckets_464_);
if (lean_obj_tag(v_name_465_) == 0)
{
uint64_t v___x_482_; 
v___x_482_ = lean_uint64_once(&l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___redArg___closed__0, &l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___redArg___closed__0_once, _init_l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___redArg___closed__0);
v___y_468_ = v___x_482_;
goto v___jp_467_;
}
else
{
uint64_t v_hash_483_; 
v_hash_483_ = lean_ctor_get_uint64(v_name_465_, sizeof(void*)*2);
v___y_468_ = v_hash_483_;
goto v___jp_467_;
}
v___jp_467_:
{
uint64_t v___x_469_; uint64_t v___x_470_; uint64_t v_fold_471_; uint64_t v___x_472_; uint64_t v___x_473_; uint64_t v___x_474_; size_t v___x_475_; size_t v___x_476_; size_t v___x_477_; size_t v___x_478_; size_t v___x_479_; lean_object* v___x_480_; uint8_t v___x_481_; 
v___x_469_ = 32ULL;
v___x_470_ = lean_uint64_shift_right(v___y_468_, v___x_469_);
v_fold_471_ = lean_uint64_xor(v___y_468_, v___x_470_);
v___x_472_ = 16ULL;
v___x_473_ = lean_uint64_shift_right(v_fold_471_, v___x_472_);
v___x_474_ = lean_uint64_xor(v_fold_471_, v___x_473_);
v___x_475_ = lean_uint64_to_usize(v___x_474_);
v___x_476_ = lean_usize_of_nat(v___x_466_);
v___x_477_ = ((size_t)1ULL);
v___x_478_ = lean_usize_sub(v___x_476_, v___x_477_);
v___x_479_ = lean_usize_land(v___x_475_, v___x_478_);
v___x_480_ = lean_array_uget_borrowed(v_buckets_464_, v___x_479_);
v___x_481_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0_spec__2___redArg(v_a_463_, v___x_480_);
return v___x_481_;
}
}
}
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___redArg___boxed(lean_object* v_m_484_, lean_object* v_a_485_){
_start:
{
uint8_t v_res_486_; lean_object* v_r_487_; 
v_res_486_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___redArg(v_m_484_, v_a_485_);
lean_dec_ref(v_a_485_);
lean_dec_ref(v_m_484_);
v_r_487_ = lean_box(v_res_486_);
return v_r_487_;
}
}
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1_spec__4_spec__6_spec__7___redArg(lean_object* v_x_488_, lean_object* v_x_489_){
_start:
{
if (lean_obj_tag(v_x_489_) == 0)
{
return v_x_488_;
}
else
{
lean_object* v_key_490_; lean_object* v_value_491_; lean_object* v_tail_492_; lean_object* v___x_494_; uint8_t v_isShared_495_; uint8_t v_isSharedCheck_519_; 
v_key_490_ = lean_ctor_get(v_x_489_, 0);
v_value_491_ = lean_ctor_get(v_x_489_, 1);
v_tail_492_ = lean_ctor_get(v_x_489_, 2);
v_isSharedCheck_519_ = !lean_is_exclusive(v_x_489_);
if (v_isSharedCheck_519_ == 0)
{
v___x_494_ = v_x_489_;
v_isShared_495_ = v_isSharedCheck_519_;
goto v_resetjp_493_;
}
else
{
lean_inc(v_tail_492_);
lean_inc(v_value_491_);
lean_inc(v_key_490_);
lean_dec(v_x_489_);
v___x_494_ = lean_box(0);
v_isShared_495_ = v_isSharedCheck_519_;
goto v_resetjp_493_;
}
v_resetjp_493_:
{
lean_object* v_name_496_; lean_object* v___x_497_; uint64_t v___y_499_; 
v_name_496_ = lean_ctor_get(v_key_490_, 1);
v___x_497_ = lean_array_get_size(v_x_488_);
if (lean_obj_tag(v_name_496_) == 0)
{
uint64_t v___x_517_; 
v___x_517_ = lean_uint64_once(&l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___redArg___closed__0, &l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___redArg___closed__0_once, _init_l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___redArg___closed__0);
v___y_499_ = v___x_517_;
goto v___jp_498_;
}
else
{
uint64_t v_hash_518_; 
v_hash_518_ = lean_ctor_get_uint64(v_name_496_, sizeof(void*)*2);
v___y_499_ = v_hash_518_;
goto v___jp_498_;
}
v___jp_498_:
{
uint64_t v___x_500_; uint64_t v___x_501_; uint64_t v_fold_502_; uint64_t v___x_503_; uint64_t v___x_504_; uint64_t v___x_505_; size_t v___x_506_; size_t v___x_507_; size_t v___x_508_; size_t v___x_509_; size_t v___x_510_; lean_object* v___x_511_; lean_object* v___x_513_; 
v___x_500_ = 32ULL;
v___x_501_ = lean_uint64_shift_right(v___y_499_, v___x_500_);
v_fold_502_ = lean_uint64_xor(v___y_499_, v___x_501_);
v___x_503_ = 16ULL;
v___x_504_ = lean_uint64_shift_right(v_fold_502_, v___x_503_);
v___x_505_ = lean_uint64_xor(v_fold_502_, v___x_504_);
v___x_506_ = lean_uint64_to_usize(v___x_505_);
v___x_507_ = lean_usize_of_nat(v___x_497_);
v___x_508_ = ((size_t)1ULL);
v___x_509_ = lean_usize_sub(v___x_507_, v___x_508_);
v___x_510_ = lean_usize_land(v___x_506_, v___x_509_);
v___x_511_ = lean_array_uget_borrowed(v_x_488_, v___x_510_);
lean_inc(v___x_511_);
if (v_isShared_495_ == 0)
{
lean_ctor_set(v___x_494_, 2, v___x_511_);
v___x_513_ = v___x_494_;
goto v_reusejp_512_;
}
else
{
lean_object* v_reuseFailAlloc_516_; 
v_reuseFailAlloc_516_ = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(v_reuseFailAlloc_516_, 0, v_key_490_);
lean_ctor_set(v_reuseFailAlloc_516_, 1, v_value_491_);
lean_ctor_set(v_reuseFailAlloc_516_, 2, v___x_511_);
v___x_513_ = v_reuseFailAlloc_516_;
goto v_reusejp_512_;
}
v_reusejp_512_:
{
lean_object* v___x_514_; 
v___x_514_ = lean_array_uset(v_x_488_, v___x_510_, v___x_513_);
v_x_488_ = v___x_514_;
v_x_489_ = v_tail_492_;
goto _start;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1_spec__4_spec__6___redArg(lean_object* v_i_520_, lean_object* v_source_521_, lean_object* v_target_522_){
_start:
{
lean_object* v___x_523_; uint8_t v___x_524_; 
v___x_523_ = lean_array_get_size(v_source_521_);
v___x_524_ = lean_nat_dec_lt(v_i_520_, v___x_523_);
if (v___x_524_ == 0)
{
lean_dec_ref(v_source_521_);
lean_dec(v_i_520_);
return v_target_522_;
}
else
{
lean_object* v_es_525_; lean_object* v___x_526_; lean_object* v_source_527_; lean_object* v_target_528_; lean_object* v___x_529_; lean_object* v___x_530_; 
v_es_525_ = lean_array_fget(v_source_521_, v_i_520_);
v___x_526_ = lean_box(0);
v_source_527_ = lean_array_fset(v_source_521_, v_i_520_, v___x_526_);
v_target_528_ = l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1_spec__4_spec__6_spec__7___redArg(v_target_522_, v_es_525_);
v___x_529_ = lean_unsigned_to_nat(1u);
v___x_530_ = lean_nat_add(v_i_520_, v___x_529_);
lean_dec(v_i_520_);
v_i_520_ = v___x_530_;
v_source_521_ = v_source_527_;
v_target_522_ = v_target_528_;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1_spec__4___redArg(lean_object* v_data_532_){
_start:
{
lean_object* v___x_533_; lean_object* v___x_534_; lean_object* v_nbuckets_535_; lean_object* v___x_536_; lean_object* v___x_537_; lean_object* v___x_538_; lean_object* v___x_539_; 
v___x_533_ = lean_array_get_size(v_data_532_);
v___x_534_ = lean_unsigned_to_nat(2u);
v_nbuckets_535_ = lean_nat_mul(v___x_533_, v___x_534_);
v___x_536_ = lean_unsigned_to_nat(0u);
v___x_537_ = lean_box(0);
v___x_538_ = lean_mk_array(v_nbuckets_535_, v___x_537_);
v___x_539_ = l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1_spec__4_spec__6___redArg(v___x_536_, v_data_532_, v___x_538_);
return v___x_539_;
}
}
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1___redArg(lean_object* v_m_540_, lean_object* v_a_541_, lean_object* v_b_542_){
_start:
{
lean_object* v_size_543_; lean_object* v_buckets_544_; lean_object* v_name_545_; lean_object* v___x_546_; uint64_t v___y_548_; 
v_size_543_ = lean_ctor_get(v_m_540_, 0);
v_buckets_544_ = lean_ctor_get(v_m_540_, 1);
v_name_545_ = lean_ctor_get(v_a_541_, 1);
v___x_546_ = lean_array_get_size(v_buckets_544_);
if (lean_obj_tag(v_name_545_) == 0)
{
uint64_t v___x_585_; 
v___x_585_ = lean_uint64_once(&l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___redArg___closed__0, &l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___redArg___closed__0_once, _init_l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___redArg___closed__0);
v___y_548_ = v___x_585_;
goto v___jp_547_;
}
else
{
uint64_t v_hash_586_; 
v_hash_586_ = lean_ctor_get_uint64(v_name_545_, sizeof(void*)*2);
v___y_548_ = v_hash_586_;
goto v___jp_547_;
}
v___jp_547_:
{
uint64_t v___x_549_; uint64_t v___x_550_; uint64_t v_fold_551_; uint64_t v___x_552_; uint64_t v___x_553_; uint64_t v___x_554_; size_t v___x_555_; size_t v___x_556_; size_t v___x_557_; size_t v___x_558_; size_t v___x_559_; lean_object* v_bkt_560_; uint8_t v___x_561_; 
v___x_549_ = 32ULL;
v___x_550_ = lean_uint64_shift_right(v___y_548_, v___x_549_);
v_fold_551_ = lean_uint64_xor(v___y_548_, v___x_550_);
v___x_552_ = 16ULL;
v___x_553_ = lean_uint64_shift_right(v_fold_551_, v___x_552_);
v___x_554_ = lean_uint64_xor(v_fold_551_, v___x_553_);
v___x_555_ = lean_uint64_to_usize(v___x_554_);
v___x_556_ = lean_usize_of_nat(v___x_546_);
v___x_557_ = ((size_t)1ULL);
v___x_558_ = lean_usize_sub(v___x_556_, v___x_557_);
v___x_559_ = lean_usize_land(v___x_555_, v___x_558_);
v_bkt_560_ = lean_array_uget_borrowed(v_buckets_544_, v___x_559_);
v___x_561_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0_spec__2___redArg(v_a_541_, v_bkt_560_);
if (v___x_561_ == 0)
{
lean_object* v___x_563_; uint8_t v_isShared_564_; uint8_t v_isSharedCheck_582_; 
lean_inc_ref(v_buckets_544_);
lean_inc(v_size_543_);
v_isSharedCheck_582_ = !lean_is_exclusive(v_m_540_);
if (v_isSharedCheck_582_ == 0)
{
lean_object* v_unused_583_; lean_object* v_unused_584_; 
v_unused_583_ = lean_ctor_get(v_m_540_, 1);
lean_dec(v_unused_583_);
v_unused_584_ = lean_ctor_get(v_m_540_, 0);
lean_dec(v_unused_584_);
v___x_563_ = v_m_540_;
v_isShared_564_ = v_isSharedCheck_582_;
goto v_resetjp_562_;
}
else
{
lean_dec(v_m_540_);
v___x_563_ = lean_box(0);
v_isShared_564_ = v_isSharedCheck_582_;
goto v_resetjp_562_;
}
v_resetjp_562_:
{
lean_object* v___x_565_; lean_object* v_size_x27_566_; lean_object* v___x_567_; lean_object* v_buckets_x27_568_; lean_object* v___x_569_; lean_object* v___x_570_; lean_object* v___x_571_; lean_object* v___x_572_; lean_object* v___x_573_; uint8_t v___x_574_; 
v___x_565_ = lean_unsigned_to_nat(1u);
v_size_x27_566_ = lean_nat_add(v_size_543_, v___x_565_);
lean_dec(v_size_543_);
lean_inc(v_bkt_560_);
v___x_567_ = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(v___x_567_, 0, v_a_541_);
lean_ctor_set(v___x_567_, 1, v_b_542_);
lean_ctor_set(v___x_567_, 2, v_bkt_560_);
v_buckets_x27_568_ = lean_array_uset(v_buckets_544_, v___x_559_, v___x_567_);
v___x_569_ = lean_unsigned_to_nat(4u);
v___x_570_ = lean_nat_mul(v_size_x27_566_, v___x_569_);
v___x_571_ = lean_unsigned_to_nat(3u);
v___x_572_ = lean_nat_div(v___x_570_, v___x_571_);
lean_dec(v___x_570_);
v___x_573_ = lean_array_get_size(v_buckets_x27_568_);
v___x_574_ = lean_nat_dec_le(v___x_572_, v___x_573_);
lean_dec(v___x_572_);
if (v___x_574_ == 0)
{
lean_object* v_val_575_; lean_object* v___x_577_; 
v_val_575_ = l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1_spec__4___redArg(v_buckets_x27_568_);
if (v_isShared_564_ == 0)
{
lean_ctor_set(v___x_563_, 1, v_val_575_);
lean_ctor_set(v___x_563_, 0, v_size_x27_566_);
v___x_577_ = v___x_563_;
goto v_reusejp_576_;
}
else
{
lean_object* v_reuseFailAlloc_578_; 
v_reuseFailAlloc_578_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_578_, 0, v_size_x27_566_);
lean_ctor_set(v_reuseFailAlloc_578_, 1, v_val_575_);
v___x_577_ = v_reuseFailAlloc_578_;
goto v_reusejp_576_;
}
v_reusejp_576_:
{
return v___x_577_;
}
}
else
{
lean_object* v___x_580_; 
if (v_isShared_564_ == 0)
{
lean_ctor_set(v___x_563_, 1, v_buckets_x27_568_);
lean_ctor_set(v___x_563_, 0, v_size_x27_566_);
v___x_580_ = v___x_563_;
goto v_reusejp_579_;
}
else
{
lean_object* v_reuseFailAlloc_581_; 
v_reuseFailAlloc_581_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_581_, 0, v_size_x27_566_);
lean_ctor_set(v_reuseFailAlloc_581_, 1, v_buckets_x27_568_);
v___x_580_ = v_reuseFailAlloc_581_;
goto v_reusejp_579_;
}
v_reusejp_579_:
{
return v___x_580_;
}
}
}
}
else
{
lean_dec(v_b_542_);
lean_dec_ref(v_a_541_);
return v_m_540_;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0(lean_object* v_self_587_, lean_object* v_a_588_){
_start:
{
lean_object* v_toHashSet_589_; lean_object* v_toArray_590_; uint8_t v___x_591_; 
v_toHashSet_589_ = lean_ctor_get(v_self_587_, 0);
v_toArray_590_ = lean_ctor_get(v_self_587_, 1);
v___x_591_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___redArg(v_toHashSet_589_, v_a_588_);
if (v___x_591_ == 0)
{
lean_object* v___x_593_; uint8_t v_isShared_594_; uint8_t v_isSharedCheck_601_; 
lean_inc_ref(v_toArray_590_);
lean_inc_ref(v_toHashSet_589_);
v_isSharedCheck_601_ = !lean_is_exclusive(v_self_587_);
if (v_isSharedCheck_601_ == 0)
{
lean_object* v_unused_602_; lean_object* v_unused_603_; 
v_unused_602_ = lean_ctor_get(v_self_587_, 1);
lean_dec(v_unused_602_);
v_unused_603_ = lean_ctor_get(v_self_587_, 0);
lean_dec(v_unused_603_);
v___x_593_ = v_self_587_;
v_isShared_594_ = v_isSharedCheck_601_;
goto v_resetjp_592_;
}
else
{
lean_dec(v_self_587_);
v___x_593_ = lean_box(0);
v_isShared_594_ = v_isSharedCheck_601_;
goto v_resetjp_592_;
}
v_resetjp_592_:
{
lean_object* v___x_595_; lean_object* v___x_596_; lean_object* v___x_597_; lean_object* v___x_599_; 
v___x_595_ = lean_box(0);
lean_inc_ref(v_a_588_);
v___x_596_ = l_Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1___redArg(v_toHashSet_589_, v_a_588_, v___x_595_);
v___x_597_ = lean_array_push(v_toArray_590_, v_a_588_);
if (v_isShared_594_ == 0)
{
lean_ctor_set(v___x_593_, 1, v___x_597_);
lean_ctor_set(v___x_593_, 0, v___x_596_);
v___x_599_ = v___x_593_;
goto v_reusejp_598_;
}
else
{
lean_object* v_reuseFailAlloc_600_; 
v_reuseFailAlloc_600_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_600_, 0, v___x_596_);
lean_ctor_set(v_reuseFailAlloc_600_, 1, v___x_597_);
v___x_599_ = v_reuseFailAlloc_600_;
goto v_reusejp_598_;
}
v_reusejp_598_:
{
return v___x_599_;
}
}
}
else
{
lean_dec_ref(v_a_588_);
return v_self_587_;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__2(lean_object* v_as_604_, size_t v_i_605_, size_t v_stop_606_, lean_object* v_b_607_){
_start:
{
lean_object* v___y_609_; uint8_t v___x_613_; 
v___x_613_ = lean_usize_dec_eq(v_i_605_, v_stop_606_);
if (v___x_613_ == 0)
{
lean_object* v___x_614_; lean_object* v_module_x3f_615_; 
v___x_614_ = lean_array_uget_borrowed(v_as_604_, v_i_605_);
v_module_x3f_615_ = lean_ctor_get(v___x_614_, 1);
if (lean_obj_tag(v_module_x3f_615_) == 0)
{
v___y_609_ = v_b_607_;
goto v___jp_608_;
}
else
{
lean_object* v_val_616_; lean_object* v___x_617_; 
v_val_616_ = lean_ctor_get(v_module_x3f_615_, 0);
lean_inc(v_val_616_);
v___x_617_ = l_Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0(v_b_607_, v_val_616_);
v___y_609_ = v___x_617_;
goto v___jp_608_;
}
}
else
{
return v_b_607_;
}
v___jp_608_:
{
size_t v___x_610_; size_t v___x_611_; 
v___x_610_ = ((size_t)1ULL);
v___x_611_ = lean_usize_add(v_i_605_, v___x_610_);
v_i_605_ = v___x_611_;
v_b_607_ = v___y_609_;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__2___boxed(lean_object* v_as_618_, lean_object* v_i_619_, lean_object* v_stop_620_, lean_object* v_b_621_){
_start:
{
size_t v_i_boxed_622_; size_t v_stop_boxed_623_; lean_object* v_res_624_; 
v_i_boxed_622_ = lean_unbox_usize(v_i_619_);
lean_dec(v_i_619_);
v_stop_boxed_623_ = lean_unbox_usize(v_stop_620_);
lean_dec(v_stop_620_);
v_res_624_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__2(v_as_618_, v_i_boxed_622_, v_stop_boxed_623_, v_b_621_);
lean_dec_ref(v_as_618_);
return v_res_624_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recParseImports___lam__0(lean_object* v_input_625_, lean_object* v___y_626_, lean_object* v___y_627_, lean_object* v___y_628_, lean_object* v___y_629_, lean_object* v___y_630_, lean_object* v___y_631_){
_start:
{
lean_object* v___y_634_; lean_object* v_imports_644_; lean_object* v___x_645_; lean_object* v___x_646_; lean_object* v___x_647_; uint8_t v___x_648_; 
v_imports_644_ = lean_ctor_get(v_input_625_, 3);
v___x_645_ = l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1;
v___x_646_ = lean_unsigned_to_nat(0u);
v___x_647_ = lean_array_get_size(v_imports_644_);
v___x_648_ = lean_nat_dec_lt(v___x_646_, v___x_647_);
if (v___x_648_ == 0)
{
v___y_634_ = v___x_645_;
goto v___jp_633_;
}
else
{
uint8_t v___x_649_; 
v___x_649_ = lean_nat_dec_le(v___x_647_, v___x_647_);
if (v___x_649_ == 0)
{
if (v___x_648_ == 0)
{
v___y_634_ = v___x_645_;
goto v___jp_633_;
}
else
{
size_t v___x_650_; size_t v___x_651_; lean_object* v___x_652_; 
v___x_650_ = ((size_t)0ULL);
v___x_651_ = lean_usize_of_nat(v___x_647_);
v___x_652_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__2(v_imports_644_, v___x_650_, v___x_651_, v___x_645_);
v___y_634_ = v___x_652_;
goto v___jp_633_;
}
}
else
{
size_t v___x_653_; size_t v___x_654_; lean_object* v___x_655_; 
v___x_653_ = ((size_t)0ULL);
v___x_654_ = lean_usize_of_nat(v___x_647_);
v___x_655_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__2(v_imports_644_, v___x_653_, v___x_654_, v___x_645_);
v___y_634_ = v___x_655_;
goto v___jp_633_;
}
}
v___jp_633_:
{
lean_object* v_toArray_635_; lean_object* v___x_637_; uint8_t v_isShared_638_; uint8_t v_isSharedCheck_642_; 
v_toArray_635_ = lean_ctor_get(v___y_634_, 1);
v_isSharedCheck_642_ = !lean_is_exclusive(v___y_634_);
if (v_isSharedCheck_642_ == 0)
{
lean_object* v_unused_643_; 
v_unused_643_ = lean_ctor_get(v___y_634_, 0);
lean_dec(v_unused_643_);
v___x_637_ = v___y_634_;
v_isShared_638_ = v_isSharedCheck_642_;
goto v_resetjp_636_;
}
else
{
lean_inc(v_toArray_635_);
lean_dec(v___y_634_);
v___x_637_ = lean_box(0);
v_isShared_638_ = v_isSharedCheck_642_;
goto v_resetjp_636_;
}
v_resetjp_636_:
{
lean_object* v___x_640_; 
if (v_isShared_638_ == 0)
{
lean_ctor_set(v___x_637_, 1, v___y_631_);
lean_ctor_set(v___x_637_, 0, v_toArray_635_);
v___x_640_ = v___x_637_;
goto v_reusejp_639_;
}
else
{
lean_object* v_reuseFailAlloc_641_; 
v_reuseFailAlloc_641_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_641_, 0, v_toArray_635_);
lean_ctor_set(v_reuseFailAlloc_641_, 1, v___y_631_);
v___x_640_ = v_reuseFailAlloc_641_;
goto v_reusejp_639_;
}
v_reusejp_639_:
{
return v___x_640_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recParseImports___lam__0___boxed(lean_object* v_input_656_, lean_object* v___y_657_, lean_object* v___y_658_, lean_object* v___y_659_, lean_object* v___y_660_, lean_object* v___y_661_, lean_object* v___y_662_, lean_object* v___y_663_){
_start:
{
lean_object* v_res_664_; 
v_res_664_ = l___private_Lake_Build_Module_0__Lake_Module_recParseImports___lam__0(v_input_656_, v___y_657_, v___y_658_, v___y_659_, v___y_660_, v___y_661_, v___y_662_);
lean_dec_ref(v___y_661_);
lean_dec(v___y_660_);
lean_dec(v___y_659_);
lean_dec(v___y_658_);
lean_dec_ref(v___y_657_);
lean_dec_ref(v_input_656_);
return v_res_664_;
}
}
static lean_object* _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2(void){
_start:
{
lean_object* v___x_667_; lean_object* v___x_668_; 
v___x_667_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__1));
v___x_668_ = l_Lake_BuildTrace_nil(v___x_667_);
return v___x_668_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recParseImports(lean_object* v_mod_669_, lean_object* v_a_670_, lean_object* v_a_671_, lean_object* v_a_672_, lean_object* v_a_673_, lean_object* v_a_674_, lean_object* v_a_675_){
_start:
{
lean_object* v_lib_677_; lean_object* v_pkg_678_; lean_object* v_name_679_; lean_object* v_keyName_680_; lean_object* v___x_681_; lean_object* v___x_682_; lean_object* v___x_683_; lean_object* v___x_684_; lean_object* v___x_685_; 
v_lib_677_ = lean_ctor_get(v_mod_669_, 0);
v_pkg_678_ = lean_ctor_get(v_lib_677_, 0);
v_name_679_ = lean_ctor_get(v_mod_669_, 1);
v_keyName_680_ = lean_ctor_get(v_pkg_678_, 2);
v___x_681_ = l_Lake_Module_inputFacet;
lean_inc(v_name_679_);
lean_inc(v_keyName_680_);
v___x_682_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_682_, 0, v_keyName_680_);
lean_ctor_set(v___x_682_, 1, v_name_679_);
v___x_683_ = l_Lake_Module_keyword;
v___x_684_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_684_, 0, v___x_682_);
lean_ctor_set(v___x_684_, 1, v___x_683_);
lean_ctor_set(v___x_684_, 2, v_mod_669_);
lean_ctor_set(v___x_684_, 3, v___x_681_);
lean_inc_ref(v_a_670_);
lean_inc_ref(v_a_674_);
lean_inc(v_a_673_);
lean_inc(v_a_672_);
lean_inc(v_a_671_);
v___x_685_ = lean_apply_7(v_a_670_, v___x_684_, v_a_671_, v_a_672_, v_a_673_, v_a_674_, v_a_675_, lean_box(0));
if (lean_obj_tag(v___x_685_) == 0)
{
lean_object* v_a_686_; lean_object* v_a_687_; lean_object* v___x_689_; uint8_t v_isShared_690_; uint8_t v_isSharedCheck_700_; 
v_a_686_ = lean_ctor_get(v___x_685_, 0);
v_a_687_ = lean_ctor_get(v___x_685_, 1);
v_isSharedCheck_700_ = !lean_is_exclusive(v___x_685_);
if (v_isSharedCheck_700_ == 0)
{
v___x_689_ = v___x_685_;
v_isShared_690_ = v_isSharedCheck_700_;
goto v_resetjp_688_;
}
else
{
lean_inc(v_a_687_);
lean_inc(v_a_686_);
lean_dec(v___x_685_);
v___x_689_ = lean_box(0);
v_isShared_690_ = v_isSharedCheck_700_;
goto v_resetjp_688_;
}
v_resetjp_688_:
{
lean_object* v___f_691_; lean_object* v___x_692_; lean_object* v___x_693_; uint8_t v___x_694_; lean_object* v___x_695_; lean_object* v___x_696_; lean_object* v___x_698_; 
v___f_691_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__0));
v___x_692_ = lean_box(0);
v___x_693_ = lean_unsigned_to_nat(0u);
v___x_694_ = 1;
v___x_695_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_696_ = l_Lake_Job_mapM___redArg(v___x_692_, v_a_686_, v___f_691_, v___x_693_, v___x_694_, v_a_670_, v_a_671_, v_a_672_, v_a_673_, v_a_674_, v___x_695_);
if (v_isShared_690_ == 0)
{
lean_ctor_set(v___x_689_, 0, v___x_696_);
v___x_698_ = v___x_689_;
goto v_reusejp_697_;
}
else
{
lean_object* v_reuseFailAlloc_699_; 
v_reuseFailAlloc_699_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_699_, 0, v___x_696_);
lean_ctor_set(v_reuseFailAlloc_699_, 1, v_a_687_);
v___x_698_ = v_reuseFailAlloc_699_;
goto v_reusejp_697_;
}
v_reusejp_697_:
{
return v___x_698_;
}
}
}
else
{
lean_object* v_a_701_; lean_object* v_a_702_; lean_object* v___x_704_; uint8_t v_isShared_705_; uint8_t v_isSharedCheck_709_; 
lean_dec_ref(v_a_674_);
lean_dec(v_a_673_);
lean_dec(v_a_672_);
lean_dec(v_a_671_);
lean_dec_ref(v_a_670_);
v_a_701_ = lean_ctor_get(v___x_685_, 0);
v_a_702_ = lean_ctor_get(v___x_685_, 1);
v_isSharedCheck_709_ = !lean_is_exclusive(v___x_685_);
if (v_isSharedCheck_709_ == 0)
{
v___x_704_ = v___x_685_;
v_isShared_705_ = v_isSharedCheck_709_;
goto v_resetjp_703_;
}
else
{
lean_inc(v_a_702_);
lean_inc(v_a_701_);
lean_dec(v___x_685_);
v___x_704_ = lean_box(0);
v_isShared_705_ = v_isSharedCheck_709_;
goto v_resetjp_703_;
}
v_resetjp_703_:
{
lean_object* v___x_707_; 
if (v_isShared_705_ == 0)
{
v___x_707_ = v___x_704_;
goto v_reusejp_706_;
}
else
{
lean_object* v_reuseFailAlloc_708_; 
v_reuseFailAlloc_708_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_708_, 0, v_a_701_);
lean_ctor_set(v_reuseFailAlloc_708_, 1, v_a_702_);
v___x_707_ = v_reuseFailAlloc_708_;
goto v_reusejp_706_;
}
v_reusejp_706_:
{
return v___x_707_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recParseImports___boxed(lean_object* v_mod_710_, lean_object* v_a_711_, lean_object* v_a_712_, lean_object* v_a_713_, lean_object* v_a_714_, lean_object* v_a_715_, lean_object* v_a_716_, lean_object* v_a_717_){
_start:
{
lean_object* v_res_718_; 
v_res_718_ = l___private_Lake_Build_Module_0__Lake_Module_recParseImports(v_mod_710_, v_a_711_, v_a_712_, v_a_713_, v_a_714_, v_a_715_, v_a_716_);
return v_res_718_;
}
}
LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0(lean_object* v_00_u03b2_719_, lean_object* v_m_720_, lean_object* v_a_721_){
_start:
{
uint8_t v___x_722_; 
v___x_722_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___redArg(v_m_720_, v_a_721_);
return v___x_722_;
}
}
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___boxed(lean_object* v_00_u03b2_723_, lean_object* v_m_724_, lean_object* v_a_725_){
_start:
{
uint8_t v_res_726_; lean_object* v_r_727_; 
v_res_726_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0(v_00_u03b2_723_, v_m_724_, v_a_725_);
lean_dec_ref(v_a_725_);
lean_dec_ref(v_m_724_);
v_r_727_ = lean_box(v_res_726_);
return v_r_727_;
}
}
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1(lean_object* v_00_u03b2_728_, lean_object* v_m_729_, lean_object* v_a_730_, lean_object* v_b_731_){
_start:
{
lean_object* v___x_732_; 
v___x_732_ = l_Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1___redArg(v_m_729_, v_a_730_, v_b_731_);
return v___x_732_;
}
}
LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0_spec__2(lean_object* v_00_u03b2_733_, lean_object* v_a_734_, lean_object* v_x_735_){
_start:
{
uint8_t v___x_736_; 
v___x_736_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0_spec__2___redArg(v_a_734_, v_x_735_);
return v___x_736_;
}
}
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0_spec__2___boxed(lean_object* v_00_u03b2_737_, lean_object* v_a_738_, lean_object* v_x_739_){
_start:
{
uint8_t v_res_740_; lean_object* v_r_741_; 
v_res_740_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0_spec__2(v_00_u03b2_737_, v_a_738_, v_x_739_);
lean_dec(v_x_739_);
lean_dec_ref(v_a_738_);
v_r_741_ = lean_box(v_res_740_);
return v_r_741_;
}
}
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1_spec__4(lean_object* v_00_u03b2_742_, lean_object* v_data_743_){
_start:
{
lean_object* v___x_744_; 
v___x_744_ = l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1_spec__4___redArg(v_data_743_);
return v___x_744_;
}
}
LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1_spec__4_spec__6(lean_object* v_00_u03b2_745_, lean_object* v_i_746_, lean_object* v_source_747_, lean_object* v_target_748_){
_start:
{
lean_object* v___x_749_; 
v___x_749_ = l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1_spec__4_spec__6___redArg(v_i_746_, v_source_747_, v_target_748_);
return v___x_749_;
}
}
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1_spec__4_spec__6_spec__7(lean_object* v_00_u03b2_750_, lean_object* v_x_751_, lean_object* v_x_752_){
_start:
{
lean_object* v___x_753_; 
v___x_753_ = l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__1_spec__4_spec__6_spec__7___redArg(v_x_751_, v_x_752_);
return v___x_753_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__0(lean_object* v_as_755_, size_t v_i_756_, size_t v_stop_757_, lean_object* v_b_758_){
_start:
{
uint8_t v___x_759_; 
v___x_759_ = lean_usize_dec_eq(v_i_756_, v_stop_757_);
if (v___x_759_ == 0)
{
lean_object* v___x_760_; lean_object* v_name_761_; uint8_t v___x_762_; lean_object* v___x_763_; lean_object* v___x_764_; lean_object* v___x_765_; lean_object* v___x_766_; size_t v___x_767_; size_t v___x_768_; 
v___x_760_ = lean_array_uget_borrowed(v_as_755_, v_i_756_);
v_name_761_ = lean_ctor_get(v___x_760_, 1);
v___x_762_ = 1;
lean_inc(v_name_761_);
v___x_763_ = l_Lean_Name_toString(v_name_761_, v___x_762_);
v___x_764_ = lean_string_append(v_b_758_, v___x_763_);
lean_dec_ref(v___x_763_);
v___x_765_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__0___closed__0));
v___x_766_ = lean_string_append(v___x_764_, v___x_765_);
v___x_767_ = ((size_t)1ULL);
v___x_768_ = lean_usize_add(v_i_756_, v___x_767_);
v_i_756_ = v___x_768_;
v_b_758_ = v___x_766_;
goto _start;
}
else
{
return v_b_758_;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__0___boxed(lean_object* v_as_770_, lean_object* v_i_771_, lean_object* v_stop_772_, lean_object* v_b_773_){
_start:
{
size_t v_i_boxed_774_; size_t v_stop_boxed_775_; lean_object* v_res_776_; 
v_i_boxed_774_ = lean_unbox_usize(v_i_771_);
lean_dec(v_i_771_);
v_stop_boxed_775_ = lean_unbox_usize(v_stop_772_);
lean_dec(v_stop_772_);
v_res_776_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__0(v_as_770_, v_i_boxed_774_, v_stop_boxed_775_, v_b_773_);
lean_dec_ref(v_as_770_);
return v_res_776_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__1_spec__2(size_t v_sz_777_, size_t v_i_778_, lean_object* v_bs_779_){
_start:
{
uint8_t v___x_780_; 
v___x_780_ = lean_usize_dec_lt(v_i_778_, v_sz_777_);
if (v___x_780_ == 0)
{
return v_bs_779_;
}
else
{
lean_object* v_v_781_; lean_object* v_name_782_; lean_object* v___x_783_; lean_object* v_bs_x27_784_; lean_object* v___x_785_; lean_object* v___x_786_; size_t v___x_787_; size_t v___x_788_; lean_object* v___x_789_; 
v_v_781_ = lean_array_uget_borrowed(v_bs_779_, v_i_778_);
v_name_782_ = lean_ctor_get(v_v_781_, 1);
lean_inc(v_name_782_);
v___x_783_ = lean_unsigned_to_nat(0u);
v_bs_x27_784_ = lean_array_uset(v_bs_779_, v_i_778_, v___x_783_);
v___x_785_ = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(v_name_782_, v___x_780_);
v___x_786_ = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(v___x_786_, 0, v___x_785_);
v___x_787_ = ((size_t)1ULL);
v___x_788_ = lean_usize_add(v_i_778_, v___x_787_);
v___x_789_ = lean_array_uset(v_bs_x27_784_, v_i_778_, v___x_786_);
v_i_778_ = v___x_788_;
v_bs_779_ = v___x_789_;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__1_spec__2___boxed(lean_object* v_sz_791_, lean_object* v_i_792_, lean_object* v_bs_793_){
_start:
{
size_t v_sz_boxed_794_; size_t v_i_boxed_795_; lean_object* v_res_796_; 
v_sz_boxed_794_ = lean_unbox_usize(v_sz_791_);
lean_dec(v_sz_791_);
v_i_boxed_795_ = lean_unbox_usize(v_i_792_);
lean_dec(v_i_792_);
v_res_796_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__1_spec__2(v_sz_boxed_794_, v_i_boxed_795_, v_bs_793_);
return v_res_796_;
}
}
LEAN_EXPORT lean_object* l_Array_toJson___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__1(lean_object* v_a_797_){
_start:
{
size_t v_sz_798_; size_t v___x_799_; lean_object* v___x_800_; lean_object* v___x_801_; 
v_sz_798_ = lean_array_size(v_a_797_);
v___x_799_ = ((size_t)0ULL);
v___x_800_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__1_spec__2(v_sz_798_, v___x_799_, v_a_797_);
v___x_801_ = lean_alloc_ctor(4, 1, 0);
lean_ctor_set(v___x_801_, 0, v___x_800_);
return v___x_801_;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0(uint8_t v_fmt_802_, lean_object* v_a_803_){
_start:
{
lean_object* v___y_805_; 
if (v_fmt_802_ == 0)
{
lean_object* v___x_812_; lean_object* v___x_813_; lean_object* v___x_814_; uint8_t v___x_815_; 
v___x_812_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1));
v___x_813_ = lean_unsigned_to_nat(0u);
v___x_814_ = lean_array_get_size(v_a_803_);
v___x_815_ = lean_nat_dec_lt(v___x_813_, v___x_814_);
if (v___x_815_ == 0)
{
lean_dec_ref(v_a_803_);
v___y_805_ = v___x_812_;
goto v___jp_804_;
}
else
{
uint8_t v___x_816_; 
v___x_816_ = lean_nat_dec_le(v___x_814_, v___x_814_);
if (v___x_816_ == 0)
{
if (v___x_815_ == 0)
{
lean_dec_ref(v_a_803_);
v___y_805_ = v___x_812_;
goto v___jp_804_;
}
else
{
size_t v___x_817_; size_t v___x_818_; lean_object* v___x_819_; 
v___x_817_ = ((size_t)0ULL);
v___x_818_ = lean_usize_of_nat(v___x_814_);
v___x_819_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__0(v_a_803_, v___x_817_, v___x_818_, v___x_812_);
lean_dec_ref(v_a_803_);
v___y_805_ = v___x_819_;
goto v___jp_804_;
}
}
else
{
size_t v___x_820_; size_t v___x_821_; lean_object* v___x_822_; 
v___x_820_ = ((size_t)0ULL);
v___x_821_ = lean_usize_of_nat(v___x_814_);
v___x_822_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__0(v_a_803_, v___x_820_, v___x_821_, v___x_812_);
lean_dec_ref(v_a_803_);
v___y_805_ = v___x_822_;
goto v___jp_804_;
}
}
}
else
{
lean_object* v___x_823_; lean_object* v___x_824_; 
v___x_823_ = l_Array_toJson___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__1(v_a_803_);
v___x_824_ = l_Lean_Json_compress(v___x_823_);
return v___x_824_;
}
v___jp_804_:
{
lean_object* v___x_806_; lean_object* v___x_807_; lean_object* v___x_808_; lean_object* v___x_809_; lean_object* v___x_810_; lean_object* v___x_811_; 
v___x_806_ = lean_unsigned_to_nat(1u);
v___x_807_ = lean_unsigned_to_nat(0u);
v___x_808_ = lean_string_utf8_byte_size(v___y_805_);
lean_inc_ref(v___y_805_);
v___x_809_ = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(v___x_809_, 0, v___y_805_);
lean_ctor_set(v___x_809_, 1, v___x_807_);
lean_ctor_set(v___x_809_, 2, v___x_808_);
v___x_810_ = l_String_Slice_Pos_prevn(v___x_809_, v___x_808_, v___x_806_);
lean_dec_ref(v___x_809_);
v___x_811_ = lean_string_utf8_extract(v___y_805_, v___x_807_, v___x_810_);
lean_dec(v___x_810_);
lean_dec_ref(v___y_805_);
return v___x_811_;
}
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0___boxed(lean_object* v_fmt_825_, lean_object* v_a_826_){
_start:
{
uint8_t v_fmt_boxed_827_; lean_object* v_res_828_; 
v_fmt_boxed_827_ = lean_unbox(v_fmt_825_);
v_res_828_ = l_Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0(v_fmt_boxed_827_, v_a_826_);
return v_res_828_;
}
}
static lean_object* _init_l_Lake_Module_importsFacetConfig___closed__2(void){
_start:
{
uint8_t v___x_831_; lean_object* v___f_832_; uint8_t v___x_833_; lean_object* v___x_834_; lean_object* v___x_835_; lean_object* v___x_836_; lean_object* v___x_837_; 
v___x_831_ = 1;
v___f_832_ = ((lean_object*)(l_Lake_Module_importsFacetConfig___closed__0));
v___x_833_ = 0;
v___x_834_ = lean_box(0);
v___x_835_ = ((lean_object*)(l_Lake_Module_importsFacetConfig___closed__1));
v___x_836_ = l_Lake_Module_keyword;
v___x_837_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_837_, 0, v___x_836_);
lean_ctor_set(v___x_837_, 1, v___x_835_);
lean_ctor_set(v___x_837_, 2, v___x_834_);
lean_ctor_set(v___x_837_, 3, v___f_832_);
lean_ctor_set_uint8(v___x_837_, sizeof(void*)*4, v___x_833_);
lean_ctor_set_uint8(v___x_837_, sizeof(void*)*4 + 1, v___x_831_);
return v___x_837_;
}
}
static lean_object* _init_l_Lake_Module_importsFacetConfig(void){
_start:
{
lean_object* v___x_838_; 
v___x_838_ = lean_obj_once(&l_Lake_Module_importsFacetConfig___closed__2, &l_Lake_Module_importsFacetConfig___closed__2_once, _init_l_Lake_Module_importsFacetConfig___closed__2);
return v___x_838_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__0(lean_object* v_f_839_, lean_object* v_imp_840_, lean_object* v___y_841_, lean_object* v___y_842_, lean_object* v___y_843_, lean_object* v___y_844_, lean_object* v___y_845_, lean_object* v___y_846_){
_start:
{
lean_object* v___x_848_; 
lean_inc_ref(v_imp_840_);
v___x_848_ = lean_apply_8(v_f_839_, v_imp_840_, v___y_841_, v___y_842_, v___y_843_, v___y_844_, v___y_845_, v___y_846_, lean_box(0));
if (lean_obj_tag(v___x_848_) == 0)
{
lean_object* v_a_849_; lean_object* v_a_850_; lean_object* v___x_852_; uint8_t v_isShared_853_; uint8_t v_isSharedCheck_861_; 
v_a_849_ = lean_ctor_get(v___x_848_, 0);
v_a_850_ = lean_ctor_get(v___x_848_, 1);
v_isSharedCheck_861_ = !lean_is_exclusive(v___x_848_);
if (v_isSharedCheck_861_ == 0)
{
v___x_852_ = v___x_848_;
v_isShared_853_ = v_isSharedCheck_861_;
goto v_resetjp_851_;
}
else
{
lean_inc(v_a_850_);
lean_inc(v_a_849_);
lean_dec(v___x_848_);
v___x_852_ = lean_box(0);
v_isShared_853_ = v_isSharedCheck_861_;
goto v_resetjp_851_;
}
v_resetjp_851_:
{
lean_object* v_fst_854_; lean_object* v_snd_855_; lean_object* v___x_856_; uint8_t v___x_857_; lean_object* v___x_859_; 
v_fst_854_ = lean_ctor_get(v_a_849_, 0);
lean_inc(v_fst_854_);
v_snd_855_ = lean_ctor_get(v_a_849_, 1);
lean_inc(v_snd_855_);
lean_dec(v_a_849_);
v___x_856_ = lean_alloc_ctor(0, 2, 1);
lean_ctor_set(v___x_856_, 0, v_imp_840_);
lean_ctor_set(v___x_856_, 1, v_snd_855_);
v___x_857_ = lean_unbox(v_fst_854_);
lean_dec(v_fst_854_);
lean_ctor_set_uint8(v___x_856_, sizeof(void*)*2, v___x_857_);
if (v_isShared_853_ == 0)
{
lean_ctor_set(v___x_852_, 0, v___x_856_);
v___x_859_ = v___x_852_;
goto v_reusejp_858_;
}
else
{
lean_object* v_reuseFailAlloc_860_; 
v_reuseFailAlloc_860_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_860_, 0, v___x_856_);
lean_ctor_set(v_reuseFailAlloc_860_, 1, v_a_850_);
v___x_859_ = v_reuseFailAlloc_860_;
goto v_reusejp_858_;
}
v_reusejp_858_:
{
return v___x_859_;
}
}
}
else
{
lean_object* v_a_862_; lean_object* v_a_863_; lean_object* v___x_865_; uint8_t v_isShared_866_; uint8_t v_isSharedCheck_870_; 
lean_dec_ref(v_imp_840_);
v_a_862_ = lean_ctor_get(v___x_848_, 0);
v_a_863_ = lean_ctor_get(v___x_848_, 1);
v_isSharedCheck_870_ = !lean_is_exclusive(v___x_848_);
if (v_isSharedCheck_870_ == 0)
{
v___x_865_ = v___x_848_;
v_isShared_866_ = v_isSharedCheck_870_;
goto v_resetjp_864_;
}
else
{
lean_inc(v_a_863_);
lean_inc(v_a_862_);
lean_dec(v___x_848_);
v___x_865_ = lean_box(0);
v_isShared_866_ = v_isSharedCheck_870_;
goto v_resetjp_864_;
}
v_resetjp_864_:
{
lean_object* v___x_868_; 
if (v_isShared_866_ == 0)
{
v___x_868_ = v___x_865_;
goto v_reusejp_867_;
}
else
{
lean_object* v_reuseFailAlloc_869_; 
v_reuseFailAlloc_869_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_869_, 0, v_a_862_);
lean_ctor_set(v_reuseFailAlloc_869_, 1, v_a_863_);
v___x_868_ = v_reuseFailAlloc_869_;
goto v_reusejp_867_;
}
v_reusejp_867_:
{
return v___x_868_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__0___boxed(lean_object* v_f_871_, lean_object* v_imp_872_, lean_object* v___y_873_, lean_object* v___y_874_, lean_object* v___y_875_, lean_object* v___y_876_, lean_object* v___y_877_, lean_object* v___y_878_, lean_object* v___y_879_){
_start:
{
lean_object* v_res_880_; 
v_res_880_ = l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__0(v_f_871_, v_imp_872_, v___y_873_, v___y_874_, v___y_875_, v___y_876_, v___y_877_, v___y_878_);
return v_res_880_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__1(lean_object* v_x_881_){
_start:
{
if (lean_obj_tag(v_x_881_) == 0)
{
lean_object* v_a_882_; lean_object* v_a_883_; lean_object* v___x_885_; uint8_t v_isShared_886_; uint8_t v_isSharedCheck_891_; 
v_a_882_ = lean_ctor_get(v_x_881_, 0);
v_a_883_ = lean_ctor_get(v_x_881_, 1);
v_isSharedCheck_891_ = !lean_is_exclusive(v_x_881_);
if (v_isSharedCheck_891_ == 0)
{
v___x_885_ = v_x_881_;
v_isShared_886_ = v_isSharedCheck_891_;
goto v_resetjp_884_;
}
else
{
lean_inc(v_a_883_);
lean_inc(v_a_882_);
lean_dec(v_x_881_);
v___x_885_ = lean_box(0);
v_isShared_886_ = v_isSharedCheck_891_;
goto v_resetjp_884_;
}
v_resetjp_884_:
{
lean_object* v_toArray_887_; lean_object* v___x_889_; 
v_toArray_887_ = lean_ctor_get(v_a_882_, 1);
lean_inc_ref(v_toArray_887_);
lean_dec(v_a_882_);
if (v_isShared_886_ == 0)
{
lean_ctor_set(v___x_885_, 0, v_toArray_887_);
v___x_889_ = v___x_885_;
goto v_reusejp_888_;
}
else
{
lean_object* v_reuseFailAlloc_890_; 
v_reuseFailAlloc_890_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_890_, 0, v_toArray_887_);
lean_ctor_set(v_reuseFailAlloc_890_, 1, v_a_883_);
v___x_889_ = v_reuseFailAlloc_890_;
goto v_reusejp_888_;
}
v_reusejp_888_:
{
return v___x_889_;
}
}
}
else
{
lean_object* v_a_892_; lean_object* v_a_893_; lean_object* v___x_895_; uint8_t v_isShared_896_; uint8_t v_isSharedCheck_900_; 
v_a_892_ = lean_ctor_get(v_x_881_, 0);
v_a_893_ = lean_ctor_get(v_x_881_, 1);
v_isSharedCheck_900_ = !lean_is_exclusive(v_x_881_);
if (v_isSharedCheck_900_ == 0)
{
v___x_895_ = v_x_881_;
v_isShared_896_ = v_isSharedCheck_900_;
goto v_resetjp_894_;
}
else
{
lean_inc(v_a_893_);
lean_inc(v_a_892_);
lean_dec(v_x_881_);
v___x_895_ = lean_box(0);
v_isShared_896_ = v_isSharedCheck_900_;
goto v_resetjp_894_;
}
v_resetjp_894_:
{
lean_object* v___x_898_; 
if (v_isShared_896_ == 0)
{
v___x_898_ = v___x_895_;
goto v_reusejp_897_;
}
else
{
lean_object* v_reuseFailAlloc_899_; 
v_reuseFailAlloc_899_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_899_, 0, v_a_892_);
lean_ctor_set(v_reuseFailAlloc_899_, 1, v_a_893_);
v___x_898_ = v_reuseFailAlloc_899_;
goto v_reusejp_897_;
}
v_reusejp_897_:
{
return v___x_898_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__2(lean_object* v_r_903_, lean_object* v___f_904_, lean_object* v___f_905_, uint8_t v_includeSelf_906_, lean_object* v_module_907_, lean_object* v_fileName_908_, uint8_t v___x_909_, lean_object* v_x_910_){
_start:
{
if (lean_obj_tag(v_x_910_) == 0)
{
lean_dec_ref(v_fileName_908_);
if (lean_obj_tag(v_r_903_) == 0)
{
lean_object* v_a_911_; lean_object* v_a_912_; lean_object* v_a_913_; lean_object* v___x_915_; uint8_t v_isShared_916_; uint8_t v_isSharedCheck_925_; 
v_a_911_ = lean_ctor_get(v_x_910_, 0);
lean_inc(v_a_911_);
lean_dec_ref(v_x_910_);
v_a_912_ = lean_ctor_get(v_r_903_, 0);
v_a_913_ = lean_ctor_get(v_r_903_, 1);
v_isSharedCheck_925_ = !lean_is_exclusive(v_r_903_);
if (v_isSharedCheck_925_ == 0)
{
v___x_915_ = v_r_903_;
v_isShared_916_ = v_isSharedCheck_925_;
goto v_resetjp_914_;
}
else
{
lean_inc(v_a_913_);
lean_inc(v_a_912_);
lean_dec(v_r_903_);
v___x_915_ = lean_box(0);
v_isShared_916_ = v_isSharedCheck_925_;
goto v_resetjp_914_;
}
v_resetjp_914_:
{
lean_object* v___x_917_; 
lean_inc_ref(v___f_905_);
lean_inc_ref(v___f_904_);
v___x_917_ = l_Lake_OrdHashSet_appendArray___redArg(v___f_904_, v___f_905_, v_a_912_, v_a_911_);
if (v_includeSelf_906_ == 0)
{
lean_object* v___x_919_; 
lean_dec_ref(v_module_907_);
lean_dec_ref(v___f_905_);
lean_dec_ref(v___f_904_);
if (v_isShared_916_ == 0)
{
lean_ctor_set(v___x_915_, 0, v___x_917_);
v___x_919_ = v___x_915_;
goto v_reusejp_918_;
}
else
{
lean_object* v_reuseFailAlloc_920_; 
v_reuseFailAlloc_920_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_920_, 0, v___x_917_);
lean_ctor_set(v_reuseFailAlloc_920_, 1, v_a_913_);
v___x_919_ = v_reuseFailAlloc_920_;
goto v_reusejp_918_;
}
v_reusejp_918_:
{
return v___x_919_;
}
}
else
{
lean_object* v___x_921_; lean_object* v___x_923_; 
v___x_921_ = l_Lake_OrdHashSet_insert___redArg(v___f_904_, v___f_905_, v___x_917_, v_module_907_);
if (v_isShared_916_ == 0)
{
lean_ctor_set(v___x_915_, 0, v___x_921_);
v___x_923_ = v___x_915_;
goto v_reusejp_922_;
}
else
{
lean_object* v_reuseFailAlloc_924_; 
v_reuseFailAlloc_924_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_924_, 0, v___x_921_);
lean_ctor_set(v_reuseFailAlloc_924_, 1, v_a_913_);
v___x_923_ = v_reuseFailAlloc_924_;
goto v_reusejp_922_;
}
v_reusejp_922_:
{
return v___x_923_;
}
}
}
}
else
{
lean_dec_ref(v_x_910_);
lean_dec_ref(v_module_907_);
lean_dec_ref(v___f_905_);
lean_dec_ref(v___f_904_);
return v_r_903_;
}
}
else
{
lean_object* v_name_926_; lean_object* v___x_927_; lean_object* v___x_928_; lean_object* v___x_929_; lean_object* v___x_930_; lean_object* v___x_931_; lean_object* v___x_932_; uint8_t v___x_933_; lean_object* v___x_934_; 
lean_dec_ref(v_x_910_);
lean_dec_ref(v___f_905_);
lean_dec_ref(v___f_904_);
v_name_926_ = lean_ctor_get(v_module_907_, 1);
lean_inc(v_name_926_);
lean_dec_ref(v_module_907_);
v___x_927_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__2___closed__0));
v___x_928_ = lean_string_append(v_fileName_908_, v___x_927_);
v___x_929_ = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(v_name_926_, v___x_909_);
v___x_930_ = lean_string_append(v___x_928_, v___x_929_);
lean_dec_ref(v___x_929_);
v___x_931_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__2___closed__1));
v___x_932_ = lean_string_append(v___x_930_, v___x_931_);
v___x_933_ = 3;
v___x_934_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_934_, 0, v___x_932_);
lean_ctor_set_uint8(v___x_934_, sizeof(void*)*1, v___x_933_);
if (lean_obj_tag(v_r_903_) == 0)
{
lean_object* v_a_935_; lean_object* v___x_937_; uint8_t v_isShared_938_; uint8_t v_isSharedCheck_956_; 
v_a_935_ = lean_ctor_get(v_r_903_, 1);
v_isSharedCheck_956_ = !lean_is_exclusive(v_r_903_);
if (v_isSharedCheck_956_ == 0)
{
lean_object* v_unused_957_; 
v_unused_957_ = lean_ctor_get(v_r_903_, 0);
lean_dec(v_unused_957_);
v___x_937_ = v_r_903_;
v_isShared_938_ = v_isSharedCheck_956_;
goto v_resetjp_936_;
}
else
{
lean_inc(v_a_935_);
lean_dec(v_r_903_);
v___x_937_ = lean_box(0);
v_isShared_938_ = v_isSharedCheck_956_;
goto v_resetjp_936_;
}
v_resetjp_936_:
{
lean_object* v_log_939_; uint8_t v_action_940_; uint8_t v_wantsRebuild_941_; lean_object* v_trace_942_; lean_object* v_buildTime_943_; lean_object* v___x_945_; uint8_t v_isShared_946_; uint8_t v_isSharedCheck_955_; 
v_log_939_ = lean_ctor_get(v_a_935_, 0);
v_action_940_ = lean_ctor_get_uint8(v_a_935_, sizeof(void*)*3);
v_wantsRebuild_941_ = lean_ctor_get_uint8(v_a_935_, sizeof(void*)*3 + 1);
v_trace_942_ = lean_ctor_get(v_a_935_, 1);
v_buildTime_943_ = lean_ctor_get(v_a_935_, 2);
v_isSharedCheck_955_ = !lean_is_exclusive(v_a_935_);
if (v_isSharedCheck_955_ == 0)
{
v___x_945_ = v_a_935_;
v_isShared_946_ = v_isSharedCheck_955_;
goto v_resetjp_944_;
}
else
{
lean_inc(v_buildTime_943_);
lean_inc(v_trace_942_);
lean_inc(v_log_939_);
lean_dec(v_a_935_);
v___x_945_ = lean_box(0);
v_isShared_946_ = v_isSharedCheck_955_;
goto v_resetjp_944_;
}
v_resetjp_944_:
{
lean_object* v___x_947_; lean_object* v___x_948_; lean_object* v___x_950_; 
v___x_947_ = lean_unsigned_to_nat(0u);
v___x_948_ = lean_array_push(v_log_939_, v___x_934_);
if (v_isShared_946_ == 0)
{
lean_ctor_set(v___x_945_, 0, v___x_948_);
v___x_950_ = v___x_945_;
goto v_reusejp_949_;
}
else
{
lean_object* v_reuseFailAlloc_954_; 
v_reuseFailAlloc_954_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_954_, 0, v___x_948_);
lean_ctor_set(v_reuseFailAlloc_954_, 1, v_trace_942_);
lean_ctor_set(v_reuseFailAlloc_954_, 2, v_buildTime_943_);
lean_ctor_set_uint8(v_reuseFailAlloc_954_, sizeof(void*)*3, v_action_940_);
lean_ctor_set_uint8(v_reuseFailAlloc_954_, sizeof(void*)*3 + 1, v_wantsRebuild_941_);
v___x_950_ = v_reuseFailAlloc_954_;
goto v_reusejp_949_;
}
v_reusejp_949_:
{
lean_object* v___x_952_; 
if (v_isShared_938_ == 0)
{
lean_ctor_set_tag(v___x_937_, 1);
lean_ctor_set(v___x_937_, 1, v___x_950_);
lean_ctor_set(v___x_937_, 0, v___x_947_);
v___x_952_ = v___x_937_;
goto v_reusejp_951_;
}
else
{
lean_object* v_reuseFailAlloc_953_; 
v_reuseFailAlloc_953_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_953_, 0, v___x_947_);
lean_ctor_set(v_reuseFailAlloc_953_, 1, v___x_950_);
v___x_952_ = v_reuseFailAlloc_953_;
goto v_reusejp_951_;
}
v_reusejp_951_:
{
return v___x_952_;
}
}
}
}
}
else
{
lean_object* v_a_958_; lean_object* v_a_959_; lean_object* v___x_961_; uint8_t v_isShared_962_; uint8_t v_isSharedCheck_979_; 
v_a_958_ = lean_ctor_get(v_r_903_, 1);
v_a_959_ = lean_ctor_get(v_r_903_, 0);
v_isSharedCheck_979_ = !lean_is_exclusive(v_r_903_);
if (v_isSharedCheck_979_ == 0)
{
v___x_961_ = v_r_903_;
v_isShared_962_ = v_isSharedCheck_979_;
goto v_resetjp_960_;
}
else
{
lean_inc(v_a_958_);
lean_inc(v_a_959_);
lean_dec(v_r_903_);
v___x_961_ = lean_box(0);
v_isShared_962_ = v_isSharedCheck_979_;
goto v_resetjp_960_;
}
v_resetjp_960_:
{
lean_object* v_log_963_; uint8_t v_action_964_; uint8_t v_wantsRebuild_965_; lean_object* v_trace_966_; lean_object* v_buildTime_967_; lean_object* v___x_969_; uint8_t v_isShared_970_; uint8_t v_isSharedCheck_978_; 
v_log_963_ = lean_ctor_get(v_a_958_, 0);
v_action_964_ = lean_ctor_get_uint8(v_a_958_, sizeof(void*)*3);
v_wantsRebuild_965_ = lean_ctor_get_uint8(v_a_958_, sizeof(void*)*3 + 1);
v_trace_966_ = lean_ctor_get(v_a_958_, 1);
v_buildTime_967_ = lean_ctor_get(v_a_958_, 2);
v_isSharedCheck_978_ = !lean_is_exclusive(v_a_958_);
if (v_isSharedCheck_978_ == 0)
{
v___x_969_ = v_a_958_;
v_isShared_970_ = v_isSharedCheck_978_;
goto v_resetjp_968_;
}
else
{
lean_inc(v_buildTime_967_);
lean_inc(v_trace_966_);
lean_inc(v_log_963_);
lean_dec(v_a_958_);
v___x_969_ = lean_box(0);
v_isShared_970_ = v_isSharedCheck_978_;
goto v_resetjp_968_;
}
v_resetjp_968_:
{
lean_object* v___x_971_; lean_object* v___x_973_; 
v___x_971_ = lean_array_push(v_log_963_, v___x_934_);
if (v_isShared_970_ == 0)
{
lean_ctor_set(v___x_969_, 0, v___x_971_);
v___x_973_ = v___x_969_;
goto v_reusejp_972_;
}
else
{
lean_object* v_reuseFailAlloc_977_; 
v_reuseFailAlloc_977_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_977_, 0, v___x_971_);
lean_ctor_set(v_reuseFailAlloc_977_, 1, v_trace_966_);
lean_ctor_set(v_reuseFailAlloc_977_, 2, v_buildTime_967_);
lean_ctor_set_uint8(v_reuseFailAlloc_977_, sizeof(void*)*3, v_action_964_);
lean_ctor_set_uint8(v_reuseFailAlloc_977_, sizeof(void*)*3 + 1, v_wantsRebuild_965_);
v___x_973_ = v_reuseFailAlloc_977_;
goto v_reusejp_972_;
}
v_reusejp_972_:
{
lean_object* v___x_975_; 
if (v_isShared_962_ == 0)
{
lean_ctor_set(v___x_961_, 1, v___x_973_);
v___x_975_ = v___x_961_;
goto v_reusejp_974_;
}
else
{
lean_object* v_reuseFailAlloc_976_; 
v_reuseFailAlloc_976_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_976_, 0, v_a_959_);
lean_ctor_set(v_reuseFailAlloc_976_, 1, v___x_973_);
v___x_975_ = v_reuseFailAlloc_976_;
goto v_reusejp_974_;
}
v_reusejp_974_:
{
return v___x_975_;
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__2___boxed(lean_object* v_r_980_, lean_object* v___f_981_, lean_object* v___f_982_, lean_object* v_includeSelf_983_, lean_object* v_module_984_, lean_object* v_fileName_985_, lean_object* v___x_986_, lean_object* v_x_987_){
_start:
{
uint8_t v_includeSelf_boxed_988_; uint8_t v___x_4969__boxed_989_; lean_object* v_res_990_; 
v_includeSelf_boxed_988_ = lean_unbox(v_includeSelf_983_);
v___x_4969__boxed_989_ = lean_unbox(v___x_986_);
v_res_990_ = l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__2(v_r_980_, v___f_981_, v___f_982_, v_includeSelf_boxed_988_, v_module_984_, v_fileName_985_, v___x_4969__boxed_989_, v_x_987_);
return v_res_990_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__3(lean_object* v_x2_991_, lean_object* v___f_992_, lean_object* v___f_993_, lean_object* v_fileName_994_, uint8_t v___x_995_, lean_object* v_r_996_){
_start:
{
lean_object* v_transImports_997_; lean_object* v_module_998_; uint8_t v_includeSelf_999_; lean_object* v_task_1000_; lean_object* v___x_1001_; lean_object* v___x_1002_; lean_object* v___f_1003_; lean_object* v___x_1004_; lean_object* v___x_1005_; 
v_transImports_997_ = lean_ctor_get(v_x2_991_, 1);
lean_inc_ref(v_transImports_997_);
v_module_998_ = lean_ctor_get(v_x2_991_, 0);
lean_inc_ref(v_module_998_);
v_includeSelf_999_ = lean_ctor_get_uint8(v_x2_991_, sizeof(void*)*2);
lean_dec_ref(v_x2_991_);
v_task_1000_ = lean_ctor_get(v_transImports_997_, 0);
lean_inc_ref(v_task_1000_);
lean_dec_ref(v_transImports_997_);
v___x_1001_ = lean_box(v_includeSelf_999_);
v___x_1002_ = lean_box(v___x_995_);
v___f_1003_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__2___boxed), 8, 7);
lean_closure_set(v___f_1003_, 0, v_r_996_);
lean_closure_set(v___f_1003_, 1, v___f_992_);
lean_closure_set(v___f_1003_, 2, v___f_993_);
lean_closure_set(v___f_1003_, 3, v___x_1001_);
lean_closure_set(v___f_1003_, 4, v_module_998_);
lean_closure_set(v___f_1003_, 5, v_fileName_994_);
lean_closure_set(v___f_1003_, 6, v___x_1002_);
v___x_1004_ = lean_unsigned_to_nat(0u);
v___x_1005_ = lean_task_map(v___f_1003_, v_task_1000_, v___x_1004_, v___x_995_);
return v___x_1005_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__3___boxed(lean_object* v_x2_1006_, lean_object* v___f_1007_, lean_object* v___f_1008_, lean_object* v_fileName_1009_, lean_object* v___x_1010_, lean_object* v_r_1011_){
_start:
{
uint8_t v___x_5102__boxed_1012_; lean_object* v_res_1013_; 
v___x_5102__boxed_1012_ = lean_unbox(v___x_1010_);
v_res_1013_ = l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__3(v_x2_1006_, v___f_1007_, v___f_1008_, v_fileName_1009_, v___x_5102__boxed_1012_, v_r_1011_);
return v_res_1013_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__4(lean_object* v___f_1014_, lean_object* v___f_1015_, lean_object* v_fileName_1016_, uint8_t v___x_1017_, lean_object* v_x1_1018_, lean_object* v_x2_1019_){
_start:
{
lean_object* v___x_1020_; lean_object* v___f_1021_; lean_object* v___x_1022_; lean_object* v___x_1023_; 
v___x_1020_ = lean_box(v___x_1017_);
v___f_1021_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__3___boxed), 6, 5);
lean_closure_set(v___f_1021_, 0, v_x2_1019_);
lean_closure_set(v___f_1021_, 1, v___f_1014_);
lean_closure_set(v___f_1021_, 2, v___f_1015_);
lean_closure_set(v___f_1021_, 3, v_fileName_1016_);
lean_closure_set(v___f_1021_, 4, v___x_1020_);
v___x_1022_ = lean_unsigned_to_nat(0u);
v___x_1023_ = lean_task_bind(v_x1_1018_, v___f_1021_, v___x_1022_, v___x_1017_);
return v___x_1023_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__4___boxed(lean_object* v___f_1024_, lean_object* v___f_1025_, lean_object* v_fileName_1026_, lean_object* v___x_1027_, lean_object* v_x1_1028_, lean_object* v_x2_1029_){
_start:
{
uint8_t v___x_5123__boxed_1030_; lean_object* v_res_1031_; 
v___x_5123__boxed_1030_ = lean_unbox(v___x_1027_);
v_res_1031_ = l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__4(v___f_1024_, v___f_1025_, v_fileName_1026_, v___x_5123__boxed_1030_, v_x1_1028_, v_x2_1029_);
return v_res_1031_;
}
}
static lean_object* _init_l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__0(void){
_start:
{
lean_object* v___x_1032_; 
v___x_1032_ = l_instMonadST(lean_box(0));
return v___x_1032_;
}
}
static lean_object* _init_l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__4(void){
_start:
{
lean_object* v___f_1036_; lean_object* v___f_1037_; lean_object* v___x_1038_; 
v___f_1036_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__3));
v___f_1037_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__2));
v___x_1038_ = l_Lake_OrdHashSet_empty(lean_box(0), v___f_1037_, v___f_1036_);
return v___x_1038_;
}
}
static lean_object* _init_l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__6(void){
_start:
{
lean_object* v___x_1041_; lean_object* v___x_1042_; uint8_t v___x_1043_; uint8_t v___x_1044_; lean_object* v___x_1045_; lean_object* v___x_1046_; 
v___x_1041_ = lean_unsigned_to_nat(0u);
v___x_1042_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_1043_ = 0;
v___x_1044_ = 0;
v___x_1045_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__5));
v___x_1046_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v___x_1046_, 0, v___x_1045_);
lean_ctor_set(v___x_1046_, 1, v___x_1042_);
lean_ctor_set(v___x_1046_, 2, v___x_1041_);
lean_ctor_set_uint8(v___x_1046_, sizeof(void*)*3, v___x_1044_);
lean_ctor_set_uint8(v___x_1046_, sizeof(void*)*3 + 1, v___x_1043_);
return v___x_1046_;
}
}
static lean_object* _init_l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__7(void){
_start:
{
lean_object* v___x_1047_; lean_object* v___x_1048_; lean_object* v___x_1049_; 
v___x_1047_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__6, &l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__6_once, _init_l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__6);
v___x_1048_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__4, &l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__4_once, _init_l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__4);
v___x_1049_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_1049_, 0, v___x_1048_);
lean_ctor_set(v___x_1049_, 1, v___x_1047_);
return v___x_1049_;
}
}
static lean_object* _init_l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__8(void){
_start:
{
lean_object* v___x_1050_; lean_object* v___x_1051_; 
v___x_1050_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__7, &l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__7_once, _init_l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__7);
v___x_1051_ = lean_task_pure(v___x_1050_);
return v___x_1051_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux(lean_object* v_fileName_1071_, lean_object* v_imports_1072_, lean_object* v_f_1073_, lean_object* v_a_1074_, lean_object* v_a_1075_, lean_object* v_a_1076_, lean_object* v_a_1077_, lean_object* v_a_1078_, lean_object* v_a_1079_){
_start:
{
lean_object* v___x_1081_; lean_object* v_toApplicative_1082_; lean_object* v_toBind_1083_; lean_object* v___x_1085_; uint8_t v_isShared_1086_; uint8_t v_isSharedCheck_1160_; 
v___x_1081_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__0, &l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__0_once, _init_l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__0);
v_toApplicative_1082_ = lean_ctor_get(v___x_1081_, 0);
v_toBind_1083_ = lean_ctor_get(v___x_1081_, 1);
v_isSharedCheck_1160_ = !lean_is_exclusive(v___x_1081_);
if (v_isSharedCheck_1160_ == 0)
{
v___x_1085_ = v___x_1081_;
v_isShared_1086_ = v_isSharedCheck_1160_;
goto v_resetjp_1084_;
}
else
{
lean_inc(v_toBind_1083_);
lean_inc(v_toApplicative_1082_);
lean_dec(v___x_1081_);
v___x_1085_ = lean_box(0);
v_isShared_1086_ = v_isSharedCheck_1160_;
goto v_resetjp_1084_;
}
v_resetjp_1084_:
{
lean_object* v_toFunctor_1087_; lean_object* v_toPure_1088_; lean_object* v___x_1090_; uint8_t v_isShared_1091_; uint8_t v_isSharedCheck_1156_; 
v_toFunctor_1087_ = lean_ctor_get(v_toApplicative_1082_, 0);
v_toPure_1088_ = lean_ctor_get(v_toApplicative_1082_, 1);
v_isSharedCheck_1156_ = !lean_is_exclusive(v_toApplicative_1082_);
if (v_isSharedCheck_1156_ == 0)
{
lean_object* v_unused_1157_; lean_object* v_unused_1158_; lean_object* v_unused_1159_; 
v_unused_1157_ = lean_ctor_get(v_toApplicative_1082_, 4);
lean_dec(v_unused_1157_);
v_unused_1158_ = lean_ctor_get(v_toApplicative_1082_, 3);
lean_dec(v_unused_1158_);
v_unused_1159_ = lean_ctor_get(v_toApplicative_1082_, 2);
lean_dec(v_unused_1159_);
v___x_1090_ = v_toApplicative_1082_;
v_isShared_1091_ = v_isSharedCheck_1156_;
goto v_resetjp_1089_;
}
else
{
lean_inc(v_toPure_1088_);
lean_inc(v_toFunctor_1087_);
lean_dec(v_toApplicative_1082_);
v___x_1090_ = lean_box(0);
v_isShared_1091_ = v_isSharedCheck_1156_;
goto v_resetjp_1089_;
}
v_resetjp_1089_:
{
lean_object* v___f_1092_; lean_object* v___f_1093_; lean_object* v___f_1094_; lean_object* v___f_1095_; lean_object* v___f_1096_; lean_object* v___x_1097_; lean_object* v___f_1098_; lean_object* v___x_1100_; 
v___f_1092_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__0___boxed), 9, 1);
lean_closure_set(v___f_1092_, 0, v_f_1073_);
lean_inc(v_toBind_1083_);
lean_inc(v_toPure_1088_);
v___f_1093_ = lean_alloc_closure((void*)(l_Lake_EStateT_instMonad___redArg___lam__1), 7, 2);
lean_closure_set(v___f_1093_, 0, v_toPure_1088_);
lean_closure_set(v___f_1093_, 1, v_toBind_1083_);
lean_inc(v_toBind_1083_);
lean_inc(v_toPure_1088_);
v___f_1094_ = lean_alloc_closure((void*)(l_Lake_EStateT_instMonad___redArg___lam__3), 7, 2);
lean_closure_set(v___f_1094_, 0, v_toPure_1088_);
lean_closure_set(v___f_1094_, 1, v_toBind_1083_);
lean_inc_ref(v___f_1093_);
lean_inc(v_toPure_1088_);
v___f_1095_ = lean_alloc_closure((void*)(l_Lake_EStateT_instMonad___redArg___lam__5), 7, 2);
lean_closure_set(v___f_1095_, 0, v_toPure_1088_);
lean_closure_set(v___f_1095_, 1, v___f_1093_);
lean_inc(v_toPure_1088_);
lean_inc_ref(v_toFunctor_1087_);
v___f_1096_ = lean_alloc_closure((void*)(l_Lake_EStateT_instMonad___redArg___lam__9), 8, 3);
lean_closure_set(v___f_1096_, 0, v_toFunctor_1087_);
lean_closure_set(v___f_1096_, 1, v_toPure_1088_);
lean_closure_set(v___f_1096_, 2, v_toBind_1083_);
v___x_1097_ = l_Lake_EStateT_instFunctor___redArg(v_toFunctor_1087_);
v___f_1098_ = lean_alloc_closure((void*)(l_Lake_EStateT_instPure___redArg___lam__0), 4, 1);
lean_closure_set(v___f_1098_, 0, v_toPure_1088_);
if (v_isShared_1091_ == 0)
{
lean_ctor_set(v___x_1090_, 4, v___f_1094_);
lean_ctor_set(v___x_1090_, 3, v___f_1095_);
lean_ctor_set(v___x_1090_, 2, v___f_1096_);
lean_ctor_set(v___x_1090_, 1, v___f_1098_);
lean_ctor_set(v___x_1090_, 0, v___x_1097_);
v___x_1100_ = v___x_1090_;
goto v_reusejp_1099_;
}
else
{
lean_object* v_reuseFailAlloc_1155_; 
v_reuseFailAlloc_1155_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_1155_, 0, v___x_1097_);
lean_ctor_set(v_reuseFailAlloc_1155_, 1, v___f_1098_);
lean_ctor_set(v_reuseFailAlloc_1155_, 2, v___f_1096_);
lean_ctor_set(v_reuseFailAlloc_1155_, 3, v___f_1095_);
lean_ctor_set(v_reuseFailAlloc_1155_, 4, v___f_1094_);
v___x_1100_ = v_reuseFailAlloc_1155_;
goto v_reusejp_1099_;
}
v_reusejp_1099_:
{
lean_object* v___x_1102_; 
if (v_isShared_1086_ == 0)
{
lean_ctor_set(v___x_1085_, 1, v___f_1093_);
lean_ctor_set(v___x_1085_, 0, v___x_1100_);
v___x_1102_ = v___x_1085_;
goto v_reusejp_1101_;
}
else
{
lean_object* v_reuseFailAlloc_1154_; 
v_reuseFailAlloc_1154_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_1154_, 0, v___x_1100_);
lean_ctor_set(v_reuseFailAlloc_1154_, 1, v___f_1093_);
v___x_1102_ = v_reuseFailAlloc_1154_;
goto v_reusejp_1101_;
}
v_reusejp_1101_:
{
lean_object* v___x_1103_; lean_object* v___x_1104_; lean_object* v___x_1105_; lean_object* v___x_1106_; lean_object* v___x_1107_; size_t v_sz_1108_; size_t v___x_1109_; lean_object* v___x_4756__overap_1110_; lean_object* v___x_1111_; 
v___x_1103_ = l_ReaderT_instMonad___redArg(v___x_1102_);
v___x_1104_ = l_ReaderT_instMonad___redArg(v___x_1103_);
v___x_1105_ = l_ReaderT_instMonad___redArg(v___x_1104_);
v___x_1106_ = l_ReaderT_instMonad___redArg(v___x_1105_);
v___x_1107_ = l_Lake_EquipT_instMonad___redArg(v___x_1106_);
v_sz_1108_ = lean_array_size(v_imports_1072_);
v___x_1109_ = ((size_t)0ULL);
v___x_4756__overap_1110_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map(lean_box(0), lean_box(0), lean_box(0), v___x_1107_, v___f_1092_, v_sz_1108_, v___x_1109_, v_imports_1072_);
v___x_1111_ = lean_apply_7(v___x_4756__overap_1110_, v_a_1074_, v_a_1075_, v_a_1076_, v_a_1077_, v_a_1078_, v_a_1079_, lean_box(0));
if (lean_obj_tag(v___x_1111_) == 0)
{
lean_object* v_a_1112_; lean_object* v_a_1113_; lean_object* v___x_1115_; uint8_t v_isShared_1116_; uint8_t v_isSharedCheck_1144_; 
v_a_1112_ = lean_ctor_get(v___x_1111_, 0);
v_a_1113_ = lean_ctor_get(v___x_1111_, 1);
v_isSharedCheck_1144_ = !lean_is_exclusive(v___x_1111_);
if (v_isSharedCheck_1144_ == 0)
{
v___x_1115_ = v___x_1111_;
v_isShared_1116_ = v_isSharedCheck_1144_;
goto v_resetjp_1114_;
}
else
{
lean_inc(v_a_1113_);
lean_inc(v_a_1112_);
lean_dec(v___x_1111_);
v___x_1115_ = lean_box(0);
v_isShared_1116_ = v_isSharedCheck_1144_;
goto v_resetjp_1114_;
}
v_resetjp_1114_:
{
lean_object* v___f_1117_; lean_object* v___f_1118_; lean_object* v___f_1119_; lean_object* v___x_1120_; lean_object* v___y_1122_; lean_object* v___x_1132_; lean_object* v___x_1133_; lean_object* v___x_1134_; lean_object* v___x_1135_; uint8_t v___x_1136_; 
v___f_1117_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__1));
v___f_1118_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__2));
v___f_1119_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__3));
v___x_1120_ = lean_box(0);
v___x_1132_ = lean_unsigned_to_nat(0u);
v___x_1133_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__8, &l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__8_once, _init_l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__8);
v___x_1134_ = lean_array_get_size(v_a_1112_);
v___x_1135_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__18));
v___x_1136_ = lean_nat_dec_lt(v___x_1132_, v___x_1134_);
if (v___x_1136_ == 0)
{
lean_dec(v_a_1112_);
lean_dec_ref(v_fileName_1071_);
v___y_1122_ = v___x_1133_;
goto v___jp_1121_;
}
else
{
lean_object* v___x_1137_; lean_object* v___f_1138_; uint8_t v___x_1139_; 
v___x_1137_ = lean_box(v___x_1136_);
v___f_1138_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__4___boxed), 6, 4);
lean_closure_set(v___f_1138_, 0, v___f_1118_);
lean_closure_set(v___f_1138_, 1, v___f_1119_);
lean_closure_set(v___f_1138_, 2, v_fileName_1071_);
lean_closure_set(v___f_1138_, 3, v___x_1137_);
v___x_1139_ = lean_nat_dec_le(v___x_1134_, v___x_1134_);
if (v___x_1139_ == 0)
{
if (v___x_1136_ == 0)
{
lean_dec_ref(v___f_1138_);
lean_dec(v_a_1112_);
v___y_1122_ = v___x_1133_;
goto v___jp_1121_;
}
else
{
size_t v___x_1140_; lean_object* v___x_1141_; 
v___x_1140_ = lean_usize_of_nat(v___x_1134_);
v___x_1141_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_1135_, v___f_1138_, v_a_1112_, v___x_1109_, v___x_1140_, v___x_1133_);
v___y_1122_ = v___x_1141_;
goto v___jp_1121_;
}
}
else
{
size_t v___x_1142_; lean_object* v___x_1143_; 
v___x_1142_ = lean_usize_of_nat(v___x_1134_);
v___x_1143_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_1135_, v___f_1138_, v_a_1112_, v___x_1109_, v___x_1142_, v___x_1133_);
v___y_1122_ = v___x_1143_;
goto v___jp_1121_;
}
}
v___jp_1121_:
{
lean_object* v___x_1123_; uint8_t v___x_1124_; lean_object* v___x_1125_; lean_object* v___x_1126_; uint8_t v___x_1127_; lean_object* v___x_1128_; lean_object* v___x_1130_; 
v___x_1123_ = lean_unsigned_to_nat(0u);
v___x_1124_ = 1;
v___x_1125_ = lean_task_map(v___f_1117_, v___y_1122_, v___x_1123_, v___x_1124_);
v___x_1126_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1));
v___x_1127_ = 0;
v___x_1128_ = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(v___x_1128_, 0, v___x_1125_);
lean_ctor_set(v___x_1128_, 1, v___x_1120_);
lean_ctor_set(v___x_1128_, 2, v___x_1126_);
lean_ctor_set_uint8(v___x_1128_, sizeof(void*)*3, v___x_1127_);
if (v_isShared_1116_ == 0)
{
lean_ctor_set(v___x_1115_, 0, v___x_1128_);
v___x_1130_ = v___x_1115_;
goto v_reusejp_1129_;
}
else
{
lean_object* v_reuseFailAlloc_1131_; 
v_reuseFailAlloc_1131_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_1131_, 0, v___x_1128_);
lean_ctor_set(v_reuseFailAlloc_1131_, 1, v_a_1113_);
v___x_1130_ = v_reuseFailAlloc_1131_;
goto v_reusejp_1129_;
}
v_reusejp_1129_:
{
return v___x_1130_;
}
}
}
}
else
{
lean_object* v_a_1145_; lean_object* v_a_1146_; lean_object* v___x_1148_; uint8_t v_isShared_1149_; uint8_t v_isSharedCheck_1153_; 
lean_dec_ref(v_fileName_1071_);
v_a_1145_ = lean_ctor_get(v___x_1111_, 0);
v_a_1146_ = lean_ctor_get(v___x_1111_, 1);
v_isSharedCheck_1153_ = !lean_is_exclusive(v___x_1111_);
if (v_isSharedCheck_1153_ == 0)
{
v___x_1148_ = v___x_1111_;
v_isShared_1149_ = v_isSharedCheck_1153_;
goto v_resetjp_1147_;
}
else
{
lean_inc(v_a_1146_);
lean_inc(v_a_1145_);
lean_dec(v___x_1111_);
v___x_1148_ = lean_box(0);
v_isShared_1149_ = v_isSharedCheck_1153_;
goto v_resetjp_1147_;
}
v_resetjp_1147_:
{
lean_object* v___x_1151_; 
if (v_isShared_1149_ == 0)
{
v___x_1151_ = v___x_1148_;
goto v_reusejp_1150_;
}
else
{
lean_object* v_reuseFailAlloc_1152_; 
v_reuseFailAlloc_1152_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_1152_, 0, v_a_1145_);
lean_ctor_set(v_reuseFailAlloc_1152_, 1, v_a_1146_);
v___x_1151_ = v_reuseFailAlloc_1152_;
goto v_reusejp_1150_;
}
v_reusejp_1150_:
{
return v___x_1151_;
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___boxed(lean_object* v_fileName_1161_, lean_object* v_imports_1162_, lean_object* v_f_1163_, lean_object* v_a_1164_, lean_object* v_a_1165_, lean_object* v_a_1166_, lean_object* v_a_1167_, lean_object* v_a_1168_, lean_object* v_a_1169_, lean_object* v_a_1170_){
_start:
{
lean_object* v_res_1171_; 
v_res_1171_ = l___private_Lake_Build_Module_0__Lake_collectImportsAux(v_fileName_1161_, v_imports_1162_, v_f_1163_, v_a_1164_, v_a_1165_, v_a_1166_, v_a_1167_, v_a_1168_, v_a_1169_);
return v_res_1171_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_OrdHashSet_appendArray___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__0_spec__0(lean_object* v_as_1172_, size_t v_i_1173_, size_t v_stop_1174_, lean_object* v_b_1175_){
_start:
{
uint8_t v___x_1176_; 
v___x_1176_ = lean_usize_dec_eq(v_i_1173_, v_stop_1174_);
if (v___x_1176_ == 0)
{
lean_object* v___x_1177_; lean_object* v___x_1178_; size_t v___x_1179_; size_t v___x_1180_; 
v___x_1177_ = lean_array_uget_borrowed(v_as_1172_, v_i_1173_);
lean_inc(v___x_1177_);
v___x_1178_ = l_Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0(v_b_1175_, v___x_1177_);
v___x_1179_ = ((size_t)1ULL);
v___x_1180_ = lean_usize_add(v_i_1173_, v___x_1179_);
v_i_1173_ = v___x_1180_;
v_b_1175_ = v___x_1178_;
goto _start;
}
else
{
return v_b_1175_;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_OrdHashSet_appendArray___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__0_spec__0___boxed(lean_object* v_as_1182_, lean_object* v_i_1183_, lean_object* v_stop_1184_, lean_object* v_b_1185_){
_start:
{
size_t v_i_boxed_1186_; size_t v_stop_boxed_1187_; lean_object* v_res_1188_; 
v_i_boxed_1186_ = lean_unbox_usize(v_i_1183_);
lean_dec(v_i_1183_);
v_stop_boxed_1187_ = lean_unbox_usize(v_stop_1184_);
lean_dec(v_stop_1184_);
v_res_1188_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_OrdHashSet_appendArray___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__0_spec__0(v_as_1182_, v_i_boxed_1186_, v_stop_boxed_1187_, v_b_1185_);
lean_dec_ref(v_as_1182_);
return v_res_1188_;
}
}
LEAN_EXPORT lean_object* l_Lake_OrdHashSet_appendArray___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__0(lean_object* v_self_1189_, lean_object* v_arr_1190_){
_start:
{
lean_object* v___x_1191_; lean_object* v___x_1192_; uint8_t v___x_1193_; 
v___x_1191_ = lean_unsigned_to_nat(0u);
v___x_1192_ = lean_array_get_size(v_arr_1190_);
v___x_1193_ = lean_nat_dec_lt(v___x_1191_, v___x_1192_);
if (v___x_1193_ == 0)
{
return v_self_1189_;
}
else
{
uint8_t v___x_1194_; 
v___x_1194_ = lean_nat_dec_le(v___x_1192_, v___x_1192_);
if (v___x_1194_ == 0)
{
if (v___x_1193_ == 0)
{
return v_self_1189_;
}
else
{
size_t v___x_1195_; size_t v___x_1196_; lean_object* v___x_1197_; 
v___x_1195_ = ((size_t)0ULL);
v___x_1196_ = lean_usize_of_nat(v___x_1192_);
v___x_1197_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_OrdHashSet_appendArray___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__0_spec__0(v_arr_1190_, v___x_1195_, v___x_1196_, v_self_1189_);
return v___x_1197_;
}
}
else
{
size_t v___x_1198_; size_t v___x_1199_; lean_object* v___x_1200_; 
v___x_1198_ = ((size_t)0ULL);
v___x_1199_ = lean_usize_of_nat(v___x_1192_);
v___x_1200_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_OrdHashSet_appendArray___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__0_spec__0(v_arr_1190_, v___x_1198_, v___x_1199_, v_self_1189_);
return v___x_1200_;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_OrdHashSet_appendArray___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__0___boxed(lean_object* v_self_1201_, lean_object* v_arr_1202_){
_start:
{
lean_object* v_res_1203_; 
v_res_1203_ = l_Lake_OrdHashSet_appendArray___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__0(v_self_1201_, v_arr_1202_);
lean_dec_ref(v_arr_1202_);
return v_res_1203_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__2___lam__0(lean_object* v_r_1204_, lean_object* v___x_1205_, lean_object* v_fileName_1206_, lean_object* v_x_1207_){
_start:
{
if (lean_obj_tag(v_x_1207_) == 0)
{
lean_dec_ref(v_fileName_1206_);
if (lean_obj_tag(v_r_1204_) == 0)
{
lean_object* v_a_1208_; lean_object* v_a_1209_; lean_object* v_a_1210_; lean_object* v___x_1212_; uint8_t v_isShared_1213_; uint8_t v_isSharedCheck_1224_; 
v_a_1208_ = lean_ctor_get(v_x_1207_, 0);
v_a_1209_ = lean_ctor_get(v_r_1204_, 0);
v_a_1210_ = lean_ctor_get(v_r_1204_, 1);
v_isSharedCheck_1224_ = !lean_is_exclusive(v_r_1204_);
if (v_isSharedCheck_1224_ == 0)
{
v___x_1212_ = v_r_1204_;
v_isShared_1213_ = v_isSharedCheck_1224_;
goto v_resetjp_1211_;
}
else
{
lean_inc(v_a_1210_);
lean_inc(v_a_1209_);
lean_dec(v_r_1204_);
v___x_1212_ = lean_box(0);
v_isShared_1213_ = v_isSharedCheck_1224_;
goto v_resetjp_1211_;
}
v_resetjp_1211_:
{
lean_object* v_module_1214_; uint8_t v_includeSelf_1215_; lean_object* v___x_1216_; 
v_module_1214_ = lean_ctor_get(v___x_1205_, 0);
lean_inc_ref(v_module_1214_);
v_includeSelf_1215_ = lean_ctor_get_uint8(v___x_1205_, sizeof(void*)*2);
lean_dec_ref(v___x_1205_);
v___x_1216_ = l_Lake_OrdHashSet_appendArray___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__0(v_a_1209_, v_a_1208_);
if (v_includeSelf_1215_ == 0)
{
lean_object* v___x_1218_; 
lean_dec_ref(v_module_1214_);
if (v_isShared_1213_ == 0)
{
lean_ctor_set(v___x_1212_, 0, v___x_1216_);
v___x_1218_ = v___x_1212_;
goto v_reusejp_1217_;
}
else
{
lean_object* v_reuseFailAlloc_1219_; 
v_reuseFailAlloc_1219_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_1219_, 0, v___x_1216_);
lean_ctor_set(v_reuseFailAlloc_1219_, 1, v_a_1210_);
v___x_1218_ = v_reuseFailAlloc_1219_;
goto v_reusejp_1217_;
}
v_reusejp_1217_:
{
return v___x_1218_;
}
}
else
{
lean_object* v___x_1220_; lean_object* v___x_1222_; 
v___x_1220_ = l_Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0(v___x_1216_, v_module_1214_);
if (v_isShared_1213_ == 0)
{
lean_ctor_set(v___x_1212_, 0, v___x_1220_);
v___x_1222_ = v___x_1212_;
goto v_reusejp_1221_;
}
else
{
lean_object* v_reuseFailAlloc_1223_; 
v_reuseFailAlloc_1223_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_1223_, 0, v___x_1220_);
lean_ctor_set(v_reuseFailAlloc_1223_, 1, v_a_1210_);
v___x_1222_ = v_reuseFailAlloc_1223_;
goto v_reusejp_1221_;
}
v_reusejp_1221_:
{
return v___x_1222_;
}
}
}
}
else
{
lean_dec_ref(v___x_1205_);
return v_r_1204_;
}
}
else
{
lean_object* v_module_1225_; lean_object* v_name_1226_; lean_object* v___x_1227_; lean_object* v___x_1228_; uint8_t v___x_1229_; lean_object* v___x_1230_; lean_object* v___x_1231_; lean_object* v___x_1232_; lean_object* v___x_1233_; uint8_t v___x_1234_; lean_object* v___x_1235_; 
v_module_1225_ = lean_ctor_get(v___x_1205_, 0);
lean_inc_ref(v_module_1225_);
lean_dec_ref(v___x_1205_);
v_name_1226_ = lean_ctor_get(v_module_1225_, 1);
lean_inc(v_name_1226_);
lean_dec_ref(v_module_1225_);
v___x_1227_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__2___closed__0));
v___x_1228_ = lean_string_append(v_fileName_1206_, v___x_1227_);
v___x_1229_ = 1;
v___x_1230_ = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(v_name_1226_, v___x_1229_);
v___x_1231_ = lean_string_append(v___x_1228_, v___x_1230_);
lean_dec_ref(v___x_1230_);
v___x_1232_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__2___closed__1));
v___x_1233_ = lean_string_append(v___x_1231_, v___x_1232_);
v___x_1234_ = 3;
v___x_1235_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_1235_, 0, v___x_1233_);
lean_ctor_set_uint8(v___x_1235_, sizeof(void*)*1, v___x_1234_);
if (lean_obj_tag(v_r_1204_) == 0)
{
lean_object* v_a_1236_; lean_object* v___x_1238_; uint8_t v_isShared_1239_; uint8_t v_isSharedCheck_1257_; 
v_a_1236_ = lean_ctor_get(v_r_1204_, 1);
v_isSharedCheck_1257_ = !lean_is_exclusive(v_r_1204_);
if (v_isSharedCheck_1257_ == 0)
{
lean_object* v_unused_1258_; 
v_unused_1258_ = lean_ctor_get(v_r_1204_, 0);
lean_dec(v_unused_1258_);
v___x_1238_ = v_r_1204_;
v_isShared_1239_ = v_isSharedCheck_1257_;
goto v_resetjp_1237_;
}
else
{
lean_inc(v_a_1236_);
lean_dec(v_r_1204_);
v___x_1238_ = lean_box(0);
v_isShared_1239_ = v_isSharedCheck_1257_;
goto v_resetjp_1237_;
}
v_resetjp_1237_:
{
lean_object* v_log_1240_; uint8_t v_action_1241_; uint8_t v_wantsRebuild_1242_; lean_object* v_trace_1243_; lean_object* v_buildTime_1244_; lean_object* v___x_1246_; uint8_t v_isShared_1247_; uint8_t v_isSharedCheck_1256_; 
v_log_1240_ = lean_ctor_get(v_a_1236_, 0);
v_action_1241_ = lean_ctor_get_uint8(v_a_1236_, sizeof(void*)*3);
v_wantsRebuild_1242_ = lean_ctor_get_uint8(v_a_1236_, sizeof(void*)*3 + 1);
v_trace_1243_ = lean_ctor_get(v_a_1236_, 1);
v_buildTime_1244_ = lean_ctor_get(v_a_1236_, 2);
v_isSharedCheck_1256_ = !lean_is_exclusive(v_a_1236_);
if (v_isSharedCheck_1256_ == 0)
{
v___x_1246_ = v_a_1236_;
v_isShared_1247_ = v_isSharedCheck_1256_;
goto v_resetjp_1245_;
}
else
{
lean_inc(v_buildTime_1244_);
lean_inc(v_trace_1243_);
lean_inc(v_log_1240_);
lean_dec(v_a_1236_);
v___x_1246_ = lean_box(0);
v_isShared_1247_ = v_isSharedCheck_1256_;
goto v_resetjp_1245_;
}
v_resetjp_1245_:
{
lean_object* v___x_1248_; lean_object* v___x_1249_; lean_object* v___x_1251_; 
v___x_1248_ = lean_unsigned_to_nat(0u);
v___x_1249_ = lean_array_push(v_log_1240_, v___x_1235_);
if (v_isShared_1247_ == 0)
{
lean_ctor_set(v___x_1246_, 0, v___x_1249_);
v___x_1251_ = v___x_1246_;
goto v_reusejp_1250_;
}
else
{
lean_object* v_reuseFailAlloc_1255_; 
v_reuseFailAlloc_1255_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_1255_, 0, v___x_1249_);
lean_ctor_set(v_reuseFailAlloc_1255_, 1, v_trace_1243_);
lean_ctor_set(v_reuseFailAlloc_1255_, 2, v_buildTime_1244_);
lean_ctor_set_uint8(v_reuseFailAlloc_1255_, sizeof(void*)*3, v_action_1241_);
lean_ctor_set_uint8(v_reuseFailAlloc_1255_, sizeof(void*)*3 + 1, v_wantsRebuild_1242_);
v___x_1251_ = v_reuseFailAlloc_1255_;
goto v_reusejp_1250_;
}
v_reusejp_1250_:
{
lean_object* v___x_1253_; 
if (v_isShared_1239_ == 0)
{
lean_ctor_set_tag(v___x_1238_, 1);
lean_ctor_set(v___x_1238_, 1, v___x_1251_);
lean_ctor_set(v___x_1238_, 0, v___x_1248_);
v___x_1253_ = v___x_1238_;
goto v_reusejp_1252_;
}
else
{
lean_object* v_reuseFailAlloc_1254_; 
v_reuseFailAlloc_1254_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_1254_, 0, v___x_1248_);
lean_ctor_set(v_reuseFailAlloc_1254_, 1, v___x_1251_);
v___x_1253_ = v_reuseFailAlloc_1254_;
goto v_reusejp_1252_;
}
v_reusejp_1252_:
{
return v___x_1253_;
}
}
}
}
}
else
{
lean_object* v_a_1259_; lean_object* v_a_1260_; lean_object* v___x_1262_; uint8_t v_isShared_1263_; uint8_t v_isSharedCheck_1280_; 
v_a_1259_ = lean_ctor_get(v_r_1204_, 1);
v_a_1260_ = lean_ctor_get(v_r_1204_, 0);
v_isSharedCheck_1280_ = !lean_is_exclusive(v_r_1204_);
if (v_isSharedCheck_1280_ == 0)
{
v___x_1262_ = v_r_1204_;
v_isShared_1263_ = v_isSharedCheck_1280_;
goto v_resetjp_1261_;
}
else
{
lean_inc(v_a_1259_);
lean_inc(v_a_1260_);
lean_dec(v_r_1204_);
v___x_1262_ = lean_box(0);
v_isShared_1263_ = v_isSharedCheck_1280_;
goto v_resetjp_1261_;
}
v_resetjp_1261_:
{
lean_object* v_log_1264_; uint8_t v_action_1265_; uint8_t v_wantsRebuild_1266_; lean_object* v_trace_1267_; lean_object* v_buildTime_1268_; lean_object* v___x_1270_; uint8_t v_isShared_1271_; uint8_t v_isSharedCheck_1279_; 
v_log_1264_ = lean_ctor_get(v_a_1259_, 0);
v_action_1265_ = lean_ctor_get_uint8(v_a_1259_, sizeof(void*)*3);
v_wantsRebuild_1266_ = lean_ctor_get_uint8(v_a_1259_, sizeof(void*)*3 + 1);
v_trace_1267_ = lean_ctor_get(v_a_1259_, 1);
v_buildTime_1268_ = lean_ctor_get(v_a_1259_, 2);
v_isSharedCheck_1279_ = !lean_is_exclusive(v_a_1259_);
if (v_isSharedCheck_1279_ == 0)
{
v___x_1270_ = v_a_1259_;
v_isShared_1271_ = v_isSharedCheck_1279_;
goto v_resetjp_1269_;
}
else
{
lean_inc(v_buildTime_1268_);
lean_inc(v_trace_1267_);
lean_inc(v_log_1264_);
lean_dec(v_a_1259_);
v___x_1270_ = lean_box(0);
v_isShared_1271_ = v_isSharedCheck_1279_;
goto v_resetjp_1269_;
}
v_resetjp_1269_:
{
lean_object* v___x_1272_; lean_object* v___x_1274_; 
v___x_1272_ = lean_array_push(v_log_1264_, v___x_1235_);
if (v_isShared_1271_ == 0)
{
lean_ctor_set(v___x_1270_, 0, v___x_1272_);
v___x_1274_ = v___x_1270_;
goto v_reusejp_1273_;
}
else
{
lean_object* v_reuseFailAlloc_1278_; 
v_reuseFailAlloc_1278_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_1278_, 0, v___x_1272_);
lean_ctor_set(v_reuseFailAlloc_1278_, 1, v_trace_1267_);
lean_ctor_set(v_reuseFailAlloc_1278_, 2, v_buildTime_1268_);
lean_ctor_set_uint8(v_reuseFailAlloc_1278_, sizeof(void*)*3, v_action_1265_);
lean_ctor_set_uint8(v_reuseFailAlloc_1278_, sizeof(void*)*3 + 1, v_wantsRebuild_1266_);
v___x_1274_ = v_reuseFailAlloc_1278_;
goto v_reusejp_1273_;
}
v_reusejp_1273_:
{
lean_object* v___x_1276_; 
if (v_isShared_1263_ == 0)
{
lean_ctor_set(v___x_1262_, 1, v___x_1274_);
v___x_1276_ = v___x_1262_;
goto v_reusejp_1275_;
}
else
{
lean_object* v_reuseFailAlloc_1277_; 
v_reuseFailAlloc_1277_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_1277_, 0, v_a_1260_);
lean_ctor_set(v_reuseFailAlloc_1277_, 1, v___x_1274_);
v___x_1276_ = v_reuseFailAlloc_1277_;
goto v_reusejp_1275_;
}
v_reusejp_1275_:
{
return v___x_1276_;
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__2___lam__0___boxed(lean_object* v_r_1281_, lean_object* v___x_1282_, lean_object* v_fileName_1283_, lean_object* v_x_1284_){
_start:
{
lean_object* v_res_1285_; 
v_res_1285_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__2___lam__0(v_r_1281_, v___x_1282_, v_fileName_1283_, v_x_1284_);
lean_dec_ref(v_x_1284_);
return v_res_1285_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__2___lam__1(lean_object* v___x_1286_, lean_object* v_fileName_1287_, lean_object* v_r_1288_){
_start:
{
lean_object* v_transImports_1289_; lean_object* v_task_1290_; lean_object* v___f_1291_; lean_object* v___x_1292_; uint8_t v___x_1293_; lean_object* v___x_1294_; 
v_transImports_1289_ = lean_ctor_get(v___x_1286_, 1);
v_task_1290_ = lean_ctor_get(v_transImports_1289_, 0);
lean_inc_ref(v_task_1290_);
v___f_1291_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__2___lam__0___boxed), 4, 3);
lean_closure_set(v___f_1291_, 0, v_r_1288_);
lean_closure_set(v___f_1291_, 1, v___x_1286_);
lean_closure_set(v___f_1291_, 2, v_fileName_1287_);
v___x_1292_ = lean_unsigned_to_nat(0u);
v___x_1293_ = 1;
v___x_1294_ = lean_task_map(v___f_1291_, v_task_1290_, v___x_1292_, v___x_1293_);
return v___x_1294_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__2(lean_object* v_fileName_1295_, lean_object* v_as_1296_, size_t v_i_1297_, size_t v_stop_1298_, lean_object* v_b_1299_){
_start:
{
uint8_t v___x_1300_; 
v___x_1300_ = lean_usize_dec_eq(v_i_1297_, v_stop_1298_);
if (v___x_1300_ == 0)
{
lean_object* v___x_1301_; lean_object* v___f_1302_; lean_object* v___x_1303_; uint8_t v___x_1304_; lean_object* v___x_1305_; size_t v___x_1306_; size_t v___x_1307_; 
v___x_1301_ = lean_array_uget_borrowed(v_as_1296_, v_i_1297_);
lean_inc_ref(v_fileName_1295_);
lean_inc(v___x_1301_);
v___f_1302_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__2___lam__1), 3, 2);
lean_closure_set(v___f_1302_, 0, v___x_1301_);
lean_closure_set(v___f_1302_, 1, v_fileName_1295_);
v___x_1303_ = lean_unsigned_to_nat(0u);
v___x_1304_ = 1;
v___x_1305_ = lean_task_bind(v_b_1299_, v___f_1302_, v___x_1303_, v___x_1304_);
v___x_1306_ = ((size_t)1ULL);
v___x_1307_ = lean_usize_add(v_i_1297_, v___x_1306_);
v_i_1297_ = v___x_1307_;
v_b_1299_ = v___x_1305_;
goto _start;
}
else
{
lean_dec_ref(v_fileName_1295_);
return v_b_1299_;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__2___boxed(lean_object* v_fileName_1309_, lean_object* v_as_1310_, lean_object* v_i_1311_, lean_object* v_stop_1312_, lean_object* v_b_1313_){
_start:
{
size_t v_i_boxed_1314_; size_t v_stop_boxed_1315_; lean_object* v_res_1316_; 
v_i_boxed_1314_ = lean_unbox_usize(v_i_1311_);
lean_dec(v_i_1311_);
v_stop_boxed_1315_ = lean_unbox_usize(v_stop_1312_);
lean_dec(v_stop_1312_);
v_res_1316_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__2(v_fileName_1309_, v_as_1310_, v_i_boxed_1314_, v_stop_boxed_1315_, v_b_1313_);
lean_dec_ref(v_as_1310_);
return v_res_1316_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__1(size_t v_sz_1317_, size_t v_i_1318_, lean_object* v_bs_1319_, lean_object* v___y_1320_, lean_object* v___y_1321_, lean_object* v___y_1322_, lean_object* v___y_1323_, lean_object* v___y_1324_, lean_object* v___y_1325_){
_start:
{
uint8_t v___x_1327_; 
v___x_1327_ = lean_usize_dec_lt(v_i_1318_, v_sz_1317_);
if (v___x_1327_ == 0)
{
lean_object* v___x_1328_; 
lean_dec_ref(v___y_1324_);
lean_dec(v___y_1323_);
lean_dec(v___y_1322_);
lean_dec(v___y_1321_);
lean_dec_ref(v___y_1320_);
v___x_1328_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_1328_, 0, v_bs_1319_);
lean_ctor_set(v___x_1328_, 1, v___y_1325_);
return v___x_1328_;
}
else
{
lean_object* v_v_1329_; lean_object* v_lib_1330_; lean_object* v_pkg_1331_; lean_object* v_name_1332_; lean_object* v_keyName_1333_; lean_object* v___x_1334_; lean_object* v___x_1335_; lean_object* v___x_1336_; lean_object* v___x_1337_; lean_object* v___x_1338_; 
v_v_1329_ = lean_array_uget(v_bs_1319_, v_i_1318_);
v_lib_1330_ = lean_ctor_get(v_v_1329_, 0);
v_pkg_1331_ = lean_ctor_get(v_lib_1330_, 0);
v_name_1332_ = lean_ctor_get(v_v_1329_, 1);
v_keyName_1333_ = lean_ctor_get(v_pkg_1331_, 2);
v___x_1334_ = l_Lake_Module_transImportsFacet;
lean_inc(v_name_1332_);
lean_inc(v_keyName_1333_);
v___x_1335_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_1335_, 0, v_keyName_1333_);
lean_ctor_set(v___x_1335_, 1, v_name_1332_);
v___x_1336_ = l_Lake_Module_keyword;
lean_inc(v_v_1329_);
v___x_1337_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_1337_, 0, v___x_1335_);
lean_ctor_set(v___x_1337_, 1, v___x_1336_);
lean_ctor_set(v___x_1337_, 2, v_v_1329_);
lean_ctor_set(v___x_1337_, 3, v___x_1334_);
lean_inc_ref(v___y_1320_);
lean_inc_ref(v___y_1324_);
lean_inc(v___y_1323_);
lean_inc(v___y_1322_);
lean_inc(v___y_1321_);
v___x_1338_ = lean_apply_7(v___y_1320_, v___x_1337_, v___y_1321_, v___y_1322_, v___y_1323_, v___y_1324_, v___y_1325_, lean_box(0));
if (lean_obj_tag(v___x_1338_) == 0)
{
lean_object* v_a_1339_; lean_object* v_a_1340_; lean_object* v___x_1341_; lean_object* v_bs_x27_1342_; lean_object* v___x_1343_; size_t v___x_1344_; size_t v___x_1345_; lean_object* v___x_1346_; 
v_a_1339_ = lean_ctor_get(v___x_1338_, 0);
lean_inc(v_a_1339_);
v_a_1340_ = lean_ctor_get(v___x_1338_, 1);
lean_inc(v_a_1340_);
lean_dec_ref(v___x_1338_);
v___x_1341_ = lean_unsigned_to_nat(0u);
v_bs_x27_1342_ = lean_array_uset(v_bs_1319_, v_i_1318_, v___x_1341_);
v___x_1343_ = lean_alloc_ctor(0, 2, 1);
lean_ctor_set(v___x_1343_, 0, v_v_1329_);
lean_ctor_set(v___x_1343_, 1, v_a_1339_);
lean_ctor_set_uint8(v___x_1343_, sizeof(void*)*2, v___x_1327_);
v___x_1344_ = ((size_t)1ULL);
v___x_1345_ = lean_usize_add(v_i_1318_, v___x_1344_);
v___x_1346_ = lean_array_uset(v_bs_x27_1342_, v_i_1318_, v___x_1343_);
v_i_1318_ = v___x_1345_;
v_bs_1319_ = v___x_1346_;
v___y_1325_ = v_a_1340_;
goto _start;
}
else
{
lean_object* v_a_1348_; lean_object* v_a_1349_; lean_object* v___x_1351_; uint8_t v_isShared_1352_; uint8_t v_isSharedCheck_1356_; 
lean_dec(v_v_1329_);
lean_dec_ref(v___y_1324_);
lean_dec(v___y_1323_);
lean_dec(v___y_1322_);
lean_dec(v___y_1321_);
lean_dec_ref(v___y_1320_);
lean_dec_ref(v_bs_1319_);
v_a_1348_ = lean_ctor_get(v___x_1338_, 0);
v_a_1349_ = lean_ctor_get(v___x_1338_, 1);
v_isSharedCheck_1356_ = !lean_is_exclusive(v___x_1338_);
if (v_isSharedCheck_1356_ == 0)
{
v___x_1351_ = v___x_1338_;
v_isShared_1352_ = v_isSharedCheck_1356_;
goto v_resetjp_1350_;
}
else
{
lean_inc(v_a_1349_);
lean_inc(v_a_1348_);
lean_dec(v___x_1338_);
v___x_1351_ = lean_box(0);
v_isShared_1352_ = v_isSharedCheck_1356_;
goto v_resetjp_1350_;
}
v_resetjp_1350_:
{
lean_object* v___x_1354_; 
if (v_isShared_1352_ == 0)
{
v___x_1354_ = v___x_1351_;
goto v_reusejp_1353_;
}
else
{
lean_object* v_reuseFailAlloc_1355_; 
v_reuseFailAlloc_1355_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_1355_, 0, v_a_1348_);
lean_ctor_set(v_reuseFailAlloc_1355_, 1, v_a_1349_);
v___x_1354_ = v_reuseFailAlloc_1355_;
goto v_reusejp_1353_;
}
v_reusejp_1353_:
{
return v___x_1354_;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__1___boxed(lean_object* v_sz_1357_, lean_object* v_i_1358_, lean_object* v_bs_1359_, lean_object* v___y_1360_, lean_object* v___y_1361_, lean_object* v___y_1362_, lean_object* v___y_1363_, lean_object* v___y_1364_, lean_object* v___y_1365_, lean_object* v___y_1366_){
_start:
{
size_t v_sz_boxed_1367_; size_t v_i_boxed_1368_; lean_object* v_res_1369_; 
v_sz_boxed_1367_ = lean_unbox_usize(v_sz_1357_);
lean_dec(v_sz_1357_);
v_i_boxed_1368_ = lean_unbox_usize(v_i_1358_);
lean_dec(v_i_1358_);
v_res_1369_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__1(v_sz_boxed_1367_, v_i_boxed_1368_, v_bs_1359_, v___y_1360_, v___y_1361_, v___y_1362_, v___y_1363_, v___y_1364_, v___y_1365_);
return v_res_1369_;
}
}
static lean_object* _init_l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__0(void){
_start:
{
lean_object* v___x_1370_; lean_object* v___x_1371_; lean_object* v___x_1372_; 
v___x_1370_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__6, &l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__6_once, _init_l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__6);
v___x_1371_ = l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1;
v___x_1372_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_1372_, 0, v___x_1371_);
lean_ctor_set(v___x_1372_, 1, v___x_1370_);
return v___x_1372_;
}
}
static lean_object* _init_l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__1(void){
_start:
{
lean_object* v___x_1373_; lean_object* v___x_1374_; 
v___x_1373_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__0, &l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__0_once, _init_l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__0);
v___x_1374_ = lean_task_pure(v___x_1373_);
return v___x_1374_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_computeTransImportsAux(lean_object* v_fileName_1375_, lean_object* v_imports_1376_, lean_object* v_a_1377_, lean_object* v_a_1378_, lean_object* v_a_1379_, lean_object* v_a_1380_, lean_object* v_a_1381_, lean_object* v_a_1382_){
_start:
{
size_t v_sz_1384_; size_t v___x_1385_; lean_object* v___x_1386_; 
v_sz_1384_ = lean_array_size(v_imports_1376_);
v___x_1385_ = ((size_t)0ULL);
v___x_1386_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__1(v_sz_1384_, v___x_1385_, v_imports_1376_, v_a_1377_, v_a_1378_, v_a_1379_, v_a_1380_, v_a_1381_, v_a_1382_);
if (lean_obj_tag(v___x_1386_) == 0)
{
lean_object* v_a_1387_; lean_object* v_a_1388_; lean_object* v___x_1390_; uint8_t v_isShared_1391_; uint8_t v_isSharedCheck_1414_; 
v_a_1387_ = lean_ctor_get(v___x_1386_, 0);
v_a_1388_ = lean_ctor_get(v___x_1386_, 1);
v_isSharedCheck_1414_ = !lean_is_exclusive(v___x_1386_);
if (v_isSharedCheck_1414_ == 0)
{
v___x_1390_ = v___x_1386_;
v_isShared_1391_ = v_isSharedCheck_1414_;
goto v_resetjp_1389_;
}
else
{
lean_inc(v_a_1388_);
lean_inc(v_a_1387_);
lean_dec(v___x_1386_);
v___x_1390_ = lean_box(0);
v_isShared_1391_ = v_isSharedCheck_1414_;
goto v_resetjp_1389_;
}
v_resetjp_1389_:
{
lean_object* v___f_1392_; lean_object* v___x_1393_; lean_object* v___y_1395_; lean_object* v___x_1405_; lean_object* v___x_1406_; lean_object* v___x_1407_; uint8_t v___x_1408_; 
v___f_1392_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__1));
v___x_1393_ = lean_box(0);
v___x_1405_ = lean_unsigned_to_nat(0u);
v___x_1406_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__1, &l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__1_once, _init_l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__1);
v___x_1407_ = lean_array_get_size(v_a_1387_);
v___x_1408_ = lean_nat_dec_lt(v___x_1405_, v___x_1407_);
if (v___x_1408_ == 0)
{
lean_dec(v_a_1387_);
lean_dec_ref(v_fileName_1375_);
v___y_1395_ = v___x_1406_;
goto v___jp_1394_;
}
else
{
uint8_t v___x_1409_; 
v___x_1409_ = lean_nat_dec_le(v___x_1407_, v___x_1407_);
if (v___x_1409_ == 0)
{
if (v___x_1408_ == 0)
{
lean_dec(v_a_1387_);
lean_dec_ref(v_fileName_1375_);
v___y_1395_ = v___x_1406_;
goto v___jp_1394_;
}
else
{
size_t v___x_1410_; lean_object* v___x_1411_; 
v___x_1410_ = lean_usize_of_nat(v___x_1407_);
v___x_1411_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__2(v_fileName_1375_, v_a_1387_, v___x_1385_, v___x_1410_, v___x_1406_);
lean_dec(v_a_1387_);
v___y_1395_ = v___x_1411_;
goto v___jp_1394_;
}
}
else
{
size_t v___x_1412_; lean_object* v___x_1413_; 
v___x_1412_ = lean_usize_of_nat(v___x_1407_);
v___x_1413_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__2(v_fileName_1375_, v_a_1387_, v___x_1385_, v___x_1412_, v___x_1406_);
lean_dec(v_a_1387_);
v___y_1395_ = v___x_1413_;
goto v___jp_1394_;
}
}
v___jp_1394_:
{
lean_object* v___x_1396_; uint8_t v___x_1397_; lean_object* v___x_1398_; lean_object* v___x_1399_; uint8_t v___x_1400_; lean_object* v___x_1401_; lean_object* v___x_1403_; 
v___x_1396_ = lean_unsigned_to_nat(0u);
v___x_1397_ = 1;
v___x_1398_ = lean_task_map(v___f_1392_, v___y_1395_, v___x_1396_, v___x_1397_);
v___x_1399_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1));
v___x_1400_ = 0;
v___x_1401_ = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(v___x_1401_, 0, v___x_1398_);
lean_ctor_set(v___x_1401_, 1, v___x_1393_);
lean_ctor_set(v___x_1401_, 2, v___x_1399_);
lean_ctor_set_uint8(v___x_1401_, sizeof(void*)*3, v___x_1400_);
if (v_isShared_1391_ == 0)
{
lean_ctor_set(v___x_1390_, 0, v___x_1401_);
v___x_1403_ = v___x_1390_;
goto v_reusejp_1402_;
}
else
{
lean_object* v_reuseFailAlloc_1404_; 
v_reuseFailAlloc_1404_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_1404_, 0, v___x_1401_);
lean_ctor_set(v_reuseFailAlloc_1404_, 1, v_a_1388_);
v___x_1403_ = v_reuseFailAlloc_1404_;
goto v_reusejp_1402_;
}
v_reusejp_1402_:
{
return v___x_1403_;
}
}
}
}
else
{
lean_object* v_a_1415_; lean_object* v_a_1416_; lean_object* v___x_1418_; uint8_t v_isShared_1419_; uint8_t v_isSharedCheck_1423_; 
lean_dec_ref(v_fileName_1375_);
v_a_1415_ = lean_ctor_get(v___x_1386_, 0);
v_a_1416_ = lean_ctor_get(v___x_1386_, 1);
v_isSharedCheck_1423_ = !lean_is_exclusive(v___x_1386_);
if (v_isSharedCheck_1423_ == 0)
{
v___x_1418_ = v___x_1386_;
v_isShared_1419_ = v_isSharedCheck_1423_;
goto v_resetjp_1417_;
}
else
{
lean_inc(v_a_1416_);
lean_inc(v_a_1415_);
lean_dec(v___x_1386_);
v___x_1418_ = lean_box(0);
v_isShared_1419_ = v_isSharedCheck_1423_;
goto v_resetjp_1417_;
}
v_resetjp_1417_:
{
lean_object* v___x_1421_; 
if (v_isShared_1419_ == 0)
{
v___x_1421_ = v___x_1418_;
goto v_reusejp_1420_;
}
else
{
lean_object* v_reuseFailAlloc_1422_; 
v_reuseFailAlloc_1422_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_1422_, 0, v_a_1415_);
lean_ctor_set(v_reuseFailAlloc_1422_, 1, v_a_1416_);
v___x_1421_ = v_reuseFailAlloc_1422_;
goto v_reusejp_1420_;
}
v_reusejp_1420_:
{
return v___x_1421_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___boxed(lean_object* v_fileName_1424_, lean_object* v_imports_1425_, lean_object* v_a_1426_, lean_object* v_a_1427_, lean_object* v_a_1428_, lean_object* v_a_1429_, lean_object* v_a_1430_, lean_object* v_a_1431_, lean_object* v_a_1432_){
_start:
{
lean_object* v_res_1433_; 
v_res_1433_ = l___private_Lake_Build_Module_0__Lake_computeTransImportsAux(v_fileName_1424_, v_imports_1425_, v_a_1426_, v_a_1427_, v_a_1428_, v_a_1429_, v_a_1430_, v_a_1431_);
return v_res_1433_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recComputeTransImports___lam__1(lean_object* v___x_1434_, lean_object* v___f_1435_, lean_object* v___x_1436_, lean_object* v_config_1437_, lean_object* v_config_1438_, lean_object* v_dir_1439_, lean_object* v_name_1440_, lean_object* v___y_1441_, lean_object* v___y_1442_, lean_object* v___y_1443_, lean_object* v___y_1444_, lean_object* v___y_1445_, lean_object* v___y_1446_){
_start:
{
lean_object* v___x_1448_; 
lean_inc_ref(v___y_1441_);
lean_inc_ref(v___y_1445_);
lean_inc(v___y_1444_);
lean_inc(v___y_1443_);
lean_inc(v___y_1442_);
v___x_1448_ = lean_apply_7(v___y_1441_, v___x_1434_, v___y_1442_, v___y_1443_, v___y_1444_, v___y_1445_, v___y_1446_, lean_box(0));
if (lean_obj_tag(v___x_1448_) == 0)
{
lean_object* v_a_1449_; lean_object* v_a_1450_; lean_object* v___x_1451_; 
v_a_1449_ = lean_ctor_get(v___x_1448_, 0);
lean_inc(v_a_1449_);
v_a_1450_ = lean_ctor_get(v___x_1448_, 1);
lean_inc(v_a_1450_);
lean_dec_ref(v___x_1448_);
v___x_1451_ = l_Lake_Job_await___redArg(v_a_1449_, v_a_1450_);
if (lean_obj_tag(v___x_1451_) == 0)
{
lean_object* v_a_1452_; lean_object* v_a_1453_; size_t v_sz_1454_; size_t v___x_1455_; lean_object* v___x_1456_; 
v_a_1452_ = lean_ctor_get(v___x_1451_, 0);
lean_inc(v_a_1452_);
v_a_1453_ = lean_ctor_get(v___x_1451_, 1);
lean_inc(v_a_1453_);
lean_dec_ref(v___x_1451_);
v_sz_1454_ = lean_array_size(v_a_1452_);
v___x_1455_ = ((size_t)0ULL);
v___x_1456_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__1(v_sz_1454_, v___x_1455_, v_a_1452_, v___y_1441_, v___y_1442_, v___y_1443_, v___y_1444_, v___y_1445_, v_a_1453_);
if (lean_obj_tag(v___x_1456_) == 0)
{
lean_object* v_a_1457_; lean_object* v_a_1458_; lean_object* v___x_1460_; uint8_t v_isShared_1461_; uint8_t v_isSharedCheck_1491_; 
v_a_1457_ = lean_ctor_get(v___x_1456_, 0);
v_a_1458_ = lean_ctor_get(v___x_1456_, 1);
v_isSharedCheck_1491_ = !lean_is_exclusive(v___x_1456_);
if (v_isSharedCheck_1491_ == 0)
{
v___x_1460_ = v___x_1456_;
v_isShared_1461_ = v_isSharedCheck_1491_;
goto v_resetjp_1459_;
}
else
{
lean_inc(v_a_1458_);
lean_inc(v_a_1457_);
lean_dec(v___x_1456_);
v___x_1460_ = lean_box(0);
v_isShared_1461_ = v_isSharedCheck_1491_;
goto v_resetjp_1459_;
}
v_resetjp_1459_:
{
lean_object* v___y_1463_; lean_object* v___x_1473_; lean_object* v___x_1474_; lean_object* v___x_1475_; uint8_t v___x_1476_; 
v___x_1473_ = lean_unsigned_to_nat(0u);
v___x_1474_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__1, &l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__1_once, _init_l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__1);
v___x_1475_ = lean_array_get_size(v_a_1457_);
v___x_1476_ = lean_nat_dec_lt(v___x_1473_, v___x_1475_);
if (v___x_1476_ == 0)
{
lean_dec(v_a_1457_);
lean_dec(v_name_1440_);
lean_dec_ref(v_dir_1439_);
lean_dec(v_config_1438_);
lean_dec_ref(v_config_1437_);
v___y_1463_ = v___x_1474_;
goto v___jp_1462_;
}
else
{
lean_object* v_srcDir_1477_; lean_object* v_srcDir_1478_; lean_object* v___x_1479_; lean_object* v___x_1480_; lean_object* v___x_1481_; lean_object* v___x_1482_; lean_object* v___x_1483_; lean_object* v___x_1484_; lean_object* v___x_1485_; uint8_t v___x_1486_; 
v_srcDir_1477_ = lean_ctor_get(v_config_1437_, 5);
lean_inc_ref(v_srcDir_1477_);
lean_dec_ref(v_config_1437_);
v_srcDir_1478_ = lean_ctor_get(v_config_1438_, 1);
lean_inc_ref(v_srcDir_1478_);
lean_dec(v_config_1438_);
v___x_1479_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__0));
v___x_1480_ = l_System_FilePath_normalize(v_srcDir_1477_);
lean_inc_ref(v_dir_1439_);
v___x_1481_ = l_Lake_joinRelative(v_dir_1439_, v___x_1480_);
v___x_1482_ = l_System_FilePath_normalize(v_srcDir_1478_);
v___x_1483_ = l_Lake_joinRelative(v___x_1481_, v___x_1482_);
v___x_1484_ = l_Lean_modToFilePath(v___x_1483_, v_name_1440_, v___x_1479_);
lean_dec_ref(v___x_1483_);
v___x_1485_ = l_Lake_relPathFrom(v_dir_1439_, v___x_1484_);
lean_dec_ref(v_dir_1439_);
v___x_1486_ = lean_nat_dec_le(v___x_1475_, v___x_1475_);
if (v___x_1486_ == 0)
{
if (v___x_1476_ == 0)
{
lean_dec_ref(v___x_1485_);
lean_dec(v_a_1457_);
v___y_1463_ = v___x_1474_;
goto v___jp_1462_;
}
else
{
size_t v___x_1487_; lean_object* v___x_1488_; 
v___x_1487_ = lean_usize_of_nat(v___x_1475_);
v___x_1488_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__2(v___x_1485_, v_a_1457_, v___x_1455_, v___x_1487_, v___x_1474_);
lean_dec(v_a_1457_);
v___y_1463_ = v___x_1488_;
goto v___jp_1462_;
}
}
else
{
size_t v___x_1489_; lean_object* v___x_1490_; 
v___x_1489_ = lean_usize_of_nat(v___x_1475_);
v___x_1490_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__2(v___x_1485_, v_a_1457_, v___x_1455_, v___x_1489_, v___x_1474_);
lean_dec(v_a_1457_);
v___y_1463_ = v___x_1490_;
goto v___jp_1462_;
}
}
v___jp_1462_:
{
lean_object* v___x_1464_; uint8_t v___x_1465_; lean_object* v___x_1466_; lean_object* v___x_1467_; uint8_t v___x_1468_; lean_object* v___x_1469_; lean_object* v___x_1471_; 
v___x_1464_ = lean_unsigned_to_nat(0u);
v___x_1465_ = 1;
v___x_1466_ = lean_task_map(v___f_1435_, v___y_1463_, v___x_1464_, v___x_1465_);
v___x_1467_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1));
v___x_1468_ = 0;
v___x_1469_ = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(v___x_1469_, 0, v___x_1466_);
lean_ctor_set(v___x_1469_, 1, v___x_1436_);
lean_ctor_set(v___x_1469_, 2, v___x_1467_);
lean_ctor_set_uint8(v___x_1469_, sizeof(void*)*3, v___x_1468_);
if (v_isShared_1461_ == 0)
{
lean_ctor_set(v___x_1460_, 0, v___x_1469_);
v___x_1471_ = v___x_1460_;
goto v_reusejp_1470_;
}
else
{
lean_object* v_reuseFailAlloc_1472_; 
v_reuseFailAlloc_1472_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_1472_, 0, v___x_1469_);
lean_ctor_set(v_reuseFailAlloc_1472_, 1, v_a_1458_);
v___x_1471_ = v_reuseFailAlloc_1472_;
goto v_reusejp_1470_;
}
v_reusejp_1470_:
{
return v___x_1471_;
}
}
}
}
else
{
lean_object* v_a_1492_; lean_object* v_a_1493_; lean_object* v___x_1495_; uint8_t v_isShared_1496_; uint8_t v_isSharedCheck_1500_; 
lean_dec(v_name_1440_);
lean_dec_ref(v_dir_1439_);
lean_dec(v_config_1438_);
lean_dec_ref(v_config_1437_);
lean_dec(v___x_1436_);
lean_dec_ref(v___f_1435_);
v_a_1492_ = lean_ctor_get(v___x_1456_, 0);
v_a_1493_ = lean_ctor_get(v___x_1456_, 1);
v_isSharedCheck_1500_ = !lean_is_exclusive(v___x_1456_);
if (v_isSharedCheck_1500_ == 0)
{
v___x_1495_ = v___x_1456_;
v_isShared_1496_ = v_isSharedCheck_1500_;
goto v_resetjp_1494_;
}
else
{
lean_inc(v_a_1493_);
lean_inc(v_a_1492_);
lean_dec(v___x_1456_);
v___x_1495_ = lean_box(0);
v_isShared_1496_ = v_isSharedCheck_1500_;
goto v_resetjp_1494_;
}
v_resetjp_1494_:
{
lean_object* v___x_1498_; 
if (v_isShared_1496_ == 0)
{
v___x_1498_ = v___x_1495_;
goto v_reusejp_1497_;
}
else
{
lean_object* v_reuseFailAlloc_1499_; 
v_reuseFailAlloc_1499_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_1499_, 0, v_a_1492_);
lean_ctor_set(v_reuseFailAlloc_1499_, 1, v_a_1493_);
v___x_1498_ = v_reuseFailAlloc_1499_;
goto v_reusejp_1497_;
}
v_reusejp_1497_:
{
return v___x_1498_;
}
}
}
}
else
{
lean_object* v_a_1501_; lean_object* v_a_1502_; lean_object* v___x_1504_; uint8_t v_isShared_1505_; uint8_t v_isSharedCheck_1509_; 
lean_dec_ref(v___y_1445_);
lean_dec(v___y_1444_);
lean_dec(v___y_1443_);
lean_dec(v___y_1442_);
lean_dec_ref(v___y_1441_);
lean_dec(v_name_1440_);
lean_dec_ref(v_dir_1439_);
lean_dec(v_config_1438_);
lean_dec_ref(v_config_1437_);
lean_dec(v___x_1436_);
lean_dec_ref(v___f_1435_);
v_a_1501_ = lean_ctor_get(v___x_1451_, 0);
v_a_1502_ = lean_ctor_get(v___x_1451_, 1);
v_isSharedCheck_1509_ = !lean_is_exclusive(v___x_1451_);
if (v_isSharedCheck_1509_ == 0)
{
v___x_1504_ = v___x_1451_;
v_isShared_1505_ = v_isSharedCheck_1509_;
goto v_resetjp_1503_;
}
else
{
lean_inc(v_a_1502_);
lean_inc(v_a_1501_);
lean_dec(v___x_1451_);
v___x_1504_ = lean_box(0);
v_isShared_1505_ = v_isSharedCheck_1509_;
goto v_resetjp_1503_;
}
v_resetjp_1503_:
{
lean_object* v___x_1507_; 
if (v_isShared_1505_ == 0)
{
v___x_1507_ = v___x_1504_;
goto v_reusejp_1506_;
}
else
{
lean_object* v_reuseFailAlloc_1508_; 
v_reuseFailAlloc_1508_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_1508_, 0, v_a_1501_);
lean_ctor_set(v_reuseFailAlloc_1508_, 1, v_a_1502_);
v___x_1507_ = v_reuseFailAlloc_1508_;
goto v_reusejp_1506_;
}
v_reusejp_1506_:
{
return v___x_1507_;
}
}
}
}
else
{
lean_dec_ref(v___y_1445_);
lean_dec(v___y_1444_);
lean_dec(v___y_1443_);
lean_dec(v___y_1442_);
lean_dec_ref(v___y_1441_);
lean_dec(v_name_1440_);
lean_dec_ref(v_dir_1439_);
lean_dec(v_config_1438_);
lean_dec_ref(v_config_1437_);
lean_dec(v___x_1436_);
lean_dec_ref(v___f_1435_);
return v___x_1448_;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recComputeTransImports___lam__1___boxed(lean_object* v___x_1510_, lean_object* v___f_1511_, lean_object* v___x_1512_, lean_object* v_config_1513_, lean_object* v_config_1514_, lean_object* v_dir_1515_, lean_object* v_name_1516_, lean_object* v___y_1517_, lean_object* v___y_1518_, lean_object* v___y_1519_, lean_object* v___y_1520_, lean_object* v___y_1521_, lean_object* v___y_1522_, lean_object* v___y_1523_){
_start:
{
lean_object* v_res_1524_; 
v_res_1524_ = l___private_Lake_Build_Module_0__Lake_Module_recComputeTransImports___lam__1(v___x_1510_, v___f_1511_, v___x_1512_, v_config_1513_, v_config_1514_, v_dir_1515_, v_name_1516_, v___y_1517_, v___y_1518_, v___y_1519_, v___y_1520_, v___y_1521_, v___y_1522_);
return v_res_1524_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recComputeTransImports(lean_object* v_mod_1525_, lean_object* v_a_1526_, lean_object* v_a_1527_, lean_object* v_a_1528_, lean_object* v_a_1529_, lean_object* v_a_1530_, lean_object* v_a_1531_){
_start:
{
lean_object* v_lib_1533_; lean_object* v_pkg_1534_; lean_object* v_name_1535_; lean_object* v_config_1536_; lean_object* v_keyName_1537_; lean_object* v_dir_1538_; lean_object* v_config_1539_; lean_object* v___f_1540_; lean_object* v___x_1541_; lean_object* v___x_1542_; lean_object* v___x_1543_; lean_object* v___x_1544_; lean_object* v___x_1545_; lean_object* v___f_1546_; lean_object* v___x_1547_; 
v_lib_1533_ = lean_ctor_get(v_mod_1525_, 0);
v_pkg_1534_ = lean_ctor_get(v_lib_1533_, 0);
v_name_1535_ = lean_ctor_get(v_mod_1525_, 1);
lean_inc(v_name_1535_);
v_config_1536_ = lean_ctor_get(v_lib_1533_, 2);
lean_inc(v_config_1536_);
v_keyName_1537_ = lean_ctor_get(v_pkg_1534_, 2);
v_dir_1538_ = lean_ctor_get(v_pkg_1534_, 4);
lean_inc_ref(v_dir_1538_);
v_config_1539_ = lean_ctor_get(v_pkg_1534_, 6);
lean_inc_ref(v_config_1539_);
v___f_1540_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__1));
v___x_1541_ = lean_box(0);
v___x_1542_ = l_Lake_Module_importsFacet;
lean_inc(v_name_1535_);
lean_inc(v_keyName_1537_);
v___x_1543_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_1543_, 0, v_keyName_1537_);
lean_ctor_set(v___x_1543_, 1, v_name_1535_);
v___x_1544_ = l_Lake_Module_keyword;
v___x_1545_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_1545_, 0, v___x_1543_);
lean_ctor_set(v___x_1545_, 1, v___x_1544_);
lean_ctor_set(v___x_1545_, 2, v_mod_1525_);
lean_ctor_set(v___x_1545_, 3, v___x_1542_);
v___f_1546_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_recComputeTransImports___lam__1___boxed), 14, 7);
lean_closure_set(v___f_1546_, 0, v___x_1545_);
lean_closure_set(v___f_1546_, 1, v___f_1540_);
lean_closure_set(v___f_1546_, 2, v___x_1541_);
lean_closure_set(v___f_1546_, 3, v_config_1539_);
lean_closure_set(v___f_1546_, 4, v_config_1536_);
lean_closure_set(v___f_1546_, 5, v_dir_1538_);
lean_closure_set(v___f_1546_, 6, v_name_1535_);
v___x_1547_ = l_Lake_ensureJob___redArg(v___x_1541_, v___f_1546_, v_a_1526_, v_a_1527_, v_a_1528_, v_a_1529_, v_a_1530_, v_a_1531_);
return v___x_1547_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recComputeTransImports___boxed(lean_object* v_mod_1548_, lean_object* v_a_1549_, lean_object* v_a_1550_, lean_object* v_a_1551_, lean_object* v_a_1552_, lean_object* v_a_1553_, lean_object* v_a_1554_, lean_object* v_a_1555_){
_start:
{
lean_object* v_res_1556_; 
v_res_1556_ = l___private_Lake_Build_Module_0__Lake_Module_recComputeTransImports(v_mod_1548_, v_a_1549_, v_a_1550_, v_a_1551_, v_a_1552_, v_a_1553_, v_a_1554_);
return v_res_1556_;
}
}
static lean_object* _init_l_Lake_Module_transImportsFacetConfig___closed__1(void){
_start:
{
uint8_t v___x_1558_; lean_object* v___f_1559_; uint8_t v___x_1560_; lean_object* v___x_1561_; lean_object* v___x_1562_; lean_object* v___x_1563_; lean_object* v___x_1564_; 
v___x_1558_ = 1;
v___f_1559_ = ((lean_object*)(l_Lake_Module_importsFacetConfig___closed__0));
v___x_1560_ = 0;
v___x_1561_ = lean_box(0);
v___x_1562_ = ((lean_object*)(l_Lake_Module_transImportsFacetConfig___closed__0));
v___x_1563_ = l_Lake_Module_keyword;
v___x_1564_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_1564_, 0, v___x_1563_);
lean_ctor_set(v___x_1564_, 1, v___x_1562_);
lean_ctor_set(v___x_1564_, 2, v___x_1561_);
lean_ctor_set(v___x_1564_, 3, v___f_1559_);
lean_ctor_set_uint8(v___x_1564_, sizeof(void*)*4, v___x_1560_);
lean_ctor_set_uint8(v___x_1564_, sizeof(void*)*4 + 1, v___x_1558_);
return v___x_1564_;
}
}
static lean_object* _init_l_Lake_Module_transImportsFacetConfig(void){
_start:
{
lean_object* v___x_1565_; 
v___x_1565_ = lean_obj_once(&l_Lake_Module_transImportsFacetConfig___closed__1, &l_Lake_Module_transImportsFacetConfig___closed__1_once, _init_l_Lake_Module_transImportsFacetConfig___closed__1);
return v___x_1565_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_computePrecompileImportsAux_spec__0(size_t v_sz_1566_, size_t v_i_1567_, lean_object* v_bs_1568_, lean_object* v___y_1569_, lean_object* v___y_1570_, lean_object* v___y_1571_, lean_object* v___y_1572_, lean_object* v___y_1573_, lean_object* v___y_1574_){
_start:
{
lean_object* v_a_1577_; lean_object* v_a_1578_; uint8_t v___x_1580_; 
v___x_1580_ = lean_usize_dec_lt(v_i_1567_, v_sz_1566_);
if (v___x_1580_ == 0)
{
lean_object* v___x_1581_; 
lean_dec_ref(v___y_1573_);
lean_dec(v___y_1572_);
lean_dec(v___y_1571_);
lean_dec(v___y_1570_);
lean_dec_ref(v___y_1569_);
v___x_1581_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_1581_, 0, v_bs_1568_);
lean_ctor_set(v___x_1581_, 1, v___y_1574_);
return v___x_1581_;
}
else
{
lean_object* v_v_1582_; lean_object* v_lib_1583_; lean_object* v_pkg_1584_; lean_object* v_config_1585_; lean_object* v_name_1586_; lean_object* v_config_1587_; lean_object* v_keyName_1588_; uint8_t v_precompileModules_1589_; lean_object* v___x_1590_; lean_object* v_bs_x27_1591_; uint8_t v_fst_1593_; lean_object* v_snd_1594_; lean_object* v_a_1595_; 
v_v_1582_ = lean_array_uget(v_bs_1568_, v_i_1567_);
v_lib_1583_ = lean_ctor_get(v_v_1582_, 0);
v_pkg_1584_ = lean_ctor_get(v_lib_1583_, 0);
v_config_1585_ = lean_ctor_get(v_pkg_1584_, 6);
v_name_1586_ = lean_ctor_get(v_v_1582_, 1);
v_config_1587_ = lean_ctor_get(v_lib_1583_, 2);
v_keyName_1588_ = lean_ctor_get(v_pkg_1584_, 2);
v_precompileModules_1589_ = lean_ctor_get_uint8(v_config_1585_, sizeof(void*)*27 + 1);
v___x_1590_ = lean_unsigned_to_nat(0u);
v_bs_x27_1591_ = lean_array_uset(v_bs_1568_, v_i_1567_, v___x_1590_);
if (v_precompileModules_1589_ == 0)
{
uint8_t v_precompileModules_1615_; 
v_precompileModules_1615_ = lean_ctor_get_uint8(v_config_1587_, sizeof(void*)*9 + 1);
if (v_precompileModules_1615_ == 0)
{
lean_object* v___x_1616_; lean_object* v___x_1617_; lean_object* v___x_1618_; lean_object* v___x_1619_; lean_object* v___x_1620_; 
v___x_1616_ = l_Lake_Module_precompileImportsFacet;
lean_inc(v_name_1586_);
lean_inc(v_keyName_1588_);
v___x_1617_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_1617_, 0, v_keyName_1588_);
lean_ctor_set(v___x_1617_, 1, v_name_1586_);
v___x_1618_ = l_Lake_Module_keyword;
lean_inc(v_v_1582_);
v___x_1619_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_1619_, 0, v___x_1617_);
lean_ctor_set(v___x_1619_, 1, v___x_1618_);
lean_ctor_set(v___x_1619_, 2, v_v_1582_);
lean_ctor_set(v___x_1619_, 3, v___x_1616_);
lean_inc_ref(v___y_1569_);
lean_inc_ref(v___y_1573_);
lean_inc(v___y_1572_);
lean_inc(v___y_1571_);
lean_inc(v___y_1570_);
v___x_1620_ = lean_apply_7(v___y_1569_, v___x_1619_, v___y_1570_, v___y_1571_, v___y_1572_, v___y_1573_, v___y_1574_, lean_box(0));
if (lean_obj_tag(v___x_1620_) == 0)
{
lean_object* v_a_1621_; lean_object* v_a_1622_; 
v_a_1621_ = lean_ctor_get(v___x_1620_, 0);
lean_inc(v_a_1621_);
v_a_1622_ = lean_ctor_get(v___x_1620_, 1);
lean_inc(v_a_1622_);
lean_dec_ref(v___x_1620_);
v_fst_1593_ = v_precompileModules_1615_;
v_snd_1594_ = v_a_1621_;
v_a_1595_ = v_a_1622_;
goto v___jp_1592_;
}
else
{
lean_object* v_a_1623_; lean_object* v_a_1624_; 
lean_dec_ref(v_bs_x27_1591_);
lean_dec(v_v_1582_);
lean_dec_ref(v___y_1573_);
lean_dec(v___y_1572_);
lean_dec(v___y_1571_);
lean_dec(v___y_1570_);
lean_dec_ref(v___y_1569_);
v_a_1623_ = lean_ctor_get(v___x_1620_, 0);
lean_inc(v_a_1623_);
v_a_1624_ = lean_ctor_get(v___x_1620_, 1);
lean_inc(v_a_1624_);
lean_dec_ref(v___x_1620_);
v_a_1577_ = v_a_1623_;
v_a_1578_ = v_a_1624_;
goto v___jp_1576_;
}
}
else
{
goto v___jp_1601_;
}
}
else
{
goto v___jp_1601_;
}
v___jp_1592_:
{
lean_object* v___x_1596_; size_t v___x_1597_; size_t v___x_1598_; lean_object* v___x_1599_; 
v___x_1596_ = lean_alloc_ctor(0, 2, 1);
lean_ctor_set(v___x_1596_, 0, v_v_1582_);
lean_ctor_set(v___x_1596_, 1, v_snd_1594_);
lean_ctor_set_uint8(v___x_1596_, sizeof(void*)*2, v_fst_1593_);
v___x_1597_ = ((size_t)1ULL);
v___x_1598_ = lean_usize_add(v_i_1567_, v___x_1597_);
v___x_1599_ = lean_array_uset(v_bs_x27_1591_, v_i_1567_, v___x_1596_);
v_i_1567_ = v___x_1598_;
v_bs_1568_ = v___x_1599_;
v___y_1574_ = v_a_1595_;
goto _start;
}
v___jp_1601_:
{
lean_object* v_lib_1602_; lean_object* v_pkg_1603_; lean_object* v_name_1604_; lean_object* v_keyName_1605_; lean_object* v___x_1606_; lean_object* v___x_1607_; lean_object* v___x_1608_; lean_object* v___x_1609_; lean_object* v___x_1610_; 
v_lib_1602_ = lean_ctor_get(v_v_1582_, 0);
v_pkg_1603_ = lean_ctor_get(v_lib_1602_, 0);
v_name_1604_ = lean_ctor_get(v_v_1582_, 1);
v_keyName_1605_ = lean_ctor_get(v_pkg_1603_, 2);
v___x_1606_ = l_Lake_Module_transImportsFacet;
lean_inc(v_name_1604_);
lean_inc(v_keyName_1605_);
v___x_1607_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_1607_, 0, v_keyName_1605_);
lean_ctor_set(v___x_1607_, 1, v_name_1604_);
v___x_1608_ = l_Lake_Module_keyword;
lean_inc(v_v_1582_);
v___x_1609_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_1609_, 0, v___x_1607_);
lean_ctor_set(v___x_1609_, 1, v___x_1608_);
lean_ctor_set(v___x_1609_, 2, v_v_1582_);
lean_ctor_set(v___x_1609_, 3, v___x_1606_);
lean_inc_ref(v___y_1569_);
lean_inc_ref(v___y_1573_);
lean_inc(v___y_1572_);
lean_inc(v___y_1571_);
lean_inc(v___y_1570_);
v___x_1610_ = lean_apply_7(v___y_1569_, v___x_1609_, v___y_1570_, v___y_1571_, v___y_1572_, v___y_1573_, v___y_1574_, lean_box(0));
if (lean_obj_tag(v___x_1610_) == 0)
{
lean_object* v_a_1611_; lean_object* v_a_1612_; 
v_a_1611_ = lean_ctor_get(v___x_1610_, 0);
lean_inc(v_a_1611_);
v_a_1612_ = lean_ctor_get(v___x_1610_, 1);
lean_inc(v_a_1612_);
lean_dec_ref(v___x_1610_);
v_fst_1593_ = v___x_1580_;
v_snd_1594_ = v_a_1611_;
v_a_1595_ = v_a_1612_;
goto v___jp_1592_;
}
else
{
lean_object* v_a_1613_; lean_object* v_a_1614_; 
lean_dec_ref(v_bs_x27_1591_);
lean_dec(v_v_1582_);
lean_dec_ref(v___y_1573_);
lean_dec(v___y_1572_);
lean_dec(v___y_1571_);
lean_dec(v___y_1570_);
lean_dec_ref(v___y_1569_);
v_a_1613_ = lean_ctor_get(v___x_1610_, 0);
lean_inc(v_a_1613_);
v_a_1614_ = lean_ctor_get(v___x_1610_, 1);
lean_inc(v_a_1614_);
lean_dec_ref(v___x_1610_);
v_a_1577_ = v_a_1613_;
v_a_1578_ = v_a_1614_;
goto v___jp_1576_;
}
}
}
v___jp_1576_:
{
lean_object* v___x_1579_; 
v___x_1579_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_1579_, 0, v_a_1577_);
lean_ctor_set(v___x_1579_, 1, v_a_1578_);
return v___x_1579_;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_computePrecompileImportsAux_spec__0___boxed(lean_object* v_sz_1625_, lean_object* v_i_1626_, lean_object* v_bs_1627_, lean_object* v___y_1628_, lean_object* v___y_1629_, lean_object* v___y_1630_, lean_object* v___y_1631_, lean_object* v___y_1632_, lean_object* v___y_1633_, lean_object* v___y_1634_){
_start:
{
size_t v_sz_boxed_1635_; size_t v_i_boxed_1636_; lean_object* v_res_1637_; 
v_sz_boxed_1635_ = lean_unbox_usize(v_sz_1625_);
lean_dec(v_sz_1625_);
v_i_boxed_1636_ = lean_unbox_usize(v_i_1626_);
lean_dec(v_i_1626_);
v_res_1637_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_computePrecompileImportsAux_spec__0(v_sz_boxed_1635_, v_i_boxed_1636_, v_bs_1627_, v___y_1628_, v___y_1629_, v___y_1630_, v___y_1631_, v___y_1632_, v___y_1633_);
return v_res_1637_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_computePrecompileImportsAux(lean_object* v_fileName_1638_, lean_object* v_imports_1639_, lean_object* v_a_1640_, lean_object* v_a_1641_, lean_object* v_a_1642_, lean_object* v_a_1643_, lean_object* v_a_1644_, lean_object* v_a_1645_){
_start:
{
size_t v_sz_1647_; size_t v___x_1648_; lean_object* v___x_1649_; 
v_sz_1647_ = lean_array_size(v_imports_1639_);
v___x_1648_ = ((size_t)0ULL);
v___x_1649_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_computePrecompileImportsAux_spec__0(v_sz_1647_, v___x_1648_, v_imports_1639_, v_a_1640_, v_a_1641_, v_a_1642_, v_a_1643_, v_a_1644_, v_a_1645_);
if (lean_obj_tag(v___x_1649_) == 0)
{
lean_object* v_a_1650_; lean_object* v_a_1651_; lean_object* v___x_1653_; uint8_t v_isShared_1654_; uint8_t v_isSharedCheck_1677_; 
v_a_1650_ = lean_ctor_get(v___x_1649_, 0);
v_a_1651_ = lean_ctor_get(v___x_1649_, 1);
v_isSharedCheck_1677_ = !lean_is_exclusive(v___x_1649_);
if (v_isSharedCheck_1677_ == 0)
{
v___x_1653_ = v___x_1649_;
v_isShared_1654_ = v_isSharedCheck_1677_;
goto v_resetjp_1652_;
}
else
{
lean_inc(v_a_1651_);
lean_inc(v_a_1650_);
lean_dec(v___x_1649_);
v___x_1653_ = lean_box(0);
v_isShared_1654_ = v_isSharedCheck_1677_;
goto v_resetjp_1652_;
}
v_resetjp_1652_:
{
lean_object* v___f_1655_; lean_object* v___x_1656_; lean_object* v___y_1658_; lean_object* v___x_1668_; lean_object* v___x_1669_; lean_object* v___x_1670_; uint8_t v___x_1671_; 
v___f_1655_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__1));
v___x_1656_ = lean_box(0);
v___x_1668_ = lean_unsigned_to_nat(0u);
v___x_1669_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__1, &l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__1_once, _init_l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__1);
v___x_1670_ = lean_array_get_size(v_a_1650_);
v___x_1671_ = lean_nat_dec_lt(v___x_1668_, v___x_1670_);
if (v___x_1671_ == 0)
{
lean_dec(v_a_1650_);
lean_dec_ref(v_fileName_1638_);
v___y_1658_ = v___x_1669_;
goto v___jp_1657_;
}
else
{
uint8_t v___x_1672_; 
v___x_1672_ = lean_nat_dec_le(v___x_1670_, v___x_1670_);
if (v___x_1672_ == 0)
{
if (v___x_1671_ == 0)
{
lean_dec(v_a_1650_);
lean_dec_ref(v_fileName_1638_);
v___y_1658_ = v___x_1669_;
goto v___jp_1657_;
}
else
{
size_t v___x_1673_; lean_object* v___x_1674_; 
v___x_1673_ = lean_usize_of_nat(v___x_1670_);
v___x_1674_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__2(v_fileName_1638_, v_a_1650_, v___x_1648_, v___x_1673_, v___x_1669_);
lean_dec(v_a_1650_);
v___y_1658_ = v___x_1674_;
goto v___jp_1657_;
}
}
else
{
size_t v___x_1675_; lean_object* v___x_1676_; 
v___x_1675_ = lean_usize_of_nat(v___x_1670_);
v___x_1676_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__2(v_fileName_1638_, v_a_1650_, v___x_1648_, v___x_1675_, v___x_1669_);
lean_dec(v_a_1650_);
v___y_1658_ = v___x_1676_;
goto v___jp_1657_;
}
}
v___jp_1657_:
{
lean_object* v___x_1659_; uint8_t v___x_1660_; lean_object* v___x_1661_; lean_object* v___x_1662_; uint8_t v___x_1663_; lean_object* v___x_1664_; lean_object* v___x_1666_; 
v___x_1659_ = lean_unsigned_to_nat(0u);
v___x_1660_ = 1;
v___x_1661_ = lean_task_map(v___f_1655_, v___y_1658_, v___x_1659_, v___x_1660_);
v___x_1662_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1));
v___x_1663_ = 0;
v___x_1664_ = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(v___x_1664_, 0, v___x_1661_);
lean_ctor_set(v___x_1664_, 1, v___x_1656_);
lean_ctor_set(v___x_1664_, 2, v___x_1662_);
lean_ctor_set_uint8(v___x_1664_, sizeof(void*)*3, v___x_1663_);
if (v_isShared_1654_ == 0)
{
lean_ctor_set(v___x_1653_, 0, v___x_1664_);
v___x_1666_ = v___x_1653_;
goto v_reusejp_1665_;
}
else
{
lean_object* v_reuseFailAlloc_1667_; 
v_reuseFailAlloc_1667_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_1667_, 0, v___x_1664_);
lean_ctor_set(v_reuseFailAlloc_1667_, 1, v_a_1651_);
v___x_1666_ = v_reuseFailAlloc_1667_;
goto v_reusejp_1665_;
}
v_reusejp_1665_:
{
return v___x_1666_;
}
}
}
}
else
{
lean_object* v_a_1678_; lean_object* v_a_1679_; lean_object* v___x_1681_; uint8_t v_isShared_1682_; uint8_t v_isSharedCheck_1686_; 
lean_dec_ref(v_fileName_1638_);
v_a_1678_ = lean_ctor_get(v___x_1649_, 0);
v_a_1679_ = lean_ctor_get(v___x_1649_, 1);
v_isSharedCheck_1686_ = !lean_is_exclusive(v___x_1649_);
if (v_isSharedCheck_1686_ == 0)
{
v___x_1681_ = v___x_1649_;
v_isShared_1682_ = v_isSharedCheck_1686_;
goto v_resetjp_1680_;
}
else
{
lean_inc(v_a_1679_);
lean_inc(v_a_1678_);
lean_dec(v___x_1649_);
v___x_1681_ = lean_box(0);
v_isShared_1682_ = v_isSharedCheck_1686_;
goto v_resetjp_1680_;
}
v_resetjp_1680_:
{
lean_object* v___x_1684_; 
if (v_isShared_1682_ == 0)
{
v___x_1684_ = v___x_1681_;
goto v_reusejp_1683_;
}
else
{
lean_object* v_reuseFailAlloc_1685_; 
v_reuseFailAlloc_1685_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_1685_, 0, v_a_1678_);
lean_ctor_set(v_reuseFailAlloc_1685_, 1, v_a_1679_);
v___x_1684_ = v_reuseFailAlloc_1685_;
goto v_reusejp_1683_;
}
v_reusejp_1683_:
{
return v___x_1684_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_computePrecompileImportsAux___boxed(lean_object* v_fileName_1687_, lean_object* v_imports_1688_, lean_object* v_a_1689_, lean_object* v_a_1690_, lean_object* v_a_1691_, lean_object* v_a_1692_, lean_object* v_a_1693_, lean_object* v_a_1694_, lean_object* v_a_1695_){
_start:
{
lean_object* v_res_1696_; 
v_res_1696_ = l___private_Lake_Build_Module_0__Lake_computePrecompileImportsAux(v_fileName_1687_, v_imports_1688_, v_a_1689_, v_a_1690_, v_a_1691_, v_a_1692_, v_a_1693_, v_a_1694_);
return v_res_1696_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recComputePrecompileImports___lam__1(lean_object* v___x_1697_, lean_object* v___f_1698_, lean_object* v___x_1699_, lean_object* v_config_1700_, lean_object* v_config_1701_, lean_object* v_dir_1702_, lean_object* v_name_1703_, lean_object* v___y_1704_, lean_object* v___y_1705_, lean_object* v___y_1706_, lean_object* v___y_1707_, lean_object* v___y_1708_, lean_object* v___y_1709_){
_start:
{
lean_object* v___x_1711_; 
lean_inc_ref(v___y_1704_);
lean_inc_ref(v___y_1708_);
lean_inc(v___y_1707_);
lean_inc(v___y_1706_);
lean_inc(v___y_1705_);
v___x_1711_ = lean_apply_7(v___y_1704_, v___x_1697_, v___y_1705_, v___y_1706_, v___y_1707_, v___y_1708_, v___y_1709_, lean_box(0));
if (lean_obj_tag(v___x_1711_) == 0)
{
lean_object* v_a_1712_; lean_object* v_a_1713_; lean_object* v___x_1714_; 
v_a_1712_ = lean_ctor_get(v___x_1711_, 0);
lean_inc(v_a_1712_);
v_a_1713_ = lean_ctor_get(v___x_1711_, 1);
lean_inc(v_a_1713_);
lean_dec_ref(v___x_1711_);
v___x_1714_ = l_Lake_Job_await___redArg(v_a_1712_, v_a_1713_);
if (lean_obj_tag(v___x_1714_) == 0)
{
lean_object* v_a_1715_; lean_object* v_a_1716_; size_t v_sz_1717_; size_t v___x_1718_; lean_object* v___x_1719_; 
v_a_1715_ = lean_ctor_get(v___x_1714_, 0);
lean_inc(v_a_1715_);
v_a_1716_ = lean_ctor_get(v___x_1714_, 1);
lean_inc(v_a_1716_);
lean_dec_ref(v___x_1714_);
v_sz_1717_ = lean_array_size(v_a_1715_);
v___x_1718_ = ((size_t)0ULL);
v___x_1719_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_computePrecompileImportsAux_spec__0(v_sz_1717_, v___x_1718_, v_a_1715_, v___y_1704_, v___y_1705_, v___y_1706_, v___y_1707_, v___y_1708_, v_a_1716_);
if (lean_obj_tag(v___x_1719_) == 0)
{
lean_object* v_a_1720_; lean_object* v_a_1721_; lean_object* v___x_1723_; uint8_t v_isShared_1724_; uint8_t v_isSharedCheck_1754_; 
v_a_1720_ = lean_ctor_get(v___x_1719_, 0);
v_a_1721_ = lean_ctor_get(v___x_1719_, 1);
v_isSharedCheck_1754_ = !lean_is_exclusive(v___x_1719_);
if (v_isSharedCheck_1754_ == 0)
{
v___x_1723_ = v___x_1719_;
v_isShared_1724_ = v_isSharedCheck_1754_;
goto v_resetjp_1722_;
}
else
{
lean_inc(v_a_1721_);
lean_inc(v_a_1720_);
lean_dec(v___x_1719_);
v___x_1723_ = lean_box(0);
v_isShared_1724_ = v_isSharedCheck_1754_;
goto v_resetjp_1722_;
}
v_resetjp_1722_:
{
lean_object* v___y_1726_; lean_object* v___x_1736_; lean_object* v___x_1737_; lean_object* v___x_1738_; uint8_t v___x_1739_; 
v___x_1736_ = lean_unsigned_to_nat(0u);
v___x_1737_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__1, &l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__1_once, _init_l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__1);
v___x_1738_ = lean_array_get_size(v_a_1720_);
v___x_1739_ = lean_nat_dec_lt(v___x_1736_, v___x_1738_);
if (v___x_1739_ == 0)
{
lean_dec(v_a_1720_);
lean_dec(v_name_1703_);
lean_dec_ref(v_dir_1702_);
lean_dec(v_config_1701_);
lean_dec_ref(v_config_1700_);
v___y_1726_ = v___x_1737_;
goto v___jp_1725_;
}
else
{
lean_object* v_srcDir_1740_; lean_object* v_srcDir_1741_; lean_object* v___x_1742_; lean_object* v___x_1743_; lean_object* v___x_1744_; lean_object* v___x_1745_; lean_object* v___x_1746_; lean_object* v___x_1747_; lean_object* v___x_1748_; uint8_t v___x_1749_; 
v_srcDir_1740_ = lean_ctor_get(v_config_1700_, 5);
lean_inc_ref(v_srcDir_1740_);
lean_dec_ref(v_config_1700_);
v_srcDir_1741_ = lean_ctor_get(v_config_1701_, 1);
lean_inc_ref(v_srcDir_1741_);
lean_dec(v_config_1701_);
v___x_1742_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__0));
v___x_1743_ = l_System_FilePath_normalize(v_srcDir_1740_);
lean_inc_ref(v_dir_1702_);
v___x_1744_ = l_Lake_joinRelative(v_dir_1702_, v___x_1743_);
v___x_1745_ = l_System_FilePath_normalize(v_srcDir_1741_);
v___x_1746_ = l_Lake_joinRelative(v___x_1744_, v___x_1745_);
v___x_1747_ = l_Lean_modToFilePath(v___x_1746_, v_name_1703_, v___x_1742_);
lean_dec_ref(v___x_1746_);
v___x_1748_ = l_Lake_relPathFrom(v_dir_1702_, v___x_1747_);
lean_dec_ref(v_dir_1702_);
v___x_1749_ = lean_nat_dec_le(v___x_1738_, v___x_1738_);
if (v___x_1749_ == 0)
{
if (v___x_1739_ == 0)
{
lean_dec_ref(v___x_1748_);
lean_dec(v_a_1720_);
v___y_1726_ = v___x_1737_;
goto v___jp_1725_;
}
else
{
size_t v___x_1750_; lean_object* v___x_1751_; 
v___x_1750_ = lean_usize_of_nat(v___x_1738_);
v___x_1751_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__2(v___x_1748_, v_a_1720_, v___x_1718_, v___x_1750_, v___x_1737_);
lean_dec(v_a_1720_);
v___y_1726_ = v___x_1751_;
goto v___jp_1725_;
}
}
else
{
size_t v___x_1752_; lean_object* v___x_1753_; 
v___x_1752_ = lean_usize_of_nat(v___x_1738_);
v___x_1753_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__2(v___x_1748_, v_a_1720_, v___x_1718_, v___x_1752_, v___x_1737_);
lean_dec(v_a_1720_);
v___y_1726_ = v___x_1753_;
goto v___jp_1725_;
}
}
v___jp_1725_:
{
lean_object* v___x_1727_; uint8_t v___x_1728_; lean_object* v___x_1729_; lean_object* v___x_1730_; uint8_t v___x_1731_; lean_object* v___x_1732_; lean_object* v___x_1734_; 
v___x_1727_ = lean_unsigned_to_nat(0u);
v___x_1728_ = 1;
v___x_1729_ = lean_task_map(v___f_1698_, v___y_1726_, v___x_1727_, v___x_1728_);
v___x_1730_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1));
v___x_1731_ = 0;
v___x_1732_ = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(v___x_1732_, 0, v___x_1729_);
lean_ctor_set(v___x_1732_, 1, v___x_1699_);
lean_ctor_set(v___x_1732_, 2, v___x_1730_);
lean_ctor_set_uint8(v___x_1732_, sizeof(void*)*3, v___x_1731_);
if (v_isShared_1724_ == 0)
{
lean_ctor_set(v___x_1723_, 0, v___x_1732_);
v___x_1734_ = v___x_1723_;
goto v_reusejp_1733_;
}
else
{
lean_object* v_reuseFailAlloc_1735_; 
v_reuseFailAlloc_1735_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_1735_, 0, v___x_1732_);
lean_ctor_set(v_reuseFailAlloc_1735_, 1, v_a_1721_);
v___x_1734_ = v_reuseFailAlloc_1735_;
goto v_reusejp_1733_;
}
v_reusejp_1733_:
{
return v___x_1734_;
}
}
}
}
else
{
lean_object* v_a_1755_; lean_object* v_a_1756_; lean_object* v___x_1758_; uint8_t v_isShared_1759_; uint8_t v_isSharedCheck_1763_; 
lean_dec(v_name_1703_);
lean_dec_ref(v_dir_1702_);
lean_dec(v_config_1701_);
lean_dec_ref(v_config_1700_);
lean_dec(v___x_1699_);
lean_dec_ref(v___f_1698_);
v_a_1755_ = lean_ctor_get(v___x_1719_, 0);
v_a_1756_ = lean_ctor_get(v___x_1719_, 1);
v_isSharedCheck_1763_ = !lean_is_exclusive(v___x_1719_);
if (v_isSharedCheck_1763_ == 0)
{
v___x_1758_ = v___x_1719_;
v_isShared_1759_ = v_isSharedCheck_1763_;
goto v_resetjp_1757_;
}
else
{
lean_inc(v_a_1756_);
lean_inc(v_a_1755_);
lean_dec(v___x_1719_);
v___x_1758_ = lean_box(0);
v_isShared_1759_ = v_isSharedCheck_1763_;
goto v_resetjp_1757_;
}
v_resetjp_1757_:
{
lean_object* v___x_1761_; 
if (v_isShared_1759_ == 0)
{
v___x_1761_ = v___x_1758_;
goto v_reusejp_1760_;
}
else
{
lean_object* v_reuseFailAlloc_1762_; 
v_reuseFailAlloc_1762_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_1762_, 0, v_a_1755_);
lean_ctor_set(v_reuseFailAlloc_1762_, 1, v_a_1756_);
v___x_1761_ = v_reuseFailAlloc_1762_;
goto v_reusejp_1760_;
}
v_reusejp_1760_:
{
return v___x_1761_;
}
}
}
}
else
{
lean_object* v_a_1764_; lean_object* v_a_1765_; lean_object* v___x_1767_; uint8_t v_isShared_1768_; uint8_t v_isSharedCheck_1772_; 
lean_dec_ref(v___y_1708_);
lean_dec(v___y_1707_);
lean_dec(v___y_1706_);
lean_dec(v___y_1705_);
lean_dec_ref(v___y_1704_);
lean_dec(v_name_1703_);
lean_dec_ref(v_dir_1702_);
lean_dec(v_config_1701_);
lean_dec_ref(v_config_1700_);
lean_dec(v___x_1699_);
lean_dec_ref(v___f_1698_);
v_a_1764_ = lean_ctor_get(v___x_1714_, 0);
v_a_1765_ = lean_ctor_get(v___x_1714_, 1);
v_isSharedCheck_1772_ = !lean_is_exclusive(v___x_1714_);
if (v_isSharedCheck_1772_ == 0)
{
v___x_1767_ = v___x_1714_;
v_isShared_1768_ = v_isSharedCheck_1772_;
goto v_resetjp_1766_;
}
else
{
lean_inc(v_a_1765_);
lean_inc(v_a_1764_);
lean_dec(v___x_1714_);
v___x_1767_ = lean_box(0);
v_isShared_1768_ = v_isSharedCheck_1772_;
goto v_resetjp_1766_;
}
v_resetjp_1766_:
{
lean_object* v___x_1770_; 
if (v_isShared_1768_ == 0)
{
v___x_1770_ = v___x_1767_;
goto v_reusejp_1769_;
}
else
{
lean_object* v_reuseFailAlloc_1771_; 
v_reuseFailAlloc_1771_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_1771_, 0, v_a_1764_);
lean_ctor_set(v_reuseFailAlloc_1771_, 1, v_a_1765_);
v___x_1770_ = v_reuseFailAlloc_1771_;
goto v_reusejp_1769_;
}
v_reusejp_1769_:
{
return v___x_1770_;
}
}
}
}
else
{
lean_dec_ref(v___y_1708_);
lean_dec(v___y_1707_);
lean_dec(v___y_1706_);
lean_dec(v___y_1705_);
lean_dec_ref(v___y_1704_);
lean_dec(v_name_1703_);
lean_dec_ref(v_dir_1702_);
lean_dec(v_config_1701_);
lean_dec_ref(v_config_1700_);
lean_dec(v___x_1699_);
lean_dec_ref(v___f_1698_);
return v___x_1711_;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recComputePrecompileImports___lam__1___boxed(lean_object* v___x_1773_, lean_object* v___f_1774_, lean_object* v___x_1775_, lean_object* v_config_1776_, lean_object* v_config_1777_, lean_object* v_dir_1778_, lean_object* v_name_1779_, lean_object* v___y_1780_, lean_object* v___y_1781_, lean_object* v___y_1782_, lean_object* v___y_1783_, lean_object* v___y_1784_, lean_object* v___y_1785_, lean_object* v___y_1786_){
_start:
{
lean_object* v_res_1787_; 
v_res_1787_ = l___private_Lake_Build_Module_0__Lake_Module_recComputePrecompileImports___lam__1(v___x_1773_, v___f_1774_, v___x_1775_, v_config_1776_, v_config_1777_, v_dir_1778_, v_name_1779_, v___y_1780_, v___y_1781_, v___y_1782_, v___y_1783_, v___y_1784_, v___y_1785_);
return v_res_1787_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recComputePrecompileImports(lean_object* v_mod_1788_, lean_object* v_a_1789_, lean_object* v_a_1790_, lean_object* v_a_1791_, lean_object* v_a_1792_, lean_object* v_a_1793_, lean_object* v_a_1794_){
_start:
{
lean_object* v_lib_1796_; lean_object* v_pkg_1797_; lean_object* v_name_1798_; lean_object* v_config_1799_; lean_object* v_keyName_1800_; lean_object* v_dir_1801_; lean_object* v_config_1802_; lean_object* v___f_1803_; lean_object* v___x_1804_; lean_object* v___x_1805_; lean_object* v___x_1806_; lean_object* v___x_1807_; lean_object* v___x_1808_; lean_object* v___f_1809_; lean_object* v___x_1810_; 
v_lib_1796_ = lean_ctor_get(v_mod_1788_, 0);
v_pkg_1797_ = lean_ctor_get(v_lib_1796_, 0);
v_name_1798_ = lean_ctor_get(v_mod_1788_, 1);
lean_inc(v_name_1798_);
v_config_1799_ = lean_ctor_get(v_lib_1796_, 2);
lean_inc(v_config_1799_);
v_keyName_1800_ = lean_ctor_get(v_pkg_1797_, 2);
v_dir_1801_ = lean_ctor_get(v_pkg_1797_, 4);
lean_inc_ref(v_dir_1801_);
v_config_1802_ = lean_ctor_get(v_pkg_1797_, 6);
lean_inc_ref(v_config_1802_);
v___f_1803_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__1));
v___x_1804_ = lean_box(0);
v___x_1805_ = l_Lake_Module_importsFacet;
lean_inc(v_name_1798_);
lean_inc(v_keyName_1800_);
v___x_1806_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_1806_, 0, v_keyName_1800_);
lean_ctor_set(v___x_1806_, 1, v_name_1798_);
v___x_1807_ = l_Lake_Module_keyword;
v___x_1808_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_1808_, 0, v___x_1806_);
lean_ctor_set(v___x_1808_, 1, v___x_1807_);
lean_ctor_set(v___x_1808_, 2, v_mod_1788_);
lean_ctor_set(v___x_1808_, 3, v___x_1805_);
v___f_1809_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_recComputePrecompileImports___lam__1___boxed), 14, 7);
lean_closure_set(v___f_1809_, 0, v___x_1808_);
lean_closure_set(v___f_1809_, 1, v___f_1803_);
lean_closure_set(v___f_1809_, 2, v___x_1804_);
lean_closure_set(v___f_1809_, 3, v_config_1802_);
lean_closure_set(v___f_1809_, 4, v_config_1799_);
lean_closure_set(v___f_1809_, 5, v_dir_1801_);
lean_closure_set(v___f_1809_, 6, v_name_1798_);
v___x_1810_ = l_Lake_ensureJob___redArg(v___x_1804_, v___f_1809_, v_a_1789_, v_a_1790_, v_a_1791_, v_a_1792_, v_a_1793_, v_a_1794_);
return v___x_1810_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recComputePrecompileImports___boxed(lean_object* v_mod_1811_, lean_object* v_a_1812_, lean_object* v_a_1813_, lean_object* v_a_1814_, lean_object* v_a_1815_, lean_object* v_a_1816_, lean_object* v_a_1817_, lean_object* v_a_1818_){
_start:
{
lean_object* v_res_1819_; 
v_res_1819_ = l___private_Lake_Build_Module_0__Lake_Module_recComputePrecompileImports(v_mod_1811_, v_a_1812_, v_a_1813_, v_a_1814_, v_a_1815_, v_a_1816_, v_a_1817_);
return v_res_1819_;
}
}
static lean_object* _init_l_Lake_Module_precompileImportsFacetConfig___closed__1(void){
_start:
{
uint8_t v___x_1821_; lean_object* v___f_1822_; uint8_t v___x_1823_; lean_object* v___x_1824_; lean_object* v___x_1825_; lean_object* v___x_1826_; lean_object* v___x_1827_; 
v___x_1821_ = 1;
v___f_1822_ = ((lean_object*)(l_Lake_Module_importsFacetConfig___closed__0));
v___x_1823_ = 0;
v___x_1824_ = lean_box(0);
v___x_1825_ = ((lean_object*)(l_Lake_Module_precompileImportsFacetConfig___closed__0));
v___x_1826_ = l_Lake_Module_keyword;
v___x_1827_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_1827_, 0, v___x_1826_);
lean_ctor_set(v___x_1827_, 1, v___x_1825_);
lean_ctor_set(v___x_1827_, 2, v___x_1824_);
lean_ctor_set(v___x_1827_, 3, v___f_1822_);
lean_ctor_set_uint8(v___x_1827_, sizeof(void*)*4, v___x_1823_);
lean_ctor_set_uint8(v___x_1827_, sizeof(void*)*4 + 1, v___x_1821_);
return v___x_1827_;
}
}
static lean_object* _init_l_Lake_Module_precompileImportsFacetConfig(void){
_start:
{
lean_object* v___x_1828_; 
v___x_1828_ = lean_obj_once(&l_Lake_Module_precompileImportsFacetConfig___closed__1, &l_Lake_Module_precompileImportsFacetConfig___closed__1_once, _init_l_Lake_Module_precompileImportsFacetConfig___closed__1);
return v___x_1828_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_fetchImportLibs_spec__0(uint8_t v_compileSelf_1832_, lean_object* v_self_1833_, lean_object* v_as_1834_, size_t v_i_1835_, size_t v_stop_1836_, lean_object* v_b_1837_, lean_object* v___y_1838_, lean_object* v___y_1839_, lean_object* v___y_1840_, lean_object* v___y_1841_, lean_object* v___y_1842_, lean_object* v___y_1843_){
_start:
{
lean_object* v_a_1846_; lean_object* v_a_1847_; uint8_t v___x_1851_; 
v___x_1851_ = lean_usize_dec_eq(v_i_1835_, v_stop_1836_);
if (v___x_1851_ == 0)
{
lean_object* v_fst_1852_; lean_object* v_snd_1853_; lean_object* v___x_1854_; lean_object* v_lib_1855_; lean_object* v_name_1856_; lean_object* v_pkg_1857_; lean_object* v_name_1858_; lean_object* v_config_1859_; uint8_t v___x_1885_; 
v_fst_1852_ = lean_ctor_get(v_b_1837_, 0);
v_snd_1853_ = lean_ctor_get(v_b_1837_, 1);
v___x_1854_ = lean_array_uget_borrowed(v_as_1834_, v_i_1835_);
v_lib_1855_ = lean_ctor_get(v___x_1854_, 0);
v_name_1856_ = lean_ctor_get(v___x_1854_, 1);
v_pkg_1857_ = lean_ctor_get(v_lib_1855_, 0);
v_name_1858_ = lean_ctor_get(v_lib_1855_, 1);
v_config_1859_ = lean_ctor_get(v_lib_1855_, 2);
v___x_1885_ = l_Lean_NameSet_contains(v_fst_1852_, v_name_1858_);
if (v___x_1885_ == 0)
{
if (v_compileSelf_1832_ == 0)
{
goto v___jp_1881_;
}
else
{
lean_object* v_lib_1886_; lean_object* v_name_1887_; uint8_t v___x_1888_; 
v_lib_1886_ = lean_ctor_get(v_self_1833_, 0);
v_name_1887_ = lean_ctor_get(v_lib_1886_, 1);
v___x_1888_ = lean_name_eq(v_name_1887_, v_name_1858_);
if (v___x_1888_ == 0)
{
goto v___jp_1881_;
}
else
{
lean_object* v___x_1890_; uint8_t v_isShared_1891_; uint8_t v_isSharedCheck_1913_; 
lean_inc(v_snd_1853_);
lean_inc(v_fst_1852_);
v_isSharedCheck_1913_ = !lean_is_exclusive(v_b_1837_);
if (v_isSharedCheck_1913_ == 0)
{
lean_object* v_unused_1914_; lean_object* v_unused_1915_; 
v_unused_1914_ = lean_ctor_get(v_b_1837_, 1);
lean_dec(v_unused_1914_);
v_unused_1915_ = lean_ctor_get(v_b_1837_, 0);
lean_dec(v_unused_1915_);
v___x_1890_ = v_b_1837_;
v_isShared_1891_ = v_isSharedCheck_1913_;
goto v_resetjp_1889_;
}
else
{
lean_dec(v_b_1837_);
v___x_1890_ = lean_box(0);
v_isShared_1891_ = v_isSharedCheck_1913_;
goto v_resetjp_1889_;
}
v_resetjp_1889_:
{
lean_object* v_keyName_1892_; lean_object* v___x_1893_; lean_object* v___x_1894_; lean_object* v___x_1895_; lean_object* v___x_1896_; lean_object* v___x_1897_; 
v_keyName_1892_ = lean_ctor_get(v_pkg_1857_, 2);
v___x_1893_ = l_Lake_Module_dynlibFacet;
lean_inc(v_name_1856_);
lean_inc(v_keyName_1892_);
v___x_1894_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_1894_, 0, v_keyName_1892_);
lean_ctor_set(v___x_1894_, 1, v_name_1856_);
v___x_1895_ = l_Lake_Module_keyword;
lean_inc(v___x_1854_);
v___x_1896_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_1896_, 0, v___x_1894_);
lean_ctor_set(v___x_1896_, 1, v___x_1895_);
lean_ctor_set(v___x_1896_, 2, v___x_1854_);
lean_ctor_set(v___x_1896_, 3, v___x_1893_);
lean_inc_ref(v___y_1838_);
lean_inc_ref(v___y_1842_);
lean_inc(v___y_1841_);
lean_inc(v___y_1840_);
lean_inc(v___y_1839_);
v___x_1897_ = lean_apply_7(v___y_1838_, v___x_1896_, v___y_1839_, v___y_1840_, v___y_1841_, v___y_1842_, v___y_1843_, lean_box(0));
if (lean_obj_tag(v___x_1897_) == 0)
{
lean_object* v_a_1898_; lean_object* v_a_1899_; lean_object* v___x_1900_; lean_object* v___x_1902_; 
v_a_1898_ = lean_ctor_get(v___x_1897_, 0);
lean_inc(v_a_1898_);
v_a_1899_ = lean_ctor_get(v___x_1897_, 1);
lean_inc(v_a_1899_);
lean_dec_ref(v___x_1897_);
v___x_1900_ = lean_array_push(v_snd_1853_, v_a_1898_);
if (v_isShared_1891_ == 0)
{
lean_ctor_set(v___x_1890_, 1, v___x_1900_);
v___x_1902_ = v___x_1890_;
goto v_reusejp_1901_;
}
else
{
lean_object* v_reuseFailAlloc_1903_; 
v_reuseFailAlloc_1903_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_1903_, 0, v_fst_1852_);
lean_ctor_set(v_reuseFailAlloc_1903_, 1, v___x_1900_);
v___x_1902_ = v_reuseFailAlloc_1903_;
goto v_reusejp_1901_;
}
v_reusejp_1901_:
{
v_a_1846_ = v___x_1902_;
v_a_1847_ = v_a_1899_;
goto v___jp_1845_;
}
}
else
{
lean_object* v_a_1904_; lean_object* v_a_1905_; lean_object* v___x_1907_; uint8_t v_isShared_1908_; uint8_t v_isSharedCheck_1912_; 
lean_del_object(v___x_1890_);
lean_dec(v_snd_1853_);
lean_dec(v_fst_1852_);
lean_dec_ref(v___y_1842_);
lean_dec(v___y_1841_);
lean_dec(v___y_1840_);
lean_dec(v___y_1839_);
lean_dec_ref(v___y_1838_);
v_a_1904_ = lean_ctor_get(v___x_1897_, 0);
v_a_1905_ = lean_ctor_get(v___x_1897_, 1);
v_isSharedCheck_1912_ = !lean_is_exclusive(v___x_1897_);
if (v_isSharedCheck_1912_ == 0)
{
v___x_1907_ = v___x_1897_;
v_isShared_1908_ = v_isSharedCheck_1912_;
goto v_resetjp_1906_;
}
else
{
lean_inc(v_a_1905_);
lean_inc(v_a_1904_);
lean_dec(v___x_1897_);
v___x_1907_ = lean_box(0);
v_isShared_1908_ = v_isSharedCheck_1912_;
goto v_resetjp_1906_;
}
v_resetjp_1906_:
{
lean_object* v___x_1910_; 
if (v_isShared_1908_ == 0)
{
v___x_1910_ = v___x_1907_;
goto v_reusejp_1909_;
}
else
{
lean_object* v_reuseFailAlloc_1911_; 
v_reuseFailAlloc_1911_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_1911_, 0, v_a_1904_);
lean_ctor_set(v_reuseFailAlloc_1911_, 1, v_a_1905_);
v___x_1910_ = v_reuseFailAlloc_1911_;
goto v_reusejp_1909_;
}
v_reusejp_1909_:
{
return v___x_1910_;
}
}
}
}
}
}
}
else
{
v_a_1846_ = v_b_1837_;
v_a_1847_ = v___y_1843_;
goto v___jp_1845_;
}
v___jp_1860_:
{
lean_object* v_keyName_1861_; lean_object* v___x_1862_; lean_object* v___x_1863_; lean_object* v___x_1864_; lean_object* v___x_1865_; lean_object* v___x_1866_; 
v_keyName_1861_ = lean_ctor_get(v_pkg_1857_, 2);
v___x_1862_ = l_Lake_LeanLib_sharedFacet;
lean_inc(v_name_1858_);
lean_inc(v_keyName_1861_);
v___x_1863_ = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(v___x_1863_, 0, v_keyName_1861_);
lean_ctor_set(v___x_1863_, 1, v_name_1858_);
v___x_1864_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_fetchImportLibs_spec__0___closed__1));
lean_inc_ref(v_lib_1855_);
v___x_1865_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_1865_, 0, v___x_1863_);
lean_ctor_set(v___x_1865_, 1, v___x_1864_);
lean_ctor_set(v___x_1865_, 2, v_lib_1855_);
lean_ctor_set(v___x_1865_, 3, v___x_1862_);
lean_inc_ref(v___y_1838_);
lean_inc_ref(v___y_1842_);
lean_inc(v___y_1841_);
lean_inc(v___y_1840_);
lean_inc(v___y_1839_);
v___x_1866_ = lean_apply_7(v___y_1838_, v___x_1865_, v___y_1839_, v___y_1840_, v___y_1841_, v___y_1842_, v___y_1843_, lean_box(0));
if (lean_obj_tag(v___x_1866_) == 0)
{
lean_object* v_a_1867_; lean_object* v_a_1868_; lean_object* v___x_1869_; lean_object* v___x_1870_; lean_object* v___x_1871_; 
v_a_1867_ = lean_ctor_get(v___x_1866_, 0);
lean_inc(v_a_1867_);
v_a_1868_ = lean_ctor_get(v___x_1866_, 1);
lean_inc(v_a_1868_);
lean_dec_ref(v___x_1866_);
v___x_1869_ = lean_array_push(v_snd_1853_, v_a_1867_);
lean_inc(v_name_1858_);
v___x_1870_ = l_Lean_NameSet_insert(v_fst_1852_, v_name_1858_);
v___x_1871_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_1871_, 0, v___x_1870_);
lean_ctor_set(v___x_1871_, 1, v___x_1869_);
v_a_1846_ = v___x_1871_;
v_a_1847_ = v_a_1868_;
goto v___jp_1845_;
}
else
{
lean_object* v_a_1872_; lean_object* v_a_1873_; lean_object* v___x_1875_; uint8_t v_isShared_1876_; uint8_t v_isSharedCheck_1880_; 
lean_dec(v_snd_1853_);
lean_dec(v_fst_1852_);
lean_dec_ref(v___y_1842_);
lean_dec(v___y_1841_);
lean_dec(v___y_1840_);
lean_dec(v___y_1839_);
lean_dec_ref(v___y_1838_);
v_a_1872_ = lean_ctor_get(v___x_1866_, 0);
v_a_1873_ = lean_ctor_get(v___x_1866_, 1);
v_isSharedCheck_1880_ = !lean_is_exclusive(v___x_1866_);
if (v_isSharedCheck_1880_ == 0)
{
v___x_1875_ = v___x_1866_;
v_isShared_1876_ = v_isSharedCheck_1880_;
goto v_resetjp_1874_;
}
else
{
lean_inc(v_a_1873_);
lean_inc(v_a_1872_);
lean_dec(v___x_1866_);
v___x_1875_ = lean_box(0);
v_isShared_1876_ = v_isSharedCheck_1880_;
goto v_resetjp_1874_;
}
v_resetjp_1874_:
{
lean_object* v___x_1878_; 
if (v_isShared_1876_ == 0)
{
v___x_1878_ = v___x_1875_;
goto v_reusejp_1877_;
}
else
{
lean_object* v_reuseFailAlloc_1879_; 
v_reuseFailAlloc_1879_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_1879_, 0, v_a_1872_);
lean_ctor_set(v_reuseFailAlloc_1879_, 1, v_a_1873_);
v___x_1878_ = v_reuseFailAlloc_1879_;
goto v_reusejp_1877_;
}
v_reusejp_1877_:
{
return v___x_1878_;
}
}
}
}
v___jp_1881_:
{
if (v_compileSelf_1832_ == 0)
{
lean_object* v_config_1882_; uint8_t v_precompileModules_1883_; 
v_config_1882_ = lean_ctor_get(v_pkg_1857_, 6);
v_precompileModules_1883_ = lean_ctor_get_uint8(v_config_1882_, sizeof(void*)*27 + 1);
if (v_precompileModules_1883_ == 0)
{
uint8_t v_precompileModules_1884_; 
v_precompileModules_1884_ = lean_ctor_get_uint8(v_config_1859_, sizeof(void*)*9 + 1);
if (v_precompileModules_1884_ == 0)
{
v_a_1846_ = v_b_1837_;
v_a_1847_ = v___y_1843_;
goto v___jp_1845_;
}
else
{
lean_inc(v_snd_1853_);
lean_inc(v_fst_1852_);
lean_dec_ref(v_b_1837_);
goto v___jp_1860_;
}
}
else
{
lean_inc(v_snd_1853_);
lean_inc(v_fst_1852_);
lean_dec_ref(v_b_1837_);
goto v___jp_1860_;
}
}
else
{
lean_inc(v_snd_1853_);
lean_inc(v_fst_1852_);
lean_dec_ref(v_b_1837_);
goto v___jp_1860_;
}
}
}
else
{
lean_object* v___x_1916_; 
lean_dec_ref(v___y_1842_);
lean_dec(v___y_1841_);
lean_dec(v___y_1840_);
lean_dec(v___y_1839_);
lean_dec_ref(v___y_1838_);
v___x_1916_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_1916_, 0, v_b_1837_);
lean_ctor_set(v___x_1916_, 1, v___y_1843_);
return v___x_1916_;
}
v___jp_1845_:
{
size_t v___x_1848_; size_t v___x_1849_; 
v___x_1848_ = ((size_t)1ULL);
v___x_1849_ = lean_usize_add(v_i_1835_, v___x_1848_);
v_i_1835_ = v___x_1849_;
v_b_1837_ = v_a_1846_;
v___y_1843_ = v_a_1847_;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_fetchImportLibs_spec__0___boxed(lean_object* v_compileSelf_1917_, lean_object* v_self_1918_, lean_object* v_as_1919_, lean_object* v_i_1920_, lean_object* v_stop_1921_, lean_object* v_b_1922_, lean_object* v___y_1923_, lean_object* v___y_1924_, lean_object* v___y_1925_, lean_object* v___y_1926_, lean_object* v___y_1927_, lean_object* v___y_1928_, lean_object* v___y_1929_){
_start:
{
uint8_t v_compileSelf_boxed_1930_; size_t v_i_boxed_1931_; size_t v_stop_boxed_1932_; lean_object* v_res_1933_; 
v_compileSelf_boxed_1930_ = lean_unbox(v_compileSelf_1917_);
v_i_boxed_1931_ = lean_unbox_usize(v_i_1920_);
lean_dec(v_i_1920_);
v_stop_boxed_1932_ = lean_unbox_usize(v_stop_1921_);
lean_dec(v_stop_1921_);
v_res_1933_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_fetchImportLibs_spec__0(v_compileSelf_boxed_1930_, v_self_1918_, v_as_1919_, v_i_boxed_1931_, v_stop_boxed_1932_, v_b_1922_, v___y_1923_, v___y_1924_, v___y_1925_, v___y_1926_, v___y_1927_, v___y_1928_);
lean_dec_ref(v_as_1919_);
lean_dec_ref(v_self_1918_);
return v_res_1933_;
}
}
static lean_object* _init_l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___closed__1(void){
_start:
{
lean_object* v___x_1936_; lean_object* v___x_1937_; lean_object* v___x_1938_; 
v___x_1936_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___closed__0));
v___x_1937_ = l_Lean_NameSet_empty;
v___x_1938_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_1938_, 0, v___x_1937_);
lean_ctor_set(v___x_1938_, 1, v___x_1936_);
return v___x_1938_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs(lean_object* v_self_1939_, lean_object* v_imps_1940_, uint8_t v_compileSelf_1941_, lean_object* v_a_1942_, lean_object* v_a_1943_, lean_object* v_a_1944_, lean_object* v_a_1945_, lean_object* v_a_1946_, lean_object* v_a_1947_){
_start:
{
lean_object* v_snd_1950_; lean_object* v_a_1951_; lean_object* v___y_1954_; lean_object* v___x_1967_; lean_object* v___x_1968_; lean_object* v___x_1969_; uint8_t v___x_1970_; 
v___x_1967_ = lean_unsigned_to_nat(0u);
v___x_1968_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___closed__0));
v___x_1969_ = lean_array_get_size(v_imps_1940_);
v___x_1970_ = lean_nat_dec_lt(v___x_1967_, v___x_1969_);
if (v___x_1970_ == 0)
{
lean_dec_ref(v_a_1946_);
lean_dec(v_a_1945_);
lean_dec(v_a_1944_);
lean_dec(v_a_1943_);
lean_dec_ref(v_a_1942_);
v_snd_1950_ = v___x_1968_;
v_a_1951_ = v_a_1947_;
goto v___jp_1949_;
}
else
{
lean_object* v___x_1971_; uint8_t v___x_1972_; 
v___x_1971_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___closed__1, &l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___closed__1_once, _init_l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___closed__1);
v___x_1972_ = lean_nat_dec_le(v___x_1969_, v___x_1969_);
if (v___x_1972_ == 0)
{
if (v___x_1970_ == 0)
{
lean_dec_ref(v_a_1946_);
lean_dec(v_a_1945_);
lean_dec(v_a_1944_);
lean_dec(v_a_1943_);
lean_dec_ref(v_a_1942_);
v_snd_1950_ = v___x_1968_;
v_a_1951_ = v_a_1947_;
goto v___jp_1949_;
}
else
{
size_t v___x_1973_; size_t v___x_1974_; lean_object* v___x_1975_; 
v___x_1973_ = ((size_t)0ULL);
v___x_1974_ = lean_usize_of_nat(v___x_1969_);
v___x_1975_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_fetchImportLibs_spec__0(v_compileSelf_1941_, v_self_1939_, v_imps_1940_, v___x_1973_, v___x_1974_, v___x_1971_, v_a_1942_, v_a_1943_, v_a_1944_, v_a_1945_, v_a_1946_, v_a_1947_);
v___y_1954_ = v___x_1975_;
goto v___jp_1953_;
}
}
else
{
size_t v___x_1976_; size_t v___x_1977_; lean_object* v___x_1978_; 
v___x_1976_ = ((size_t)0ULL);
v___x_1977_ = lean_usize_of_nat(v___x_1969_);
v___x_1978_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_fetchImportLibs_spec__0(v_compileSelf_1941_, v_self_1939_, v_imps_1940_, v___x_1976_, v___x_1977_, v___x_1971_, v_a_1942_, v_a_1943_, v_a_1944_, v_a_1945_, v_a_1946_, v_a_1947_);
v___y_1954_ = v___x_1978_;
goto v___jp_1953_;
}
}
v___jp_1949_:
{
lean_object* v___x_1952_; 
v___x_1952_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_1952_, 0, v_snd_1950_);
lean_ctor_set(v___x_1952_, 1, v_a_1951_);
return v___x_1952_;
}
v___jp_1953_:
{
if (lean_obj_tag(v___y_1954_) == 0)
{
lean_object* v_a_1955_; lean_object* v_a_1956_; lean_object* v_snd_1957_; 
v_a_1955_ = lean_ctor_get(v___y_1954_, 0);
lean_inc(v_a_1955_);
v_a_1956_ = lean_ctor_get(v___y_1954_, 1);
lean_inc(v_a_1956_);
lean_dec_ref(v___y_1954_);
v_snd_1957_ = lean_ctor_get(v_a_1955_, 1);
lean_inc(v_snd_1957_);
lean_dec(v_a_1955_);
v_snd_1950_ = v_snd_1957_;
v_a_1951_ = v_a_1956_;
goto v___jp_1949_;
}
else
{
lean_object* v_a_1958_; lean_object* v_a_1959_; lean_object* v___x_1961_; uint8_t v_isShared_1962_; uint8_t v_isSharedCheck_1966_; 
v_a_1958_ = lean_ctor_get(v___y_1954_, 0);
v_a_1959_ = lean_ctor_get(v___y_1954_, 1);
v_isSharedCheck_1966_ = !lean_is_exclusive(v___y_1954_);
if (v_isSharedCheck_1966_ == 0)
{
v___x_1961_ = v___y_1954_;
v_isShared_1962_ = v_isSharedCheck_1966_;
goto v_resetjp_1960_;
}
else
{
lean_inc(v_a_1959_);
lean_inc(v_a_1958_);
lean_dec(v___y_1954_);
v___x_1961_ = lean_box(0);
v_isShared_1962_ = v_isSharedCheck_1966_;
goto v_resetjp_1960_;
}
v_resetjp_1960_:
{
lean_object* v___x_1964_; 
if (v_isShared_1962_ == 0)
{
v___x_1964_ = v___x_1961_;
goto v_reusejp_1963_;
}
else
{
lean_object* v_reuseFailAlloc_1965_; 
v_reuseFailAlloc_1965_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_1965_, 0, v_a_1958_);
lean_ctor_set(v_reuseFailAlloc_1965_, 1, v_a_1959_);
v___x_1964_ = v_reuseFailAlloc_1965_;
goto v_reusejp_1963_;
}
v_reusejp_1963_:
{
return v___x_1964_;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___boxed(lean_object* v_self_1979_, lean_object* v_imps_1980_, lean_object* v_compileSelf_1981_, lean_object* v_a_1982_, lean_object* v_a_1983_, lean_object* v_a_1984_, lean_object* v_a_1985_, lean_object* v_a_1986_, lean_object* v_a_1987_, lean_object* v_a_1988_){
_start:
{
uint8_t v_compileSelf_boxed_1989_; lean_object* v_res_1990_; 
v_compileSelf_boxed_1989_ = lean_unbox(v_compileSelf_1981_);
v_res_1990_ = l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs(v_self_1979_, v_imps_1980_, v_compileSelf_boxed_1989_, v_a_1982_, v_a_1983_, v_a_1984_, v_a_1985_, v_a_1986_, v_a_1987_);
lean_dec_ref(v_imps_1980_);
lean_dec_ref(v_self_1979_);
return v_res_1990_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportLibs_spec__0(lean_object* v_as_1991_, size_t v_i_1992_, size_t v_stop_1993_, lean_object* v_b_1994_, lean_object* v___y_1995_, lean_object* v___y_1996_, lean_object* v___y_1997_, lean_object* v___y_1998_, lean_object* v___y_1999_, lean_object* v___y_2000_){
_start:
{
lean_object* v_a_2003_; lean_object* v_a_2004_; uint8_t v___x_2008_; 
v___x_2008_ = lean_usize_dec_eq(v_i_1992_, v_stop_1993_);
if (v___x_2008_ == 0)
{
lean_object* v_fst_2009_; lean_object* v_snd_2010_; lean_object* v___x_2011_; lean_object* v_lib_2012_; lean_object* v___x_2014_; uint8_t v_isShared_2015_; uint8_t v_isSharedCheck_2046_; 
v_fst_2009_ = lean_ctor_get(v_b_1994_, 0);
v_snd_2010_ = lean_ctor_get(v_b_1994_, 1);
v___x_2011_ = lean_array_uget(v_as_1991_, v_i_1992_);
v_lib_2012_ = lean_ctor_get(v___x_2011_, 0);
v_isSharedCheck_2046_ = !lean_is_exclusive(v___x_2011_);
if (v_isSharedCheck_2046_ == 0)
{
lean_object* v_unused_2047_; 
v_unused_2047_ = lean_ctor_get(v___x_2011_, 1);
lean_dec(v_unused_2047_);
v___x_2014_ = v___x_2011_;
v_isShared_2015_ = v_isSharedCheck_2046_;
goto v_resetjp_2013_;
}
else
{
lean_inc(v_lib_2012_);
lean_dec(v___x_2011_);
v___x_2014_ = lean_box(0);
v_isShared_2015_ = v_isSharedCheck_2046_;
goto v_resetjp_2013_;
}
v_resetjp_2013_:
{
lean_object* v_pkg_2016_; lean_object* v_name_2017_; lean_object* v_config_2018_; uint8_t v___x_2019_; 
v_pkg_2016_ = lean_ctor_get(v_lib_2012_, 0);
v_name_2017_ = lean_ctor_get(v_lib_2012_, 1);
lean_inc(v_name_2017_);
v_config_2018_ = lean_ctor_get(v_lib_2012_, 2);
v___x_2019_ = l_Lean_NameSet_contains(v_fst_2009_, v_name_2017_);
if (v___x_2019_ == 0)
{
lean_object* v_keyName_2020_; lean_object* v_config_2021_; uint8_t v_precompileModules_2044_; 
v_keyName_2020_ = lean_ctor_get(v_pkg_2016_, 2);
v_config_2021_ = lean_ctor_get(v_pkg_2016_, 6);
v_precompileModules_2044_ = lean_ctor_get_uint8(v_config_2021_, sizeof(void*)*27 + 1);
if (v_precompileModules_2044_ == 0)
{
uint8_t v_precompileModules_2045_; 
v_precompileModules_2045_ = lean_ctor_get_uint8(v_config_2018_, sizeof(void*)*9 + 1);
if (v_precompileModules_2045_ == 0)
{
lean_dec(v_name_2017_);
lean_del_object(v___x_2014_);
lean_dec_ref(v_lib_2012_);
v_a_2003_ = v_b_1994_;
v_a_2004_ = v___y_2000_;
goto v___jp_2002_;
}
else
{
lean_inc(v_snd_2010_);
lean_inc(v_fst_2009_);
lean_dec_ref(v_b_1994_);
goto v___jp_2022_;
}
}
else
{
lean_inc(v_snd_2010_);
lean_inc(v_fst_2009_);
lean_dec_ref(v_b_1994_);
goto v___jp_2022_;
}
v___jp_2022_:
{
lean_object* v___x_2023_; lean_object* v___x_2025_; 
v___x_2023_ = l_Lake_LeanLib_sharedFacet;
lean_inc(v_name_2017_);
lean_inc(v_keyName_2020_);
if (v_isShared_2015_ == 0)
{
lean_ctor_set_tag(v___x_2014_, 3);
lean_ctor_set(v___x_2014_, 1, v_name_2017_);
lean_ctor_set(v___x_2014_, 0, v_keyName_2020_);
v___x_2025_ = v___x_2014_;
goto v_reusejp_2024_;
}
else
{
lean_object* v_reuseFailAlloc_2043_; 
v_reuseFailAlloc_2043_ = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(v_reuseFailAlloc_2043_, 0, v_keyName_2020_);
lean_ctor_set(v_reuseFailAlloc_2043_, 1, v_name_2017_);
v___x_2025_ = v_reuseFailAlloc_2043_;
goto v_reusejp_2024_;
}
v_reusejp_2024_:
{
lean_object* v___x_2026_; lean_object* v___x_2027_; lean_object* v___x_2028_; 
v___x_2026_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_fetchImportLibs_spec__0___closed__1));
v___x_2027_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_2027_, 0, v___x_2025_);
lean_ctor_set(v___x_2027_, 1, v___x_2026_);
lean_ctor_set(v___x_2027_, 2, v_lib_2012_);
lean_ctor_set(v___x_2027_, 3, v___x_2023_);
lean_inc_ref(v___y_1995_);
lean_inc_ref(v___y_1999_);
lean_inc(v___y_1998_);
lean_inc(v___y_1997_);
lean_inc(v___y_1996_);
v___x_2028_ = lean_apply_7(v___y_1995_, v___x_2027_, v___y_1996_, v___y_1997_, v___y_1998_, v___y_1999_, v___y_2000_, lean_box(0));
if (lean_obj_tag(v___x_2028_) == 0)
{
lean_object* v_a_2029_; lean_object* v_a_2030_; lean_object* v___x_2031_; lean_object* v___x_2032_; lean_object* v___x_2033_; 
v_a_2029_ = lean_ctor_get(v___x_2028_, 0);
lean_inc(v_a_2029_);
v_a_2030_ = lean_ctor_get(v___x_2028_, 1);
lean_inc(v_a_2030_);
lean_dec_ref(v___x_2028_);
v___x_2031_ = lean_array_push(v_snd_2010_, v_a_2029_);
v___x_2032_ = l_Lean_NameSet_insert(v_fst_2009_, v_name_2017_);
v___x_2033_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_2033_, 0, v___x_2032_);
lean_ctor_set(v___x_2033_, 1, v___x_2031_);
v_a_2003_ = v___x_2033_;
v_a_2004_ = v_a_2030_;
goto v___jp_2002_;
}
else
{
lean_object* v_a_2034_; lean_object* v_a_2035_; lean_object* v___x_2037_; uint8_t v_isShared_2038_; uint8_t v_isSharedCheck_2042_; 
lean_dec(v_name_2017_);
lean_dec(v_snd_2010_);
lean_dec(v_fst_2009_);
lean_dec_ref(v___y_1999_);
lean_dec(v___y_1998_);
lean_dec(v___y_1997_);
lean_dec(v___y_1996_);
lean_dec_ref(v___y_1995_);
v_a_2034_ = lean_ctor_get(v___x_2028_, 0);
v_a_2035_ = lean_ctor_get(v___x_2028_, 1);
v_isSharedCheck_2042_ = !lean_is_exclusive(v___x_2028_);
if (v_isSharedCheck_2042_ == 0)
{
v___x_2037_ = v___x_2028_;
v_isShared_2038_ = v_isSharedCheck_2042_;
goto v_resetjp_2036_;
}
else
{
lean_inc(v_a_2035_);
lean_inc(v_a_2034_);
lean_dec(v___x_2028_);
v___x_2037_ = lean_box(0);
v_isShared_2038_ = v_isSharedCheck_2042_;
goto v_resetjp_2036_;
}
v_resetjp_2036_:
{
lean_object* v___x_2040_; 
if (v_isShared_2038_ == 0)
{
v___x_2040_ = v___x_2037_;
goto v_reusejp_2039_;
}
else
{
lean_object* v_reuseFailAlloc_2041_; 
v_reuseFailAlloc_2041_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_2041_, 0, v_a_2034_);
lean_ctor_set(v_reuseFailAlloc_2041_, 1, v_a_2035_);
v___x_2040_ = v_reuseFailAlloc_2041_;
goto v_reusejp_2039_;
}
v_reusejp_2039_:
{
return v___x_2040_;
}
}
}
}
}
}
else
{
lean_dec(v_name_2017_);
lean_del_object(v___x_2014_);
lean_dec_ref(v_lib_2012_);
v_a_2003_ = v_b_1994_;
v_a_2004_ = v___y_2000_;
goto v___jp_2002_;
}
}
}
else
{
lean_object* v___x_2048_; 
lean_dec_ref(v___y_1999_);
lean_dec(v___y_1998_);
lean_dec(v___y_1997_);
lean_dec(v___y_1996_);
lean_dec_ref(v___y_1995_);
v___x_2048_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_2048_, 0, v_b_1994_);
lean_ctor_set(v___x_2048_, 1, v___y_2000_);
return v___x_2048_;
}
v___jp_2002_:
{
size_t v___x_2005_; size_t v___x_2006_; 
v___x_2005_ = ((size_t)1ULL);
v___x_2006_ = lean_usize_add(v_i_1992_, v___x_2005_);
v_i_1992_ = v___x_2006_;
v_b_1994_ = v_a_2003_;
v___y_2000_ = v_a_2004_;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportLibs_spec__0___boxed(lean_object* v_as_2049_, lean_object* v_i_2050_, lean_object* v_stop_2051_, lean_object* v_b_2052_, lean_object* v___y_2053_, lean_object* v___y_2054_, lean_object* v___y_2055_, lean_object* v___y_2056_, lean_object* v___y_2057_, lean_object* v___y_2058_, lean_object* v___y_2059_){
_start:
{
size_t v_i_boxed_2060_; size_t v_stop_boxed_2061_; lean_object* v_res_2062_; 
v_i_boxed_2060_ = lean_unbox_usize(v_i_2050_);
lean_dec(v_i_2050_);
v_stop_boxed_2061_ = lean_unbox_usize(v_stop_2051_);
lean_dec(v_stop_2051_);
v_res_2062_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportLibs_spec__0(v_as_2049_, v_i_boxed_2060_, v_stop_boxed_2061_, v_b_2052_, v___y_2053_, v___y_2054_, v___y_2055_, v___y_2056_, v___y_2057_, v___y_2058_);
lean_dec_ref(v_as_2049_);
return v_res_2062_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchImportLibs(lean_object* v_mods_2064_, lean_object* v_a_2065_, lean_object* v_a_2066_, lean_object* v_a_2067_, lean_object* v_a_2068_, lean_object* v_a_2069_, lean_object* v_a_2070_){
_start:
{
lean_object* v_snd_2073_; lean_object* v_a_2074_; lean_object* v___y_2079_; lean_object* v___x_2092_; lean_object* v___x_2093_; lean_object* v___x_2094_; uint8_t v___x_2095_; 
v___x_2092_ = lean_unsigned_to_nat(0u);
v___x_2093_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___closed__0));
v___x_2094_ = lean_array_get_size(v_mods_2064_);
v___x_2095_ = lean_nat_dec_lt(v___x_2092_, v___x_2094_);
if (v___x_2095_ == 0)
{
lean_dec_ref(v_a_2069_);
lean_dec(v_a_2068_);
lean_dec(v_a_2067_);
lean_dec(v_a_2066_);
lean_dec_ref(v_a_2065_);
v_snd_2073_ = v___x_2093_;
v_a_2074_ = v_a_2070_;
goto v___jp_2072_;
}
else
{
lean_object* v___x_2096_; uint8_t v___x_2097_; 
v___x_2096_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___closed__1, &l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___closed__1_once, _init_l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___closed__1);
v___x_2097_ = lean_nat_dec_le(v___x_2094_, v___x_2094_);
if (v___x_2097_ == 0)
{
if (v___x_2095_ == 0)
{
lean_dec_ref(v_a_2069_);
lean_dec(v_a_2068_);
lean_dec(v_a_2067_);
lean_dec(v_a_2066_);
lean_dec_ref(v_a_2065_);
v_snd_2073_ = v___x_2093_;
v_a_2074_ = v_a_2070_;
goto v___jp_2072_;
}
else
{
size_t v___x_2098_; size_t v___x_2099_; lean_object* v___x_2100_; 
v___x_2098_ = ((size_t)0ULL);
v___x_2099_ = lean_usize_of_nat(v___x_2094_);
v___x_2100_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportLibs_spec__0(v_mods_2064_, v___x_2098_, v___x_2099_, v___x_2096_, v_a_2065_, v_a_2066_, v_a_2067_, v_a_2068_, v_a_2069_, v_a_2070_);
v___y_2079_ = v___x_2100_;
goto v___jp_2078_;
}
}
else
{
size_t v___x_2101_; size_t v___x_2102_; lean_object* v___x_2103_; 
v___x_2101_ = ((size_t)0ULL);
v___x_2102_ = lean_usize_of_nat(v___x_2094_);
v___x_2103_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportLibs_spec__0(v_mods_2064_, v___x_2101_, v___x_2102_, v___x_2096_, v_a_2065_, v_a_2066_, v_a_2067_, v_a_2068_, v_a_2069_, v_a_2070_);
v___y_2079_ = v___x_2103_;
goto v___jp_2078_;
}
}
v___jp_2072_:
{
lean_object* v___x_2075_; lean_object* v___x_2076_; lean_object* v___x_2077_; 
v___x_2075_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_fetchImportLibs___closed__0));
v___x_2076_ = l_Lake_Job_collectArray___redArg(v_snd_2073_, v___x_2075_);
lean_dec_ref(v_snd_2073_);
v___x_2077_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_2077_, 0, v___x_2076_);
lean_ctor_set(v___x_2077_, 1, v_a_2074_);
return v___x_2077_;
}
v___jp_2078_:
{
if (lean_obj_tag(v___y_2079_) == 0)
{
lean_object* v_a_2080_; lean_object* v_a_2081_; lean_object* v_snd_2082_; 
v_a_2080_ = lean_ctor_get(v___y_2079_, 0);
lean_inc(v_a_2080_);
v_a_2081_ = lean_ctor_get(v___y_2079_, 1);
lean_inc(v_a_2081_);
lean_dec_ref(v___y_2079_);
v_snd_2082_ = lean_ctor_get(v_a_2080_, 1);
lean_inc(v_snd_2082_);
lean_dec(v_a_2080_);
v_snd_2073_ = v_snd_2082_;
v_a_2074_ = v_a_2081_;
goto v___jp_2072_;
}
else
{
lean_object* v_a_2083_; lean_object* v_a_2084_; lean_object* v___x_2086_; uint8_t v_isShared_2087_; uint8_t v_isSharedCheck_2091_; 
v_a_2083_ = lean_ctor_get(v___y_2079_, 0);
v_a_2084_ = lean_ctor_get(v___y_2079_, 1);
v_isSharedCheck_2091_ = !lean_is_exclusive(v___y_2079_);
if (v_isSharedCheck_2091_ == 0)
{
v___x_2086_ = v___y_2079_;
v_isShared_2087_ = v_isSharedCheck_2091_;
goto v_resetjp_2085_;
}
else
{
lean_inc(v_a_2084_);
lean_inc(v_a_2083_);
lean_dec(v___y_2079_);
v___x_2086_ = lean_box(0);
v_isShared_2087_ = v_isSharedCheck_2091_;
goto v_resetjp_2085_;
}
v_resetjp_2085_:
{
lean_object* v___x_2089_; 
if (v_isShared_2087_ == 0)
{
v___x_2089_ = v___x_2086_;
goto v_reusejp_2088_;
}
else
{
lean_object* v_reuseFailAlloc_2090_; 
v_reuseFailAlloc_2090_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_2090_, 0, v_a_2083_);
lean_ctor_set(v_reuseFailAlloc_2090_, 1, v_a_2084_);
v___x_2089_ = v_reuseFailAlloc_2090_;
goto v_reusejp_2088_;
}
v_reusejp_2088_:
{
return v___x_2089_;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchImportLibs___boxed(lean_object* v_mods_2104_, lean_object* v_a_2105_, lean_object* v_a_2106_, lean_object* v_a_2107_, lean_object* v_a_2108_, lean_object* v_a_2109_, lean_object* v_a_2110_, lean_object* v_a_2111_){
_start:
{
lean_object* v_res_2112_; 
v_res_2112_ = l___private_Lake_Build_Module_0__Lake_fetchImportLibs(v_mods_2104_, v_a_2105_, v_a_2106_, v_a_2107_, v_a_2108_, v_a_2109_, v_a_2110_);
lean_dec_ref(v_mods_2104_);
return v_res_2112_;
}
}
LEAN_EXPORT uint8_t l_List_elem___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__1(lean_object* v_a_2113_, lean_object* v_x_2114_){
_start:
{
if (lean_obj_tag(v_x_2114_) == 0)
{
uint8_t v___x_2115_; 
v___x_2115_ = 0;
return v___x_2115_;
}
else
{
lean_object* v_head_2116_; lean_object* v_tail_2117_; uint8_t v___x_2118_; 
v_head_2116_ = lean_ctor_get(v_x_2114_, 0);
v_tail_2117_ = lean_ctor_get(v_x_2114_, 1);
v___x_2118_ = lean_string_dec_eq(v_a_2113_, v_head_2116_);
if (v___x_2118_ == 0)
{
v_x_2114_ = v_tail_2117_;
goto _start;
}
else
{
return v___x_2118_;
}
}
}
}
LEAN_EXPORT lean_object* l_List_elem___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__1___boxed(lean_object* v_a_2120_, lean_object* v_x_2121_){
_start:
{
uint8_t v_res_2122_; lean_object* v_r_2123_; 
v_res_2122_ = l_List_elem___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__1(v_a_2120_, v_x_2121_);
lean_dec(v_x_2121_);
lean_dec_ref(v_a_2120_);
v_r_2123_ = lean_box(v_res_2122_);
return v_r_2123_;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__3___redArg(lean_object* v_k_2124_, lean_object* v_v_2125_, lean_object* v_t_2126_){
_start:
{
if (lean_obj_tag(v_t_2126_) == 0)
{
lean_object* v_size_2127_; lean_object* v_k_2128_; lean_object* v_v_2129_; lean_object* v_l_2130_; lean_object* v_r_2131_; lean_object* v___x_2133_; uint8_t v_isShared_2134_; uint8_t v_isSharedCheck_2412_; 
v_size_2127_ = lean_ctor_get(v_t_2126_, 0);
v_k_2128_ = lean_ctor_get(v_t_2126_, 1);
v_v_2129_ = lean_ctor_get(v_t_2126_, 2);
v_l_2130_ = lean_ctor_get(v_t_2126_, 3);
v_r_2131_ = lean_ctor_get(v_t_2126_, 4);
v_isSharedCheck_2412_ = !lean_is_exclusive(v_t_2126_);
if (v_isSharedCheck_2412_ == 0)
{
v___x_2133_ = v_t_2126_;
v_isShared_2134_ = v_isSharedCheck_2412_;
goto v_resetjp_2132_;
}
else
{
lean_inc(v_r_2131_);
lean_inc(v_l_2130_);
lean_inc(v_v_2129_);
lean_inc(v_k_2128_);
lean_inc(v_size_2127_);
lean_dec(v_t_2126_);
v___x_2133_ = lean_box(0);
v_isShared_2134_ = v_isSharedCheck_2412_;
goto v_resetjp_2132_;
}
v_resetjp_2132_:
{
uint8_t v___x_2135_; 
v___x_2135_ = lean_string_dec_lt(v_k_2124_, v_k_2128_);
if (v___x_2135_ == 0)
{
uint8_t v___x_2136_; 
v___x_2136_ = lean_string_dec_eq(v_k_2124_, v_k_2128_);
if (v___x_2136_ == 0)
{
lean_object* v_impl_2137_; lean_object* v___x_2138_; 
lean_dec(v_size_2127_);
v_impl_2137_ = l_Std_DTreeMap_Internal_Impl_insert___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__3___redArg(v_k_2124_, v_v_2125_, v_r_2131_);
v___x_2138_ = lean_unsigned_to_nat(1u);
if (lean_obj_tag(v_l_2130_) == 0)
{
lean_object* v_size_2139_; lean_object* v_size_2140_; lean_object* v_k_2141_; lean_object* v_v_2142_; lean_object* v_l_2143_; lean_object* v_r_2144_; lean_object* v___x_2145_; lean_object* v___x_2146_; uint8_t v___x_2147_; 
v_size_2139_ = lean_ctor_get(v_l_2130_, 0);
v_size_2140_ = lean_ctor_get(v_impl_2137_, 0);
lean_inc(v_size_2140_);
v_k_2141_ = lean_ctor_get(v_impl_2137_, 1);
lean_inc(v_k_2141_);
v_v_2142_ = lean_ctor_get(v_impl_2137_, 2);
lean_inc(v_v_2142_);
v_l_2143_ = lean_ctor_get(v_impl_2137_, 3);
lean_inc(v_l_2143_);
v_r_2144_ = lean_ctor_get(v_impl_2137_, 4);
lean_inc(v_r_2144_);
v___x_2145_ = lean_unsigned_to_nat(3u);
v___x_2146_ = lean_nat_mul(v___x_2145_, v_size_2139_);
v___x_2147_ = lean_nat_dec_lt(v___x_2146_, v_size_2140_);
lean_dec(v___x_2146_);
if (v___x_2147_ == 0)
{
lean_object* v___x_2148_; lean_object* v___x_2149_; lean_object* v___x_2151_; 
lean_dec(v_r_2144_);
lean_dec(v_l_2143_);
lean_dec(v_v_2142_);
lean_dec(v_k_2141_);
v___x_2148_ = lean_nat_add(v___x_2138_, v_size_2139_);
v___x_2149_ = lean_nat_add(v___x_2148_, v_size_2140_);
lean_dec(v_size_2140_);
lean_dec(v___x_2148_);
if (v_isShared_2134_ == 0)
{
lean_ctor_set(v___x_2133_, 4, v_impl_2137_);
lean_ctor_set(v___x_2133_, 0, v___x_2149_);
v___x_2151_ = v___x_2133_;
goto v_reusejp_2150_;
}
else
{
lean_object* v_reuseFailAlloc_2152_; 
v_reuseFailAlloc_2152_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2152_, 0, v___x_2149_);
lean_ctor_set(v_reuseFailAlloc_2152_, 1, v_k_2128_);
lean_ctor_set(v_reuseFailAlloc_2152_, 2, v_v_2129_);
lean_ctor_set(v_reuseFailAlloc_2152_, 3, v_l_2130_);
lean_ctor_set(v_reuseFailAlloc_2152_, 4, v_impl_2137_);
v___x_2151_ = v_reuseFailAlloc_2152_;
goto v_reusejp_2150_;
}
v_reusejp_2150_:
{
return v___x_2151_;
}
}
else
{
lean_object* v___x_2154_; uint8_t v_isShared_2155_; uint8_t v_isSharedCheck_2216_; 
v_isSharedCheck_2216_ = !lean_is_exclusive(v_impl_2137_);
if (v_isSharedCheck_2216_ == 0)
{
lean_object* v_unused_2217_; lean_object* v_unused_2218_; lean_object* v_unused_2219_; lean_object* v_unused_2220_; lean_object* v_unused_2221_; 
v_unused_2217_ = lean_ctor_get(v_impl_2137_, 4);
lean_dec(v_unused_2217_);
v_unused_2218_ = lean_ctor_get(v_impl_2137_, 3);
lean_dec(v_unused_2218_);
v_unused_2219_ = lean_ctor_get(v_impl_2137_, 2);
lean_dec(v_unused_2219_);
v_unused_2220_ = lean_ctor_get(v_impl_2137_, 1);
lean_dec(v_unused_2220_);
v_unused_2221_ = lean_ctor_get(v_impl_2137_, 0);
lean_dec(v_unused_2221_);
v___x_2154_ = v_impl_2137_;
v_isShared_2155_ = v_isSharedCheck_2216_;
goto v_resetjp_2153_;
}
else
{
lean_dec(v_impl_2137_);
v___x_2154_ = lean_box(0);
v_isShared_2155_ = v_isSharedCheck_2216_;
goto v_resetjp_2153_;
}
v_resetjp_2153_:
{
lean_object* v_size_2156_; lean_object* v_k_2157_; lean_object* v_v_2158_; lean_object* v_l_2159_; lean_object* v_r_2160_; lean_object* v_size_2161_; lean_object* v___x_2162_; lean_object* v___x_2163_; uint8_t v___x_2164_; 
v_size_2156_ = lean_ctor_get(v_l_2143_, 0);
v_k_2157_ = lean_ctor_get(v_l_2143_, 1);
v_v_2158_ = lean_ctor_get(v_l_2143_, 2);
v_l_2159_ = lean_ctor_get(v_l_2143_, 3);
v_r_2160_ = lean_ctor_get(v_l_2143_, 4);
v_size_2161_ = lean_ctor_get(v_r_2144_, 0);
v___x_2162_ = lean_unsigned_to_nat(2u);
v___x_2163_ = lean_nat_mul(v___x_2162_, v_size_2161_);
v___x_2164_ = lean_nat_dec_lt(v_size_2156_, v___x_2163_);
lean_dec(v___x_2163_);
if (v___x_2164_ == 0)
{
lean_object* v___x_2166_; uint8_t v_isShared_2167_; uint8_t v_isSharedCheck_2192_; 
lean_inc(v_r_2160_);
lean_inc(v_l_2159_);
lean_inc(v_v_2158_);
lean_inc(v_k_2157_);
v_isSharedCheck_2192_ = !lean_is_exclusive(v_l_2143_);
if (v_isSharedCheck_2192_ == 0)
{
lean_object* v_unused_2193_; lean_object* v_unused_2194_; lean_object* v_unused_2195_; lean_object* v_unused_2196_; lean_object* v_unused_2197_; 
v_unused_2193_ = lean_ctor_get(v_l_2143_, 4);
lean_dec(v_unused_2193_);
v_unused_2194_ = lean_ctor_get(v_l_2143_, 3);
lean_dec(v_unused_2194_);
v_unused_2195_ = lean_ctor_get(v_l_2143_, 2);
lean_dec(v_unused_2195_);
v_unused_2196_ = lean_ctor_get(v_l_2143_, 1);
lean_dec(v_unused_2196_);
v_unused_2197_ = lean_ctor_get(v_l_2143_, 0);
lean_dec(v_unused_2197_);
v___x_2166_ = v_l_2143_;
v_isShared_2167_ = v_isSharedCheck_2192_;
goto v_resetjp_2165_;
}
else
{
lean_dec(v_l_2143_);
v___x_2166_ = lean_box(0);
v_isShared_2167_ = v_isSharedCheck_2192_;
goto v_resetjp_2165_;
}
v_resetjp_2165_:
{
lean_object* v___x_2168_; lean_object* v___x_2169_; lean_object* v___y_2171_; lean_object* v___y_2172_; lean_object* v___y_2173_; lean_object* v___y_2182_; 
v___x_2168_ = lean_nat_add(v___x_2138_, v_size_2139_);
v___x_2169_ = lean_nat_add(v___x_2168_, v_size_2140_);
lean_dec(v_size_2140_);
if (lean_obj_tag(v_l_2159_) == 0)
{
lean_object* v_size_2190_; 
v_size_2190_ = lean_ctor_get(v_l_2159_, 0);
lean_inc(v_size_2190_);
v___y_2182_ = v_size_2190_;
goto v___jp_2181_;
}
else
{
lean_object* v___x_2191_; 
v___x_2191_ = lean_unsigned_to_nat(0u);
v___y_2182_ = v___x_2191_;
goto v___jp_2181_;
}
v___jp_2170_:
{
lean_object* v___x_2174_; lean_object* v___x_2176_; 
v___x_2174_ = lean_nat_add(v___y_2172_, v___y_2173_);
lean_dec(v___y_2173_);
lean_dec(v___y_2172_);
if (v_isShared_2167_ == 0)
{
lean_ctor_set(v___x_2166_, 4, v_r_2144_);
lean_ctor_set(v___x_2166_, 3, v_r_2160_);
lean_ctor_set(v___x_2166_, 2, v_v_2142_);
lean_ctor_set(v___x_2166_, 1, v_k_2141_);
lean_ctor_set(v___x_2166_, 0, v___x_2174_);
v___x_2176_ = v___x_2166_;
goto v_reusejp_2175_;
}
else
{
lean_object* v_reuseFailAlloc_2180_; 
v_reuseFailAlloc_2180_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2180_, 0, v___x_2174_);
lean_ctor_set(v_reuseFailAlloc_2180_, 1, v_k_2141_);
lean_ctor_set(v_reuseFailAlloc_2180_, 2, v_v_2142_);
lean_ctor_set(v_reuseFailAlloc_2180_, 3, v_r_2160_);
lean_ctor_set(v_reuseFailAlloc_2180_, 4, v_r_2144_);
v___x_2176_ = v_reuseFailAlloc_2180_;
goto v_reusejp_2175_;
}
v_reusejp_2175_:
{
lean_object* v___x_2178_; 
if (v_isShared_2155_ == 0)
{
lean_ctor_set(v___x_2154_, 4, v___x_2176_);
lean_ctor_set(v___x_2154_, 3, v___y_2171_);
lean_ctor_set(v___x_2154_, 2, v_v_2158_);
lean_ctor_set(v___x_2154_, 1, v_k_2157_);
lean_ctor_set(v___x_2154_, 0, v___x_2169_);
v___x_2178_ = v___x_2154_;
goto v_reusejp_2177_;
}
else
{
lean_object* v_reuseFailAlloc_2179_; 
v_reuseFailAlloc_2179_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2179_, 0, v___x_2169_);
lean_ctor_set(v_reuseFailAlloc_2179_, 1, v_k_2157_);
lean_ctor_set(v_reuseFailAlloc_2179_, 2, v_v_2158_);
lean_ctor_set(v_reuseFailAlloc_2179_, 3, v___y_2171_);
lean_ctor_set(v_reuseFailAlloc_2179_, 4, v___x_2176_);
v___x_2178_ = v_reuseFailAlloc_2179_;
goto v_reusejp_2177_;
}
v_reusejp_2177_:
{
return v___x_2178_;
}
}
}
v___jp_2181_:
{
lean_object* v___x_2183_; lean_object* v___x_2185_; 
v___x_2183_ = lean_nat_add(v___x_2168_, v___y_2182_);
lean_dec(v___y_2182_);
lean_dec(v___x_2168_);
if (v_isShared_2134_ == 0)
{
lean_ctor_set(v___x_2133_, 4, v_l_2159_);
lean_ctor_set(v___x_2133_, 0, v___x_2183_);
v___x_2185_ = v___x_2133_;
goto v_reusejp_2184_;
}
else
{
lean_object* v_reuseFailAlloc_2189_; 
v_reuseFailAlloc_2189_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2189_, 0, v___x_2183_);
lean_ctor_set(v_reuseFailAlloc_2189_, 1, v_k_2128_);
lean_ctor_set(v_reuseFailAlloc_2189_, 2, v_v_2129_);
lean_ctor_set(v_reuseFailAlloc_2189_, 3, v_l_2130_);
lean_ctor_set(v_reuseFailAlloc_2189_, 4, v_l_2159_);
v___x_2185_ = v_reuseFailAlloc_2189_;
goto v_reusejp_2184_;
}
v_reusejp_2184_:
{
lean_object* v___x_2186_; 
v___x_2186_ = lean_nat_add(v___x_2138_, v_size_2161_);
if (lean_obj_tag(v_r_2160_) == 0)
{
lean_object* v_size_2187_; 
v_size_2187_ = lean_ctor_get(v_r_2160_, 0);
lean_inc(v_size_2187_);
v___y_2171_ = v___x_2185_;
v___y_2172_ = v___x_2186_;
v___y_2173_ = v_size_2187_;
goto v___jp_2170_;
}
else
{
lean_object* v___x_2188_; 
v___x_2188_ = lean_unsigned_to_nat(0u);
v___y_2171_ = v___x_2185_;
v___y_2172_ = v___x_2186_;
v___y_2173_ = v___x_2188_;
goto v___jp_2170_;
}
}
}
}
}
else
{
lean_object* v___x_2198_; lean_object* v___x_2199_; lean_object* v___x_2200_; lean_object* v___x_2202_; 
lean_del_object(v___x_2133_);
v___x_2198_ = lean_nat_add(v___x_2138_, v_size_2139_);
v___x_2199_ = lean_nat_add(v___x_2198_, v_size_2140_);
lean_dec(v_size_2140_);
v___x_2200_ = lean_nat_add(v___x_2198_, v_size_2156_);
lean_dec(v___x_2198_);
lean_inc_ref(v_l_2130_);
if (v_isShared_2155_ == 0)
{
lean_ctor_set(v___x_2154_, 4, v_l_2143_);
lean_ctor_set(v___x_2154_, 3, v_l_2130_);
lean_ctor_set(v___x_2154_, 2, v_v_2129_);
lean_ctor_set(v___x_2154_, 1, v_k_2128_);
lean_ctor_set(v___x_2154_, 0, v___x_2200_);
v___x_2202_ = v___x_2154_;
goto v_reusejp_2201_;
}
else
{
lean_object* v_reuseFailAlloc_2215_; 
v_reuseFailAlloc_2215_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2215_, 0, v___x_2200_);
lean_ctor_set(v_reuseFailAlloc_2215_, 1, v_k_2128_);
lean_ctor_set(v_reuseFailAlloc_2215_, 2, v_v_2129_);
lean_ctor_set(v_reuseFailAlloc_2215_, 3, v_l_2130_);
lean_ctor_set(v_reuseFailAlloc_2215_, 4, v_l_2143_);
v___x_2202_ = v_reuseFailAlloc_2215_;
goto v_reusejp_2201_;
}
v_reusejp_2201_:
{
lean_object* v___x_2204_; uint8_t v_isShared_2205_; uint8_t v_isSharedCheck_2209_; 
v_isSharedCheck_2209_ = !lean_is_exclusive(v_l_2130_);
if (v_isSharedCheck_2209_ == 0)
{
lean_object* v_unused_2210_; lean_object* v_unused_2211_; lean_object* v_unused_2212_; lean_object* v_unused_2213_; lean_object* v_unused_2214_; 
v_unused_2210_ = lean_ctor_get(v_l_2130_, 4);
lean_dec(v_unused_2210_);
v_unused_2211_ = lean_ctor_get(v_l_2130_, 3);
lean_dec(v_unused_2211_);
v_unused_2212_ = lean_ctor_get(v_l_2130_, 2);
lean_dec(v_unused_2212_);
v_unused_2213_ = lean_ctor_get(v_l_2130_, 1);
lean_dec(v_unused_2213_);
v_unused_2214_ = lean_ctor_get(v_l_2130_, 0);
lean_dec(v_unused_2214_);
v___x_2204_ = v_l_2130_;
v_isShared_2205_ = v_isSharedCheck_2209_;
goto v_resetjp_2203_;
}
else
{
lean_dec(v_l_2130_);
v___x_2204_ = lean_box(0);
v_isShared_2205_ = v_isSharedCheck_2209_;
goto v_resetjp_2203_;
}
v_resetjp_2203_:
{
lean_object* v___x_2207_; 
if (v_isShared_2205_ == 0)
{
lean_ctor_set(v___x_2204_, 4, v_r_2144_);
lean_ctor_set(v___x_2204_, 3, v___x_2202_);
lean_ctor_set(v___x_2204_, 2, v_v_2142_);
lean_ctor_set(v___x_2204_, 1, v_k_2141_);
lean_ctor_set(v___x_2204_, 0, v___x_2199_);
v___x_2207_ = v___x_2204_;
goto v_reusejp_2206_;
}
else
{
lean_object* v_reuseFailAlloc_2208_; 
v_reuseFailAlloc_2208_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2208_, 0, v___x_2199_);
lean_ctor_set(v_reuseFailAlloc_2208_, 1, v_k_2141_);
lean_ctor_set(v_reuseFailAlloc_2208_, 2, v_v_2142_);
lean_ctor_set(v_reuseFailAlloc_2208_, 3, v___x_2202_);
lean_ctor_set(v_reuseFailAlloc_2208_, 4, v_r_2144_);
v___x_2207_ = v_reuseFailAlloc_2208_;
goto v_reusejp_2206_;
}
v_reusejp_2206_:
{
return v___x_2207_;
}
}
}
}
}
}
}
else
{
lean_object* v_l_2222_; 
v_l_2222_ = lean_ctor_get(v_impl_2137_, 3);
lean_inc(v_l_2222_);
if (lean_obj_tag(v_l_2222_) == 0)
{
lean_object* v_r_2223_; lean_object* v_k_2224_; lean_object* v_v_2225_; lean_object* v___x_2227_; uint8_t v_isShared_2228_; uint8_t v_isSharedCheck_2248_; 
v_r_2223_ = lean_ctor_get(v_impl_2137_, 4);
v_k_2224_ = lean_ctor_get(v_impl_2137_, 1);
v_v_2225_ = lean_ctor_get(v_impl_2137_, 2);
v_isSharedCheck_2248_ = !lean_is_exclusive(v_impl_2137_);
if (v_isSharedCheck_2248_ == 0)
{
lean_object* v_unused_2249_; lean_object* v_unused_2250_; 
v_unused_2249_ = lean_ctor_get(v_impl_2137_, 3);
lean_dec(v_unused_2249_);
v_unused_2250_ = lean_ctor_get(v_impl_2137_, 0);
lean_dec(v_unused_2250_);
v___x_2227_ = v_impl_2137_;
v_isShared_2228_ = v_isSharedCheck_2248_;
goto v_resetjp_2226_;
}
else
{
lean_inc(v_r_2223_);
lean_inc(v_v_2225_);
lean_inc(v_k_2224_);
lean_dec(v_impl_2137_);
v___x_2227_ = lean_box(0);
v_isShared_2228_ = v_isSharedCheck_2248_;
goto v_resetjp_2226_;
}
v_resetjp_2226_:
{
lean_object* v_k_2229_; lean_object* v_v_2230_; lean_object* v___x_2232_; uint8_t v_isShared_2233_; uint8_t v_isSharedCheck_2244_; 
v_k_2229_ = lean_ctor_get(v_l_2222_, 1);
v_v_2230_ = lean_ctor_get(v_l_2222_, 2);
v_isSharedCheck_2244_ = !lean_is_exclusive(v_l_2222_);
if (v_isSharedCheck_2244_ == 0)
{
lean_object* v_unused_2245_; lean_object* v_unused_2246_; lean_object* v_unused_2247_; 
v_unused_2245_ = lean_ctor_get(v_l_2222_, 4);
lean_dec(v_unused_2245_);
v_unused_2246_ = lean_ctor_get(v_l_2222_, 3);
lean_dec(v_unused_2246_);
v_unused_2247_ = lean_ctor_get(v_l_2222_, 0);
lean_dec(v_unused_2247_);
v___x_2232_ = v_l_2222_;
v_isShared_2233_ = v_isSharedCheck_2244_;
goto v_resetjp_2231_;
}
else
{
lean_inc(v_v_2230_);
lean_inc(v_k_2229_);
lean_dec(v_l_2222_);
v___x_2232_ = lean_box(0);
v_isShared_2233_ = v_isSharedCheck_2244_;
goto v_resetjp_2231_;
}
v_resetjp_2231_:
{
lean_object* v___x_2234_; lean_object* v___x_2236_; 
v___x_2234_ = lean_unsigned_to_nat(3u);
lean_inc_n(v_r_2223_, 2);
if (v_isShared_2233_ == 0)
{
lean_ctor_set(v___x_2232_, 4, v_r_2223_);
lean_ctor_set(v___x_2232_, 3, v_r_2223_);
lean_ctor_set(v___x_2232_, 2, v_v_2129_);
lean_ctor_set(v___x_2232_, 1, v_k_2128_);
lean_ctor_set(v___x_2232_, 0, v___x_2138_);
v___x_2236_ = v___x_2232_;
goto v_reusejp_2235_;
}
else
{
lean_object* v_reuseFailAlloc_2243_; 
v_reuseFailAlloc_2243_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2243_, 0, v___x_2138_);
lean_ctor_set(v_reuseFailAlloc_2243_, 1, v_k_2128_);
lean_ctor_set(v_reuseFailAlloc_2243_, 2, v_v_2129_);
lean_ctor_set(v_reuseFailAlloc_2243_, 3, v_r_2223_);
lean_ctor_set(v_reuseFailAlloc_2243_, 4, v_r_2223_);
v___x_2236_ = v_reuseFailAlloc_2243_;
goto v_reusejp_2235_;
}
v_reusejp_2235_:
{
lean_object* v___x_2238_; 
lean_inc(v_r_2223_);
if (v_isShared_2228_ == 0)
{
lean_ctor_set(v___x_2227_, 3, v_r_2223_);
lean_ctor_set(v___x_2227_, 0, v___x_2138_);
v___x_2238_ = v___x_2227_;
goto v_reusejp_2237_;
}
else
{
lean_object* v_reuseFailAlloc_2242_; 
v_reuseFailAlloc_2242_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2242_, 0, v___x_2138_);
lean_ctor_set(v_reuseFailAlloc_2242_, 1, v_k_2224_);
lean_ctor_set(v_reuseFailAlloc_2242_, 2, v_v_2225_);
lean_ctor_set(v_reuseFailAlloc_2242_, 3, v_r_2223_);
lean_ctor_set(v_reuseFailAlloc_2242_, 4, v_r_2223_);
v___x_2238_ = v_reuseFailAlloc_2242_;
goto v_reusejp_2237_;
}
v_reusejp_2237_:
{
lean_object* v___x_2240_; 
if (v_isShared_2134_ == 0)
{
lean_ctor_set(v___x_2133_, 4, v___x_2238_);
lean_ctor_set(v___x_2133_, 3, v___x_2236_);
lean_ctor_set(v___x_2133_, 2, v_v_2230_);
lean_ctor_set(v___x_2133_, 1, v_k_2229_);
lean_ctor_set(v___x_2133_, 0, v___x_2234_);
v___x_2240_ = v___x_2133_;
goto v_reusejp_2239_;
}
else
{
lean_object* v_reuseFailAlloc_2241_; 
v_reuseFailAlloc_2241_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2241_, 0, v___x_2234_);
lean_ctor_set(v_reuseFailAlloc_2241_, 1, v_k_2229_);
lean_ctor_set(v_reuseFailAlloc_2241_, 2, v_v_2230_);
lean_ctor_set(v_reuseFailAlloc_2241_, 3, v___x_2236_);
lean_ctor_set(v_reuseFailAlloc_2241_, 4, v___x_2238_);
v___x_2240_ = v_reuseFailAlloc_2241_;
goto v_reusejp_2239_;
}
v_reusejp_2239_:
{
return v___x_2240_;
}
}
}
}
}
}
else
{
lean_object* v_r_2251_; 
v_r_2251_ = lean_ctor_get(v_impl_2137_, 4);
lean_inc(v_r_2251_);
if (lean_obj_tag(v_r_2251_) == 0)
{
lean_object* v_k_2252_; lean_object* v_v_2253_; lean_object* v___x_2255_; uint8_t v_isShared_2256_; uint8_t v_isSharedCheck_2264_; 
v_k_2252_ = lean_ctor_get(v_impl_2137_, 1);
v_v_2253_ = lean_ctor_get(v_impl_2137_, 2);
v_isSharedCheck_2264_ = !lean_is_exclusive(v_impl_2137_);
if (v_isSharedCheck_2264_ == 0)
{
lean_object* v_unused_2265_; lean_object* v_unused_2266_; lean_object* v_unused_2267_; 
v_unused_2265_ = lean_ctor_get(v_impl_2137_, 4);
lean_dec(v_unused_2265_);
v_unused_2266_ = lean_ctor_get(v_impl_2137_, 3);
lean_dec(v_unused_2266_);
v_unused_2267_ = lean_ctor_get(v_impl_2137_, 0);
lean_dec(v_unused_2267_);
v___x_2255_ = v_impl_2137_;
v_isShared_2256_ = v_isSharedCheck_2264_;
goto v_resetjp_2254_;
}
else
{
lean_inc(v_v_2253_);
lean_inc(v_k_2252_);
lean_dec(v_impl_2137_);
v___x_2255_ = lean_box(0);
v_isShared_2256_ = v_isSharedCheck_2264_;
goto v_resetjp_2254_;
}
v_resetjp_2254_:
{
lean_object* v___x_2257_; lean_object* v___x_2259_; 
v___x_2257_ = lean_unsigned_to_nat(3u);
if (v_isShared_2256_ == 0)
{
lean_ctor_set(v___x_2255_, 4, v_l_2222_);
lean_ctor_set(v___x_2255_, 2, v_v_2129_);
lean_ctor_set(v___x_2255_, 1, v_k_2128_);
lean_ctor_set(v___x_2255_, 0, v___x_2138_);
v___x_2259_ = v___x_2255_;
goto v_reusejp_2258_;
}
else
{
lean_object* v_reuseFailAlloc_2263_; 
v_reuseFailAlloc_2263_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2263_, 0, v___x_2138_);
lean_ctor_set(v_reuseFailAlloc_2263_, 1, v_k_2128_);
lean_ctor_set(v_reuseFailAlloc_2263_, 2, v_v_2129_);
lean_ctor_set(v_reuseFailAlloc_2263_, 3, v_l_2222_);
lean_ctor_set(v_reuseFailAlloc_2263_, 4, v_l_2222_);
v___x_2259_ = v_reuseFailAlloc_2263_;
goto v_reusejp_2258_;
}
v_reusejp_2258_:
{
lean_object* v___x_2261_; 
if (v_isShared_2134_ == 0)
{
lean_ctor_set(v___x_2133_, 4, v_r_2251_);
lean_ctor_set(v___x_2133_, 3, v___x_2259_);
lean_ctor_set(v___x_2133_, 2, v_v_2253_);
lean_ctor_set(v___x_2133_, 1, v_k_2252_);
lean_ctor_set(v___x_2133_, 0, v___x_2257_);
v___x_2261_ = v___x_2133_;
goto v_reusejp_2260_;
}
else
{
lean_object* v_reuseFailAlloc_2262_; 
v_reuseFailAlloc_2262_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2262_, 0, v___x_2257_);
lean_ctor_set(v_reuseFailAlloc_2262_, 1, v_k_2252_);
lean_ctor_set(v_reuseFailAlloc_2262_, 2, v_v_2253_);
lean_ctor_set(v_reuseFailAlloc_2262_, 3, v___x_2259_);
lean_ctor_set(v_reuseFailAlloc_2262_, 4, v_r_2251_);
v___x_2261_ = v_reuseFailAlloc_2262_;
goto v_reusejp_2260_;
}
v_reusejp_2260_:
{
return v___x_2261_;
}
}
}
}
else
{
lean_object* v___x_2268_; lean_object* v___x_2270_; 
v___x_2268_ = lean_unsigned_to_nat(2u);
if (v_isShared_2134_ == 0)
{
lean_ctor_set(v___x_2133_, 4, v_impl_2137_);
lean_ctor_set(v___x_2133_, 3, v_r_2251_);
lean_ctor_set(v___x_2133_, 0, v___x_2268_);
v___x_2270_ = v___x_2133_;
goto v_reusejp_2269_;
}
else
{
lean_object* v_reuseFailAlloc_2271_; 
v_reuseFailAlloc_2271_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2271_, 0, v___x_2268_);
lean_ctor_set(v_reuseFailAlloc_2271_, 1, v_k_2128_);
lean_ctor_set(v_reuseFailAlloc_2271_, 2, v_v_2129_);
lean_ctor_set(v_reuseFailAlloc_2271_, 3, v_r_2251_);
lean_ctor_set(v_reuseFailAlloc_2271_, 4, v_impl_2137_);
v___x_2270_ = v_reuseFailAlloc_2271_;
goto v_reusejp_2269_;
}
v_reusejp_2269_:
{
return v___x_2270_;
}
}
}
}
}
else
{
lean_object* v___x_2273_; 
lean_dec(v_v_2129_);
lean_dec(v_k_2128_);
if (v_isShared_2134_ == 0)
{
lean_ctor_set(v___x_2133_, 2, v_v_2125_);
lean_ctor_set(v___x_2133_, 1, v_k_2124_);
v___x_2273_ = v___x_2133_;
goto v_reusejp_2272_;
}
else
{
lean_object* v_reuseFailAlloc_2274_; 
v_reuseFailAlloc_2274_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2274_, 0, v_size_2127_);
lean_ctor_set(v_reuseFailAlloc_2274_, 1, v_k_2124_);
lean_ctor_set(v_reuseFailAlloc_2274_, 2, v_v_2125_);
lean_ctor_set(v_reuseFailAlloc_2274_, 3, v_l_2130_);
lean_ctor_set(v_reuseFailAlloc_2274_, 4, v_r_2131_);
v___x_2273_ = v_reuseFailAlloc_2274_;
goto v_reusejp_2272_;
}
v_reusejp_2272_:
{
return v___x_2273_;
}
}
}
else
{
lean_object* v_impl_2275_; lean_object* v___x_2276_; 
lean_dec(v_size_2127_);
v_impl_2275_ = l_Std_DTreeMap_Internal_Impl_insert___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__3___redArg(v_k_2124_, v_v_2125_, v_l_2130_);
v___x_2276_ = lean_unsigned_to_nat(1u);
if (lean_obj_tag(v_r_2131_) == 0)
{
lean_object* v_size_2277_; lean_object* v_size_2278_; lean_object* v_k_2279_; lean_object* v_v_2280_; lean_object* v_l_2281_; lean_object* v_r_2282_; lean_object* v___x_2283_; lean_object* v___x_2284_; uint8_t v___x_2285_; 
v_size_2277_ = lean_ctor_get(v_r_2131_, 0);
v_size_2278_ = lean_ctor_get(v_impl_2275_, 0);
lean_inc(v_size_2278_);
v_k_2279_ = lean_ctor_get(v_impl_2275_, 1);
lean_inc(v_k_2279_);
v_v_2280_ = lean_ctor_get(v_impl_2275_, 2);
lean_inc(v_v_2280_);
v_l_2281_ = lean_ctor_get(v_impl_2275_, 3);
lean_inc(v_l_2281_);
v_r_2282_ = lean_ctor_get(v_impl_2275_, 4);
lean_inc(v_r_2282_);
v___x_2283_ = lean_unsigned_to_nat(3u);
v___x_2284_ = lean_nat_mul(v___x_2283_, v_size_2277_);
v___x_2285_ = lean_nat_dec_lt(v___x_2284_, v_size_2278_);
lean_dec(v___x_2284_);
if (v___x_2285_ == 0)
{
lean_object* v___x_2286_; lean_object* v___x_2287_; lean_object* v___x_2289_; 
lean_dec(v_r_2282_);
lean_dec(v_l_2281_);
lean_dec(v_v_2280_);
lean_dec(v_k_2279_);
v___x_2286_ = lean_nat_add(v___x_2276_, v_size_2278_);
lean_dec(v_size_2278_);
v___x_2287_ = lean_nat_add(v___x_2286_, v_size_2277_);
lean_dec(v___x_2286_);
if (v_isShared_2134_ == 0)
{
lean_ctor_set(v___x_2133_, 3, v_impl_2275_);
lean_ctor_set(v___x_2133_, 0, v___x_2287_);
v___x_2289_ = v___x_2133_;
goto v_reusejp_2288_;
}
else
{
lean_object* v_reuseFailAlloc_2290_; 
v_reuseFailAlloc_2290_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2290_, 0, v___x_2287_);
lean_ctor_set(v_reuseFailAlloc_2290_, 1, v_k_2128_);
lean_ctor_set(v_reuseFailAlloc_2290_, 2, v_v_2129_);
lean_ctor_set(v_reuseFailAlloc_2290_, 3, v_impl_2275_);
lean_ctor_set(v_reuseFailAlloc_2290_, 4, v_r_2131_);
v___x_2289_ = v_reuseFailAlloc_2290_;
goto v_reusejp_2288_;
}
v_reusejp_2288_:
{
return v___x_2289_;
}
}
else
{
lean_object* v___x_2292_; uint8_t v_isShared_2293_; uint8_t v_isSharedCheck_2356_; 
v_isSharedCheck_2356_ = !lean_is_exclusive(v_impl_2275_);
if (v_isSharedCheck_2356_ == 0)
{
lean_object* v_unused_2357_; lean_object* v_unused_2358_; lean_object* v_unused_2359_; lean_object* v_unused_2360_; lean_object* v_unused_2361_; 
v_unused_2357_ = lean_ctor_get(v_impl_2275_, 4);
lean_dec(v_unused_2357_);
v_unused_2358_ = lean_ctor_get(v_impl_2275_, 3);
lean_dec(v_unused_2358_);
v_unused_2359_ = lean_ctor_get(v_impl_2275_, 2);
lean_dec(v_unused_2359_);
v_unused_2360_ = lean_ctor_get(v_impl_2275_, 1);
lean_dec(v_unused_2360_);
v_unused_2361_ = lean_ctor_get(v_impl_2275_, 0);
lean_dec(v_unused_2361_);
v___x_2292_ = v_impl_2275_;
v_isShared_2293_ = v_isSharedCheck_2356_;
goto v_resetjp_2291_;
}
else
{
lean_dec(v_impl_2275_);
v___x_2292_ = lean_box(0);
v_isShared_2293_ = v_isSharedCheck_2356_;
goto v_resetjp_2291_;
}
v_resetjp_2291_:
{
lean_object* v_size_2294_; lean_object* v_size_2295_; lean_object* v_k_2296_; lean_object* v_v_2297_; lean_object* v_l_2298_; lean_object* v_r_2299_; lean_object* v___x_2300_; lean_object* v___x_2301_; uint8_t v___x_2302_; 
v_size_2294_ = lean_ctor_get(v_l_2281_, 0);
v_size_2295_ = lean_ctor_get(v_r_2282_, 0);
v_k_2296_ = lean_ctor_get(v_r_2282_, 1);
v_v_2297_ = lean_ctor_get(v_r_2282_, 2);
v_l_2298_ = lean_ctor_get(v_r_2282_, 3);
v_r_2299_ = lean_ctor_get(v_r_2282_, 4);
v___x_2300_ = lean_unsigned_to_nat(2u);
v___x_2301_ = lean_nat_mul(v___x_2300_, v_size_2294_);
v___x_2302_ = lean_nat_dec_lt(v_size_2295_, v___x_2301_);
lean_dec(v___x_2301_);
if (v___x_2302_ == 0)
{
lean_object* v___x_2304_; uint8_t v_isShared_2305_; uint8_t v_isSharedCheck_2331_; 
lean_inc(v_r_2299_);
lean_inc(v_l_2298_);
lean_inc(v_v_2297_);
lean_inc(v_k_2296_);
v_isSharedCheck_2331_ = !lean_is_exclusive(v_r_2282_);
if (v_isSharedCheck_2331_ == 0)
{
lean_object* v_unused_2332_; lean_object* v_unused_2333_; lean_object* v_unused_2334_; lean_object* v_unused_2335_; lean_object* v_unused_2336_; 
v_unused_2332_ = lean_ctor_get(v_r_2282_, 4);
lean_dec(v_unused_2332_);
v_unused_2333_ = lean_ctor_get(v_r_2282_, 3);
lean_dec(v_unused_2333_);
v_unused_2334_ = lean_ctor_get(v_r_2282_, 2);
lean_dec(v_unused_2334_);
v_unused_2335_ = lean_ctor_get(v_r_2282_, 1);
lean_dec(v_unused_2335_);
v_unused_2336_ = lean_ctor_get(v_r_2282_, 0);
lean_dec(v_unused_2336_);
v___x_2304_ = v_r_2282_;
v_isShared_2305_ = v_isSharedCheck_2331_;
goto v_resetjp_2303_;
}
else
{
lean_dec(v_r_2282_);
v___x_2304_ = lean_box(0);
v_isShared_2305_ = v_isSharedCheck_2331_;
goto v_resetjp_2303_;
}
v_resetjp_2303_:
{
lean_object* v___x_2306_; lean_object* v___x_2307_; lean_object* v___y_2309_; lean_object* v___y_2310_; lean_object* v___y_2311_; lean_object* v___x_2319_; lean_object* v___y_2321_; 
v___x_2306_ = lean_nat_add(v___x_2276_, v_size_2278_);
lean_dec(v_size_2278_);
v___x_2307_ = lean_nat_add(v___x_2306_, v_size_2277_);
lean_dec(v___x_2306_);
v___x_2319_ = lean_nat_add(v___x_2276_, v_size_2294_);
if (lean_obj_tag(v_l_2298_) == 0)
{
lean_object* v_size_2329_; 
v_size_2329_ = lean_ctor_get(v_l_2298_, 0);
lean_inc(v_size_2329_);
v___y_2321_ = v_size_2329_;
goto v___jp_2320_;
}
else
{
lean_object* v___x_2330_; 
v___x_2330_ = lean_unsigned_to_nat(0u);
v___y_2321_ = v___x_2330_;
goto v___jp_2320_;
}
v___jp_2308_:
{
lean_object* v___x_2312_; lean_object* v___x_2314_; 
v___x_2312_ = lean_nat_add(v___y_2309_, v___y_2311_);
lean_dec(v___y_2311_);
lean_dec(v___y_2309_);
if (v_isShared_2305_ == 0)
{
lean_ctor_set(v___x_2304_, 4, v_r_2131_);
lean_ctor_set(v___x_2304_, 3, v_r_2299_);
lean_ctor_set(v___x_2304_, 2, v_v_2129_);
lean_ctor_set(v___x_2304_, 1, v_k_2128_);
lean_ctor_set(v___x_2304_, 0, v___x_2312_);
v___x_2314_ = v___x_2304_;
goto v_reusejp_2313_;
}
else
{
lean_object* v_reuseFailAlloc_2318_; 
v_reuseFailAlloc_2318_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2318_, 0, v___x_2312_);
lean_ctor_set(v_reuseFailAlloc_2318_, 1, v_k_2128_);
lean_ctor_set(v_reuseFailAlloc_2318_, 2, v_v_2129_);
lean_ctor_set(v_reuseFailAlloc_2318_, 3, v_r_2299_);
lean_ctor_set(v_reuseFailAlloc_2318_, 4, v_r_2131_);
v___x_2314_ = v_reuseFailAlloc_2318_;
goto v_reusejp_2313_;
}
v_reusejp_2313_:
{
lean_object* v___x_2316_; 
if (v_isShared_2293_ == 0)
{
lean_ctor_set(v___x_2292_, 4, v___x_2314_);
lean_ctor_set(v___x_2292_, 3, v___y_2310_);
lean_ctor_set(v___x_2292_, 2, v_v_2297_);
lean_ctor_set(v___x_2292_, 1, v_k_2296_);
lean_ctor_set(v___x_2292_, 0, v___x_2307_);
v___x_2316_ = v___x_2292_;
goto v_reusejp_2315_;
}
else
{
lean_object* v_reuseFailAlloc_2317_; 
v_reuseFailAlloc_2317_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2317_, 0, v___x_2307_);
lean_ctor_set(v_reuseFailAlloc_2317_, 1, v_k_2296_);
lean_ctor_set(v_reuseFailAlloc_2317_, 2, v_v_2297_);
lean_ctor_set(v_reuseFailAlloc_2317_, 3, v___y_2310_);
lean_ctor_set(v_reuseFailAlloc_2317_, 4, v___x_2314_);
v___x_2316_ = v_reuseFailAlloc_2317_;
goto v_reusejp_2315_;
}
v_reusejp_2315_:
{
return v___x_2316_;
}
}
}
v___jp_2320_:
{
lean_object* v___x_2322_; lean_object* v___x_2324_; 
v___x_2322_ = lean_nat_add(v___x_2319_, v___y_2321_);
lean_dec(v___y_2321_);
lean_dec(v___x_2319_);
if (v_isShared_2134_ == 0)
{
lean_ctor_set(v___x_2133_, 4, v_l_2298_);
lean_ctor_set(v___x_2133_, 3, v_l_2281_);
lean_ctor_set(v___x_2133_, 2, v_v_2280_);
lean_ctor_set(v___x_2133_, 1, v_k_2279_);
lean_ctor_set(v___x_2133_, 0, v___x_2322_);
v___x_2324_ = v___x_2133_;
goto v_reusejp_2323_;
}
else
{
lean_object* v_reuseFailAlloc_2328_; 
v_reuseFailAlloc_2328_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2328_, 0, v___x_2322_);
lean_ctor_set(v_reuseFailAlloc_2328_, 1, v_k_2279_);
lean_ctor_set(v_reuseFailAlloc_2328_, 2, v_v_2280_);
lean_ctor_set(v_reuseFailAlloc_2328_, 3, v_l_2281_);
lean_ctor_set(v_reuseFailAlloc_2328_, 4, v_l_2298_);
v___x_2324_ = v_reuseFailAlloc_2328_;
goto v_reusejp_2323_;
}
v_reusejp_2323_:
{
lean_object* v___x_2325_; 
v___x_2325_ = lean_nat_add(v___x_2276_, v_size_2277_);
if (lean_obj_tag(v_r_2299_) == 0)
{
lean_object* v_size_2326_; 
v_size_2326_ = lean_ctor_get(v_r_2299_, 0);
lean_inc(v_size_2326_);
v___y_2309_ = v___x_2325_;
v___y_2310_ = v___x_2324_;
v___y_2311_ = v_size_2326_;
goto v___jp_2308_;
}
else
{
lean_object* v___x_2327_; 
v___x_2327_ = lean_unsigned_to_nat(0u);
v___y_2309_ = v___x_2325_;
v___y_2310_ = v___x_2324_;
v___y_2311_ = v___x_2327_;
goto v___jp_2308_;
}
}
}
}
}
else
{
lean_object* v___x_2337_; lean_object* v___x_2338_; lean_object* v___x_2339_; lean_object* v___x_2340_; lean_object* v___x_2342_; 
lean_del_object(v___x_2133_);
v___x_2337_ = lean_nat_add(v___x_2276_, v_size_2278_);
lean_dec(v_size_2278_);
v___x_2338_ = lean_nat_add(v___x_2337_, v_size_2277_);
lean_dec(v___x_2337_);
v___x_2339_ = lean_nat_add(v___x_2276_, v_size_2277_);
v___x_2340_ = lean_nat_add(v___x_2339_, v_size_2295_);
lean_dec(v___x_2339_);
lean_inc_ref(v_r_2131_);
if (v_isShared_2293_ == 0)
{
lean_ctor_set(v___x_2292_, 4, v_r_2131_);
lean_ctor_set(v___x_2292_, 3, v_r_2282_);
lean_ctor_set(v___x_2292_, 2, v_v_2129_);
lean_ctor_set(v___x_2292_, 1, v_k_2128_);
lean_ctor_set(v___x_2292_, 0, v___x_2340_);
v___x_2342_ = v___x_2292_;
goto v_reusejp_2341_;
}
else
{
lean_object* v_reuseFailAlloc_2355_; 
v_reuseFailAlloc_2355_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2355_, 0, v___x_2340_);
lean_ctor_set(v_reuseFailAlloc_2355_, 1, v_k_2128_);
lean_ctor_set(v_reuseFailAlloc_2355_, 2, v_v_2129_);
lean_ctor_set(v_reuseFailAlloc_2355_, 3, v_r_2282_);
lean_ctor_set(v_reuseFailAlloc_2355_, 4, v_r_2131_);
v___x_2342_ = v_reuseFailAlloc_2355_;
goto v_reusejp_2341_;
}
v_reusejp_2341_:
{
lean_object* v___x_2344_; uint8_t v_isShared_2345_; uint8_t v_isSharedCheck_2349_; 
v_isSharedCheck_2349_ = !lean_is_exclusive(v_r_2131_);
if (v_isSharedCheck_2349_ == 0)
{
lean_object* v_unused_2350_; lean_object* v_unused_2351_; lean_object* v_unused_2352_; lean_object* v_unused_2353_; lean_object* v_unused_2354_; 
v_unused_2350_ = lean_ctor_get(v_r_2131_, 4);
lean_dec(v_unused_2350_);
v_unused_2351_ = lean_ctor_get(v_r_2131_, 3);
lean_dec(v_unused_2351_);
v_unused_2352_ = lean_ctor_get(v_r_2131_, 2);
lean_dec(v_unused_2352_);
v_unused_2353_ = lean_ctor_get(v_r_2131_, 1);
lean_dec(v_unused_2353_);
v_unused_2354_ = lean_ctor_get(v_r_2131_, 0);
lean_dec(v_unused_2354_);
v___x_2344_ = v_r_2131_;
v_isShared_2345_ = v_isSharedCheck_2349_;
goto v_resetjp_2343_;
}
else
{
lean_dec(v_r_2131_);
v___x_2344_ = lean_box(0);
v_isShared_2345_ = v_isSharedCheck_2349_;
goto v_resetjp_2343_;
}
v_resetjp_2343_:
{
lean_object* v___x_2347_; 
if (v_isShared_2345_ == 0)
{
lean_ctor_set(v___x_2344_, 4, v___x_2342_);
lean_ctor_set(v___x_2344_, 3, v_l_2281_);
lean_ctor_set(v___x_2344_, 2, v_v_2280_);
lean_ctor_set(v___x_2344_, 1, v_k_2279_);
lean_ctor_set(v___x_2344_, 0, v___x_2338_);
v___x_2347_ = v___x_2344_;
goto v_reusejp_2346_;
}
else
{
lean_object* v_reuseFailAlloc_2348_; 
v_reuseFailAlloc_2348_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2348_, 0, v___x_2338_);
lean_ctor_set(v_reuseFailAlloc_2348_, 1, v_k_2279_);
lean_ctor_set(v_reuseFailAlloc_2348_, 2, v_v_2280_);
lean_ctor_set(v_reuseFailAlloc_2348_, 3, v_l_2281_);
lean_ctor_set(v_reuseFailAlloc_2348_, 4, v___x_2342_);
v___x_2347_ = v_reuseFailAlloc_2348_;
goto v_reusejp_2346_;
}
v_reusejp_2346_:
{
return v___x_2347_;
}
}
}
}
}
}
}
else
{
lean_object* v_l_2362_; 
v_l_2362_ = lean_ctor_get(v_impl_2275_, 3);
lean_inc(v_l_2362_);
if (lean_obj_tag(v_l_2362_) == 0)
{
lean_object* v_r_2363_; lean_object* v_k_2364_; lean_object* v_v_2365_; lean_object* v___x_2367_; uint8_t v_isShared_2368_; uint8_t v_isSharedCheck_2376_; 
v_r_2363_ = lean_ctor_get(v_impl_2275_, 4);
v_k_2364_ = lean_ctor_get(v_impl_2275_, 1);
v_v_2365_ = lean_ctor_get(v_impl_2275_, 2);
v_isSharedCheck_2376_ = !lean_is_exclusive(v_impl_2275_);
if (v_isSharedCheck_2376_ == 0)
{
lean_object* v_unused_2377_; lean_object* v_unused_2378_; 
v_unused_2377_ = lean_ctor_get(v_impl_2275_, 3);
lean_dec(v_unused_2377_);
v_unused_2378_ = lean_ctor_get(v_impl_2275_, 0);
lean_dec(v_unused_2378_);
v___x_2367_ = v_impl_2275_;
v_isShared_2368_ = v_isSharedCheck_2376_;
goto v_resetjp_2366_;
}
else
{
lean_inc(v_r_2363_);
lean_inc(v_v_2365_);
lean_inc(v_k_2364_);
lean_dec(v_impl_2275_);
v___x_2367_ = lean_box(0);
v_isShared_2368_ = v_isSharedCheck_2376_;
goto v_resetjp_2366_;
}
v_resetjp_2366_:
{
lean_object* v___x_2369_; lean_object* v___x_2371_; 
v___x_2369_ = lean_unsigned_to_nat(3u);
lean_inc(v_r_2363_);
if (v_isShared_2368_ == 0)
{
lean_ctor_set(v___x_2367_, 3, v_r_2363_);
lean_ctor_set(v___x_2367_, 2, v_v_2129_);
lean_ctor_set(v___x_2367_, 1, v_k_2128_);
lean_ctor_set(v___x_2367_, 0, v___x_2276_);
v___x_2371_ = v___x_2367_;
goto v_reusejp_2370_;
}
else
{
lean_object* v_reuseFailAlloc_2375_; 
v_reuseFailAlloc_2375_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2375_, 0, v___x_2276_);
lean_ctor_set(v_reuseFailAlloc_2375_, 1, v_k_2128_);
lean_ctor_set(v_reuseFailAlloc_2375_, 2, v_v_2129_);
lean_ctor_set(v_reuseFailAlloc_2375_, 3, v_r_2363_);
lean_ctor_set(v_reuseFailAlloc_2375_, 4, v_r_2363_);
v___x_2371_ = v_reuseFailAlloc_2375_;
goto v_reusejp_2370_;
}
v_reusejp_2370_:
{
lean_object* v___x_2373_; 
if (v_isShared_2134_ == 0)
{
lean_ctor_set(v___x_2133_, 4, v___x_2371_);
lean_ctor_set(v___x_2133_, 3, v_l_2362_);
lean_ctor_set(v___x_2133_, 2, v_v_2365_);
lean_ctor_set(v___x_2133_, 1, v_k_2364_);
lean_ctor_set(v___x_2133_, 0, v___x_2369_);
v___x_2373_ = v___x_2133_;
goto v_reusejp_2372_;
}
else
{
lean_object* v_reuseFailAlloc_2374_; 
v_reuseFailAlloc_2374_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2374_, 0, v___x_2369_);
lean_ctor_set(v_reuseFailAlloc_2374_, 1, v_k_2364_);
lean_ctor_set(v_reuseFailAlloc_2374_, 2, v_v_2365_);
lean_ctor_set(v_reuseFailAlloc_2374_, 3, v_l_2362_);
lean_ctor_set(v_reuseFailAlloc_2374_, 4, v___x_2371_);
v___x_2373_ = v_reuseFailAlloc_2374_;
goto v_reusejp_2372_;
}
v_reusejp_2372_:
{
return v___x_2373_;
}
}
}
}
else
{
lean_object* v_r_2379_; 
v_r_2379_ = lean_ctor_get(v_impl_2275_, 4);
lean_inc(v_r_2379_);
if (lean_obj_tag(v_r_2379_) == 0)
{
lean_object* v_k_2380_; lean_object* v_v_2381_; lean_object* v___x_2383_; uint8_t v_isShared_2384_; uint8_t v_isSharedCheck_2404_; 
v_k_2380_ = lean_ctor_get(v_impl_2275_, 1);
v_v_2381_ = lean_ctor_get(v_impl_2275_, 2);
v_isSharedCheck_2404_ = !lean_is_exclusive(v_impl_2275_);
if (v_isSharedCheck_2404_ == 0)
{
lean_object* v_unused_2405_; lean_object* v_unused_2406_; lean_object* v_unused_2407_; 
v_unused_2405_ = lean_ctor_get(v_impl_2275_, 4);
lean_dec(v_unused_2405_);
v_unused_2406_ = lean_ctor_get(v_impl_2275_, 3);
lean_dec(v_unused_2406_);
v_unused_2407_ = lean_ctor_get(v_impl_2275_, 0);
lean_dec(v_unused_2407_);
v___x_2383_ = v_impl_2275_;
v_isShared_2384_ = v_isSharedCheck_2404_;
goto v_resetjp_2382_;
}
else
{
lean_inc(v_v_2381_);
lean_inc(v_k_2380_);
lean_dec(v_impl_2275_);
v___x_2383_ = lean_box(0);
v_isShared_2384_ = v_isSharedCheck_2404_;
goto v_resetjp_2382_;
}
v_resetjp_2382_:
{
lean_object* v_k_2385_; lean_object* v_v_2386_; lean_object* v___x_2388_; uint8_t v_isShared_2389_; uint8_t v_isSharedCheck_2400_; 
v_k_2385_ = lean_ctor_get(v_r_2379_, 1);
v_v_2386_ = lean_ctor_get(v_r_2379_, 2);
v_isSharedCheck_2400_ = !lean_is_exclusive(v_r_2379_);
if (v_isSharedCheck_2400_ == 0)
{
lean_object* v_unused_2401_; lean_object* v_unused_2402_; lean_object* v_unused_2403_; 
v_unused_2401_ = lean_ctor_get(v_r_2379_, 4);
lean_dec(v_unused_2401_);
v_unused_2402_ = lean_ctor_get(v_r_2379_, 3);
lean_dec(v_unused_2402_);
v_unused_2403_ = lean_ctor_get(v_r_2379_, 0);
lean_dec(v_unused_2403_);
v___x_2388_ = v_r_2379_;
v_isShared_2389_ = v_isSharedCheck_2400_;
goto v_resetjp_2387_;
}
else
{
lean_inc(v_v_2386_);
lean_inc(v_k_2385_);
lean_dec(v_r_2379_);
v___x_2388_ = lean_box(0);
v_isShared_2389_ = v_isSharedCheck_2400_;
goto v_resetjp_2387_;
}
v_resetjp_2387_:
{
lean_object* v___x_2390_; lean_object* v___x_2392_; 
v___x_2390_ = lean_unsigned_to_nat(3u);
if (v_isShared_2389_ == 0)
{
lean_ctor_set(v___x_2388_, 4, v_l_2362_);
lean_ctor_set(v___x_2388_, 3, v_l_2362_);
lean_ctor_set(v___x_2388_, 2, v_v_2381_);
lean_ctor_set(v___x_2388_, 1, v_k_2380_);
lean_ctor_set(v___x_2388_, 0, v___x_2276_);
v___x_2392_ = v___x_2388_;
goto v_reusejp_2391_;
}
else
{
lean_object* v_reuseFailAlloc_2399_; 
v_reuseFailAlloc_2399_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2399_, 0, v___x_2276_);
lean_ctor_set(v_reuseFailAlloc_2399_, 1, v_k_2380_);
lean_ctor_set(v_reuseFailAlloc_2399_, 2, v_v_2381_);
lean_ctor_set(v_reuseFailAlloc_2399_, 3, v_l_2362_);
lean_ctor_set(v_reuseFailAlloc_2399_, 4, v_l_2362_);
v___x_2392_ = v_reuseFailAlloc_2399_;
goto v_reusejp_2391_;
}
v_reusejp_2391_:
{
lean_object* v___x_2394_; 
if (v_isShared_2384_ == 0)
{
lean_ctor_set(v___x_2383_, 4, v_l_2362_);
lean_ctor_set(v___x_2383_, 2, v_v_2129_);
lean_ctor_set(v___x_2383_, 1, v_k_2128_);
lean_ctor_set(v___x_2383_, 0, v___x_2276_);
v___x_2394_ = v___x_2383_;
goto v_reusejp_2393_;
}
else
{
lean_object* v_reuseFailAlloc_2398_; 
v_reuseFailAlloc_2398_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2398_, 0, v___x_2276_);
lean_ctor_set(v_reuseFailAlloc_2398_, 1, v_k_2128_);
lean_ctor_set(v_reuseFailAlloc_2398_, 2, v_v_2129_);
lean_ctor_set(v_reuseFailAlloc_2398_, 3, v_l_2362_);
lean_ctor_set(v_reuseFailAlloc_2398_, 4, v_l_2362_);
v___x_2394_ = v_reuseFailAlloc_2398_;
goto v_reusejp_2393_;
}
v_reusejp_2393_:
{
lean_object* v___x_2396_; 
if (v_isShared_2134_ == 0)
{
lean_ctor_set(v___x_2133_, 4, v___x_2394_);
lean_ctor_set(v___x_2133_, 3, v___x_2392_);
lean_ctor_set(v___x_2133_, 2, v_v_2386_);
lean_ctor_set(v___x_2133_, 1, v_k_2385_);
lean_ctor_set(v___x_2133_, 0, v___x_2390_);
v___x_2396_ = v___x_2133_;
goto v_reusejp_2395_;
}
else
{
lean_object* v_reuseFailAlloc_2397_; 
v_reuseFailAlloc_2397_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2397_, 0, v___x_2390_);
lean_ctor_set(v_reuseFailAlloc_2397_, 1, v_k_2385_);
lean_ctor_set(v_reuseFailAlloc_2397_, 2, v_v_2386_);
lean_ctor_set(v_reuseFailAlloc_2397_, 3, v___x_2392_);
lean_ctor_set(v_reuseFailAlloc_2397_, 4, v___x_2394_);
v___x_2396_ = v_reuseFailAlloc_2397_;
goto v_reusejp_2395_;
}
v_reusejp_2395_:
{
return v___x_2396_;
}
}
}
}
}
}
else
{
lean_object* v___x_2408_; lean_object* v___x_2410_; 
v___x_2408_ = lean_unsigned_to_nat(2u);
if (v_isShared_2134_ == 0)
{
lean_ctor_set(v___x_2133_, 4, v_r_2379_);
lean_ctor_set(v___x_2133_, 3, v_impl_2275_);
lean_ctor_set(v___x_2133_, 0, v___x_2408_);
v___x_2410_ = v___x_2133_;
goto v_reusejp_2409_;
}
else
{
lean_object* v_reuseFailAlloc_2411_; 
v_reuseFailAlloc_2411_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_2411_, 0, v___x_2408_);
lean_ctor_set(v_reuseFailAlloc_2411_, 1, v_k_2128_);
lean_ctor_set(v_reuseFailAlloc_2411_, 2, v_v_2129_);
lean_ctor_set(v_reuseFailAlloc_2411_, 3, v_impl_2275_);
lean_ctor_set(v_reuseFailAlloc_2411_, 4, v_r_2379_);
v___x_2410_ = v_reuseFailAlloc_2411_;
goto v_reusejp_2409_;
}
v_reusejp_2409_:
{
return v___x_2410_;
}
}
}
}
}
}
}
else
{
lean_object* v___x_2413_; lean_object* v___x_2414_; 
v___x_2413_ = lean_unsigned_to_nat(1u);
v___x_2414_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v___x_2414_, 0, v___x_2413_);
lean_ctor_set(v___x_2414_, 1, v_k_2124_);
lean_ctor_set(v___x_2414_, 2, v_v_2125_);
lean_ctor_set(v___x_2414_, 3, v_t_2126_);
lean_ctor_set(v___x_2414_, 4, v_t_2126_);
return v___x_2414_;
}
}
}
LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__0___redArg(lean_object* v_k_2415_, lean_object* v_t_2416_){
_start:
{
if (lean_obj_tag(v_t_2416_) == 0)
{
lean_object* v_k_2417_; lean_object* v_l_2418_; lean_object* v_r_2419_; uint8_t v___x_2420_; 
v_k_2417_ = lean_ctor_get(v_t_2416_, 1);
v_l_2418_ = lean_ctor_get(v_t_2416_, 3);
v_r_2419_ = lean_ctor_get(v_t_2416_, 4);
v___x_2420_ = lean_string_dec_lt(v_k_2415_, v_k_2417_);
if (v___x_2420_ == 0)
{
uint8_t v___x_2421_; 
v___x_2421_ = lean_string_dec_eq(v_k_2415_, v_k_2417_);
if (v___x_2421_ == 0)
{
v_t_2416_ = v_r_2419_;
goto _start;
}
else
{
return v___x_2421_;
}
}
else
{
v_t_2416_ = v_l_2418_;
goto _start;
}
}
else
{
uint8_t v___x_2424_; 
v___x_2424_ = 0;
return v___x_2424_;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__0___redArg___boxed(lean_object* v_k_2425_, lean_object* v_t_2426_){
_start:
{
uint8_t v_res_2427_; lean_object* v_r_2428_; 
v_res_2427_ = l_Std_DTreeMap_Internal_Impl_contains___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__0___redArg(v_k_2425_, v_t_2426_);
lean_dec(v_t_2426_);
lean_dec_ref(v_k_2425_);
v_r_2428_ = lean_box(v_res_2427_);
return v_r_2428_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder_go(lean_object* v_lib_2429_, lean_object* v_ps_2430_, lean_object* v_v_2431_, lean_object* v_o_2432_){
_start:
{
lean_object* v_fst_2434_; lean_object* v_snd_2435_; lean_object* v___y_2440_; lean_object* v_name_2444_; lean_object* v_deps_2445_; uint8_t v___x_2446_; 
v_name_2444_ = lean_ctor_get(v_lib_2429_, 1);
v_deps_2445_ = lean_ctor_get(v_lib_2429_, 2);
v___x_2446_ = l_Std_DTreeMap_Internal_Impl_contains___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__0___redArg(v_name_2444_, v_v_2431_);
if (v___x_2446_ == 0)
{
uint8_t v___x_2447_; 
v___x_2447_ = l_List_elem___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__1(v_name_2444_, v_ps_2430_);
if (v___x_2447_ == 0)
{
lean_object* v_ps_2448_; lean_object* v___y_2450_; 
lean_inc_ref(v_name_2444_);
v_ps_2448_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_ps_2448_, 0, v_name_2444_);
lean_ctor_set(v_ps_2448_, 1, v_ps_2430_);
if (v___x_2446_ == 0)
{
lean_object* v___x_2462_; lean_object* v___x_2463_; 
v___x_2462_ = lean_box(0);
lean_inc_ref(v_name_2444_);
v___x_2463_ = l_Std_DTreeMap_Internal_Impl_insert___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__3___redArg(v_name_2444_, v___x_2462_, v_v_2431_);
v___y_2450_ = v___x_2463_;
goto v___jp_2449_;
}
else
{
v___y_2450_ = v_v_2431_;
goto v___jp_2449_;
}
v___jp_2449_:
{
lean_object* v___x_2451_; lean_object* v___x_2452_; uint8_t v___x_2453_; 
v___x_2451_ = lean_unsigned_to_nat(0u);
v___x_2452_ = lean_array_get_size(v_deps_2445_);
v___x_2453_ = lean_nat_dec_lt(v___x_2451_, v___x_2452_);
if (v___x_2453_ == 0)
{
lean_dec_ref(v_ps_2448_);
v_fst_2434_ = v___y_2450_;
v_snd_2435_ = v_o_2432_;
goto v___jp_2433_;
}
else
{
lean_object* v___x_2454_; uint8_t v___x_2455_; 
lean_inc_ref(v_o_2432_);
lean_inc(v___y_2450_);
v___x_2454_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_2454_, 0, v___y_2450_);
lean_ctor_set(v___x_2454_, 1, v_o_2432_);
v___x_2455_ = lean_nat_dec_le(v___x_2452_, v___x_2452_);
if (v___x_2455_ == 0)
{
if (v___x_2453_ == 0)
{
lean_dec_ref(v___x_2454_);
lean_dec_ref(v_ps_2448_);
v_fst_2434_ = v___y_2450_;
v_snd_2435_ = v_o_2432_;
goto v___jp_2433_;
}
else
{
size_t v___x_2456_; size_t v___x_2457_; lean_object* v___x_2458_; 
lean_dec(v___y_2450_);
lean_dec_ref(v_o_2432_);
v___x_2456_ = ((size_t)0ULL);
v___x_2457_ = lean_usize_of_nat(v___x_2452_);
v___x_2458_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__2(v_ps_2448_, v_deps_2445_, v___x_2456_, v___x_2457_, v___x_2454_);
v___y_2440_ = v___x_2458_;
goto v___jp_2439_;
}
}
else
{
size_t v___x_2459_; size_t v___x_2460_; lean_object* v___x_2461_; 
lean_dec(v___y_2450_);
lean_dec_ref(v_o_2432_);
v___x_2459_ = ((size_t)0ULL);
v___x_2460_ = lean_usize_of_nat(v___x_2452_);
v___x_2461_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__2(v_ps_2448_, v_deps_2445_, v___x_2459_, v___x_2460_, v___x_2454_);
v___y_2440_ = v___x_2461_;
goto v___jp_2439_;
}
}
}
}
else
{
lean_object* v___x_2464_; lean_object* v___x_2465_; 
lean_inc_ref(v_name_2444_);
lean_dec_ref(v_o_2432_);
lean_dec(v_v_2431_);
lean_dec_ref(v_lib_2429_);
v___x_2464_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_2464_, 0, v_name_2444_);
lean_ctor_set(v___x_2464_, 1, v_ps_2430_);
v___x_2465_ = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(v___x_2465_, 0, v___x_2464_);
return v___x_2465_;
}
}
else
{
lean_object* v___x_2466_; lean_object* v___x_2467_; 
lean_dec(v_ps_2430_);
lean_dec_ref(v_lib_2429_);
v___x_2466_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_2466_, 0, v_v_2431_);
lean_ctor_set(v___x_2466_, 1, v_o_2432_);
v___x_2467_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_2467_, 0, v___x_2466_);
return v___x_2467_;
}
v___jp_2433_:
{
lean_object* v___x_2436_; lean_object* v___x_2437_; lean_object* v___x_2438_; 
v___x_2436_ = lean_array_push(v_snd_2435_, v_lib_2429_);
v___x_2437_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_2437_, 0, v_fst_2434_);
lean_ctor_set(v___x_2437_, 1, v___x_2436_);
v___x_2438_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_2438_, 0, v___x_2437_);
return v___x_2438_;
}
v___jp_2439_:
{
if (lean_obj_tag(v___y_2440_) == 0)
{
lean_dec_ref(v_lib_2429_);
return v___y_2440_;
}
else
{
lean_object* v_a_2441_; lean_object* v_fst_2442_; lean_object* v_snd_2443_; 
v_a_2441_ = lean_ctor_get(v___y_2440_, 0);
lean_inc(v_a_2441_);
lean_dec_ref(v___y_2440_);
v_fst_2442_ = lean_ctor_get(v_a_2441_, 0);
lean_inc(v_fst_2442_);
v_snd_2443_ = lean_ctor_get(v_a_2441_, 1);
lean_inc(v_snd_2443_);
lean_dec(v_a_2441_);
v_fst_2434_ = v_fst_2442_;
v_snd_2435_ = v_snd_2443_;
goto v___jp_2433_;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__2(lean_object* v_ps_2468_, lean_object* v_as_2469_, size_t v_i_2470_, size_t v_stop_2471_, lean_object* v_b_2472_){
_start:
{
uint8_t v___x_2473_; 
v___x_2473_ = lean_usize_dec_eq(v_i_2470_, v_stop_2471_);
if (v___x_2473_ == 0)
{
lean_object* v_fst_2474_; lean_object* v_snd_2475_; lean_object* v___x_2476_; lean_object* v___x_2477_; 
v_fst_2474_ = lean_ctor_get(v_b_2472_, 0);
lean_inc(v_fst_2474_);
v_snd_2475_ = lean_ctor_get(v_b_2472_, 1);
lean_inc(v_snd_2475_);
lean_dec_ref(v_b_2472_);
v___x_2476_ = lean_array_uget_borrowed(v_as_2469_, v_i_2470_);
lean_inc(v_ps_2468_);
lean_inc(v___x_2476_);
v___x_2477_ = l___private_Lake_Build_Module_0__Lake_mkLoadOrder_go(v___x_2476_, v_ps_2468_, v_fst_2474_, v_snd_2475_);
if (lean_obj_tag(v___x_2477_) == 0)
{
lean_dec(v_ps_2468_);
return v___x_2477_;
}
else
{
lean_object* v_a_2478_; size_t v___x_2479_; size_t v___x_2480_; 
v_a_2478_ = lean_ctor_get(v___x_2477_, 0);
lean_inc(v_a_2478_);
lean_dec_ref(v___x_2477_);
v___x_2479_ = ((size_t)1ULL);
v___x_2480_ = lean_usize_add(v_i_2470_, v___x_2479_);
v_i_2470_ = v___x_2480_;
v_b_2472_ = v_a_2478_;
goto _start;
}
}
else
{
lean_object* v___x_2482_; 
lean_dec(v_ps_2468_);
v___x_2482_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_2482_, 0, v_b_2472_);
return v___x_2482_;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__2___boxed(lean_object* v_ps_2483_, lean_object* v_as_2484_, lean_object* v_i_2485_, lean_object* v_stop_2486_, lean_object* v_b_2487_){
_start:
{
size_t v_i_boxed_2488_; size_t v_stop_boxed_2489_; lean_object* v_res_2490_; 
v_i_boxed_2488_ = lean_unbox_usize(v_i_2485_);
lean_dec(v_i_2485_);
v_stop_boxed_2489_ = lean_unbox_usize(v_stop_2486_);
lean_dec(v_stop_2486_);
v_res_2490_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__2(v_ps_2483_, v_as_2484_, v_i_boxed_2488_, v_stop_boxed_2489_, v_b_2487_);
lean_dec_ref(v_as_2484_);
return v_res_2490_;
}
}
LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__0(lean_object* v_00_u03b2_2491_, lean_object* v_k_2492_, lean_object* v_t_2493_){
_start:
{
uint8_t v___x_2494_; 
v___x_2494_ = l_Std_DTreeMap_Internal_Impl_contains___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__0___redArg(v_k_2492_, v_t_2493_);
return v___x_2494_;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__0___boxed(lean_object* v_00_u03b2_2495_, lean_object* v_k_2496_, lean_object* v_t_2497_){
_start:
{
uint8_t v_res_2498_; lean_object* v_r_2499_; 
v_res_2498_ = l_Std_DTreeMap_Internal_Impl_contains___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__0(v_00_u03b2_2495_, v_k_2496_, v_t_2497_);
lean_dec(v_t_2497_);
lean_dec_ref(v_k_2496_);
v_r_2499_ = lean_box(v_res_2498_);
return v_r_2499_;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__3(lean_object* v_00_u03b2_2500_, lean_object* v_k_2501_, lean_object* v_v_2502_, lean_object* v_t_2503_, lean_object* v_hl_2504_){
_start:
{
lean_object* v___x_2505_; 
v___x_2505_ = l_Std_DTreeMap_Internal_Impl_insert___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__3___redArg(v_k_2501_, v_v_2502_, v_t_2503_);
return v___x_2505_;
}
}
LEAN_EXPORT lean_object* l_List_mapTR_loop___at___00Lake_formatCycle___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_spec__0_spec__0(lean_object* v_a_2507_, lean_object* v_a_2508_){
_start:
{
if (lean_obj_tag(v_a_2507_) == 0)
{
lean_object* v___x_2509_; 
v___x_2509_ = l_List_reverse___redArg(v_a_2508_);
return v___x_2509_;
}
else
{
lean_object* v_head_2510_; lean_object* v_tail_2511_; lean_object* v___x_2513_; uint8_t v_isShared_2514_; uint8_t v_isSharedCheck_2521_; 
v_head_2510_ = lean_ctor_get(v_a_2507_, 0);
v_tail_2511_ = lean_ctor_get(v_a_2507_, 1);
v_isSharedCheck_2521_ = !lean_is_exclusive(v_a_2507_);
if (v_isSharedCheck_2521_ == 0)
{
v___x_2513_ = v_a_2507_;
v_isShared_2514_ = v_isSharedCheck_2521_;
goto v_resetjp_2512_;
}
else
{
lean_inc(v_tail_2511_);
lean_inc(v_head_2510_);
lean_dec(v_a_2507_);
v___x_2513_ = lean_box(0);
v_isShared_2514_ = v_isSharedCheck_2521_;
goto v_resetjp_2512_;
}
v_resetjp_2512_:
{
lean_object* v___x_2515_; lean_object* v___x_2516_; lean_object* v___x_2518_; 
v___x_2515_ = ((lean_object*)(l_List_mapTR_loop___at___00Lake_formatCycle___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_spec__0_spec__0___closed__0));
v___x_2516_ = lean_string_append(v___x_2515_, v_head_2510_);
lean_dec(v_head_2510_);
if (v_isShared_2514_ == 0)
{
lean_ctor_set(v___x_2513_, 1, v_a_2508_);
lean_ctor_set(v___x_2513_, 0, v___x_2516_);
v___x_2518_ = v___x_2513_;
goto v_reusejp_2517_;
}
else
{
lean_object* v_reuseFailAlloc_2520_; 
v_reuseFailAlloc_2520_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_2520_, 0, v___x_2516_);
lean_ctor_set(v_reuseFailAlloc_2520_, 1, v_a_2508_);
v___x_2518_ = v_reuseFailAlloc_2520_;
goto v_reusejp_2517_;
}
v_reusejp_2517_:
{
v_a_2507_ = v_tail_2511_;
v_a_2508_ = v___x_2518_;
goto _start;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_formatCycle___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_spec__0(lean_object* v_cycle_2522_){
_start:
{
lean_object* v___x_2523_; lean_object* v___x_2524_; lean_object* v___x_2525_; lean_object* v___x_2526_; 
v___x_2523_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__0___closed__0));
v___x_2524_ = lean_box(0);
v___x_2525_ = l_List_mapTR_loop___at___00Lake_formatCycle___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_spec__0_spec__0(v_cycle_2522_, v___x_2524_);
v___x_2526_ = l_String_intercalate(v___x_2523_, v___x_2525_);
return v___x_2526_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_spec__1(lean_object* v_as_2527_, size_t v_i_2528_, size_t v_stop_2529_, lean_object* v_b_2530_){
_start:
{
uint8_t v___x_2531_; 
v___x_2531_ = lean_usize_dec_eq(v_i_2528_, v_stop_2529_);
if (v___x_2531_ == 0)
{
lean_object* v_fst_2532_; lean_object* v_snd_2533_; lean_object* v___x_2534_; lean_object* v___x_2535_; lean_object* v___x_2536_; 
v_fst_2532_ = lean_ctor_get(v_b_2530_, 0);
lean_inc(v_fst_2532_);
v_snd_2533_ = lean_ctor_get(v_b_2530_, 1);
lean_inc(v_snd_2533_);
lean_dec_ref(v_b_2530_);
v___x_2534_ = lean_array_uget_borrowed(v_as_2527_, v_i_2528_);
v___x_2535_ = lean_box(0);
lean_inc(v___x_2534_);
v___x_2536_ = l___private_Lake_Build_Module_0__Lake_mkLoadOrder_go(v___x_2534_, v___x_2535_, v_fst_2532_, v_snd_2533_);
if (lean_obj_tag(v___x_2536_) == 0)
{
return v___x_2536_;
}
else
{
lean_object* v_a_2537_; size_t v___x_2538_; size_t v___x_2539_; 
v_a_2537_ = lean_ctor_get(v___x_2536_, 0);
lean_inc(v_a_2537_);
lean_dec_ref(v___x_2536_);
v___x_2538_ = ((size_t)1ULL);
v___x_2539_ = lean_usize_add(v_i_2528_, v___x_2538_);
v_i_2528_ = v___x_2539_;
v_b_2530_ = v_a_2537_;
goto _start;
}
}
else
{
lean_object* v___x_2541_; 
v___x_2541_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_2541_, 0, v_b_2530_);
return v___x_2541_;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_spec__1___boxed(lean_object* v_as_2542_, lean_object* v_i_2543_, lean_object* v_stop_2544_, lean_object* v_b_2545_){
_start:
{
size_t v_i_boxed_2546_; size_t v_stop_boxed_2547_; lean_object* v_res_2548_; 
v_i_boxed_2546_ = lean_unbox_usize(v_i_2543_);
lean_dec(v_i_2543_);
v_stop_boxed_2547_ = lean_unbox_usize(v_stop_2544_);
lean_dec(v_stop_2544_);
v_res_2548_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_spec__1(v_as_2542_, v_i_boxed_2546_, v_stop_boxed_2547_, v_b_2545_);
lean_dec_ref(v_as_2542_);
return v_res_2548_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder___redArg(lean_object* v_libs_2555_, lean_object* v_a_2556_){
_start:
{
lean_object* v_snd_2559_; lean_object* v___y_2562_; lean_object* v___x_2574_; lean_object* v___x_2575_; lean_object* v___x_2576_; uint8_t v___x_2577_; 
v___x_2574_ = lean_unsigned_to_nat(0u);
v___x_2575_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_mkLoadOrder___redArg___closed__1));
v___x_2576_ = lean_array_get_size(v_libs_2555_);
v___x_2577_ = lean_nat_dec_lt(v___x_2574_, v___x_2576_);
if (v___x_2577_ == 0)
{
v_snd_2559_ = v___x_2575_;
goto v___jp_2558_;
}
else
{
lean_object* v___x_2578_; uint8_t v___x_2579_; 
v___x_2578_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_mkLoadOrder___redArg___closed__2));
v___x_2579_ = lean_nat_dec_le(v___x_2576_, v___x_2576_);
if (v___x_2579_ == 0)
{
if (v___x_2577_ == 0)
{
v_snd_2559_ = v___x_2575_;
goto v___jp_2558_;
}
else
{
size_t v___x_2580_; size_t v___x_2581_; lean_object* v___x_2582_; 
v___x_2580_ = ((size_t)0ULL);
v___x_2581_ = lean_usize_of_nat(v___x_2576_);
v___x_2582_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_spec__1(v_libs_2555_, v___x_2580_, v___x_2581_, v___x_2578_);
v___y_2562_ = v___x_2582_;
goto v___jp_2561_;
}
}
else
{
size_t v___x_2583_; size_t v___x_2584_; lean_object* v___x_2585_; 
v___x_2583_ = ((size_t)0ULL);
v___x_2584_ = lean_usize_of_nat(v___x_2576_);
v___x_2585_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_spec__1(v_libs_2555_, v___x_2583_, v___x_2584_, v___x_2578_);
v___y_2562_ = v___x_2585_;
goto v___jp_2561_;
}
}
v___jp_2558_:
{
lean_object* v___x_2560_; 
v___x_2560_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_2560_, 0, v_snd_2559_);
lean_ctor_set(v___x_2560_, 1, v_a_2556_);
return v___x_2560_;
}
v___jp_2561_:
{
if (lean_obj_tag(v___y_2562_) == 0)
{
lean_object* v_a_2563_; lean_object* v___x_2564_; lean_object* v___x_2565_; lean_object* v___x_2566_; uint8_t v___x_2567_; lean_object* v___x_2568_; lean_object* v___x_2569_; lean_object* v___x_2570_; lean_object* v___x_2571_; 
v_a_2563_ = lean_ctor_get(v___y_2562_, 0);
lean_inc(v_a_2563_);
lean_dec_ref(v___y_2562_);
v___x_2564_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_mkLoadOrder___redArg___closed__0));
v___x_2565_ = l_Lake_formatCycle___at___00__private_Lake_Build_Module_0__Lake_mkLoadOrder_spec__0(v_a_2563_);
v___x_2566_ = lean_string_append(v___x_2564_, v___x_2565_);
lean_dec_ref(v___x_2565_);
v___x_2567_ = 3;
v___x_2568_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_2568_, 0, v___x_2566_);
lean_ctor_set_uint8(v___x_2568_, sizeof(void*)*1, v___x_2567_);
v___x_2569_ = lean_array_get_size(v_a_2556_);
v___x_2570_ = lean_array_push(v_a_2556_, v___x_2568_);
v___x_2571_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_2571_, 0, v___x_2569_);
lean_ctor_set(v___x_2571_, 1, v___x_2570_);
return v___x_2571_;
}
else
{
lean_object* v_a_2572_; lean_object* v_snd_2573_; 
v_a_2572_ = lean_ctor_get(v___y_2562_, 0);
lean_inc(v_a_2572_);
lean_dec_ref(v___y_2562_);
v_snd_2573_ = lean_ctor_get(v_a_2572_, 1);
lean_inc(v_snd_2573_);
lean_dec(v_a_2572_);
v_snd_2559_ = v_snd_2573_;
goto v___jp_2558_;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder___redArg___boxed(lean_object* v_libs_2586_, lean_object* v_a_2587_, lean_object* v_a_2588_){
_start:
{
lean_object* v_res_2589_; 
v_res_2589_ = l___private_Lake_Build_Module_0__Lake_mkLoadOrder___redArg(v_libs_2586_, v_a_2587_);
lean_dec_ref(v_libs_2586_);
return v_res_2589_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder(lean_object* v_libs_2590_, lean_object* v_a_2591_, lean_object* v_a_2592_, lean_object* v_a_2593_, lean_object* v_a_2594_, lean_object* v_a_2595_, lean_object* v_a_2596_){
_start:
{
lean_object* v___x_2598_; 
v___x_2598_ = l___private_Lake_Build_Module_0__Lake_mkLoadOrder___redArg(v_libs_2590_, v_a_2596_);
return v___x_2598_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder___boxed(lean_object* v_libs_2599_, lean_object* v_a_2600_, lean_object* v_a_2601_, lean_object* v_a_2602_, lean_object* v_a_2603_, lean_object* v_a_2604_, lean_object* v_a_2605_, lean_object* v_a_2606_){
_start:
{
lean_object* v_res_2607_; 
v_res_2607_ = l___private_Lake_Build_Module_0__Lake_mkLoadOrder(v_libs_2599_, v_a_2600_, v_a_2601_, v_a_2602_, v_a_2603_, v_a_2604_, v_a_2605_);
lean_dec_ref(v_a_2604_);
lean_dec(v_a_2603_);
lean_dec(v_a_2602_);
lean_dec(v_a_2601_);
lean_dec_ref(v_a_2600_);
lean_dec_ref(v_libs_2599_);
return v_res_2607_;
}
}
static lean_object* _init_l___private_Lake_Build_Module_0__Lake_instInhabitedModuleDeps_default___closed__1(void){
_start:
{
lean_object* v___x_2610_; lean_object* v___x_2611_; 
v___x_2610_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_instInhabitedModuleDeps_default___closed__0));
v___x_2611_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_2611_, 0, v___x_2610_);
lean_ctor_set(v___x_2611_, 1, v___x_2610_);
return v___x_2611_;
}
}
static lean_object* _init_l___private_Lake_Build_Module_0__Lake_instInhabitedModuleDeps_default(void){
_start:
{
lean_object* v___x_2612_; 
v___x_2612_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_instInhabitedModuleDeps_default___closed__1, &l___private_Lake_Build_Module_0__Lake_instInhabitedModuleDeps_default___closed__1_once, _init_l___private_Lake_Build_Module_0__Lake_instInhabitedModuleDeps_default___closed__1);
return v___x_2612_;
}
}
static lean_object* _init_l___private_Lake_Build_Module_0__Lake_instInhabitedModuleDeps(void){
_start:
{
lean_object* v___x_2613_; 
v___x_2613_ = l___private_Lake_Build_Module_0__Lake_instInhabitedModuleDeps_default;
return v___x_2613_;
}
}
LEAN_EXPORT lean_object* l_Nat_cast___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__1(lean_object* v_a_2614_){
_start:
{
lean_object* v___x_2615_; 
v___x_2615_ = lean_nat_to_int(v_a_2614_);
return v___x_2615_;
}
}
LEAN_EXPORT lean_object* l_List_foldl___at___00List_foldl___at___00Std_Format_joinSep___at___00Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0_spec__0_spec__2_spec__3(lean_object* v_x_2616_, lean_object* v_x_2617_, lean_object* v_x_2618_){
_start:
{
if (lean_obj_tag(v_x_2618_) == 0)
{
lean_dec(v_x_2616_);
return v_x_2617_;
}
else
{
lean_object* v_head_2619_; lean_object* v_tail_2620_; lean_object* v___x_2622_; uint8_t v_isShared_2623_; uint8_t v_isSharedCheck_2630_; 
v_head_2619_ = lean_ctor_get(v_x_2618_, 0);
v_tail_2620_ = lean_ctor_get(v_x_2618_, 1);
v_isSharedCheck_2630_ = !lean_is_exclusive(v_x_2618_);
if (v_isSharedCheck_2630_ == 0)
{
v___x_2622_ = v_x_2618_;
v_isShared_2623_ = v_isSharedCheck_2630_;
goto v_resetjp_2621_;
}
else
{
lean_inc(v_tail_2620_);
lean_inc(v_head_2619_);
lean_dec(v_x_2618_);
v___x_2622_ = lean_box(0);
v_isShared_2623_ = v_isSharedCheck_2630_;
goto v_resetjp_2621_;
}
v_resetjp_2621_:
{
lean_object* v___x_2625_; 
lean_inc(v_x_2616_);
if (v_isShared_2623_ == 0)
{
lean_ctor_set_tag(v___x_2622_, 5);
lean_ctor_set(v___x_2622_, 1, v_x_2616_);
lean_ctor_set(v___x_2622_, 0, v_x_2617_);
v___x_2625_ = v___x_2622_;
goto v_reusejp_2624_;
}
else
{
lean_object* v_reuseFailAlloc_2629_; 
v_reuseFailAlloc_2629_ = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(v_reuseFailAlloc_2629_, 0, v_x_2617_);
lean_ctor_set(v_reuseFailAlloc_2629_, 1, v_x_2616_);
v___x_2625_ = v_reuseFailAlloc_2629_;
goto v_reusejp_2624_;
}
v_reusejp_2624_:
{
lean_object* v___x_2626_; lean_object* v___x_2627_; 
v___x_2626_ = l_Lake_instReprDynlib_repr___redArg(v_head_2619_);
v___x_2627_ = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(v___x_2627_, 0, v___x_2625_);
lean_ctor_set(v___x_2627_, 1, v___x_2626_);
v_x_2617_ = v___x_2627_;
v_x_2618_ = v_tail_2620_;
goto _start;
}
}
}
}
}
LEAN_EXPORT lean_object* l_List_foldl___at___00Std_Format_joinSep___at___00Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0_spec__0_spec__2(lean_object* v_x_2631_, lean_object* v_x_2632_, lean_object* v_x_2633_){
_start:
{
if (lean_obj_tag(v_x_2633_) == 0)
{
lean_dec(v_x_2631_);
return v_x_2632_;
}
else
{
lean_object* v_head_2634_; lean_object* v_tail_2635_; lean_object* v___x_2637_; uint8_t v_isShared_2638_; uint8_t v_isSharedCheck_2645_; 
v_head_2634_ = lean_ctor_get(v_x_2633_, 0);
v_tail_2635_ = lean_ctor_get(v_x_2633_, 1);
v_isSharedCheck_2645_ = !lean_is_exclusive(v_x_2633_);
if (v_isSharedCheck_2645_ == 0)
{
v___x_2637_ = v_x_2633_;
v_isShared_2638_ = v_isSharedCheck_2645_;
goto v_resetjp_2636_;
}
else
{
lean_inc(v_tail_2635_);
lean_inc(v_head_2634_);
lean_dec(v_x_2633_);
v___x_2637_ = lean_box(0);
v_isShared_2638_ = v_isSharedCheck_2645_;
goto v_resetjp_2636_;
}
v_resetjp_2636_:
{
lean_object* v___x_2640_; 
lean_inc(v_x_2631_);
if (v_isShared_2638_ == 0)
{
lean_ctor_set_tag(v___x_2637_, 5);
lean_ctor_set(v___x_2637_, 1, v_x_2631_);
lean_ctor_set(v___x_2637_, 0, v_x_2632_);
v___x_2640_ = v___x_2637_;
goto v_reusejp_2639_;
}
else
{
lean_object* v_reuseFailAlloc_2644_; 
v_reuseFailAlloc_2644_ = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(v_reuseFailAlloc_2644_, 0, v_x_2632_);
lean_ctor_set(v_reuseFailAlloc_2644_, 1, v_x_2631_);
v___x_2640_ = v_reuseFailAlloc_2644_;
goto v_reusejp_2639_;
}
v_reusejp_2639_:
{
lean_object* v___x_2641_; lean_object* v___x_2642_; lean_object* v___x_2643_; 
v___x_2641_ = l_Lake_instReprDynlib_repr___redArg(v_head_2634_);
v___x_2642_ = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(v___x_2642_, 0, v___x_2640_);
lean_ctor_set(v___x_2642_, 1, v___x_2641_);
v___x_2643_ = l_List_foldl___at___00List_foldl___at___00Std_Format_joinSep___at___00Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0_spec__0_spec__2_spec__3(v_x_2631_, v___x_2642_, v_tail_2635_);
return v___x_2643_;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Format_joinSep___at___00Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0_spec__0(lean_object* v_x_2646_, lean_object* v_x_2647_){
_start:
{
if (lean_obj_tag(v_x_2646_) == 0)
{
lean_object* v___x_2648_; 
lean_dec(v_x_2647_);
v___x_2648_ = lean_box(0);
return v___x_2648_;
}
else
{
lean_object* v_tail_2649_; 
v_tail_2649_ = lean_ctor_get(v_x_2646_, 1);
if (lean_obj_tag(v_tail_2649_) == 0)
{
lean_object* v_head_2650_; lean_object* v___x_2651_; 
lean_dec(v_x_2647_);
v_head_2650_ = lean_ctor_get(v_x_2646_, 0);
lean_inc(v_head_2650_);
lean_dec_ref(v_x_2646_);
v___x_2651_ = l_Lake_instReprDynlib_repr___redArg(v_head_2650_);
return v___x_2651_;
}
else
{
lean_object* v_head_2652_; lean_object* v___x_2653_; lean_object* v___x_2654_; 
lean_inc(v_tail_2649_);
v_head_2652_ = lean_ctor_get(v_x_2646_, 0);
lean_inc(v_head_2652_);
lean_dec_ref(v_x_2646_);
v___x_2653_ = l_Lake_instReprDynlib_repr___redArg(v_head_2652_);
v___x_2654_ = l_List_foldl___at___00Std_Format_joinSep___at___00Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0_spec__0_spec__2(v_x_2647_, v___x_2653_, v_tail_2649_);
return v___x_2654_;
}
}
}
}
static lean_object* _init_l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__5(void){
_start:
{
lean_object* v___x_2663_; lean_object* v___x_2664_; 
v___x_2663_ = ((lean_object*)(l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__0));
v___x_2664_ = lean_string_length(v___x_2663_);
return v___x_2664_;
}
}
static lean_object* _init_l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__6(void){
_start:
{
lean_object* v___x_2665_; lean_object* v___x_2666_; 
v___x_2665_ = lean_obj_once(&l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__5, &l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__5_once, _init_l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__5);
v___x_2666_ = lean_nat_to_int(v___x_2665_);
return v___x_2666_;
}
}
LEAN_EXPORT lean_object* l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0(lean_object* v_xs_2674_){
_start:
{
lean_object* v___x_2675_; lean_object* v___x_2676_; uint8_t v___x_2677_; 
v___x_2675_ = lean_array_get_size(v_xs_2674_);
v___x_2676_ = lean_unsigned_to_nat(0u);
v___x_2677_ = lean_nat_dec_eq(v___x_2675_, v___x_2676_);
if (v___x_2677_ == 0)
{
lean_object* v___x_2678_; lean_object* v___x_2679_; lean_object* v___x_2680_; lean_object* v___x_2681_; lean_object* v___x_2682_; lean_object* v___x_2683_; lean_object* v___x_2684_; lean_object* v___x_2685_; lean_object* v___x_2686_; lean_object* v___x_2687_; 
v___x_2678_ = lean_array_to_list(v_xs_2674_);
v___x_2679_ = ((lean_object*)(l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__3));
v___x_2680_ = l_Std_Format_joinSep___at___00Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0_spec__0(v___x_2678_, v___x_2679_);
v___x_2681_ = lean_obj_once(&l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__6, &l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__6_once, _init_l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__6);
v___x_2682_ = ((lean_object*)(l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__7));
v___x_2683_ = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(v___x_2683_, 0, v___x_2682_);
lean_ctor_set(v___x_2683_, 1, v___x_2680_);
v___x_2684_ = ((lean_object*)(l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__8));
v___x_2685_ = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(v___x_2685_, 0, v___x_2683_);
lean_ctor_set(v___x_2685_, 1, v___x_2684_);
v___x_2686_ = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(v___x_2686_, 0, v___x_2681_);
lean_ctor_set(v___x_2686_, 1, v___x_2685_);
v___x_2687_ = l_Std_Format_fill(v___x_2686_);
return v___x_2687_;
}
else
{
lean_object* v___x_2688_; 
lean_dec_ref(v_xs_2674_);
v___x_2688_ = ((lean_object*)(l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__10));
return v___x_2688_;
}
}
}
static lean_object* _init_l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__7(void){
_start:
{
lean_object* v___x_2702_; lean_object* v___x_2703_; 
v___x_2702_ = lean_unsigned_to_nat(11u);
v___x_2703_ = lean_nat_to_int(v___x_2702_);
return v___x_2703_;
}
}
static lean_object* _init_l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__11(void){
_start:
{
lean_object* v___x_2708_; lean_object* v___x_2709_; 
v___x_2708_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__0));
v___x_2709_ = lean_string_length(v___x_2708_);
return v___x_2709_;
}
}
static lean_object* _init_l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__12(void){
_start:
{
lean_object* v___x_2710_; lean_object* v___x_2711_; 
v___x_2710_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__11, &l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__11_once, _init_l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__11);
v___x_2711_ = lean_nat_to_int(v___x_2710_);
return v___x_2711_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg(lean_object* v_x_2716_){
_start:
{
lean_object* v_dynlibs_2717_; lean_object* v_plugins_2718_; lean_object* v___x_2720_; uint8_t v_isShared_2721_; uint8_t v_isSharedCheck_2750_; 
v_dynlibs_2717_ = lean_ctor_get(v_x_2716_, 0);
v_plugins_2718_ = lean_ctor_get(v_x_2716_, 1);
v_isSharedCheck_2750_ = !lean_is_exclusive(v_x_2716_);
if (v_isSharedCheck_2750_ == 0)
{
v___x_2720_ = v_x_2716_;
v_isShared_2721_ = v_isSharedCheck_2750_;
goto v_resetjp_2719_;
}
else
{
lean_inc(v_plugins_2718_);
lean_inc(v_dynlibs_2717_);
lean_dec(v_x_2716_);
v___x_2720_ = lean_box(0);
v_isShared_2721_ = v_isSharedCheck_2750_;
goto v_resetjp_2719_;
}
v_resetjp_2719_:
{
lean_object* v___x_2722_; lean_object* v___x_2723_; lean_object* v___x_2724_; lean_object* v___x_2725_; lean_object* v___x_2727_; 
v___x_2722_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__5));
v___x_2723_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__6));
v___x_2724_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__7, &l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__7_once, _init_l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__7);
v___x_2725_ = l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0(v_dynlibs_2717_);
if (v_isShared_2721_ == 0)
{
lean_ctor_set_tag(v___x_2720_, 4);
lean_ctor_set(v___x_2720_, 1, v___x_2725_);
lean_ctor_set(v___x_2720_, 0, v___x_2724_);
v___x_2727_ = v___x_2720_;
goto v_reusejp_2726_;
}
else
{
lean_object* v_reuseFailAlloc_2749_; 
v_reuseFailAlloc_2749_ = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(v_reuseFailAlloc_2749_, 0, v___x_2724_);
lean_ctor_set(v_reuseFailAlloc_2749_, 1, v___x_2725_);
v___x_2727_ = v_reuseFailAlloc_2749_;
goto v_reusejp_2726_;
}
v_reusejp_2726_:
{
uint8_t v___x_2728_; lean_object* v___x_2729_; lean_object* v___x_2730_; lean_object* v___x_2731_; lean_object* v___x_2732_; lean_object* v___x_2733_; lean_object* v___x_2734_; lean_object* v___x_2735_; lean_object* v___x_2736_; lean_object* v___x_2737_; lean_object* v___x_2738_; lean_object* v___x_2739_; lean_object* v___x_2740_; lean_object* v___x_2741_; lean_object* v___x_2742_; lean_object* v___x_2743_; lean_object* v___x_2744_; lean_object* v___x_2745_; lean_object* v___x_2746_; lean_object* v___x_2747_; lean_object* v___x_2748_; 
v___x_2728_ = 0;
v___x_2729_ = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(v___x_2729_, 0, v___x_2727_);
lean_ctor_set_uint8(v___x_2729_, sizeof(void*)*1, v___x_2728_);
v___x_2730_ = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(v___x_2730_, 0, v___x_2723_);
lean_ctor_set(v___x_2730_, 1, v___x_2729_);
v___x_2731_ = ((lean_object*)(l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__2));
v___x_2732_ = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(v___x_2732_, 0, v___x_2730_);
lean_ctor_set(v___x_2732_, 1, v___x_2731_);
v___x_2733_ = lean_box(1);
v___x_2734_ = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(v___x_2734_, 0, v___x_2732_);
lean_ctor_set(v___x_2734_, 1, v___x_2733_);
v___x_2735_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__9));
v___x_2736_ = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(v___x_2736_, 0, v___x_2734_);
lean_ctor_set(v___x_2736_, 1, v___x_2735_);
v___x_2737_ = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(v___x_2737_, 0, v___x_2736_);
lean_ctor_set(v___x_2737_, 1, v___x_2722_);
v___x_2738_ = l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0(v_plugins_2718_);
v___x_2739_ = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(v___x_2739_, 0, v___x_2724_);
lean_ctor_set(v___x_2739_, 1, v___x_2738_);
v___x_2740_ = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(v___x_2740_, 0, v___x_2739_);
lean_ctor_set_uint8(v___x_2740_, sizeof(void*)*1, v___x_2728_);
v___x_2741_ = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(v___x_2741_, 0, v___x_2737_);
lean_ctor_set(v___x_2741_, 1, v___x_2740_);
v___x_2742_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__12, &l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__12_once, _init_l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__12);
v___x_2743_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__13));
v___x_2744_ = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(v___x_2744_, 0, v___x_2743_);
lean_ctor_set(v___x_2744_, 1, v___x_2741_);
v___x_2745_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__14));
v___x_2746_ = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(v___x_2746_, 0, v___x_2744_);
lean_ctor_set(v___x_2746_, 1, v___x_2745_);
v___x_2747_ = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(v___x_2747_, 0, v___x_2742_);
lean_ctor_set(v___x_2747_, 1, v___x_2746_);
v___x_2748_ = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(v___x_2748_, 0, v___x_2747_);
lean_ctor_set_uint8(v___x_2748_, sizeof(void*)*1, v___x_2728_);
return v___x_2748_;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr(lean_object* v_x_2751_, lean_object* v_prec_2752_){
_start:
{
lean_object* v___x_2753_; 
v___x_2753_ = l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg(v_x_2751_);
return v___x_2753_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___boxed(lean_object* v_x_2754_, lean_object* v_prec_2755_){
_start:
{
lean_object* v_res_2756_; 
v_res_2756_ = l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr(v_x_2754_, v_prec_2755_);
lean_dec(v_prec_2755_);
return v_res_2756_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Lake_Build_Module_0__Lake_computeModuleDeps_spec__0___redArg(lean_object* v_as_2759_, size_t v_sz_2760_, size_t v_i_2761_, lean_object* v_b_2762_, lean_object* v___y_2763_){
_start:
{
lean_object* v_a_2766_; lean_object* v_a_2767_; uint8_t v___x_2771_; 
v___x_2771_ = lean_usize_dec_lt(v_i_2761_, v_sz_2760_);
if (v___x_2771_ == 0)
{
lean_object* v___x_2772_; 
v___x_2772_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_2772_, 0, v_b_2762_);
lean_ctor_set(v___x_2772_, 1, v___y_2763_);
return v___x_2772_;
}
else
{
lean_object* v_fst_2773_; lean_object* v_snd_2774_; lean_object* v___x_2776_; uint8_t v_isShared_2777_; uint8_t v_isSharedCheck_2788_; 
v_fst_2773_ = lean_ctor_get(v_b_2762_, 0);
v_snd_2774_ = lean_ctor_get(v_b_2762_, 1);
v_isSharedCheck_2788_ = !lean_is_exclusive(v_b_2762_);
if (v_isSharedCheck_2788_ == 0)
{
v___x_2776_ = v_b_2762_;
v_isShared_2777_ = v_isSharedCheck_2788_;
goto v_resetjp_2775_;
}
else
{
lean_inc(v_snd_2774_);
lean_inc(v_fst_2773_);
lean_dec(v_b_2762_);
v___x_2776_ = lean_box(0);
v_isShared_2777_ = v_isSharedCheck_2788_;
goto v_resetjp_2775_;
}
v_resetjp_2775_:
{
lean_object* v_a_2778_; uint8_t v_plugin_2779_; 
v_a_2778_ = lean_array_uget_borrowed(v_as_2759_, v_i_2761_);
v_plugin_2779_ = lean_ctor_get_uint8(v_a_2778_, sizeof(void*)*3);
if (v_plugin_2779_ == 0)
{
lean_object* v___x_2780_; lean_object* v___x_2782_; 
lean_inc(v_a_2778_);
v___x_2780_ = lean_array_push(v_fst_2773_, v_a_2778_);
if (v_isShared_2777_ == 0)
{
lean_ctor_set(v___x_2776_, 0, v___x_2780_);
v___x_2782_ = v___x_2776_;
goto v_reusejp_2781_;
}
else
{
lean_object* v_reuseFailAlloc_2783_; 
v_reuseFailAlloc_2783_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_2783_, 0, v___x_2780_);
lean_ctor_set(v_reuseFailAlloc_2783_, 1, v_snd_2774_);
v___x_2782_ = v_reuseFailAlloc_2783_;
goto v_reusejp_2781_;
}
v_reusejp_2781_:
{
v_a_2766_ = v___x_2782_;
v_a_2767_ = v___y_2763_;
goto v___jp_2765_;
}
}
else
{
lean_object* v___x_2784_; lean_object* v___x_2786_; 
lean_inc(v_a_2778_);
v___x_2784_ = lean_array_push(v_snd_2774_, v_a_2778_);
if (v_isShared_2777_ == 0)
{
lean_ctor_set(v___x_2776_, 1, v___x_2784_);
v___x_2786_ = v___x_2776_;
goto v_reusejp_2785_;
}
else
{
lean_object* v_reuseFailAlloc_2787_; 
v_reuseFailAlloc_2787_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_2787_, 0, v_fst_2773_);
lean_ctor_set(v_reuseFailAlloc_2787_, 1, v___x_2784_);
v___x_2786_ = v_reuseFailAlloc_2787_;
goto v_reusejp_2785_;
}
v_reusejp_2785_:
{
v_a_2766_ = v___x_2786_;
v_a_2767_ = v___y_2763_;
goto v___jp_2765_;
}
}
}
}
v___jp_2765_:
{
size_t v___x_2768_; size_t v___x_2769_; 
v___x_2768_ = ((size_t)1ULL);
v___x_2769_ = lean_usize_add(v_i_2761_, v___x_2768_);
v_i_2761_ = v___x_2769_;
v_b_2762_ = v_a_2766_;
v___y_2763_ = v_a_2767_;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Lake_Build_Module_0__Lake_computeModuleDeps_spec__0___redArg___boxed(lean_object* v_as_2789_, lean_object* v_sz_2790_, lean_object* v_i_2791_, lean_object* v_b_2792_, lean_object* v___y_2793_, lean_object* v___y_2794_){
_start:
{
size_t v_sz_boxed_2795_; size_t v_i_boxed_2796_; lean_object* v_res_2797_; 
v_sz_boxed_2795_ = lean_unbox_usize(v_sz_2790_);
lean_dec(v_sz_2790_);
v_i_boxed_2796_ = lean_unbox_usize(v_i_2791_);
lean_dec(v_i_2791_);
v_res_2797_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Lake_Build_Module_0__Lake_computeModuleDeps_spec__0___redArg(v_as_2789_, v_sz_boxed_2795_, v_i_boxed_2796_, v_b_2792_, v___y_2793_);
lean_dec_ref(v_as_2789_);
return v_res_2797_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_computeModuleDeps(lean_object* v_impLibs_2798_, lean_object* v_externLibs_2799_, lean_object* v_dynlibs_2800_, lean_object* v_plugins_2801_, lean_object* v_a_2802_, lean_object* v_a_2803_, lean_object* v_a_2804_, lean_object* v_a_2805_, lean_object* v_a_2806_, lean_object* v_a_2807_){
_start:
{
lean_object* v___x_2809_; 
v___x_2809_ = l___private_Lake_Build_Module_0__Lake_mkLoadOrder___redArg(v_impLibs_2798_, v_a_2807_);
if (lean_obj_tag(v___x_2809_) == 0)
{
lean_object* v_a_2810_; lean_object* v_a_2811_; lean_object* v___x_2812_; lean_object* v___x_2813_; size_t v_sz_2814_; size_t v___x_2815_; lean_object* v___x_2816_; 
v_a_2810_ = lean_ctor_get(v___x_2809_, 0);
lean_inc(v_a_2810_);
v_a_2811_ = lean_ctor_get(v___x_2809_, 1);
lean_inc(v_a_2811_);
lean_dec_ref(v___x_2809_);
v___x_2812_ = l_Array_append___redArg(v_externLibs_2799_, v_dynlibs_2800_);
v___x_2813_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_2813_, 0, v___x_2812_);
lean_ctor_set(v___x_2813_, 1, v_plugins_2801_);
v_sz_2814_ = lean_array_size(v_a_2810_);
v___x_2815_ = ((size_t)0ULL);
v___x_2816_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Lake_Build_Module_0__Lake_computeModuleDeps_spec__0___redArg(v_a_2810_, v_sz_2814_, v___x_2815_, v___x_2813_, v_a_2811_);
lean_dec(v_a_2810_);
if (lean_obj_tag(v___x_2816_) == 0)
{
lean_object* v_a_2817_; lean_object* v_a_2818_; lean_object* v___x_2820_; uint8_t v_isShared_2821_; uint8_t v_isSharedCheck_2852_; 
v_a_2817_ = lean_ctor_get(v___x_2816_, 0);
v_a_2818_ = lean_ctor_get(v___x_2816_, 1);
v_isSharedCheck_2852_ = !lean_is_exclusive(v___x_2816_);
if (v_isSharedCheck_2852_ == 0)
{
v___x_2820_ = v___x_2816_;
v_isShared_2821_ = v_isSharedCheck_2852_;
goto v_resetjp_2819_;
}
else
{
lean_inc(v_a_2818_);
lean_inc(v_a_2817_);
lean_dec(v___x_2816_);
v___x_2820_ = lean_box(0);
v_isShared_2821_ = v_isSharedCheck_2852_;
goto v_resetjp_2819_;
}
v_resetjp_2819_:
{
lean_object* v_fst_2822_; lean_object* v_snd_2823_; lean_object* v___x_2825_; uint8_t v_isShared_2826_; uint8_t v_isSharedCheck_2851_; 
v_fst_2822_ = lean_ctor_get(v_a_2817_, 0);
v_snd_2823_ = lean_ctor_get(v_a_2817_, 1);
v_isSharedCheck_2851_ = !lean_is_exclusive(v_a_2817_);
if (v_isSharedCheck_2851_ == 0)
{
v___x_2825_ = v_a_2817_;
v_isShared_2826_ = v_isSharedCheck_2851_;
goto v_resetjp_2824_;
}
else
{
lean_inc(v_snd_2823_);
lean_inc(v_fst_2822_);
lean_dec(v_a_2817_);
v___x_2825_ = lean_box(0);
v_isShared_2826_ = v_isSharedCheck_2851_;
goto v_resetjp_2824_;
}
v_resetjp_2824_:
{
lean_object* v_plugins_2828_; lean_object* v___y_2829_; uint8_t v___y_2837_; uint8_t v___x_2843_; uint8_t v___y_2845_; 
v___x_2843_ = l_System_Platform_isOSX;
if (v___x_2843_ == 0)
{
v___y_2837_ = v___x_2843_;
goto v___jp_2836_;
}
else
{
lean_object* v___x_2846_; lean_object* v___x_2847_; uint8_t v___x_2848_; 
v___x_2846_ = lean_array_get_size(v_snd_2823_);
v___x_2847_ = lean_unsigned_to_nat(0u);
v___x_2848_ = lean_nat_dec_eq(v___x_2846_, v___x_2847_);
if (v___x_2848_ == 0)
{
v___y_2845_ = v___x_2848_;
goto v___jp_2844_;
}
else
{
lean_object* v___x_2849_; uint8_t v___x_2850_; 
v___x_2849_ = lean_array_get_size(v_fst_2822_);
v___x_2850_ = lean_nat_dec_eq(v___x_2849_, v___x_2847_);
v___y_2845_ = v___x_2850_;
goto v___jp_2844_;
}
}
v___jp_2827_:
{
lean_object* v___x_2831_; 
if (v_isShared_2826_ == 0)
{
lean_ctor_set(v___x_2825_, 1, v_plugins_2828_);
v___x_2831_ = v___x_2825_;
goto v_reusejp_2830_;
}
else
{
lean_object* v_reuseFailAlloc_2835_; 
v_reuseFailAlloc_2835_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_2835_, 0, v_fst_2822_);
lean_ctor_set(v_reuseFailAlloc_2835_, 1, v_plugins_2828_);
v___x_2831_ = v_reuseFailAlloc_2835_;
goto v_reusejp_2830_;
}
v_reusejp_2830_:
{
lean_object* v___x_2833_; 
if (v_isShared_2821_ == 0)
{
lean_ctor_set(v___x_2820_, 1, v___y_2829_);
lean_ctor_set(v___x_2820_, 0, v___x_2831_);
v___x_2833_ = v___x_2820_;
goto v_reusejp_2832_;
}
else
{
lean_object* v_reuseFailAlloc_2834_; 
v_reuseFailAlloc_2834_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_2834_, 0, v___x_2831_);
lean_ctor_set(v_reuseFailAlloc_2834_, 1, v___y_2829_);
v___x_2833_ = v_reuseFailAlloc_2834_;
goto v_reusejp_2832_;
}
v_reusejp_2832_:
{
return v___x_2833_;
}
}
}
v___jp_2836_:
{
if (v___y_2837_ == 0)
{
lean_dec_ref(v_a_2806_);
v_plugins_2828_ = v_snd_2823_;
v___y_2829_ = v_a_2818_;
goto v___jp_2827_;
}
else
{
lean_object* v_toContext_2838_; lean_object* v_lakeEnv_2839_; lean_object* v_lake_2840_; lean_object* v_sharedDynlib_2841_; lean_object* v___x_2842_; 
v_toContext_2838_ = lean_ctor_get(v_a_2806_, 1);
lean_inc(v_toContext_2838_);
lean_dec_ref(v_a_2806_);
v_lakeEnv_2839_ = lean_ctor_get(v_toContext_2838_, 1);
lean_inc_ref(v_lakeEnv_2839_);
lean_dec(v_toContext_2838_);
v_lake_2840_ = lean_ctor_get(v_lakeEnv_2839_, 0);
lean_inc_ref(v_lake_2840_);
lean_dec_ref(v_lakeEnv_2839_);
v_sharedDynlib_2841_ = lean_ctor_get(v_lake_2840_, 4);
lean_inc_ref(v_sharedDynlib_2841_);
lean_dec_ref(v_lake_2840_);
v___x_2842_ = lean_array_push(v_snd_2823_, v_sharedDynlib_2841_);
v_plugins_2828_ = v___x_2842_;
v___y_2829_ = v_a_2818_;
goto v___jp_2827_;
}
}
v___jp_2844_:
{
if (v___y_2845_ == 0)
{
v___y_2837_ = v___x_2843_;
goto v___jp_2836_;
}
else
{
lean_dec_ref(v_a_2806_);
v_plugins_2828_ = v_snd_2823_;
v___y_2829_ = v_a_2818_;
goto v___jp_2827_;
}
}
}
}
}
else
{
lean_object* v_a_2853_; lean_object* v_a_2854_; lean_object* v___x_2856_; uint8_t v_isShared_2857_; uint8_t v_isSharedCheck_2861_; 
lean_dec_ref(v_a_2806_);
v_a_2853_ = lean_ctor_get(v___x_2816_, 0);
v_a_2854_ = lean_ctor_get(v___x_2816_, 1);
v_isSharedCheck_2861_ = !lean_is_exclusive(v___x_2816_);
if (v_isSharedCheck_2861_ == 0)
{
v___x_2856_ = v___x_2816_;
v_isShared_2857_ = v_isSharedCheck_2861_;
goto v_resetjp_2855_;
}
else
{
lean_inc(v_a_2854_);
lean_inc(v_a_2853_);
lean_dec(v___x_2816_);
v___x_2856_ = lean_box(0);
v_isShared_2857_ = v_isSharedCheck_2861_;
goto v_resetjp_2855_;
}
v_resetjp_2855_:
{
lean_object* v___x_2859_; 
if (v_isShared_2857_ == 0)
{
v___x_2859_ = v___x_2856_;
goto v_reusejp_2858_;
}
else
{
lean_object* v_reuseFailAlloc_2860_; 
v_reuseFailAlloc_2860_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_2860_, 0, v_a_2853_);
lean_ctor_set(v_reuseFailAlloc_2860_, 1, v_a_2854_);
v___x_2859_ = v_reuseFailAlloc_2860_;
goto v_reusejp_2858_;
}
v_reusejp_2858_:
{
return v___x_2859_;
}
}
}
}
else
{
lean_object* v_a_2862_; lean_object* v_a_2863_; lean_object* v___x_2865_; uint8_t v_isShared_2866_; uint8_t v_isSharedCheck_2870_; 
lean_dec_ref(v_a_2806_);
lean_dec_ref(v_plugins_2801_);
lean_dec_ref(v_externLibs_2799_);
v_a_2862_ = lean_ctor_get(v___x_2809_, 0);
v_a_2863_ = lean_ctor_get(v___x_2809_, 1);
v_isSharedCheck_2870_ = !lean_is_exclusive(v___x_2809_);
if (v_isSharedCheck_2870_ == 0)
{
v___x_2865_ = v___x_2809_;
v_isShared_2866_ = v_isSharedCheck_2870_;
goto v_resetjp_2864_;
}
else
{
lean_inc(v_a_2863_);
lean_inc(v_a_2862_);
lean_dec(v___x_2809_);
v___x_2865_ = lean_box(0);
v_isShared_2866_ = v_isSharedCheck_2870_;
goto v_resetjp_2864_;
}
v_resetjp_2864_:
{
lean_object* v___x_2868_; 
if (v_isShared_2866_ == 0)
{
v___x_2868_ = v___x_2865_;
goto v_reusejp_2867_;
}
else
{
lean_object* v_reuseFailAlloc_2869_; 
v_reuseFailAlloc_2869_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_2869_, 0, v_a_2862_);
lean_ctor_set(v_reuseFailAlloc_2869_, 1, v_a_2863_);
v___x_2868_ = v_reuseFailAlloc_2869_;
goto v_reusejp_2867_;
}
v_reusejp_2867_:
{
return v___x_2868_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_computeModuleDeps___boxed(lean_object* v_impLibs_2871_, lean_object* v_externLibs_2872_, lean_object* v_dynlibs_2873_, lean_object* v_plugins_2874_, lean_object* v_a_2875_, lean_object* v_a_2876_, lean_object* v_a_2877_, lean_object* v_a_2878_, lean_object* v_a_2879_, lean_object* v_a_2880_, lean_object* v_a_2881_){
_start:
{
lean_object* v_res_2882_; 
v_res_2882_ = l___private_Lake_Build_Module_0__Lake_computeModuleDeps(v_impLibs_2871_, v_externLibs_2872_, v_dynlibs_2873_, v_plugins_2874_, v_a_2875_, v_a_2876_, v_a_2877_, v_a_2878_, v_a_2879_, v_a_2880_);
lean_dec(v_a_2878_);
lean_dec(v_a_2877_);
lean_dec(v_a_2876_);
lean_dec_ref(v_a_2875_);
lean_dec_ref(v_dynlibs_2873_);
lean_dec_ref(v_impLibs_2871_);
return v_res_2882_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Lake_Build_Module_0__Lake_computeModuleDeps_spec__0(lean_object* v_as_2883_, size_t v_sz_2884_, size_t v_i_2885_, lean_object* v_b_2886_, lean_object* v___y_2887_, lean_object* v___y_2888_, lean_object* v___y_2889_, lean_object* v___y_2890_, lean_object* v___y_2891_, lean_object* v___y_2892_){
_start:
{
lean_object* v___x_2894_; 
v___x_2894_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Lake_Build_Module_0__Lake_computeModuleDeps_spec__0___redArg(v_as_2883_, v_sz_2884_, v_i_2885_, v_b_2886_, v___y_2892_);
return v___x_2894_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Lake_Build_Module_0__Lake_computeModuleDeps_spec__0___boxed(lean_object* v_as_2895_, lean_object* v_sz_2896_, lean_object* v_i_2897_, lean_object* v_b_2898_, lean_object* v___y_2899_, lean_object* v___y_2900_, lean_object* v___y_2901_, lean_object* v___y_2902_, lean_object* v___y_2903_, lean_object* v___y_2904_, lean_object* v___y_2905_){
_start:
{
size_t v_sz_boxed_2906_; size_t v_i_boxed_2907_; lean_object* v_res_2908_; 
v_sz_boxed_2906_ = lean_unbox_usize(v_sz_2896_);
lean_dec(v_sz_2896_);
v_i_boxed_2907_ = lean_unbox_usize(v_i_2897_);
lean_dec(v_i_2897_);
v_res_2908_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Lake_Build_Module_0__Lake_computeModuleDeps_spec__0(v_as_2895_, v_sz_boxed_2906_, v_i_boxed_2907_, v_b_2898_, v___y_2899_, v___y_2900_, v___y_2901_, v___y_2902_, v___y_2903_, v___y_2904_);
lean_dec_ref(v___y_2903_);
lean_dec(v___y_2902_);
lean_dec(v___y_2901_);
lean_dec(v___y_2900_);
lean_dec_ref(v___y_2899_);
lean_dec_ref(v_as_2895_);
return v_res_2908_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldrMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchTransImportArts_enqueue_spec__0(uint8_t v_nonModule_2909_, uint8_t v_importAll_2910_, lean_object* v_as_2911_, size_t v_i_2912_, size_t v_stop_2913_, lean_object* v_b_2914_){
_start:
{
uint8_t v___x_2915_; 
v___x_2915_ = lean_usize_dec_eq(v_i_2912_, v_stop_2913_);
if (v___x_2915_ == 0)
{
size_t v___x_2916_; size_t v___x_2917_; lean_object* v___x_2918_; lean_object* v_module_x3f_2919_; 
v___x_2916_ = ((size_t)1ULL);
v___x_2917_ = lean_usize_sub(v_i_2912_, v___x_2916_);
v___x_2918_ = lean_array_uget(v_as_2911_, v___x_2917_);
v_module_x3f_2919_ = lean_ctor_get(v___x_2918_, 1);
lean_inc(v_module_x3f_2919_);
if (lean_obj_tag(v_module_x3f_2919_) == 1)
{
lean_object* v_toImport_2920_; lean_object* v___x_2922_; uint8_t v_isShared_2923_; uint8_t v_isSharedCheck_2937_; 
v_toImport_2920_ = lean_ctor_get(v___x_2918_, 0);
v_isSharedCheck_2937_ = !lean_is_exclusive(v___x_2918_);
if (v_isSharedCheck_2937_ == 0)
{
lean_object* v_unused_2938_; 
v_unused_2938_ = lean_ctor_get(v___x_2918_, 1);
lean_dec(v_unused_2938_);
v___x_2922_ = v___x_2918_;
v_isShared_2923_ = v_isSharedCheck_2937_;
goto v_resetjp_2921_;
}
else
{
lean_inc(v_toImport_2920_);
lean_dec(v___x_2918_);
v___x_2922_ = lean_box(0);
v_isShared_2923_ = v_isSharedCheck_2937_;
goto v_resetjp_2921_;
}
v_resetjp_2921_:
{
lean_object* v_val_2924_; uint8_t v___y_2926_; 
v_val_2924_ = lean_ctor_get(v_module_x3f_2919_, 0);
lean_inc(v_val_2924_);
lean_dec_ref(v_module_x3f_2919_);
if (v_importAll_2910_ == 0)
{
uint8_t v_isExported_2935_; 
v_isExported_2935_ = lean_ctor_get_uint8(v_toImport_2920_, sizeof(void*)*1 + 1);
if (v_isExported_2935_ == 0)
{
lean_dec(v_val_2924_);
lean_del_object(v___x_2922_);
lean_dec_ref(v_toImport_2920_);
v_i_2912_ = v___x_2917_;
goto _start;
}
else
{
goto v___jp_2933_;
}
}
else
{
goto v___jp_2933_;
}
v___jp_2925_:
{
lean_object* v___x_2927_; lean_object* v___x_2929_; 
v___x_2927_ = lean_box(v___y_2926_);
if (v_isShared_2923_ == 0)
{
lean_ctor_set(v___x_2922_, 1, v___x_2927_);
lean_ctor_set(v___x_2922_, 0, v_val_2924_);
v___x_2929_ = v___x_2922_;
goto v_reusejp_2928_;
}
else
{
lean_object* v_reuseFailAlloc_2932_; 
v_reuseFailAlloc_2932_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_2932_, 0, v_val_2924_);
lean_ctor_set(v_reuseFailAlloc_2932_, 1, v___x_2927_);
v___x_2929_ = v_reuseFailAlloc_2932_;
goto v_reusejp_2928_;
}
v_reusejp_2928_:
{
lean_object* v___x_2930_; 
v___x_2930_ = lean_array_push(v_b_2914_, v___x_2929_);
v_i_2912_ = v___x_2917_;
v_b_2914_ = v___x_2930_;
goto _start;
}
}
v___jp_2933_:
{
if (v_nonModule_2909_ == 0)
{
if (v_importAll_2910_ == 0)
{
lean_dec_ref(v_toImport_2920_);
v___y_2926_ = v_importAll_2910_;
goto v___jp_2925_;
}
else
{
uint8_t v_importAll_2934_; 
v_importAll_2934_ = lean_ctor_get_uint8(v_toImport_2920_, sizeof(void*)*1);
lean_dec_ref(v_toImport_2920_);
v___y_2926_ = v_importAll_2934_;
goto v___jp_2925_;
}
}
else
{
lean_dec_ref(v_toImport_2920_);
v___y_2926_ = v_nonModule_2909_;
goto v___jp_2925_;
}
}
}
}
else
{
lean_dec(v_module_x3f_2919_);
lean_dec(v___x_2918_);
v_i_2912_ = v___x_2917_;
goto _start;
}
}
else
{
return v_b_2914_;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldrMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchTransImportArts_enqueue_spec__0___boxed(lean_object* v_nonModule_2940_, lean_object* v_importAll_2941_, lean_object* v_as_2942_, lean_object* v_i_2943_, lean_object* v_stop_2944_, lean_object* v_b_2945_){
_start:
{
uint8_t v_nonModule_boxed_2946_; uint8_t v_importAll_boxed_2947_; size_t v_i_boxed_2948_; size_t v_stop_boxed_2949_; lean_object* v_res_2950_; 
v_nonModule_boxed_2946_ = lean_unbox(v_nonModule_2940_);
v_importAll_boxed_2947_ = lean_unbox(v_importAll_2941_);
v_i_boxed_2948_ = lean_unbox_usize(v_i_2943_);
lean_dec(v_i_2943_);
v_stop_boxed_2949_ = lean_unbox_usize(v_stop_2944_);
lean_dec(v_stop_2944_);
v_res_2950_ = l___private_Init_Data_Array_Basic_0__Array_foldrMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchTransImportArts_enqueue_spec__0(v_nonModule_boxed_2946_, v_importAll_boxed_2947_, v_as_2942_, v_i_boxed_2948_, v_stop_boxed_2949_, v_b_2945_);
lean_dec_ref(v_as_2942_);
return v_res_2950_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchTransImportArts_enqueue(uint8_t v_nonModule_2951_, uint8_t v_importAll_2952_, lean_object* v_input_2953_, lean_object* v_q_2954_){
_start:
{
lean_object* v_imports_2955_; lean_object* v___x_2956_; lean_object* v___x_2957_; uint8_t v___x_2958_; 
v_imports_2955_ = lean_ctor_get(v_input_2953_, 3);
v___x_2956_ = lean_array_get_size(v_imports_2955_);
v___x_2957_ = lean_unsigned_to_nat(0u);
v___x_2958_ = lean_nat_dec_lt(v___x_2957_, v___x_2956_);
if (v___x_2958_ == 0)
{
return v_q_2954_;
}
else
{
size_t v___x_2959_; size_t v___x_2960_; lean_object* v___x_2961_; 
v___x_2959_ = lean_usize_of_nat(v___x_2956_);
v___x_2960_ = ((size_t)0ULL);
v___x_2961_ = l___private_Init_Data_Array_Basic_0__Array_foldrMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchTransImportArts_enqueue_spec__0(v_nonModule_2951_, v_importAll_2952_, v_imports_2955_, v___x_2959_, v___x_2960_, v_q_2954_);
return v___x_2961_;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchTransImportArts_enqueue___boxed(lean_object* v_nonModule_2962_, lean_object* v_importAll_2963_, lean_object* v_input_2964_, lean_object* v_q_2965_){
_start:
{
uint8_t v_nonModule_boxed_2966_; uint8_t v_importAll_boxed_2967_; lean_object* v_res_2968_; 
v_nonModule_boxed_2966_ = lean_unbox(v_nonModule_2962_);
v_importAll_boxed_2967_ = lean_unbox(v_importAll_2963_);
v_res_2968_ = l___private_Lake_Build_Module_0__Lake_fetchTransImportArts_enqueue(v_nonModule_boxed_2966_, v_importAll_boxed_2967_, v_input_2964_, v_q_2965_);
lean_dec_ref(v_input_2964_);
return v_res_2968_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchTransImportArts_walk(uint8_t v_nonModule_2969_, lean_object* v_s_2970_, lean_object* v_q_2971_, lean_object* v_a_2972_, lean_object* v_a_2973_, lean_object* v_a_2974_, lean_object* v_a_2975_, lean_object* v_a_2976_, lean_object* v_a_2977_){
_start:
{
lean_object* v___x_2979_; lean_object* v___x_2980_; uint8_t v___x_2981_; 
v___x_2979_ = lean_unsigned_to_nat(0u);
v___x_2980_ = lean_array_get_size(v_q_2971_);
v___x_2981_ = lean_nat_dec_lt(v___x_2979_, v___x_2980_);
if (v___x_2981_ == 0)
{
lean_object* v___x_2982_; 
lean_dec_ref(v_a_2976_);
lean_dec(v_a_2975_);
lean_dec(v_a_2974_);
lean_dec(v_a_2973_);
lean_dec_ref(v_a_2972_);
lean_dec_ref(v_q_2971_);
v___x_2982_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_2982_, 0, v_s_2970_);
lean_ctor_set(v___x_2982_, 1, v_a_2977_);
return v___x_2982_;
}
else
{
lean_object* v___x_2983_; lean_object* v___x_2984_; lean_object* v___x_2985_; lean_object* v_fst_2986_; lean_object* v_snd_2987_; lean_object* v___x_2989_; uint8_t v_isShared_2990_; uint8_t v_isSharedCheck_3087_; 
v___x_2983_ = lean_unsigned_to_nat(1u);
v___x_2984_ = lean_nat_sub(v___x_2980_, v___x_2983_);
v___x_2985_ = lean_array_fget(v_q_2971_, v___x_2984_);
lean_dec(v___x_2984_);
v_fst_2986_ = lean_ctor_get(v___x_2985_, 0);
v_snd_2987_ = lean_ctor_get(v___x_2985_, 1);
v_isSharedCheck_3087_ = !lean_is_exclusive(v___x_2985_);
if (v_isSharedCheck_3087_ == 0)
{
v___x_2989_ = v___x_2985_;
v_isShared_2990_ = v_isSharedCheck_3087_;
goto v_resetjp_2988_;
}
else
{
lean_inc(v_snd_2987_);
lean_inc(v_fst_2986_);
lean_dec(v___x_2985_);
v___x_2989_ = lean_box(0);
v_isShared_2990_ = v_isSharedCheck_3087_;
goto v_resetjp_2988_;
}
v_resetjp_2988_:
{
lean_object* v_lib_2991_; lean_object* v_name_2992_; lean_object* v_q_2993_; lean_object* v___y_2995_; lean_object* v___y_2996_; lean_object* v___y_2997_; lean_object* v___y_2998_; lean_object* v___y_2999_; lean_object* v___y_3000_; lean_object* v___y_3001_; lean_object* v___y_3002_; lean_object* v___y_3003_; lean_object* v___y_3004_; lean_object* v___y_3036_; lean_object* v___y_3037_; lean_object* v___y_3038_; lean_object* v___y_3039_; lean_object* v___y_3040_; lean_object* v___y_3041_; lean_object* v___x_3079_; 
v_lib_2991_ = lean_ctor_get(v_fst_2986_, 0);
v_name_2992_ = lean_ctor_get(v_fst_2986_, 1);
v_q_2993_ = lean_array_pop(v_q_2971_);
v___x_3079_ = l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___00Lean_NameMap_find_x3f_spec__0___redArg(v_s_2970_, v_name_2992_);
if (lean_obj_tag(v___x_3079_) == 1)
{
uint8_t v___x_3080_; 
v___x_3080_ = lean_unbox(v_snd_2987_);
if (v___x_3080_ == 0)
{
lean_dec_ref(v___x_3079_);
lean_del_object(v___x_2989_);
lean_dec(v_snd_2987_);
lean_dec(v_fst_2986_);
v_q_2971_ = v_q_2993_;
goto _start;
}
else
{
lean_object* v_val_3082_; lean_object* v___x_3083_; lean_object* v___x_3084_; uint8_t v___x_3085_; 
v_val_3082_ = lean_ctor_get(v___x_3079_, 0);
lean_inc(v_val_3082_);
lean_dec_ref(v___x_3079_);
v___x_3083_ = l_Lean_ImportArtifacts_size(v_val_3082_);
lean_dec(v_val_3082_);
v___x_3084_ = lean_unsigned_to_nat(3u);
v___x_3085_ = lean_nat_dec_eq(v___x_3083_, v___x_3084_);
lean_dec(v___x_3083_);
if (v___x_3085_ == 0)
{
lean_del_object(v___x_2989_);
lean_dec(v_snd_2987_);
lean_dec(v_fst_2986_);
v_q_2971_ = v_q_2993_;
goto _start;
}
else
{
v___y_3036_ = v_a_2972_;
v___y_3037_ = v_a_2973_;
v___y_3038_ = v_a_2974_;
v___y_3039_ = v_a_2975_;
v___y_3040_ = v_a_2976_;
v___y_3041_ = v_a_2977_;
goto v___jp_3035_;
}
}
}
else
{
lean_dec(v___x_3079_);
v___y_3036_ = v_a_2972_;
v___y_3037_ = v_a_2973_;
v___y_3038_ = v_a_2974_;
v___y_3039_ = v_a_2975_;
v___y_3040_ = v_a_2976_;
v___y_3041_ = v_a_2977_;
goto v___jp_3035_;
}
v___jp_2994_:
{
lean_object* v___x_3005_; lean_object* v___x_3006_; lean_object* v___x_3007_; 
v___x_3005_ = l_Lake_Module_inputFacet;
v___x_3006_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_3006_, 0, v___y_2999_);
lean_ctor_set(v___x_3006_, 1, v___y_3000_);
lean_ctor_set(v___x_3006_, 2, v_fst_2986_);
lean_ctor_set(v___x_3006_, 3, v___x_3005_);
lean_inc_ref(v___y_2997_);
lean_inc_ref(v___y_3002_);
lean_inc(v___y_3001_);
lean_inc(v___y_2998_);
lean_inc(v___y_2996_);
v___x_3007_ = lean_apply_7(v___y_2997_, v___x_3006_, v___y_2996_, v___y_2998_, v___y_3001_, v___y_3002_, v___y_3003_, lean_box(0));
if (lean_obj_tag(v___x_3007_) == 0)
{
lean_object* v_a_3008_; lean_object* v_a_3009_; lean_object* v___x_3010_; 
v_a_3008_ = lean_ctor_get(v___x_3007_, 0);
lean_inc(v_a_3008_);
v_a_3009_ = lean_ctor_get(v___x_3007_, 1);
lean_inc(v_a_3009_);
lean_dec_ref(v___x_3007_);
v___x_3010_ = l_Lake_Job_await___redArg(v_a_3008_, v_a_3009_);
if (lean_obj_tag(v___x_3010_) == 0)
{
lean_object* v_a_3011_; lean_object* v_a_3012_; lean_object* v___x_3013_; uint8_t v___x_3014_; lean_object* v___x_3015_; 
v_a_3011_ = lean_ctor_get(v___x_3010_, 0);
lean_inc(v_a_3011_);
v_a_3012_ = lean_ctor_get(v___x_3010_, 1);
lean_inc(v_a_3012_);
lean_dec_ref(v___x_3010_);
v___x_3013_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lean_NameMap_insert_spec__0___redArg(v___y_2995_, v___y_3004_, v_s_2970_);
v___x_3014_ = lean_unbox(v_snd_2987_);
lean_dec(v_snd_2987_);
v___x_3015_ = l___private_Lake_Build_Module_0__Lake_fetchTransImportArts_enqueue(v_nonModule_2969_, v___x_3014_, v_a_3011_, v_q_2993_);
lean_dec(v_a_3011_);
v_s_2970_ = v___x_3013_;
v_q_2971_ = v___x_3015_;
v_a_2972_ = v___y_2997_;
v_a_2973_ = v___y_2996_;
v_a_2974_ = v___y_2998_;
v_a_2975_ = v___y_3001_;
v_a_2976_ = v___y_3002_;
v_a_2977_ = v_a_3012_;
goto _start;
}
else
{
lean_object* v_a_3017_; lean_object* v_a_3018_; lean_object* v___x_3020_; uint8_t v_isShared_3021_; uint8_t v_isSharedCheck_3025_; 
lean_dec_ref(v___y_3004_);
lean_dec_ref(v___y_3002_);
lean_dec(v___y_3001_);
lean_dec(v___y_2998_);
lean_dec_ref(v___y_2997_);
lean_dec(v___y_2996_);
lean_dec(v___y_2995_);
lean_dec_ref(v_q_2993_);
lean_dec(v_snd_2987_);
lean_dec(v_s_2970_);
v_a_3017_ = lean_ctor_get(v___x_3010_, 0);
v_a_3018_ = lean_ctor_get(v___x_3010_, 1);
v_isSharedCheck_3025_ = !lean_is_exclusive(v___x_3010_);
if (v_isSharedCheck_3025_ == 0)
{
v___x_3020_ = v___x_3010_;
v_isShared_3021_ = v_isSharedCheck_3025_;
goto v_resetjp_3019_;
}
else
{
lean_inc(v_a_3018_);
lean_inc(v_a_3017_);
lean_dec(v___x_3010_);
v___x_3020_ = lean_box(0);
v_isShared_3021_ = v_isSharedCheck_3025_;
goto v_resetjp_3019_;
}
v_resetjp_3019_:
{
lean_object* v___x_3023_; 
if (v_isShared_3021_ == 0)
{
v___x_3023_ = v___x_3020_;
goto v_reusejp_3022_;
}
else
{
lean_object* v_reuseFailAlloc_3024_; 
v_reuseFailAlloc_3024_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_3024_, 0, v_a_3017_);
lean_ctor_set(v_reuseFailAlloc_3024_, 1, v_a_3018_);
v___x_3023_ = v_reuseFailAlloc_3024_;
goto v_reusejp_3022_;
}
v_reusejp_3022_:
{
return v___x_3023_;
}
}
}
}
else
{
lean_object* v_a_3026_; lean_object* v_a_3027_; lean_object* v___x_3029_; uint8_t v_isShared_3030_; uint8_t v_isSharedCheck_3034_; 
lean_dec_ref(v___y_3004_);
lean_dec_ref(v___y_3002_);
lean_dec(v___y_3001_);
lean_dec(v___y_2998_);
lean_dec_ref(v___y_2997_);
lean_dec(v___y_2996_);
lean_dec(v___y_2995_);
lean_dec_ref(v_q_2993_);
lean_dec(v_snd_2987_);
lean_dec(v_s_2970_);
v_a_3026_ = lean_ctor_get(v___x_3007_, 0);
v_a_3027_ = lean_ctor_get(v___x_3007_, 1);
v_isSharedCheck_3034_ = !lean_is_exclusive(v___x_3007_);
if (v_isSharedCheck_3034_ == 0)
{
v___x_3029_ = v___x_3007_;
v_isShared_3030_ = v_isSharedCheck_3034_;
goto v_resetjp_3028_;
}
else
{
lean_inc(v_a_3027_);
lean_inc(v_a_3026_);
lean_dec(v___x_3007_);
v___x_3029_ = lean_box(0);
v_isShared_3030_ = v_isSharedCheck_3034_;
goto v_resetjp_3028_;
}
v_resetjp_3028_:
{
lean_object* v___x_3032_; 
if (v_isShared_3030_ == 0)
{
v___x_3032_ = v___x_3029_;
goto v_reusejp_3031_;
}
else
{
lean_object* v_reuseFailAlloc_3033_; 
v_reuseFailAlloc_3033_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_3033_, 0, v_a_3026_);
lean_ctor_set(v_reuseFailAlloc_3033_, 1, v_a_3027_);
v___x_3032_ = v_reuseFailAlloc_3033_;
goto v_reusejp_3031_;
}
v_reusejp_3031_:
{
return v___x_3032_;
}
}
}
}
v___jp_3035_:
{
lean_object* v_pkg_3042_; lean_object* v_keyName_3043_; lean_object* v___x_3044_; lean_object* v___x_3046_; 
v_pkg_3042_ = lean_ctor_get(v_lib_2991_, 0);
v_keyName_3043_ = lean_ctor_get(v_pkg_3042_, 2);
v___x_3044_ = l_Lake_Module_exportInfoFacet;
lean_inc(v_name_2992_);
lean_inc(v_keyName_3043_);
if (v_isShared_2990_ == 0)
{
lean_ctor_set_tag(v___x_2989_, 2);
lean_ctor_set(v___x_2989_, 1, v_name_2992_);
lean_ctor_set(v___x_2989_, 0, v_keyName_3043_);
v___x_3046_ = v___x_2989_;
goto v_reusejp_3045_;
}
else
{
lean_object* v_reuseFailAlloc_3078_; 
v_reuseFailAlloc_3078_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v_reuseFailAlloc_3078_, 0, v_keyName_3043_);
lean_ctor_set(v_reuseFailAlloc_3078_, 1, v_name_2992_);
v___x_3046_ = v_reuseFailAlloc_3078_;
goto v_reusejp_3045_;
}
v_reusejp_3045_:
{
lean_object* v___x_3047_; lean_object* v___x_3048_; lean_object* v___x_3049_; 
v___x_3047_ = l_Lake_Module_keyword;
lean_inc(v_fst_2986_);
lean_inc_ref(v___x_3046_);
v___x_3048_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_3048_, 0, v___x_3046_);
lean_ctor_set(v___x_3048_, 1, v___x_3047_);
lean_ctor_set(v___x_3048_, 2, v_fst_2986_);
lean_ctor_set(v___x_3048_, 3, v___x_3044_);
lean_inc_ref(v___y_3036_);
lean_inc_ref(v___y_3040_);
lean_inc(v___y_3039_);
lean_inc(v___y_3038_);
lean_inc(v___y_3037_);
v___x_3049_ = lean_apply_7(v___y_3036_, v___x_3048_, v___y_3037_, v___y_3038_, v___y_3039_, v___y_3040_, v___y_3041_, lean_box(0));
if (lean_obj_tag(v___x_3049_) == 0)
{
lean_object* v_a_3050_; lean_object* v_a_3051_; lean_object* v___x_3052_; 
v_a_3050_ = lean_ctor_get(v___x_3049_, 0);
lean_inc(v_a_3050_);
v_a_3051_ = lean_ctor_get(v___x_3049_, 1);
lean_inc(v_a_3051_);
lean_dec_ref(v___x_3049_);
v___x_3052_ = l_Lake_Job_await___redArg(v_a_3050_, v_a_3051_);
if (lean_obj_tag(v___x_3052_) == 0)
{
uint8_t v___x_3053_; 
v___x_3053_ = lean_unbox(v_snd_2987_);
if (v___x_3053_ == 0)
{
lean_object* v_a_3054_; lean_object* v_a_3055_; lean_object* v_arts_3056_; 
v_a_3054_ = lean_ctor_get(v___x_3052_, 0);
lean_inc(v_a_3054_);
v_a_3055_ = lean_ctor_get(v___x_3052_, 1);
lean_inc(v_a_3055_);
lean_dec_ref(v___x_3052_);
v_arts_3056_ = lean_ctor_get(v_a_3054_, 1);
lean_inc_ref(v_arts_3056_);
lean_dec(v_a_3054_);
lean_inc(v_name_2992_);
v___y_2995_ = v_name_2992_;
v___y_2996_ = v___y_3037_;
v___y_2997_ = v___y_3036_;
v___y_2998_ = v___y_3038_;
v___y_2999_ = v___x_3046_;
v___y_3000_ = v___x_3047_;
v___y_3001_ = v___y_3039_;
v___y_3002_ = v___y_3040_;
v___y_3003_ = v_a_3055_;
v___y_3004_ = v_arts_3056_;
goto v___jp_2994_;
}
else
{
lean_object* v_a_3057_; lean_object* v_a_3058_; lean_object* v_allArts_3059_; 
v_a_3057_ = lean_ctor_get(v___x_3052_, 0);
lean_inc(v_a_3057_);
v_a_3058_ = lean_ctor_get(v___x_3052_, 1);
lean_inc(v_a_3058_);
lean_dec_ref(v___x_3052_);
v_allArts_3059_ = lean_ctor_get(v_a_3057_, 4);
lean_inc_ref(v_allArts_3059_);
lean_dec(v_a_3057_);
lean_inc(v_name_2992_);
v___y_2995_ = v_name_2992_;
v___y_2996_ = v___y_3037_;
v___y_2997_ = v___y_3036_;
v___y_2998_ = v___y_3038_;
v___y_2999_ = v___x_3046_;
v___y_3000_ = v___x_3047_;
v___y_3001_ = v___y_3039_;
v___y_3002_ = v___y_3040_;
v___y_3003_ = v_a_3058_;
v___y_3004_ = v_allArts_3059_;
goto v___jp_2994_;
}
}
else
{
lean_object* v_a_3060_; lean_object* v_a_3061_; lean_object* v___x_3063_; uint8_t v_isShared_3064_; uint8_t v_isSharedCheck_3068_; 
lean_dec_ref(v___x_3046_);
lean_dec_ref(v___y_3040_);
lean_dec(v___y_3039_);
lean_dec(v___y_3038_);
lean_dec(v___y_3037_);
lean_dec_ref(v___y_3036_);
lean_dec_ref(v_q_2993_);
lean_dec(v_snd_2987_);
lean_dec(v_fst_2986_);
lean_dec(v_s_2970_);
v_a_3060_ = lean_ctor_get(v___x_3052_, 0);
v_a_3061_ = lean_ctor_get(v___x_3052_, 1);
v_isSharedCheck_3068_ = !lean_is_exclusive(v___x_3052_);
if (v_isSharedCheck_3068_ == 0)
{
v___x_3063_ = v___x_3052_;
v_isShared_3064_ = v_isSharedCheck_3068_;
goto v_resetjp_3062_;
}
else
{
lean_inc(v_a_3061_);
lean_inc(v_a_3060_);
lean_dec(v___x_3052_);
v___x_3063_ = lean_box(0);
v_isShared_3064_ = v_isSharedCheck_3068_;
goto v_resetjp_3062_;
}
v_resetjp_3062_:
{
lean_object* v___x_3066_; 
if (v_isShared_3064_ == 0)
{
v___x_3066_ = v___x_3063_;
goto v_reusejp_3065_;
}
else
{
lean_object* v_reuseFailAlloc_3067_; 
v_reuseFailAlloc_3067_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_3067_, 0, v_a_3060_);
lean_ctor_set(v_reuseFailAlloc_3067_, 1, v_a_3061_);
v___x_3066_ = v_reuseFailAlloc_3067_;
goto v_reusejp_3065_;
}
v_reusejp_3065_:
{
return v___x_3066_;
}
}
}
}
else
{
lean_object* v_a_3069_; lean_object* v_a_3070_; lean_object* v___x_3072_; uint8_t v_isShared_3073_; uint8_t v_isSharedCheck_3077_; 
lean_dec_ref(v___x_3046_);
lean_dec_ref(v___y_3040_);
lean_dec(v___y_3039_);
lean_dec(v___y_3038_);
lean_dec(v___y_3037_);
lean_dec_ref(v___y_3036_);
lean_dec_ref(v_q_2993_);
lean_dec(v_snd_2987_);
lean_dec(v_fst_2986_);
lean_dec(v_s_2970_);
v_a_3069_ = lean_ctor_get(v___x_3049_, 0);
v_a_3070_ = lean_ctor_get(v___x_3049_, 1);
v_isSharedCheck_3077_ = !lean_is_exclusive(v___x_3049_);
if (v_isSharedCheck_3077_ == 0)
{
v___x_3072_ = v___x_3049_;
v_isShared_3073_ = v_isSharedCheck_3077_;
goto v_resetjp_3071_;
}
else
{
lean_inc(v_a_3070_);
lean_inc(v_a_3069_);
lean_dec(v___x_3049_);
v___x_3072_ = lean_box(0);
v_isShared_3073_ = v_isSharedCheck_3077_;
goto v_resetjp_3071_;
}
v_resetjp_3071_:
{
lean_object* v___x_3075_; 
if (v_isShared_3073_ == 0)
{
v___x_3075_ = v___x_3072_;
goto v_reusejp_3074_;
}
else
{
lean_object* v_reuseFailAlloc_3076_; 
v_reuseFailAlloc_3076_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_3076_, 0, v_a_3069_);
lean_ctor_set(v_reuseFailAlloc_3076_, 1, v_a_3070_);
v___x_3075_ = v_reuseFailAlloc_3076_;
goto v_reusejp_3074_;
}
v_reusejp_3074_:
{
return v___x_3075_;
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchTransImportArts_walk___boxed(lean_object* v_nonModule_3088_, lean_object* v_s_3089_, lean_object* v_q_3090_, lean_object* v_a_3091_, lean_object* v_a_3092_, lean_object* v_a_3093_, lean_object* v_a_3094_, lean_object* v_a_3095_, lean_object* v_a_3096_, lean_object* v_a_3097_){
_start:
{
uint8_t v_nonModule_boxed_3098_; lean_object* v_res_3099_; 
v_nonModule_boxed_3098_ = lean_unbox(v_nonModule_3088_);
v_res_3099_ = l___private_Lake_Build_Module_0__Lake_fetchTransImportArts_walk(v_nonModule_boxed_3098_, v_s_3089_, v_q_3090_, v_a_3091_, v_a_3092_, v_a_3093_, v_a_3094_, v_a_3095_, v_a_3096_);
return v_res_3099_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchTransImportArts_spec__0(uint8_t v_nonModule_3100_, lean_object* v_as_3101_, size_t v_i_3102_, size_t v_stop_3103_, lean_object* v_b_3104_, lean_object* v___y_3105_, lean_object* v___y_3106_, lean_object* v___y_3107_, lean_object* v___y_3108_, lean_object* v___y_3109_, lean_object* v___y_3110_){
_start:
{
lean_object* v_a_3113_; lean_object* v_a_3114_; uint8_t v___x_3118_; 
v___x_3118_ = lean_usize_dec_eq(v_i_3102_, v_stop_3103_);
if (v___x_3118_ == 0)
{
lean_object* v___x_3119_; lean_object* v_module_x3f_3120_; 
v___x_3119_ = lean_array_uget(v_as_3101_, v_i_3102_);
v_module_x3f_3120_ = lean_ctor_get(v___x_3119_, 1);
if (lean_obj_tag(v_module_x3f_3120_) == 1)
{
lean_object* v_val_3121_; lean_object* v_lib_3122_; lean_object* v_pkg_3123_; lean_object* v_toImport_3124_; lean_object* v___x_3126_; uint8_t v_isShared_3127_; uint8_t v_isSharedCheck_3163_; 
v_val_3121_ = lean_ctor_get(v_module_x3f_3120_, 0);
lean_inc(v_val_3121_);
v_lib_3122_ = lean_ctor_get(v_val_3121_, 0);
v_pkg_3123_ = lean_ctor_get(v_lib_3122_, 0);
v_toImport_3124_ = lean_ctor_get(v___x_3119_, 0);
v_isSharedCheck_3163_ = !lean_is_exclusive(v___x_3119_);
if (v_isSharedCheck_3163_ == 0)
{
lean_object* v_unused_3164_; 
v_unused_3164_ = lean_ctor_get(v___x_3119_, 1);
lean_dec(v_unused_3164_);
v___x_3126_ = v___x_3119_;
v_isShared_3127_ = v_isSharedCheck_3163_;
goto v_resetjp_3125_;
}
else
{
lean_inc(v_toImport_3124_);
lean_dec(v___x_3119_);
v___x_3126_ = lean_box(0);
v_isShared_3127_ = v_isSharedCheck_3163_;
goto v_resetjp_3125_;
}
v_resetjp_3125_:
{
lean_object* v_name_3128_; lean_object* v_keyName_3129_; lean_object* v___x_3130_; lean_object* v___x_3132_; 
v_name_3128_ = lean_ctor_get(v_val_3121_, 1);
v_keyName_3129_ = lean_ctor_get(v_pkg_3123_, 2);
v___x_3130_ = l_Lake_Module_inputFacet;
lean_inc(v_name_3128_);
lean_inc(v_keyName_3129_);
if (v_isShared_3127_ == 0)
{
lean_ctor_set_tag(v___x_3126_, 2);
lean_ctor_set(v___x_3126_, 1, v_name_3128_);
lean_ctor_set(v___x_3126_, 0, v_keyName_3129_);
v___x_3132_ = v___x_3126_;
goto v_reusejp_3131_;
}
else
{
lean_object* v_reuseFailAlloc_3162_; 
v_reuseFailAlloc_3162_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v_reuseFailAlloc_3162_, 0, v_keyName_3129_);
lean_ctor_set(v_reuseFailAlloc_3162_, 1, v_name_3128_);
v___x_3132_ = v_reuseFailAlloc_3162_;
goto v_reusejp_3131_;
}
v_reusejp_3131_:
{
lean_object* v___x_3133_; lean_object* v___x_3134_; lean_object* v___x_3135_; 
v___x_3133_ = l_Lake_Module_keyword;
v___x_3134_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_3134_, 0, v___x_3132_);
lean_ctor_set(v___x_3134_, 1, v___x_3133_);
lean_ctor_set(v___x_3134_, 2, v_val_3121_);
lean_ctor_set(v___x_3134_, 3, v___x_3130_);
lean_inc_ref(v___y_3105_);
lean_inc_ref(v___y_3109_);
lean_inc(v___y_3108_);
lean_inc(v___y_3107_);
lean_inc(v___y_3106_);
v___x_3135_ = lean_apply_7(v___y_3105_, v___x_3134_, v___y_3106_, v___y_3107_, v___y_3108_, v___y_3109_, v___y_3110_, lean_box(0));
if (lean_obj_tag(v___x_3135_) == 0)
{
lean_object* v_a_3136_; lean_object* v_a_3137_; lean_object* v___x_3138_; 
v_a_3136_ = lean_ctor_get(v___x_3135_, 0);
lean_inc(v_a_3136_);
v_a_3137_ = lean_ctor_get(v___x_3135_, 1);
lean_inc(v_a_3137_);
lean_dec_ref(v___x_3135_);
v___x_3138_ = l_Lake_Job_await___redArg(v_a_3136_, v_a_3137_);
if (lean_obj_tag(v___x_3138_) == 0)
{
lean_object* v_a_3139_; lean_object* v_a_3140_; uint8_t v_importAll_3141_; uint8_t v___x_3142_; lean_object* v___x_3143_; 
v_a_3139_ = lean_ctor_get(v___x_3138_, 0);
lean_inc(v_a_3139_);
v_a_3140_ = lean_ctor_get(v___x_3138_, 1);
lean_inc(v_a_3140_);
lean_dec_ref(v___x_3138_);
v_importAll_3141_ = lean_ctor_get_uint8(v_toImport_3124_, sizeof(void*)*1);
lean_dec_ref(v_toImport_3124_);
v___x_3142_ = lean_strict_or(v_nonModule_3100_, v_importAll_3141_);
v___x_3143_ = l___private_Lake_Build_Module_0__Lake_fetchTransImportArts_enqueue(v_nonModule_3100_, v___x_3142_, v_a_3139_, v_b_3104_);
lean_dec(v_a_3139_);
v_a_3113_ = v___x_3143_;
v_a_3114_ = v_a_3140_;
goto v___jp_3112_;
}
else
{
lean_object* v_a_3144_; lean_object* v_a_3145_; lean_object* v___x_3147_; uint8_t v_isShared_3148_; uint8_t v_isSharedCheck_3152_; 
lean_dec_ref(v_toImport_3124_);
lean_dec_ref(v___y_3109_);
lean_dec(v___y_3108_);
lean_dec(v___y_3107_);
lean_dec(v___y_3106_);
lean_dec_ref(v___y_3105_);
lean_dec_ref(v_b_3104_);
v_a_3144_ = lean_ctor_get(v___x_3138_, 0);
v_a_3145_ = lean_ctor_get(v___x_3138_, 1);
v_isSharedCheck_3152_ = !lean_is_exclusive(v___x_3138_);
if (v_isSharedCheck_3152_ == 0)
{
v___x_3147_ = v___x_3138_;
v_isShared_3148_ = v_isSharedCheck_3152_;
goto v_resetjp_3146_;
}
else
{
lean_inc(v_a_3145_);
lean_inc(v_a_3144_);
lean_dec(v___x_3138_);
v___x_3147_ = lean_box(0);
v_isShared_3148_ = v_isSharedCheck_3152_;
goto v_resetjp_3146_;
}
v_resetjp_3146_:
{
lean_object* v___x_3150_; 
if (v_isShared_3148_ == 0)
{
v___x_3150_ = v___x_3147_;
goto v_reusejp_3149_;
}
else
{
lean_object* v_reuseFailAlloc_3151_; 
v_reuseFailAlloc_3151_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_3151_, 0, v_a_3144_);
lean_ctor_set(v_reuseFailAlloc_3151_, 1, v_a_3145_);
v___x_3150_ = v_reuseFailAlloc_3151_;
goto v_reusejp_3149_;
}
v_reusejp_3149_:
{
return v___x_3150_;
}
}
}
}
else
{
lean_object* v_a_3153_; lean_object* v_a_3154_; lean_object* v___x_3156_; uint8_t v_isShared_3157_; uint8_t v_isSharedCheck_3161_; 
lean_dec_ref(v_toImport_3124_);
lean_dec_ref(v___y_3109_);
lean_dec(v___y_3108_);
lean_dec(v___y_3107_);
lean_dec(v___y_3106_);
lean_dec_ref(v___y_3105_);
lean_dec_ref(v_b_3104_);
v_a_3153_ = lean_ctor_get(v___x_3135_, 0);
v_a_3154_ = lean_ctor_get(v___x_3135_, 1);
v_isSharedCheck_3161_ = !lean_is_exclusive(v___x_3135_);
if (v_isSharedCheck_3161_ == 0)
{
v___x_3156_ = v___x_3135_;
v_isShared_3157_ = v_isSharedCheck_3161_;
goto v_resetjp_3155_;
}
else
{
lean_inc(v_a_3154_);
lean_inc(v_a_3153_);
lean_dec(v___x_3135_);
v___x_3156_ = lean_box(0);
v_isShared_3157_ = v_isSharedCheck_3161_;
goto v_resetjp_3155_;
}
v_resetjp_3155_:
{
lean_object* v___x_3159_; 
if (v_isShared_3157_ == 0)
{
v___x_3159_ = v___x_3156_;
goto v_reusejp_3158_;
}
else
{
lean_object* v_reuseFailAlloc_3160_; 
v_reuseFailAlloc_3160_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_3160_, 0, v_a_3153_);
lean_ctor_set(v_reuseFailAlloc_3160_, 1, v_a_3154_);
v___x_3159_ = v_reuseFailAlloc_3160_;
goto v_reusejp_3158_;
}
v_reusejp_3158_:
{
return v___x_3159_;
}
}
}
}
}
}
else
{
lean_dec(v___x_3119_);
v_a_3113_ = v_b_3104_;
v_a_3114_ = v___y_3110_;
goto v___jp_3112_;
}
}
else
{
lean_object* v___x_3165_; 
lean_dec_ref(v___y_3109_);
lean_dec(v___y_3108_);
lean_dec(v___y_3107_);
lean_dec(v___y_3106_);
lean_dec_ref(v___y_3105_);
v___x_3165_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_3165_, 0, v_b_3104_);
lean_ctor_set(v___x_3165_, 1, v___y_3110_);
return v___x_3165_;
}
v___jp_3112_:
{
size_t v___x_3115_; size_t v___x_3116_; 
v___x_3115_ = ((size_t)1ULL);
v___x_3116_ = lean_usize_add(v_i_3102_, v___x_3115_);
v_i_3102_ = v___x_3116_;
v_b_3104_ = v_a_3113_;
v___y_3110_ = v_a_3114_;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchTransImportArts_spec__0___boxed(lean_object* v_nonModule_3166_, lean_object* v_as_3167_, lean_object* v_i_3168_, lean_object* v_stop_3169_, lean_object* v_b_3170_, lean_object* v___y_3171_, lean_object* v___y_3172_, lean_object* v___y_3173_, lean_object* v___y_3174_, lean_object* v___y_3175_, lean_object* v___y_3176_, lean_object* v___y_3177_){
_start:
{
uint8_t v_nonModule_boxed_3178_; size_t v_i_boxed_3179_; size_t v_stop_boxed_3180_; lean_object* v_res_3181_; 
v_nonModule_boxed_3178_ = lean_unbox(v_nonModule_3166_);
v_i_boxed_3179_ = lean_unbox_usize(v_i_3168_);
lean_dec(v_i_3168_);
v_stop_boxed_3180_ = lean_unbox_usize(v_stop_3169_);
lean_dec(v_stop_3169_);
v_res_3181_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchTransImportArts_spec__0(v_nonModule_boxed_3178_, v_as_3167_, v_i_boxed_3179_, v_stop_boxed_3180_, v_b_3170_, v___y_3171_, v___y_3172_, v___y_3173_, v___y_3174_, v___y_3175_, v___y_3176_);
lean_dec_ref(v_as_3167_);
return v_res_3181_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchTransImportArts(lean_object* v_directImports_3184_, lean_object* v_directArts_3185_, uint8_t v_nonModule_3186_, lean_object* v_a_3187_, lean_object* v_a_3188_, lean_object* v_a_3189_, lean_object* v_a_3190_, lean_object* v_a_3191_, lean_object* v_a_3192_){
_start:
{
lean_object* v___y_3195_; lean_object* v___x_3208_; lean_object* v___x_3209_; lean_object* v___x_3210_; uint8_t v___x_3211_; 
v___x_3208_ = lean_unsigned_to_nat(0u);
v___x_3209_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_fetchTransImportArts___closed__0));
v___x_3210_ = lean_array_get_size(v_directImports_3184_);
v___x_3211_ = lean_nat_dec_lt(v___x_3208_, v___x_3210_);
if (v___x_3211_ == 0)
{
lean_object* v___x_3212_; 
v___x_3212_ = l___private_Lake_Build_Module_0__Lake_fetchTransImportArts_walk(v_nonModule_3186_, v_directArts_3185_, v___x_3209_, v_a_3187_, v_a_3188_, v_a_3189_, v_a_3190_, v_a_3191_, v_a_3192_);
return v___x_3212_;
}
else
{
uint8_t v___x_3213_; 
v___x_3213_ = lean_nat_dec_le(v___x_3210_, v___x_3210_);
if (v___x_3213_ == 0)
{
if (v___x_3211_ == 0)
{
lean_object* v___x_3214_; 
v___x_3214_ = l___private_Lake_Build_Module_0__Lake_fetchTransImportArts_walk(v_nonModule_3186_, v_directArts_3185_, v___x_3209_, v_a_3187_, v_a_3188_, v_a_3189_, v_a_3190_, v_a_3191_, v_a_3192_);
return v___x_3214_;
}
else
{
size_t v___x_3215_; size_t v___x_3216_; lean_object* v___x_3217_; 
v___x_3215_ = ((size_t)0ULL);
v___x_3216_ = lean_usize_of_nat(v___x_3210_);
lean_inc_ref(v_a_3191_);
lean_inc(v_a_3190_);
lean_inc(v_a_3189_);
lean_inc(v_a_3188_);
lean_inc_ref(v_a_3187_);
v___x_3217_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchTransImportArts_spec__0(v_nonModule_3186_, v_directImports_3184_, v___x_3215_, v___x_3216_, v___x_3209_, v_a_3187_, v_a_3188_, v_a_3189_, v_a_3190_, v_a_3191_, v_a_3192_);
v___y_3195_ = v___x_3217_;
goto v___jp_3194_;
}
}
else
{
size_t v___x_3218_; size_t v___x_3219_; lean_object* v___x_3220_; 
v___x_3218_ = ((size_t)0ULL);
v___x_3219_ = lean_usize_of_nat(v___x_3210_);
lean_inc_ref(v_a_3191_);
lean_inc(v_a_3190_);
lean_inc(v_a_3189_);
lean_inc(v_a_3188_);
lean_inc_ref(v_a_3187_);
v___x_3220_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchTransImportArts_spec__0(v_nonModule_3186_, v_directImports_3184_, v___x_3218_, v___x_3219_, v___x_3209_, v_a_3187_, v_a_3188_, v_a_3189_, v_a_3190_, v_a_3191_, v_a_3192_);
v___y_3195_ = v___x_3220_;
goto v___jp_3194_;
}
}
v___jp_3194_:
{
if (lean_obj_tag(v___y_3195_) == 0)
{
lean_object* v_a_3196_; lean_object* v_a_3197_; lean_object* v___x_3198_; 
v_a_3196_ = lean_ctor_get(v___y_3195_, 0);
lean_inc(v_a_3196_);
v_a_3197_ = lean_ctor_get(v___y_3195_, 1);
lean_inc(v_a_3197_);
lean_dec_ref(v___y_3195_);
v___x_3198_ = l___private_Lake_Build_Module_0__Lake_fetchTransImportArts_walk(v_nonModule_3186_, v_directArts_3185_, v_a_3196_, v_a_3187_, v_a_3188_, v_a_3189_, v_a_3190_, v_a_3191_, v_a_3197_);
return v___x_3198_;
}
else
{
lean_object* v_a_3199_; lean_object* v_a_3200_; lean_object* v___x_3202_; uint8_t v_isShared_3203_; uint8_t v_isSharedCheck_3207_; 
lean_dec_ref(v_a_3191_);
lean_dec(v_a_3190_);
lean_dec(v_a_3189_);
lean_dec(v_a_3188_);
lean_dec_ref(v_a_3187_);
lean_dec(v_directArts_3185_);
v_a_3199_ = lean_ctor_get(v___y_3195_, 0);
v_a_3200_ = lean_ctor_get(v___y_3195_, 1);
v_isSharedCheck_3207_ = !lean_is_exclusive(v___y_3195_);
if (v_isSharedCheck_3207_ == 0)
{
v___x_3202_ = v___y_3195_;
v_isShared_3203_ = v_isSharedCheck_3207_;
goto v_resetjp_3201_;
}
else
{
lean_inc(v_a_3200_);
lean_inc(v_a_3199_);
lean_dec(v___y_3195_);
v___x_3202_ = lean_box(0);
v_isShared_3203_ = v_isSharedCheck_3207_;
goto v_resetjp_3201_;
}
v_resetjp_3201_:
{
lean_object* v___x_3205_; 
if (v_isShared_3203_ == 0)
{
v___x_3205_ = v___x_3202_;
goto v_reusejp_3204_;
}
else
{
lean_object* v_reuseFailAlloc_3206_; 
v_reuseFailAlloc_3206_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_3206_, 0, v_a_3199_);
lean_ctor_set(v_reuseFailAlloc_3206_, 1, v_a_3200_);
v___x_3205_ = v_reuseFailAlloc_3206_;
goto v_reusejp_3204_;
}
v_reusejp_3204_:
{
return v___x_3205_;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchTransImportArts___boxed(lean_object* v_directImports_3221_, lean_object* v_directArts_3222_, lean_object* v_nonModule_3223_, lean_object* v_a_3224_, lean_object* v_a_3225_, lean_object* v_a_3226_, lean_object* v_a_3227_, lean_object* v_a_3228_, lean_object* v_a_3229_, lean_object* v_a_3230_){
_start:
{
uint8_t v_nonModule_boxed_3231_; lean_object* v_res_3232_; 
v_nonModule_boxed_3231_ = lean_unbox(v_nonModule_3223_);
v_res_3232_ = l___private_Lake_Build_Module_0__Lake_fetchTransImportArts(v_directImports_3221_, v_directArts_3222_, v_nonModule_boxed_3231_, v_a_3224_, v_a_3225_, v_a_3226_, v_a_3227_, v_a_3228_, v_a_3229_);
lean_dec_ref(v_directImports_3221_);
return v_res_3232_;
}
}
static lean_object* _init_l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__1(void){
_start:
{
lean_object* v___x_3234_; lean_object* v___x_3235_; 
v___x_3234_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__0));
v___x_3235_ = l_Lake_BuildTrace_nil(v___x_3234_);
return v___x_3235_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil(lean_object* v_modName_3240_){
_start:
{
lean_object* v___x_3241_; lean_object* v___x_3242_; uint8_t v___x_3243_; lean_object* v___x_3244_; lean_object* v___x_3245_; lean_object* v___x_3246_; lean_object* v___x_3247_; lean_object* v___x_3248_; lean_object* v___x_3249_; lean_object* v___x_3250_; lean_object* v___x_3251_; lean_object* v___x_3252_; lean_object* v___x_3253_; lean_object* v___x_3254_; lean_object* v___x_3255_; lean_object* v___x_3256_; lean_object* v___x_3257_; 
v___x_3241_ = lean_box(1);
v___x_3242_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__1, &l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__1_once, _init_l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__1);
v___x_3243_ = 1;
v___x_3244_ = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(v_modName_3240_, v___x_3243_);
v___x_3245_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__2));
lean_inc_ref(v___x_3244_);
v___x_3246_ = lean_string_append(v___x_3244_, v___x_3245_);
v___x_3247_ = l_Lake_BuildTrace_nil(v___x_3246_);
v___x_3248_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__3));
lean_inc_ref(v___x_3244_);
v___x_3249_ = lean_string_append(v___x_3244_, v___x_3248_);
v___x_3250_ = l_Lake_BuildTrace_nil(v___x_3249_);
v___x_3251_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__4));
lean_inc_ref(v___x_3244_);
v___x_3252_ = lean_string_append(v___x_3244_, v___x_3251_);
v___x_3253_ = l_Lake_BuildTrace_nil(v___x_3252_);
v___x_3254_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__5));
v___x_3255_ = lean_string_append(v___x_3244_, v___x_3254_);
v___x_3256_ = l_Lake_BuildTrace_nil(v___x_3255_);
v___x_3257_ = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(v___x_3257_, 0, v___x_3241_);
lean_ctor_set(v___x_3257_, 1, v___x_3242_);
lean_ctor_set(v___x_3257_, 2, v___x_3247_);
lean_ctor_set(v___x_3257_, 3, v___x_3250_);
lean_ctor_set(v___x_3257_, 4, v___x_3253_);
lean_ctor_set(v___x_3257_, 5, v___x_3256_);
return v___x_3257_;
}
}
LEAN_EXPORT uint64_t l___private_Lake_Build_Module_0__Lake_ModuleExportInfo_disambiguationHash(lean_object* v_self_3258_, uint8_t v_nonModule_3259_, lean_object* v_imp_3260_){
_start:
{
if (v_nonModule_3259_ == 0)
{
uint8_t v_importAll_3261_; 
v_importAll_3261_ = lean_ctor_get_uint8(v_imp_3260_, sizeof(void*)*1);
if (v_importAll_3261_ == 0)
{
uint8_t v_isMeta_3262_; 
v_isMeta_3262_ = lean_ctor_get_uint8(v_imp_3260_, sizeof(void*)*1 + 2);
if (v_isMeta_3262_ == 0)
{
lean_object* v_transTrace_3263_; lean_object* v_artsTrace_3264_; uint64_t v_hash_3265_; uint64_t v_hash_3266_; uint64_t v___x_3267_; 
v_transTrace_3263_ = lean_ctor_get(v_self_3258_, 6);
v_artsTrace_3264_ = lean_ctor_get(v_self_3258_, 2);
v_hash_3265_ = lean_ctor_get_uint64(v_transTrace_3263_, sizeof(void*)*3);
v_hash_3266_ = lean_ctor_get_uint64(v_artsTrace_3264_, sizeof(void*)*3);
v___x_3267_ = lean_uint64_mix_hash(v_hash_3265_, v_hash_3266_);
return v___x_3267_;
}
else
{
lean_object* v_metaTransTrace_3268_; lean_object* v_metaArtsTrace_3269_; uint64_t v_hash_3270_; uint64_t v_hash_3271_; uint64_t v___x_3272_; 
v_metaTransTrace_3268_ = lean_ctor_get(v_self_3258_, 7);
v_metaArtsTrace_3269_ = lean_ctor_get(v_self_3258_, 3);
v_hash_3270_ = lean_ctor_get_uint64(v_metaTransTrace_3268_, sizeof(void*)*3);
v_hash_3271_ = lean_ctor_get_uint64(v_metaArtsTrace_3269_, sizeof(void*)*3);
v___x_3272_ = lean_uint64_mix_hash(v_hash_3270_, v_hash_3271_);
return v___x_3272_;
}
}
else
{
lean_object* v_allTransTrace_3273_; lean_object* v_allArtsTrace_3274_; uint64_t v_hash_3275_; uint64_t v_hash_3276_; uint64_t v___x_3277_; 
v_allTransTrace_3273_ = lean_ctor_get(v_self_3258_, 8);
v_allArtsTrace_3274_ = lean_ctor_get(v_self_3258_, 5);
v_hash_3275_ = lean_ctor_get_uint64(v_allTransTrace_3273_, sizeof(void*)*3);
v_hash_3276_ = lean_ctor_get_uint64(v_allArtsTrace_3274_, sizeof(void*)*3);
v___x_3277_ = lean_uint64_mix_hash(v_hash_3275_, v_hash_3276_);
return v___x_3277_;
}
}
else
{
lean_object* v_legacyTransTrace_3278_; lean_object* v_allArtsTrace_3279_; uint64_t v_hash_3280_; uint64_t v_hash_3281_; uint64_t v___x_3282_; 
v_legacyTransTrace_3278_ = lean_ctor_get(v_self_3258_, 9);
v_allArtsTrace_3279_ = lean_ctor_get(v_self_3258_, 5);
v_hash_3280_ = lean_ctor_get_uint64(v_legacyTransTrace_3278_, sizeof(void*)*3);
v_hash_3281_ = lean_ctor_get_uint64(v_allArtsTrace_3279_, sizeof(void*)*3);
v___x_3282_ = lean_uint64_mix_hash(v_hash_3280_, v_hash_3281_);
return v___x_3282_;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleExportInfo_disambiguationHash___boxed(lean_object* v_self_3283_, lean_object* v_nonModule_3284_, lean_object* v_imp_3285_){
_start:
{
uint8_t v_nonModule_boxed_3286_; uint64_t v_res_3287_; lean_object* v_r_3288_; 
v_nonModule_boxed_3286_ = lean_unbox(v_nonModule_3284_);
v_res_3287_ = l___private_Lake_Build_Module_0__Lake_ModuleExportInfo_disambiguationHash(v_self_3283_, v_nonModule_boxed_3286_, v_imp_3285_);
lean_dec_ref(v_imp_3285_);
lean_dec_ref(v_self_3283_);
v_r_3288_ = lean_box_uint64(v_res_3287_);
return v_r_3288_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_addImport(lean_object* v_info_3289_, uint8_t v_nonModule_3290_, lean_object* v_imp_3291_, lean_object* v_expInfo_3292_){
_start:
{
lean_object* v_directArts_3294_; lean_object* v_trace_3295_; lean_object* v_transTrace_3296_; lean_object* v_metaTransTrace_3297_; lean_object* v_allTransTrace_3298_; lean_object* v_legacyTransTrace_3299_; lean_object* v_directArts_3372_; lean_object* v_trace_3373_; lean_object* v_transTrace_3374_; lean_object* v_metaTransTrace_3375_; lean_object* v_allTransTrace_3376_; lean_object* v_legacyTransTrace_3377_; 
if (v_nonModule_3290_ == 0)
{
lean_object* v_module_3473_; uint8_t v_importAll_3474_; uint8_t v_isMeta_3475_; lean_object* v___y_3477_; 
v_module_3473_ = lean_ctor_get(v_imp_3291_, 0);
v_importAll_3474_ = lean_ctor_get_uint8(v_imp_3291_, sizeof(void*)*1);
v_isMeta_3475_ = lean_ctor_get_uint8(v_imp_3291_, sizeof(void*)*1 + 2);
if (v_importAll_3474_ == 0)
{
lean_object* v_directArts_3522_; lean_object* v_trace_3523_; lean_object* v_transTrace_3524_; lean_object* v_metaTransTrace_3525_; lean_object* v_allTransTrace_3526_; lean_object* v_legacyTransTrace_3527_; uint8_t v___x_3528_; 
v_directArts_3522_ = lean_ctor_get(v_info_3289_, 0);
v_trace_3523_ = lean_ctor_get(v_info_3289_, 1);
v_transTrace_3524_ = lean_ctor_get(v_info_3289_, 2);
v_metaTransTrace_3525_ = lean_ctor_get(v_info_3289_, 3);
v_allTransTrace_3526_ = lean_ctor_get(v_info_3289_, 4);
v_legacyTransTrace_3527_ = lean_ctor_get(v_info_3289_, 5);
v___x_3528_ = l_Std_DTreeMap_Internal_Impl_contains___at___00Lean_NameMap_contains_spec__0___redArg(v_module_3473_, v_directArts_3522_);
if (v___x_3528_ == 0)
{
lean_object* v___x_3530_; uint8_t v_isShared_3531_; uint8_t v_isSharedCheck_3537_; 
lean_inc_ref(v_legacyTransTrace_3527_);
lean_inc_ref(v_allTransTrace_3526_);
lean_inc_ref(v_metaTransTrace_3525_);
lean_inc_ref(v_transTrace_3524_);
lean_inc_ref(v_trace_3523_);
lean_inc(v_directArts_3522_);
v_isSharedCheck_3537_ = !lean_is_exclusive(v_info_3289_);
if (v_isSharedCheck_3537_ == 0)
{
lean_object* v_unused_3538_; lean_object* v_unused_3539_; lean_object* v_unused_3540_; lean_object* v_unused_3541_; lean_object* v_unused_3542_; lean_object* v_unused_3543_; 
v_unused_3538_ = lean_ctor_get(v_info_3289_, 5);
lean_dec(v_unused_3538_);
v_unused_3539_ = lean_ctor_get(v_info_3289_, 4);
lean_dec(v_unused_3539_);
v_unused_3540_ = lean_ctor_get(v_info_3289_, 3);
lean_dec(v_unused_3540_);
v_unused_3541_ = lean_ctor_get(v_info_3289_, 2);
lean_dec(v_unused_3541_);
v_unused_3542_ = lean_ctor_get(v_info_3289_, 1);
lean_dec(v_unused_3542_);
v_unused_3543_ = lean_ctor_get(v_info_3289_, 0);
lean_dec(v_unused_3543_);
v___x_3530_ = v_info_3289_;
v_isShared_3531_ = v_isSharedCheck_3537_;
goto v_resetjp_3529_;
}
else
{
lean_dec(v_info_3289_);
v___x_3530_ = lean_box(0);
v_isShared_3531_ = v_isSharedCheck_3537_;
goto v_resetjp_3529_;
}
v_resetjp_3529_:
{
lean_object* v_arts_3532_; lean_object* v___x_3533_; lean_object* v___x_3535_; 
v_arts_3532_ = lean_ctor_get(v_expInfo_3292_, 1);
lean_inc_ref(v_arts_3532_);
lean_inc(v_module_3473_);
v___x_3533_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lean_NameMap_insert_spec__0___redArg(v_module_3473_, v_arts_3532_, v_directArts_3522_);
if (v_isShared_3531_ == 0)
{
lean_ctor_set(v___x_3530_, 0, v___x_3533_);
v___x_3535_ = v___x_3530_;
goto v_reusejp_3534_;
}
else
{
lean_object* v_reuseFailAlloc_3536_; 
v_reuseFailAlloc_3536_ = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(v_reuseFailAlloc_3536_, 0, v___x_3533_);
lean_ctor_set(v_reuseFailAlloc_3536_, 1, v_trace_3523_);
lean_ctor_set(v_reuseFailAlloc_3536_, 2, v_transTrace_3524_);
lean_ctor_set(v_reuseFailAlloc_3536_, 3, v_metaTransTrace_3525_);
lean_ctor_set(v_reuseFailAlloc_3536_, 4, v_allTransTrace_3526_);
lean_ctor_set(v_reuseFailAlloc_3536_, 5, v_legacyTransTrace_3527_);
v___x_3535_ = v_reuseFailAlloc_3536_;
goto v_reusejp_3534_;
}
v_reusejp_3534_:
{
v___y_3477_ = v___x_3535_;
goto v___jp_3476_;
}
}
}
else
{
v___y_3477_ = v_info_3289_;
goto v___jp_3476_;
}
}
else
{
lean_object* v_allArtsTrace_3544_; lean_object* v_directArts_3545_; lean_object* v_trace_3546_; lean_object* v_transTrace_3547_; lean_object* v_metaTransTrace_3548_; lean_object* v_allTransTrace_3549_; lean_object* v_legacyTransTrace_3550_; lean_object* v_allArts_3551_; lean_object* v_allTransTrace_3552_; lean_object* v_caption_3553_; uint64_t v_hash_3554_; lean_object* v_mtime_3555_; lean_object* v___x_3557_; uint8_t v_isShared_3558_; uint8_t v_isSharedCheck_3566_; 
v_allArtsTrace_3544_ = lean_ctor_get(v_expInfo_3292_, 5);
lean_inc_ref(v_allArtsTrace_3544_);
v_directArts_3545_ = lean_ctor_get(v_info_3289_, 0);
lean_inc(v_directArts_3545_);
v_trace_3546_ = lean_ctor_get(v_info_3289_, 1);
lean_inc_ref(v_trace_3546_);
v_transTrace_3547_ = lean_ctor_get(v_info_3289_, 2);
lean_inc_ref(v_transTrace_3547_);
v_metaTransTrace_3548_ = lean_ctor_get(v_info_3289_, 3);
lean_inc_ref(v_metaTransTrace_3548_);
v_allTransTrace_3549_ = lean_ctor_get(v_info_3289_, 4);
lean_inc_ref(v_allTransTrace_3549_);
v_legacyTransTrace_3550_ = lean_ctor_get(v_info_3289_, 5);
lean_inc_ref(v_legacyTransTrace_3550_);
lean_dec_ref(v_info_3289_);
v_allArts_3551_ = lean_ctor_get(v_expInfo_3292_, 4);
v_allTransTrace_3552_ = lean_ctor_get(v_expInfo_3292_, 8);
v_caption_3553_ = lean_ctor_get(v_allArtsTrace_3544_, 0);
v_hash_3554_ = lean_ctor_get_uint64(v_allArtsTrace_3544_, sizeof(void*)*3);
v_mtime_3555_ = lean_ctor_get(v_allArtsTrace_3544_, 2);
v_isSharedCheck_3566_ = !lean_is_exclusive(v_allArtsTrace_3544_);
if (v_isSharedCheck_3566_ == 0)
{
lean_object* v_unused_3567_; 
v_unused_3567_ = lean_ctor_get(v_allArtsTrace_3544_, 1);
lean_dec(v_unused_3567_);
v___x_3557_ = v_allArtsTrace_3544_;
v_isShared_3558_ = v_isSharedCheck_3566_;
goto v_resetjp_3556_;
}
else
{
lean_inc(v_mtime_3555_);
lean_inc(v_caption_3553_);
lean_dec(v_allArtsTrace_3544_);
v___x_3557_ = lean_box(0);
v_isShared_3558_ = v_isSharedCheck_3566_;
goto v_resetjp_3556_;
}
v_resetjp_3556_:
{
lean_object* v___x_3559_; lean_object* v___x_3560_; lean_object* v___x_3561_; lean_object* v___x_3563_; 
lean_inc_ref(v_allArts_3551_);
lean_inc(v_module_3473_);
v___x_3559_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lean_NameMap_insert_spec__0___redArg(v_module_3473_, v_allArts_3551_, v_directArts_3545_);
lean_inc_ref(v_allTransTrace_3552_);
v___x_3560_ = l_Lake_BuildTrace_mix(v_trace_3546_, v_allTransTrace_3552_);
v___x_3561_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0___closed__0));
if (v_isShared_3558_ == 0)
{
lean_ctor_set(v___x_3557_, 1, v___x_3561_);
v___x_3563_ = v___x_3557_;
goto v_reusejp_3562_;
}
else
{
lean_object* v_reuseFailAlloc_3565_; 
v_reuseFailAlloc_3565_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v_reuseFailAlloc_3565_, 0, v_caption_3553_);
lean_ctor_set(v_reuseFailAlloc_3565_, 1, v___x_3561_);
lean_ctor_set(v_reuseFailAlloc_3565_, 2, v_mtime_3555_);
lean_ctor_set_uint64(v_reuseFailAlloc_3565_, sizeof(void*)*3, v_hash_3554_);
v___x_3563_ = v_reuseFailAlloc_3565_;
goto v_reusejp_3562_;
}
v_reusejp_3562_:
{
lean_object* v___x_3564_; 
v___x_3564_ = l_Lake_BuildTrace_mix(v___x_3560_, v___x_3563_);
v_directArts_3372_ = v___x_3559_;
v_trace_3373_ = v___x_3564_;
v_transTrace_3374_ = v_transTrace_3547_;
v_metaTransTrace_3375_ = v_metaTransTrace_3548_;
v_allTransTrace_3376_ = v_allTransTrace_3549_;
v_legacyTransTrace_3377_ = v_legacyTransTrace_3550_;
goto v___jp_3371_;
}
}
}
v___jp_3476_:
{
if (v_isMeta_3475_ == 0)
{
lean_object* v_artsTrace_3478_; lean_object* v_directArts_3479_; lean_object* v_trace_3480_; lean_object* v_transTrace_3481_; lean_object* v_metaTransTrace_3482_; lean_object* v_allTransTrace_3483_; lean_object* v_legacyTransTrace_3484_; lean_object* v_transTrace_3485_; lean_object* v_caption_3486_; uint64_t v_hash_3487_; lean_object* v_mtime_3488_; lean_object* v___x_3490_; uint8_t v_isShared_3491_; uint8_t v_isSharedCheck_3498_; 
v_artsTrace_3478_ = lean_ctor_get(v_expInfo_3292_, 2);
lean_inc_ref(v_artsTrace_3478_);
v_directArts_3479_ = lean_ctor_get(v___y_3477_, 0);
lean_inc(v_directArts_3479_);
v_trace_3480_ = lean_ctor_get(v___y_3477_, 1);
lean_inc_ref(v_trace_3480_);
v_transTrace_3481_ = lean_ctor_get(v___y_3477_, 2);
lean_inc_ref(v_transTrace_3481_);
v_metaTransTrace_3482_ = lean_ctor_get(v___y_3477_, 3);
lean_inc_ref(v_metaTransTrace_3482_);
v_allTransTrace_3483_ = lean_ctor_get(v___y_3477_, 4);
lean_inc_ref(v_allTransTrace_3483_);
v_legacyTransTrace_3484_ = lean_ctor_get(v___y_3477_, 5);
lean_inc_ref(v_legacyTransTrace_3484_);
lean_dec_ref(v___y_3477_);
v_transTrace_3485_ = lean_ctor_get(v_expInfo_3292_, 6);
v_caption_3486_ = lean_ctor_get(v_artsTrace_3478_, 0);
v_hash_3487_ = lean_ctor_get_uint64(v_artsTrace_3478_, sizeof(void*)*3);
v_mtime_3488_ = lean_ctor_get(v_artsTrace_3478_, 2);
v_isSharedCheck_3498_ = !lean_is_exclusive(v_artsTrace_3478_);
if (v_isSharedCheck_3498_ == 0)
{
lean_object* v_unused_3499_; 
v_unused_3499_ = lean_ctor_get(v_artsTrace_3478_, 1);
lean_dec(v_unused_3499_);
v___x_3490_ = v_artsTrace_3478_;
v_isShared_3491_ = v_isSharedCheck_3498_;
goto v_resetjp_3489_;
}
else
{
lean_inc(v_mtime_3488_);
lean_inc(v_caption_3486_);
lean_dec(v_artsTrace_3478_);
v___x_3490_ = lean_box(0);
v_isShared_3491_ = v_isSharedCheck_3498_;
goto v_resetjp_3489_;
}
v_resetjp_3489_:
{
lean_object* v___x_3492_; lean_object* v___x_3493_; lean_object* v___x_3495_; 
lean_inc_ref(v_transTrace_3485_);
v___x_3492_ = l_Lake_BuildTrace_mix(v_trace_3480_, v_transTrace_3485_);
v___x_3493_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0___closed__0));
if (v_isShared_3491_ == 0)
{
lean_ctor_set(v___x_3490_, 1, v___x_3493_);
v___x_3495_ = v___x_3490_;
goto v_reusejp_3494_;
}
else
{
lean_object* v_reuseFailAlloc_3497_; 
v_reuseFailAlloc_3497_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v_reuseFailAlloc_3497_, 0, v_caption_3486_);
lean_ctor_set(v_reuseFailAlloc_3497_, 1, v___x_3493_);
lean_ctor_set(v_reuseFailAlloc_3497_, 2, v_mtime_3488_);
lean_ctor_set_uint64(v_reuseFailAlloc_3497_, sizeof(void*)*3, v_hash_3487_);
v___x_3495_ = v_reuseFailAlloc_3497_;
goto v_reusejp_3494_;
}
v_reusejp_3494_:
{
lean_object* v___x_3496_; 
v___x_3496_ = l_Lake_BuildTrace_mix(v___x_3492_, v___x_3495_);
v_directArts_3372_ = v_directArts_3479_;
v_trace_3373_ = v___x_3496_;
v_transTrace_3374_ = v_transTrace_3481_;
v_metaTransTrace_3375_ = v_metaTransTrace_3482_;
v_allTransTrace_3376_ = v_allTransTrace_3483_;
v_legacyTransTrace_3377_ = v_legacyTransTrace_3484_;
goto v___jp_3371_;
}
}
}
else
{
lean_object* v_metaArtsTrace_3500_; lean_object* v_directArts_3501_; lean_object* v_trace_3502_; lean_object* v_transTrace_3503_; lean_object* v_metaTransTrace_3504_; lean_object* v_allTransTrace_3505_; lean_object* v_legacyTransTrace_3506_; lean_object* v_metaTransTrace_3507_; lean_object* v_caption_3508_; uint64_t v_hash_3509_; lean_object* v_mtime_3510_; lean_object* v___x_3512_; uint8_t v_isShared_3513_; uint8_t v_isSharedCheck_3520_; 
v_metaArtsTrace_3500_ = lean_ctor_get(v_expInfo_3292_, 3);
lean_inc_ref(v_metaArtsTrace_3500_);
v_directArts_3501_ = lean_ctor_get(v___y_3477_, 0);
lean_inc(v_directArts_3501_);
v_trace_3502_ = lean_ctor_get(v___y_3477_, 1);
lean_inc_ref(v_trace_3502_);
v_transTrace_3503_ = lean_ctor_get(v___y_3477_, 2);
lean_inc_ref(v_transTrace_3503_);
v_metaTransTrace_3504_ = lean_ctor_get(v___y_3477_, 3);
lean_inc_ref(v_metaTransTrace_3504_);
v_allTransTrace_3505_ = lean_ctor_get(v___y_3477_, 4);
lean_inc_ref(v_allTransTrace_3505_);
v_legacyTransTrace_3506_ = lean_ctor_get(v___y_3477_, 5);
lean_inc_ref(v_legacyTransTrace_3506_);
lean_dec_ref(v___y_3477_);
v_metaTransTrace_3507_ = lean_ctor_get(v_expInfo_3292_, 7);
v_caption_3508_ = lean_ctor_get(v_metaArtsTrace_3500_, 0);
v_hash_3509_ = lean_ctor_get_uint64(v_metaArtsTrace_3500_, sizeof(void*)*3);
v_mtime_3510_ = lean_ctor_get(v_metaArtsTrace_3500_, 2);
v_isSharedCheck_3520_ = !lean_is_exclusive(v_metaArtsTrace_3500_);
if (v_isSharedCheck_3520_ == 0)
{
lean_object* v_unused_3521_; 
v_unused_3521_ = lean_ctor_get(v_metaArtsTrace_3500_, 1);
lean_dec(v_unused_3521_);
v___x_3512_ = v_metaArtsTrace_3500_;
v_isShared_3513_ = v_isSharedCheck_3520_;
goto v_resetjp_3511_;
}
else
{
lean_inc(v_mtime_3510_);
lean_inc(v_caption_3508_);
lean_dec(v_metaArtsTrace_3500_);
v___x_3512_ = lean_box(0);
v_isShared_3513_ = v_isSharedCheck_3520_;
goto v_resetjp_3511_;
}
v_resetjp_3511_:
{
lean_object* v___x_3514_; lean_object* v___x_3515_; lean_object* v___x_3517_; 
lean_inc_ref(v_metaTransTrace_3507_);
v___x_3514_ = l_Lake_BuildTrace_mix(v_trace_3502_, v_metaTransTrace_3507_);
v___x_3515_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0___closed__0));
if (v_isShared_3513_ == 0)
{
lean_ctor_set(v___x_3512_, 1, v___x_3515_);
v___x_3517_ = v___x_3512_;
goto v_reusejp_3516_;
}
else
{
lean_object* v_reuseFailAlloc_3519_; 
v_reuseFailAlloc_3519_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v_reuseFailAlloc_3519_, 0, v_caption_3508_);
lean_ctor_set(v_reuseFailAlloc_3519_, 1, v___x_3515_);
lean_ctor_set(v_reuseFailAlloc_3519_, 2, v_mtime_3510_);
lean_ctor_set_uint64(v_reuseFailAlloc_3519_, sizeof(void*)*3, v_hash_3509_);
v___x_3517_ = v_reuseFailAlloc_3519_;
goto v_reusejp_3516_;
}
v_reusejp_3516_:
{
lean_object* v___x_3518_; 
v___x_3518_ = l_Lake_BuildTrace_mix(v___x_3514_, v___x_3517_);
v_directArts_3372_ = v_directArts_3501_;
v_trace_3373_ = v___x_3518_;
v_transTrace_3374_ = v_transTrace_3503_;
v_metaTransTrace_3375_ = v_metaTransTrace_3504_;
v_allTransTrace_3376_ = v_allTransTrace_3505_;
v_legacyTransTrace_3377_ = v_legacyTransTrace_3506_;
goto v___jp_3371_;
}
}
}
}
}
else
{
lean_object* v_allArtsTrace_3568_; lean_object* v_directArts_3569_; lean_object* v_trace_3570_; lean_object* v_transTrace_3571_; lean_object* v_metaTransTrace_3572_; lean_object* v_allTransTrace_3573_; lean_object* v_legacyTransTrace_3574_; lean_object* v_module_3575_; lean_object* v_allArts_3576_; lean_object* v_legacyTransTrace_3577_; lean_object* v_caption_3578_; uint64_t v_hash_3579_; lean_object* v_mtime_3580_; lean_object* v___x_3582_; uint8_t v_isShared_3583_; uint8_t v_isSharedCheck_3591_; 
v_allArtsTrace_3568_ = lean_ctor_get(v_expInfo_3292_, 5);
lean_inc_ref(v_allArtsTrace_3568_);
v_directArts_3569_ = lean_ctor_get(v_info_3289_, 0);
lean_inc(v_directArts_3569_);
v_trace_3570_ = lean_ctor_get(v_info_3289_, 1);
lean_inc_ref(v_trace_3570_);
v_transTrace_3571_ = lean_ctor_get(v_info_3289_, 2);
lean_inc_ref(v_transTrace_3571_);
v_metaTransTrace_3572_ = lean_ctor_get(v_info_3289_, 3);
lean_inc_ref(v_metaTransTrace_3572_);
v_allTransTrace_3573_ = lean_ctor_get(v_info_3289_, 4);
lean_inc_ref(v_allTransTrace_3573_);
v_legacyTransTrace_3574_ = lean_ctor_get(v_info_3289_, 5);
lean_inc_ref(v_legacyTransTrace_3574_);
lean_dec_ref(v_info_3289_);
v_module_3575_ = lean_ctor_get(v_imp_3291_, 0);
v_allArts_3576_ = lean_ctor_get(v_expInfo_3292_, 4);
v_legacyTransTrace_3577_ = lean_ctor_get(v_expInfo_3292_, 9);
v_caption_3578_ = lean_ctor_get(v_allArtsTrace_3568_, 0);
v_hash_3579_ = lean_ctor_get_uint64(v_allArtsTrace_3568_, sizeof(void*)*3);
v_mtime_3580_ = lean_ctor_get(v_allArtsTrace_3568_, 2);
v_isSharedCheck_3591_ = !lean_is_exclusive(v_allArtsTrace_3568_);
if (v_isSharedCheck_3591_ == 0)
{
lean_object* v_unused_3592_; 
v_unused_3592_ = lean_ctor_get(v_allArtsTrace_3568_, 1);
lean_dec(v_unused_3592_);
v___x_3582_ = v_allArtsTrace_3568_;
v_isShared_3583_ = v_isSharedCheck_3591_;
goto v_resetjp_3581_;
}
else
{
lean_inc(v_mtime_3580_);
lean_inc(v_caption_3578_);
lean_dec(v_allArtsTrace_3568_);
v___x_3582_ = lean_box(0);
v_isShared_3583_ = v_isSharedCheck_3591_;
goto v_resetjp_3581_;
}
v_resetjp_3581_:
{
lean_object* v___x_3584_; lean_object* v___x_3585_; lean_object* v___x_3586_; lean_object* v___x_3588_; 
lean_inc_ref(v_allArts_3576_);
lean_inc(v_module_3575_);
v___x_3584_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lean_NameMap_insert_spec__0___redArg(v_module_3575_, v_allArts_3576_, v_directArts_3569_);
lean_inc_ref(v_legacyTransTrace_3577_);
v___x_3585_ = l_Lake_BuildTrace_mix(v_trace_3570_, v_legacyTransTrace_3577_);
v___x_3586_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0___closed__0));
if (v_isShared_3583_ == 0)
{
lean_ctor_set(v___x_3582_, 1, v___x_3586_);
v___x_3588_ = v___x_3582_;
goto v_reusejp_3587_;
}
else
{
lean_object* v_reuseFailAlloc_3590_; 
v_reuseFailAlloc_3590_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v_reuseFailAlloc_3590_, 0, v_caption_3578_);
lean_ctor_set(v_reuseFailAlloc_3590_, 1, v___x_3586_);
lean_ctor_set(v_reuseFailAlloc_3590_, 2, v_mtime_3580_);
lean_ctor_set_uint64(v_reuseFailAlloc_3590_, sizeof(void*)*3, v_hash_3579_);
v___x_3588_ = v_reuseFailAlloc_3590_;
goto v_reusejp_3587_;
}
v_reusejp_3587_:
{
lean_object* v___x_3589_; 
v___x_3589_ = l_Lake_BuildTrace_mix(v___x_3585_, v___x_3588_);
v_directArts_3372_ = v___x_3584_;
v_trace_3373_ = v___x_3589_;
v_transTrace_3374_ = v_transTrace_3571_;
v_metaTransTrace_3375_ = v_metaTransTrace_3572_;
v_allTransTrace_3376_ = v_allTransTrace_3573_;
v_legacyTransTrace_3377_ = v_legacyTransTrace_3574_;
goto v___jp_3371_;
}
}
}
v___jp_3293_:
{
lean_object* v_metaArtsTrace_3300_; lean_object* v_artsTrace_3301_; lean_object* v_transTrace_3302_; lean_object* v_metaTransTrace_3303_; lean_object* v_caption_3304_; uint64_t v_hash_3305_; lean_object* v_mtime_3306_; lean_object* v___x_3308_; uint8_t v_isShared_3309_; uint8_t v_isSharedCheck_3369_; 
v_metaArtsTrace_3300_ = lean_ctor_get(v_expInfo_3292_, 3);
lean_inc_ref(v_metaArtsTrace_3300_);
v_artsTrace_3301_ = lean_ctor_get(v_expInfo_3292_, 2);
lean_inc_ref(v_artsTrace_3301_);
v_transTrace_3302_ = lean_ctor_get(v_expInfo_3292_, 6);
lean_inc_ref(v_transTrace_3302_);
v_metaTransTrace_3303_ = lean_ctor_get(v_expInfo_3292_, 7);
lean_inc_ref(v_metaTransTrace_3303_);
lean_dec_ref(v_expInfo_3292_);
v_caption_3304_ = lean_ctor_get(v_metaArtsTrace_3300_, 0);
v_hash_3305_ = lean_ctor_get_uint64(v_metaArtsTrace_3300_, sizeof(void*)*3);
v_mtime_3306_ = lean_ctor_get(v_metaArtsTrace_3300_, 2);
v_isSharedCheck_3369_ = !lean_is_exclusive(v_metaArtsTrace_3300_);
if (v_isSharedCheck_3369_ == 0)
{
lean_object* v_unused_3370_; 
v_unused_3370_ = lean_ctor_get(v_metaArtsTrace_3300_, 1);
lean_dec(v_unused_3370_);
v___x_3308_ = v_metaArtsTrace_3300_;
v_isShared_3309_ = v_isSharedCheck_3369_;
goto v_resetjp_3307_;
}
else
{
lean_inc(v_mtime_3306_);
lean_inc(v_caption_3304_);
lean_dec(v_metaArtsTrace_3300_);
v___x_3308_ = lean_box(0);
v_isShared_3309_ = v_isSharedCheck_3369_;
goto v_resetjp_3307_;
}
v_resetjp_3307_:
{
lean_object* v___x_3310_; lean_object* v___x_3311_; lean_object* v___x_3313_; 
lean_inc_ref(v_metaTransTrace_3303_);
v___x_3310_ = l_Lake_BuildTrace_mix(v_metaTransTrace_3297_, v_metaTransTrace_3303_);
v___x_3311_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0___closed__0));
if (v_isShared_3309_ == 0)
{
lean_ctor_set(v___x_3308_, 1, v___x_3311_);
v___x_3313_ = v___x_3308_;
goto v_reusejp_3312_;
}
else
{
lean_object* v_reuseFailAlloc_3368_; 
v_reuseFailAlloc_3368_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v_reuseFailAlloc_3368_, 0, v_caption_3304_);
lean_ctor_set(v_reuseFailAlloc_3368_, 1, v___x_3311_);
lean_ctor_set(v_reuseFailAlloc_3368_, 2, v_mtime_3306_);
lean_ctor_set_uint64(v_reuseFailAlloc_3368_, sizeof(void*)*3, v_hash_3305_);
v___x_3313_ = v_reuseFailAlloc_3368_;
goto v_reusejp_3312_;
}
v_reusejp_3312_:
{
lean_object* v___x_3314_; lean_object* v_caption_3315_; uint64_t v_hash_3316_; lean_object* v_mtime_3317_; lean_object* v___x_3319_; uint8_t v_isShared_3320_; uint8_t v_isSharedCheck_3366_; 
lean_inc_ref(v___x_3313_);
v___x_3314_ = l_Lake_BuildTrace_mix(v___x_3310_, v___x_3313_);
v_caption_3315_ = lean_ctor_get(v___x_3314_, 0);
v_hash_3316_ = lean_ctor_get_uint64(v___x_3314_, sizeof(void*)*3);
v_mtime_3317_ = lean_ctor_get(v___x_3314_, 2);
v_isSharedCheck_3366_ = !lean_is_exclusive(v___x_3314_);
if (v_isSharedCheck_3366_ == 0)
{
lean_object* v_unused_3367_; 
v_unused_3367_ = lean_ctor_get(v___x_3314_, 1);
lean_dec(v_unused_3367_);
v___x_3319_ = v___x_3314_;
v_isShared_3320_ = v_isSharedCheck_3366_;
goto v_resetjp_3318_;
}
else
{
lean_inc(v_mtime_3317_);
lean_inc(v_caption_3315_);
lean_dec(v___x_3314_);
v___x_3319_ = lean_box(0);
v_isShared_3320_ = v_isSharedCheck_3366_;
goto v_resetjp_3318_;
}
v_resetjp_3318_:
{
uint8_t v_isExported_3321_; uint8_t v_isMeta_3322_; lean_object* v___x_3324_; 
v_isExported_3321_ = lean_ctor_get_uint8(v_imp_3291_, sizeof(void*)*1 + 1);
v_isMeta_3322_ = lean_ctor_get_uint8(v_imp_3291_, sizeof(void*)*1 + 2);
lean_dec_ref(v_imp_3291_);
if (v_isShared_3320_ == 0)
{
lean_ctor_set(v___x_3319_, 1, v___x_3311_);
v___x_3324_ = v___x_3319_;
goto v_reusejp_3323_;
}
else
{
lean_object* v_reuseFailAlloc_3365_; 
v_reuseFailAlloc_3365_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v_reuseFailAlloc_3365_, 0, v_caption_3315_);
lean_ctor_set(v_reuseFailAlloc_3365_, 1, v___x_3311_);
lean_ctor_set(v_reuseFailAlloc_3365_, 2, v_mtime_3317_);
lean_ctor_set_uint64(v_reuseFailAlloc_3365_, sizeof(void*)*3, v_hash_3316_);
v___x_3324_ = v_reuseFailAlloc_3365_;
goto v_reusejp_3323_;
}
v_reusejp_3323_:
{
if (v_isExported_3321_ == 0)
{
lean_object* v_info_3325_; 
lean_dec_ref(v___x_3313_);
lean_dec_ref(v_metaTransTrace_3303_);
lean_dec_ref(v_transTrace_3302_);
lean_dec_ref(v_artsTrace_3301_);
v_info_3325_ = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(v_info_3325_, 0, v_directArts_3294_);
lean_ctor_set(v_info_3325_, 1, v_trace_3295_);
lean_ctor_set(v_info_3325_, 2, v_transTrace_3296_);
lean_ctor_set(v_info_3325_, 3, v___x_3324_);
lean_ctor_set(v_info_3325_, 4, v_allTransTrace_3298_);
lean_ctor_set(v_info_3325_, 5, v_legacyTransTrace_3299_);
return v_info_3325_;
}
else
{
if (v_isMeta_3322_ == 0)
{
lean_object* v_caption_3326_; uint64_t v_hash_3327_; lean_object* v_mtime_3328_; lean_object* v___x_3330_; uint8_t v_isShared_3331_; uint8_t v_isSharedCheck_3349_; 
lean_dec_ref(v___x_3313_);
lean_dec_ref(v_metaTransTrace_3303_);
v_caption_3326_ = lean_ctor_get(v_artsTrace_3301_, 0);
v_hash_3327_ = lean_ctor_get_uint64(v_artsTrace_3301_, sizeof(void*)*3);
v_mtime_3328_ = lean_ctor_get(v_artsTrace_3301_, 2);
v_isSharedCheck_3349_ = !lean_is_exclusive(v_artsTrace_3301_);
if (v_isSharedCheck_3349_ == 0)
{
lean_object* v_unused_3350_; 
v_unused_3350_ = lean_ctor_get(v_artsTrace_3301_, 1);
lean_dec(v_unused_3350_);
v___x_3330_ = v_artsTrace_3301_;
v_isShared_3331_ = v_isSharedCheck_3349_;
goto v_resetjp_3329_;
}
else
{
lean_inc(v_mtime_3328_);
lean_inc(v_caption_3326_);
lean_dec(v_artsTrace_3301_);
v___x_3330_ = lean_box(0);
v_isShared_3331_ = v_isSharedCheck_3349_;
goto v_resetjp_3329_;
}
v_resetjp_3329_:
{
lean_object* v___x_3332_; lean_object* v___x_3334_; 
v___x_3332_ = l_Lake_BuildTrace_mix(v_transTrace_3296_, v_transTrace_3302_);
if (v_isShared_3331_ == 0)
{
lean_ctor_set(v___x_3330_, 1, v___x_3311_);
v___x_3334_ = v___x_3330_;
goto v_reusejp_3333_;
}
else
{
lean_object* v_reuseFailAlloc_3348_; 
v_reuseFailAlloc_3348_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v_reuseFailAlloc_3348_, 0, v_caption_3326_);
lean_ctor_set(v_reuseFailAlloc_3348_, 1, v___x_3311_);
lean_ctor_set(v_reuseFailAlloc_3348_, 2, v_mtime_3328_);
lean_ctor_set_uint64(v_reuseFailAlloc_3348_, sizeof(void*)*3, v_hash_3327_);
v___x_3334_ = v_reuseFailAlloc_3348_;
goto v_reusejp_3333_;
}
v_reusejp_3333_:
{
lean_object* v___x_3335_; lean_object* v_caption_3336_; uint64_t v_hash_3337_; lean_object* v_mtime_3338_; lean_object* v___x_3340_; uint8_t v_isShared_3341_; uint8_t v_isSharedCheck_3346_; 
v___x_3335_ = l_Lake_BuildTrace_mix(v___x_3332_, v___x_3334_);
v_caption_3336_ = lean_ctor_get(v___x_3335_, 0);
v_hash_3337_ = lean_ctor_get_uint64(v___x_3335_, sizeof(void*)*3);
v_mtime_3338_ = lean_ctor_get(v___x_3335_, 2);
v_isSharedCheck_3346_ = !lean_is_exclusive(v___x_3335_);
if (v_isSharedCheck_3346_ == 0)
{
lean_object* v_unused_3347_; 
v_unused_3347_ = lean_ctor_get(v___x_3335_, 1);
lean_dec(v_unused_3347_);
v___x_3340_ = v___x_3335_;
v_isShared_3341_ = v_isSharedCheck_3346_;
goto v_resetjp_3339_;
}
else
{
lean_inc(v_mtime_3338_);
lean_inc(v_caption_3336_);
lean_dec(v___x_3335_);
v___x_3340_ = lean_box(0);
v_isShared_3341_ = v_isSharedCheck_3346_;
goto v_resetjp_3339_;
}
v_resetjp_3339_:
{
lean_object* v___x_3343_; 
if (v_isShared_3341_ == 0)
{
lean_ctor_set(v___x_3340_, 1, v___x_3311_);
v___x_3343_ = v___x_3340_;
goto v_reusejp_3342_;
}
else
{
lean_object* v_reuseFailAlloc_3345_; 
v_reuseFailAlloc_3345_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v_reuseFailAlloc_3345_, 0, v_caption_3336_);
lean_ctor_set(v_reuseFailAlloc_3345_, 1, v___x_3311_);
lean_ctor_set(v_reuseFailAlloc_3345_, 2, v_mtime_3338_);
lean_ctor_set_uint64(v_reuseFailAlloc_3345_, sizeof(void*)*3, v_hash_3337_);
v___x_3343_ = v_reuseFailAlloc_3345_;
goto v_reusejp_3342_;
}
v_reusejp_3342_:
{
lean_object* v___x_3344_; 
v___x_3344_ = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(v___x_3344_, 0, v_directArts_3294_);
lean_ctor_set(v___x_3344_, 1, v_trace_3295_);
lean_ctor_set(v___x_3344_, 2, v___x_3343_);
lean_ctor_set(v___x_3344_, 3, v___x_3324_);
lean_ctor_set(v___x_3344_, 4, v_allTransTrace_3298_);
lean_ctor_set(v___x_3344_, 5, v_legacyTransTrace_3299_);
return v___x_3344_;
}
}
}
}
}
else
{
lean_object* v___x_3351_; lean_object* v___x_3352_; lean_object* v_caption_3353_; uint64_t v_hash_3354_; lean_object* v_mtime_3355_; lean_object* v___x_3357_; uint8_t v_isShared_3358_; uint8_t v_isSharedCheck_3363_; 
lean_dec_ref(v_transTrace_3302_);
lean_dec_ref(v_artsTrace_3301_);
v___x_3351_ = l_Lake_BuildTrace_mix(v_transTrace_3296_, v_metaTransTrace_3303_);
v___x_3352_ = l_Lake_BuildTrace_mix(v___x_3351_, v___x_3313_);
v_caption_3353_ = lean_ctor_get(v___x_3352_, 0);
v_hash_3354_ = lean_ctor_get_uint64(v___x_3352_, sizeof(void*)*3);
v_mtime_3355_ = lean_ctor_get(v___x_3352_, 2);
v_isSharedCheck_3363_ = !lean_is_exclusive(v___x_3352_);
if (v_isSharedCheck_3363_ == 0)
{
lean_object* v_unused_3364_; 
v_unused_3364_ = lean_ctor_get(v___x_3352_, 1);
lean_dec(v_unused_3364_);
v___x_3357_ = v___x_3352_;
v_isShared_3358_ = v_isSharedCheck_3363_;
goto v_resetjp_3356_;
}
else
{
lean_inc(v_mtime_3355_);
lean_inc(v_caption_3353_);
lean_dec(v___x_3352_);
v___x_3357_ = lean_box(0);
v_isShared_3358_ = v_isSharedCheck_3363_;
goto v_resetjp_3356_;
}
v_resetjp_3356_:
{
lean_object* v___x_3360_; 
if (v_isShared_3358_ == 0)
{
lean_ctor_set(v___x_3357_, 1, v___x_3311_);
v___x_3360_ = v___x_3357_;
goto v_reusejp_3359_;
}
else
{
lean_object* v_reuseFailAlloc_3362_; 
v_reuseFailAlloc_3362_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v_reuseFailAlloc_3362_, 0, v_caption_3353_);
lean_ctor_set(v_reuseFailAlloc_3362_, 1, v___x_3311_);
lean_ctor_set(v_reuseFailAlloc_3362_, 2, v_mtime_3355_);
lean_ctor_set_uint64(v_reuseFailAlloc_3362_, sizeof(void*)*3, v_hash_3354_);
v___x_3360_ = v_reuseFailAlloc_3362_;
goto v_reusejp_3359_;
}
v_reusejp_3359_:
{
lean_object* v___x_3361_; 
v___x_3361_ = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(v___x_3361_, 0, v_directArts_3294_);
lean_ctor_set(v___x_3361_, 1, v_trace_3295_);
lean_ctor_set(v___x_3361_, 2, v___x_3360_);
lean_ctor_set(v___x_3361_, 3, v___x_3324_);
lean_ctor_set(v___x_3361_, 4, v_allTransTrace_3298_);
lean_ctor_set(v___x_3361_, 5, v_legacyTransTrace_3299_);
return v___x_3361_;
}
}
}
}
}
}
}
}
}
v___jp_3371_:
{
lean_object* v_allArtsTrace_3378_; lean_object* v_artsTrace_3379_; lean_object* v_metaArtsTrace_3380_; lean_object* v_transTrace_3381_; lean_object* v_metaTransTrace_3382_; lean_object* v_allTransTrace_3383_; lean_object* v_legacyTransTrace_3384_; lean_object* v_caption_3385_; uint64_t v_hash_3386_; lean_object* v_mtime_3387_; lean_object* v___x_3389_; uint8_t v_isShared_3390_; uint8_t v_isSharedCheck_3471_; 
v_allArtsTrace_3378_ = lean_ctor_get(v_expInfo_3292_, 5);
lean_inc_ref(v_allArtsTrace_3378_);
v_artsTrace_3379_ = lean_ctor_get(v_expInfo_3292_, 2);
lean_inc_ref(v_artsTrace_3379_);
v_metaArtsTrace_3380_ = lean_ctor_get(v_expInfo_3292_, 3);
lean_inc_ref(v_metaArtsTrace_3380_);
v_transTrace_3381_ = lean_ctor_get(v_expInfo_3292_, 6);
v_metaTransTrace_3382_ = lean_ctor_get(v_expInfo_3292_, 7);
v_allTransTrace_3383_ = lean_ctor_get(v_expInfo_3292_, 8);
v_legacyTransTrace_3384_ = lean_ctor_get(v_expInfo_3292_, 9);
v_caption_3385_ = lean_ctor_get(v_allArtsTrace_3378_, 0);
v_hash_3386_ = lean_ctor_get_uint64(v_allArtsTrace_3378_, sizeof(void*)*3);
v_mtime_3387_ = lean_ctor_get(v_allArtsTrace_3378_, 2);
v_isSharedCheck_3471_ = !lean_is_exclusive(v_allArtsTrace_3378_);
if (v_isSharedCheck_3471_ == 0)
{
lean_object* v_unused_3472_; 
v_unused_3472_ = lean_ctor_get(v_allArtsTrace_3378_, 1);
lean_dec(v_unused_3472_);
v___x_3389_ = v_allArtsTrace_3378_;
v_isShared_3390_ = v_isSharedCheck_3471_;
goto v_resetjp_3388_;
}
else
{
lean_inc(v_mtime_3387_);
lean_inc(v_caption_3385_);
lean_dec(v_allArtsTrace_3378_);
v___x_3389_ = lean_box(0);
v_isShared_3390_ = v_isSharedCheck_3471_;
goto v_resetjp_3388_;
}
v_resetjp_3388_:
{
lean_object* v___x_3391_; lean_object* v___x_3392_; lean_object* v___x_3394_; 
lean_inc_ref(v_legacyTransTrace_3384_);
v___x_3391_ = l_Lake_BuildTrace_mix(v_legacyTransTrace_3377_, v_legacyTransTrace_3384_);
v___x_3392_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0___closed__0));
if (v_isShared_3390_ == 0)
{
lean_ctor_set(v___x_3389_, 1, v___x_3392_);
v___x_3394_ = v___x_3389_;
goto v_reusejp_3393_;
}
else
{
lean_object* v_reuseFailAlloc_3470_; 
v_reuseFailAlloc_3470_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v_reuseFailAlloc_3470_, 0, v_caption_3385_);
lean_ctor_set(v_reuseFailAlloc_3470_, 1, v___x_3392_);
lean_ctor_set(v_reuseFailAlloc_3470_, 2, v_mtime_3387_);
lean_ctor_set_uint64(v_reuseFailAlloc_3470_, sizeof(void*)*3, v_hash_3386_);
v___x_3394_ = v_reuseFailAlloc_3470_;
goto v_reusejp_3393_;
}
v_reusejp_3393_:
{
lean_object* v___x_3395_; lean_object* v_caption_3396_; uint64_t v_hash_3397_; lean_object* v_mtime_3398_; lean_object* v___x_3400_; uint8_t v_isShared_3401_; uint8_t v_isSharedCheck_3468_; 
lean_inc_ref(v___x_3394_);
v___x_3395_ = l_Lake_BuildTrace_mix(v___x_3391_, v___x_3394_);
v_caption_3396_ = lean_ctor_get(v___x_3395_, 0);
v_hash_3397_ = lean_ctor_get_uint64(v___x_3395_, sizeof(void*)*3);
v_mtime_3398_ = lean_ctor_get(v___x_3395_, 2);
v_isSharedCheck_3468_ = !lean_is_exclusive(v___x_3395_);
if (v_isSharedCheck_3468_ == 0)
{
lean_object* v_unused_3469_; 
v_unused_3469_ = lean_ctor_get(v___x_3395_, 1);
lean_dec(v_unused_3469_);
v___x_3400_ = v___x_3395_;
v_isShared_3401_ = v_isSharedCheck_3468_;
goto v_resetjp_3399_;
}
else
{
lean_inc(v_mtime_3398_);
lean_inc(v_caption_3396_);
lean_dec(v___x_3395_);
v___x_3400_ = lean_box(0);
v_isShared_3401_ = v_isSharedCheck_3468_;
goto v_resetjp_3399_;
}
v_resetjp_3399_:
{
uint8_t v_importAll_3402_; uint8_t v_isMeta_3403_; lean_object* v___x_3405_; 
v_importAll_3402_ = lean_ctor_get_uint8(v_imp_3291_, sizeof(void*)*1);
v_isMeta_3403_ = lean_ctor_get_uint8(v_imp_3291_, sizeof(void*)*1 + 2);
if (v_isShared_3401_ == 0)
{
lean_ctor_set(v___x_3400_, 1, v___x_3392_);
v___x_3405_ = v___x_3400_;
goto v_reusejp_3404_;
}
else
{
lean_object* v_reuseFailAlloc_3467_; 
v_reuseFailAlloc_3467_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v_reuseFailAlloc_3467_, 0, v_caption_3396_);
lean_ctor_set(v_reuseFailAlloc_3467_, 1, v___x_3392_);
lean_ctor_set(v_reuseFailAlloc_3467_, 2, v_mtime_3398_);
lean_ctor_set_uint64(v_reuseFailAlloc_3467_, sizeof(void*)*3, v_hash_3397_);
v___x_3405_ = v_reuseFailAlloc_3467_;
goto v_reusejp_3404_;
}
v_reusejp_3404_:
{
if (v_importAll_3402_ == 0)
{
lean_dec_ref(v___x_3394_);
if (v_isMeta_3403_ == 0)
{
lean_object* v_caption_3406_; uint64_t v_hash_3407_; lean_object* v_mtime_3408_; lean_object* v___x_3410_; uint8_t v_isShared_3411_; uint8_t v_isSharedCheck_3428_; 
lean_dec_ref(v_metaArtsTrace_3380_);
v_caption_3406_ = lean_ctor_get(v_artsTrace_3379_, 0);
v_hash_3407_ = lean_ctor_get_uint64(v_artsTrace_3379_, sizeof(void*)*3);
v_mtime_3408_ = lean_ctor_get(v_artsTrace_3379_, 2);
v_isSharedCheck_3428_ = !lean_is_exclusive(v_artsTrace_3379_);
if (v_isSharedCheck_3428_ == 0)
{
lean_object* v_unused_3429_; 
v_unused_3429_ = lean_ctor_get(v_artsTrace_3379_, 1);
lean_dec(v_unused_3429_);
v___x_3410_ = v_artsTrace_3379_;
v_isShared_3411_ = v_isSharedCheck_3428_;
goto v_resetjp_3409_;
}
else
{
lean_inc(v_mtime_3408_);
lean_inc(v_caption_3406_);
lean_dec(v_artsTrace_3379_);
v___x_3410_ = lean_box(0);
v_isShared_3411_ = v_isSharedCheck_3428_;
goto v_resetjp_3409_;
}
v_resetjp_3409_:
{
lean_object* v___x_3412_; lean_object* v___x_3414_; 
lean_inc_ref(v_transTrace_3381_);
v___x_3412_ = l_Lake_BuildTrace_mix(v_allTransTrace_3376_, v_transTrace_3381_);
if (v_isShared_3411_ == 0)
{
lean_ctor_set(v___x_3410_, 1, v___x_3392_);
v___x_3414_ = v___x_3410_;
goto v_reusejp_3413_;
}
else
{
lean_object* v_reuseFailAlloc_3427_; 
v_reuseFailAlloc_3427_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v_reuseFailAlloc_3427_, 0, v_caption_3406_);
lean_ctor_set(v_reuseFailAlloc_3427_, 1, v___x_3392_);
lean_ctor_set(v_reuseFailAlloc_3427_, 2, v_mtime_3408_);
lean_ctor_set_uint64(v_reuseFailAlloc_3427_, sizeof(void*)*3, v_hash_3407_);
v___x_3414_ = v_reuseFailAlloc_3427_;
goto v_reusejp_3413_;
}
v_reusejp_3413_:
{
lean_object* v___x_3415_; lean_object* v_caption_3416_; uint64_t v_hash_3417_; lean_object* v_mtime_3418_; lean_object* v___x_3420_; uint8_t v_isShared_3421_; uint8_t v_isSharedCheck_3425_; 
v___x_3415_ = l_Lake_BuildTrace_mix(v___x_3412_, v___x_3414_);
v_caption_3416_ = lean_ctor_get(v___x_3415_, 0);
v_hash_3417_ = lean_ctor_get_uint64(v___x_3415_, sizeof(void*)*3);
v_mtime_3418_ = lean_ctor_get(v___x_3415_, 2);
v_isSharedCheck_3425_ = !lean_is_exclusive(v___x_3415_);
if (v_isSharedCheck_3425_ == 0)
{
lean_object* v_unused_3426_; 
v_unused_3426_ = lean_ctor_get(v___x_3415_, 1);
lean_dec(v_unused_3426_);
v___x_3420_ = v___x_3415_;
v_isShared_3421_ = v_isSharedCheck_3425_;
goto v_resetjp_3419_;
}
else
{
lean_inc(v_mtime_3418_);
lean_inc(v_caption_3416_);
lean_dec(v___x_3415_);
v___x_3420_ = lean_box(0);
v_isShared_3421_ = v_isSharedCheck_3425_;
goto v_resetjp_3419_;
}
v_resetjp_3419_:
{
lean_object* v___x_3423_; 
if (v_isShared_3421_ == 0)
{
lean_ctor_set(v___x_3420_, 1, v___x_3392_);
v___x_3423_ = v___x_3420_;
goto v_reusejp_3422_;
}
else
{
lean_object* v_reuseFailAlloc_3424_; 
v_reuseFailAlloc_3424_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v_reuseFailAlloc_3424_, 0, v_caption_3416_);
lean_ctor_set(v_reuseFailAlloc_3424_, 1, v___x_3392_);
lean_ctor_set(v_reuseFailAlloc_3424_, 2, v_mtime_3418_);
lean_ctor_set_uint64(v_reuseFailAlloc_3424_, sizeof(void*)*3, v_hash_3417_);
v___x_3423_ = v_reuseFailAlloc_3424_;
goto v_reusejp_3422_;
}
v_reusejp_3422_:
{
v_directArts_3294_ = v_directArts_3372_;
v_trace_3295_ = v_trace_3373_;
v_transTrace_3296_ = v_transTrace_3374_;
v_metaTransTrace_3297_ = v_metaTransTrace_3375_;
v_allTransTrace_3298_ = v___x_3423_;
v_legacyTransTrace_3299_ = v___x_3405_;
goto v___jp_3293_;
}
}
}
}
}
else
{
lean_object* v_caption_3430_; uint64_t v_hash_3431_; lean_object* v_mtime_3432_; lean_object* v___x_3434_; uint8_t v_isShared_3435_; uint8_t v_isSharedCheck_3452_; 
lean_dec_ref(v_artsTrace_3379_);
v_caption_3430_ = lean_ctor_get(v_metaArtsTrace_3380_, 0);
v_hash_3431_ = lean_ctor_get_uint64(v_metaArtsTrace_3380_, sizeof(void*)*3);
v_mtime_3432_ = lean_ctor_get(v_metaArtsTrace_3380_, 2);
v_isSharedCheck_3452_ = !lean_is_exclusive(v_metaArtsTrace_3380_);
if (v_isSharedCheck_3452_ == 0)
{
lean_object* v_unused_3453_; 
v_unused_3453_ = lean_ctor_get(v_metaArtsTrace_3380_, 1);
lean_dec(v_unused_3453_);
v___x_3434_ = v_metaArtsTrace_3380_;
v_isShared_3435_ = v_isSharedCheck_3452_;
goto v_resetjp_3433_;
}
else
{
lean_inc(v_mtime_3432_);
lean_inc(v_caption_3430_);
lean_dec(v_metaArtsTrace_3380_);
v___x_3434_ = lean_box(0);
v_isShared_3435_ = v_isSharedCheck_3452_;
goto v_resetjp_3433_;
}
v_resetjp_3433_:
{
lean_object* v___x_3436_; lean_object* v___x_3438_; 
lean_inc_ref(v_metaTransTrace_3382_);
v___x_3436_ = l_Lake_BuildTrace_mix(v_allTransTrace_3376_, v_metaTransTrace_3382_);
if (v_isShared_3435_ == 0)
{
lean_ctor_set(v___x_3434_, 1, v___x_3392_);
v___x_3438_ = v___x_3434_;
goto v_reusejp_3437_;
}
else
{
lean_object* v_reuseFailAlloc_3451_; 
v_reuseFailAlloc_3451_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v_reuseFailAlloc_3451_, 0, v_caption_3430_);
lean_ctor_set(v_reuseFailAlloc_3451_, 1, v___x_3392_);
lean_ctor_set(v_reuseFailAlloc_3451_, 2, v_mtime_3432_);
lean_ctor_set_uint64(v_reuseFailAlloc_3451_, sizeof(void*)*3, v_hash_3431_);
v___x_3438_ = v_reuseFailAlloc_3451_;
goto v_reusejp_3437_;
}
v_reusejp_3437_:
{
lean_object* v___x_3439_; lean_object* v_caption_3440_; uint64_t v_hash_3441_; lean_object* v_mtime_3442_; lean_object* v___x_3444_; uint8_t v_isShared_3445_; uint8_t v_isSharedCheck_3449_; 
v___x_3439_ = l_Lake_BuildTrace_mix(v___x_3436_, v___x_3438_);
v_caption_3440_ = lean_ctor_get(v___x_3439_, 0);
v_hash_3441_ = lean_ctor_get_uint64(v___x_3439_, sizeof(void*)*3);
v_mtime_3442_ = lean_ctor_get(v___x_3439_, 2);
v_isSharedCheck_3449_ = !lean_is_exclusive(v___x_3439_);
if (v_isSharedCheck_3449_ == 0)
{
lean_object* v_unused_3450_; 
v_unused_3450_ = lean_ctor_get(v___x_3439_, 1);
lean_dec(v_unused_3450_);
v___x_3444_ = v___x_3439_;
v_isShared_3445_ = v_isSharedCheck_3449_;
goto v_resetjp_3443_;
}
else
{
lean_inc(v_mtime_3442_);
lean_inc(v_caption_3440_);
lean_dec(v___x_3439_);
v___x_3444_ = lean_box(0);
v_isShared_3445_ = v_isSharedCheck_3449_;
goto v_resetjp_3443_;
}
v_resetjp_3443_:
{
lean_object* v___x_3447_; 
if (v_isShared_3445_ == 0)
{
lean_ctor_set(v___x_3444_, 1, v___x_3392_);
v___x_3447_ = v___x_3444_;
goto v_reusejp_3446_;
}
else
{
lean_object* v_reuseFailAlloc_3448_; 
v_reuseFailAlloc_3448_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v_reuseFailAlloc_3448_, 0, v_caption_3440_);
lean_ctor_set(v_reuseFailAlloc_3448_, 1, v___x_3392_);
lean_ctor_set(v_reuseFailAlloc_3448_, 2, v_mtime_3442_);
lean_ctor_set_uint64(v_reuseFailAlloc_3448_, sizeof(void*)*3, v_hash_3441_);
v___x_3447_ = v_reuseFailAlloc_3448_;
goto v_reusejp_3446_;
}
v_reusejp_3446_:
{
v_directArts_3294_ = v_directArts_3372_;
v_trace_3295_ = v_trace_3373_;
v_transTrace_3296_ = v_transTrace_3374_;
v_metaTransTrace_3297_ = v_metaTransTrace_3375_;
v_allTransTrace_3298_ = v___x_3447_;
v_legacyTransTrace_3299_ = v___x_3405_;
goto v___jp_3293_;
}
}
}
}
}
}
else
{
lean_object* v___x_3454_; lean_object* v___x_3455_; lean_object* v_caption_3456_; uint64_t v_hash_3457_; lean_object* v_mtime_3458_; lean_object* v___x_3460_; uint8_t v_isShared_3461_; uint8_t v_isSharedCheck_3465_; 
lean_dec_ref(v_metaArtsTrace_3380_);
lean_dec_ref(v_artsTrace_3379_);
lean_inc_ref(v_allTransTrace_3383_);
v___x_3454_ = l_Lake_BuildTrace_mix(v_allTransTrace_3376_, v_allTransTrace_3383_);
v___x_3455_ = l_Lake_BuildTrace_mix(v___x_3454_, v___x_3394_);
v_caption_3456_ = lean_ctor_get(v___x_3455_, 0);
v_hash_3457_ = lean_ctor_get_uint64(v___x_3455_, sizeof(void*)*3);
v_mtime_3458_ = lean_ctor_get(v___x_3455_, 2);
v_isSharedCheck_3465_ = !lean_is_exclusive(v___x_3455_);
if (v_isSharedCheck_3465_ == 0)
{
lean_object* v_unused_3466_; 
v_unused_3466_ = lean_ctor_get(v___x_3455_, 1);
lean_dec(v_unused_3466_);
v___x_3460_ = v___x_3455_;
v_isShared_3461_ = v_isSharedCheck_3465_;
goto v_resetjp_3459_;
}
else
{
lean_inc(v_mtime_3458_);
lean_inc(v_caption_3456_);
lean_dec(v___x_3455_);
v___x_3460_ = lean_box(0);
v_isShared_3461_ = v_isSharedCheck_3465_;
goto v_resetjp_3459_;
}
v_resetjp_3459_:
{
lean_object* v___x_3463_; 
if (v_isShared_3461_ == 0)
{
lean_ctor_set(v___x_3460_, 1, v___x_3392_);
v___x_3463_ = v___x_3460_;
goto v_reusejp_3462_;
}
else
{
lean_object* v_reuseFailAlloc_3464_; 
v_reuseFailAlloc_3464_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v_reuseFailAlloc_3464_, 0, v_caption_3456_);
lean_ctor_set(v_reuseFailAlloc_3464_, 1, v___x_3392_);
lean_ctor_set(v_reuseFailAlloc_3464_, 2, v_mtime_3458_);
lean_ctor_set_uint64(v_reuseFailAlloc_3464_, sizeof(void*)*3, v_hash_3457_);
v___x_3463_ = v_reuseFailAlloc_3464_;
goto v_reusejp_3462_;
}
v_reusejp_3462_:
{
v_directArts_3294_ = v_directArts_3372_;
v_trace_3295_ = v_trace_3373_;
v_transTrace_3296_ = v_transTrace_3374_;
v_metaTransTrace_3297_ = v_metaTransTrace_3375_;
v_allTransTrace_3298_ = v___x_3463_;
v_legacyTransTrace_3299_ = v___x_3405_;
goto v___jp_3293_;
}
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_addImport___boxed(lean_object* v_info_3593_, lean_object* v_nonModule_3594_, lean_object* v_imp_3595_, lean_object* v_expInfo_3596_){
_start:
{
uint8_t v_nonModule_boxed_3597_; lean_object* v_res_3598_; 
v_nonModule_boxed_3597_ = lean_unbox(v_nonModule_3594_);
v_res_3598_ = l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_addImport(v_info_3593_, v_nonModule_boxed_3597_, v_imp_3595_, v_expInfo_3596_);
return v_res_3598_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Package_discriminant(lean_object* v_self_3605_){
_start:
{
lean_object* v_config_3606_; lean_object* v_baseName_3607_; lean_object* v_version_3608_; lean_object* v___x_3609_; uint8_t v___x_3610_; 
v_config_3606_ = lean_ctor_get(v_self_3605_, 6);
lean_inc_ref(v_config_3606_);
v_baseName_3607_ = lean_ctor_get(v_self_3605_, 1);
lean_inc(v_baseName_3607_);
lean_dec_ref(v_self_3605_);
v_version_3608_ = lean_ctor_get(v_config_3606_, 17);
lean_inc_ref(v_version_3608_);
lean_dec_ref(v_config_3606_);
v___x_3609_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Package_discriminant___closed__1));
v___x_3610_ = l_Lake_instDecidableEqStdVer_decEq(v_version_3608_, v___x_3609_);
if (v___x_3610_ == 0)
{
lean_object* v___x_3611_; lean_object* v___x_3612_; lean_object* v___x_3613_; lean_object* v___x_3614_; lean_object* v___x_3615_; 
v___x_3611_ = l_Lean_Name_toString(v_baseName_3607_, v___x_3610_);
v___x_3612_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Package_discriminant___closed__2));
v___x_3613_ = lean_string_append(v___x_3611_, v___x_3612_);
v___x_3614_ = l_Lake_StdVer_toString(v_version_3608_);
v___x_3615_ = lean_string_append(v___x_3613_, v___x_3614_);
lean_dec_ref(v___x_3614_);
return v___x_3615_;
}
else
{
uint8_t v___x_3616_; lean_object* v___x_3617_; 
lean_dec_ref(v_version_3608_);
v___x_3616_ = 0;
v___x_3617_ = l_Lean_Name_toString(v_baseName_3607_, v___x_3616_);
return v___x_3617_;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__3(lean_object* v___x_3618_, lean_object* v_rx_3619_, uint8_t v___y_3620_, lean_object* v___x_3621_, lean_object* v_ry_3622_){
_start:
{
lean_object* v___y_3624_; lean_object* v___y_3625_; lean_object* v___y_3629_; lean_object* v___y_3630_; 
if (lean_obj_tag(v_rx_3619_) == 0)
{
if (lean_obj_tag(v_ry_3622_) == 0)
{
lean_object* v_a_3632_; lean_object* v_a_3633_; lean_object* v_a_3634_; lean_object* v_a_3635_; lean_object* v___x_3637_; uint8_t v_isShared_3638_; uint8_t v_isSharedCheck_3644_; 
lean_dec(v___x_3618_);
v_a_3632_ = lean_ctor_get(v_rx_3619_, 0);
lean_inc(v_a_3632_);
v_a_3633_ = lean_ctor_get(v_rx_3619_, 1);
lean_inc(v_a_3633_);
lean_dec_ref(v_rx_3619_);
v_a_3634_ = lean_ctor_get(v_ry_3622_, 0);
v_a_3635_ = lean_ctor_get(v_ry_3622_, 1);
v_isSharedCheck_3644_ = !lean_is_exclusive(v_ry_3622_);
if (v_isSharedCheck_3644_ == 0)
{
v___x_3637_ = v_ry_3622_;
v_isShared_3638_ = v_isSharedCheck_3644_;
goto v_resetjp_3636_;
}
else
{
lean_inc(v_a_3635_);
lean_inc(v_a_3634_);
lean_dec(v_ry_3622_);
v___x_3637_ = lean_box(0);
v_isShared_3638_ = v_isSharedCheck_3644_;
goto v_resetjp_3636_;
}
v_resetjp_3636_:
{
lean_object* v___x_3639_; lean_object* v___x_3640_; lean_object* v___x_3642_; 
v___x_3639_ = l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_addImport(v_a_3632_, v___y_3620_, v___x_3621_, v_a_3634_);
v___x_3640_ = l_Lake_JobState_merge(v_a_3633_, v_a_3635_);
if (v_isShared_3638_ == 0)
{
lean_ctor_set(v___x_3637_, 1, v___x_3640_);
lean_ctor_set(v___x_3637_, 0, v___x_3639_);
v___x_3642_ = v___x_3637_;
goto v_reusejp_3641_;
}
else
{
lean_object* v_reuseFailAlloc_3643_; 
v_reuseFailAlloc_3643_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_3643_, 0, v___x_3639_);
lean_ctor_set(v_reuseFailAlloc_3643_, 1, v___x_3640_);
v___x_3642_ = v_reuseFailAlloc_3643_;
goto v_reusejp_3641_;
}
v_reusejp_3641_:
{
return v___x_3642_;
}
}
}
else
{
lean_object* v_a_3645_; 
lean_dec_ref(v___x_3621_);
v_a_3645_ = lean_ctor_get(v_rx_3619_, 1);
lean_inc(v_a_3645_);
lean_dec_ref(v_rx_3619_);
v___y_3629_ = v_ry_3622_;
v___y_3630_ = v_a_3645_;
goto v___jp_3628_;
}
}
else
{
lean_object* v_a_3646_; 
lean_dec_ref(v___x_3621_);
v_a_3646_ = lean_ctor_get(v_rx_3619_, 1);
lean_inc(v_a_3646_);
lean_dec_ref(v_rx_3619_);
v___y_3629_ = v_ry_3622_;
v___y_3630_ = v_a_3646_;
goto v___jp_3628_;
}
v___jp_3623_:
{
lean_object* v___x_3626_; lean_object* v___x_3627_; 
v___x_3626_ = l_Lake_JobState_merge(v___y_3624_, v___y_3625_);
v___x_3627_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_3627_, 0, v___x_3618_);
lean_ctor_set(v___x_3627_, 1, v___x_3626_);
return v___x_3627_;
}
v___jp_3628_:
{
lean_object* v_a_3631_; 
v_a_3631_ = lean_ctor_get(v___y_3629_, 1);
lean_inc(v_a_3631_);
lean_dec_ref(v___y_3629_);
v___y_3624_ = v___y_3630_;
v___y_3625_ = v_a_3631_;
goto v___jp_3623_;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__3___boxed(lean_object* v___x_3647_, lean_object* v_rx_3648_, lean_object* v___y_3649_, lean_object* v___x_3650_, lean_object* v_ry_3651_){
_start:
{
uint8_t v___y_37366__boxed_3652_; lean_object* v_res_3653_; 
v___y_37366__boxed_3652_ = lean_unbox(v___y_3649_);
v_res_3653_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__3(v___x_3647_, v_rx_3648_, v___y_37366__boxed_3652_, v___x_3650_, v_ry_3651_);
return v_res_3653_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__4(lean_object* v_a_3654_, lean_object* v___x_3655_, uint8_t v___y_3656_, lean_object* v___x_3657_, uint8_t v___x_3658_, lean_object* v_rx_3659_){
_start:
{
lean_object* v_task_3660_; lean_object* v___x_3661_; lean_object* v___f_3662_; lean_object* v___x_3663_; 
v_task_3660_ = lean_ctor_get(v_a_3654_, 0);
lean_inc_ref(v_task_3660_);
lean_dec_ref(v_a_3654_);
v___x_3661_ = lean_box(v___y_3656_);
lean_inc(v___x_3655_);
v___f_3662_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__3___boxed), 5, 4);
lean_closure_set(v___f_3662_, 0, v___x_3655_);
lean_closure_set(v___f_3662_, 1, v_rx_3659_);
lean_closure_set(v___f_3662_, 2, v___x_3661_);
lean_closure_set(v___f_3662_, 3, v___x_3657_);
v___x_3663_ = lean_task_map(v___f_3662_, v_task_3660_, v___x_3655_, v___x_3658_);
return v___x_3663_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__4___boxed(lean_object* v_a_3664_, lean_object* v___x_3665_, lean_object* v___y_3666_, lean_object* v___x_3667_, lean_object* v___x_3668_, lean_object* v_rx_3669_){
_start:
{
uint8_t v___y_37430__boxed_3670_; uint8_t v___x_37432__boxed_3671_; lean_object* v_res_3672_; 
v___y_37430__boxed_3670_ = lean_unbox(v___y_3666_);
v___x_37432__boxed_3671_ = lean_unbox(v___x_3668_);
v_res_3672_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__4(v_a_3664_, v___x_3665_, v___y_37430__boxed_3670_, v___x_3667_, v___x_37432__boxed_3671_, v_rx_3669_);
return v_res_3672_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__0(lean_object* v_x_3673_, lean_object* v___y_3674_, lean_object* v___y_3675_, lean_object* v___y_3676_, lean_object* v___y_3677_, lean_object* v___y_3678_, lean_object* v___y_3679_){
_start:
{
lean_object* v_lib_3681_; lean_object* v_pkg_3682_; lean_object* v_name_3683_; lean_object* v_keyName_3684_; lean_object* v___x_3685_; lean_object* v___x_3686_; lean_object* v___x_3687_; lean_object* v___x_3688_; lean_object* v___x_3689_; 
v_lib_3681_ = lean_ctor_get(v_x_3673_, 0);
v_pkg_3682_ = lean_ctor_get(v_lib_3681_, 0);
v_name_3683_ = lean_ctor_get(v_x_3673_, 1);
v_keyName_3684_ = lean_ctor_get(v_pkg_3682_, 2);
v___x_3685_ = l_Lake_Module_exportInfoFacet;
lean_inc(v_name_3683_);
lean_inc(v_keyName_3684_);
v___x_3686_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_3686_, 0, v_keyName_3684_);
lean_ctor_set(v___x_3686_, 1, v_name_3683_);
v___x_3687_ = l_Lake_Module_keyword;
v___x_3688_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_3688_, 0, v___x_3686_);
lean_ctor_set(v___x_3688_, 1, v___x_3687_);
lean_ctor_set(v___x_3688_, 2, v_x_3673_);
lean_ctor_set(v___x_3688_, 3, v___x_3685_);
v___x_3689_ = lean_apply_7(v___y_3674_, v___x_3688_, v___y_3675_, v___y_3676_, v___y_3677_, v___y_3678_, v___y_3679_, lean_box(0));
return v___x_3689_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__0___boxed(lean_object* v_x_3690_, lean_object* v___y_3691_, lean_object* v___y_3692_, lean_object* v___y_3693_, lean_object* v___y_3694_, lean_object* v___y_3695_, lean_object* v___y_3696_, lean_object* v___y_3697_){
_start:
{
lean_object* v_res_3698_; 
v_res_3698_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__0(v_x_3690_, v___y_3691_, v___y_3692_, v___y_3693_, v___y_3694_, v___y_3695_, v___y_3696_);
return v_res_3698_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Vector_Basic_0__Vector_mapM_go___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__0___redArg(lean_object* v_n_3699_, lean_object* v_f_3700_, lean_object* v_xs_3701_, lean_object* v_k_3702_, lean_object* v_acc_3703_, lean_object* v___y_3704_, lean_object* v___y_3705_, lean_object* v___y_3706_, lean_object* v___y_3707_, lean_object* v___y_3708_, lean_object* v___y_3709_){
_start:
{
uint8_t v___x_3711_; 
v___x_3711_ = lean_nat_dec_lt(v_k_3702_, v_n_3699_);
if (v___x_3711_ == 0)
{
lean_object* v___x_3712_; 
lean_dec_ref(v___y_3708_);
lean_dec(v___y_3707_);
lean_dec(v___y_3706_);
lean_dec(v___y_3705_);
lean_dec_ref(v___y_3704_);
lean_dec(v_k_3702_);
lean_dec_ref(v_f_3700_);
v___x_3712_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_3712_, 0, v_acc_3703_);
lean_ctor_set(v___x_3712_, 1, v___y_3709_);
return v___x_3712_;
}
else
{
lean_object* v___x_3713_; lean_object* v___x_3714_; 
v___x_3713_ = lean_array_fget_borrowed(v_xs_3701_, v_k_3702_);
lean_inc_ref(v_f_3700_);
lean_inc_ref(v___y_3708_);
lean_inc(v___y_3707_);
lean_inc(v___y_3706_);
lean_inc(v___y_3705_);
lean_inc_ref(v___y_3704_);
lean_inc(v___x_3713_);
v___x_3714_ = lean_apply_8(v_f_3700_, v___x_3713_, v___y_3704_, v___y_3705_, v___y_3706_, v___y_3707_, v___y_3708_, v___y_3709_, lean_box(0));
if (lean_obj_tag(v___x_3714_) == 0)
{
lean_object* v_a_3715_; lean_object* v_a_3716_; lean_object* v___x_3717_; lean_object* v___x_3718_; lean_object* v___x_3719_; 
v_a_3715_ = lean_ctor_get(v___x_3714_, 0);
lean_inc(v_a_3715_);
v_a_3716_ = lean_ctor_get(v___x_3714_, 1);
lean_inc(v_a_3716_);
lean_dec_ref(v___x_3714_);
v___x_3717_ = lean_unsigned_to_nat(1u);
v___x_3718_ = lean_nat_add(v_k_3702_, v___x_3717_);
lean_dec(v_k_3702_);
v___x_3719_ = lean_array_push(v_acc_3703_, v_a_3715_);
v_k_3702_ = v___x_3718_;
v_acc_3703_ = v___x_3719_;
v___y_3709_ = v_a_3716_;
goto _start;
}
else
{
lean_object* v_a_3721_; lean_object* v_a_3722_; lean_object* v___x_3724_; uint8_t v_isShared_3725_; uint8_t v_isSharedCheck_3729_; 
lean_dec_ref(v___y_3708_);
lean_dec(v___y_3707_);
lean_dec(v___y_3706_);
lean_dec(v___y_3705_);
lean_dec_ref(v___y_3704_);
lean_dec_ref(v_acc_3703_);
lean_dec(v_k_3702_);
lean_dec_ref(v_f_3700_);
v_a_3721_ = lean_ctor_get(v___x_3714_, 0);
v_a_3722_ = lean_ctor_get(v___x_3714_, 1);
v_isSharedCheck_3729_ = !lean_is_exclusive(v___x_3714_);
if (v_isSharedCheck_3729_ == 0)
{
v___x_3724_ = v___x_3714_;
v_isShared_3725_ = v_isSharedCheck_3729_;
goto v_resetjp_3723_;
}
else
{
lean_inc(v_a_3722_);
lean_inc(v_a_3721_);
lean_dec(v___x_3714_);
v___x_3724_ = lean_box(0);
v_isShared_3725_ = v_isSharedCheck_3729_;
goto v_resetjp_3723_;
}
v_resetjp_3723_:
{
lean_object* v___x_3727_; 
if (v_isShared_3725_ == 0)
{
v___x_3727_ = v___x_3724_;
goto v_reusejp_3726_;
}
else
{
lean_object* v_reuseFailAlloc_3728_; 
v_reuseFailAlloc_3728_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_3728_, 0, v_a_3721_);
lean_ctor_set(v_reuseFailAlloc_3728_, 1, v_a_3722_);
v___x_3727_ = v_reuseFailAlloc_3728_;
goto v_reusejp_3726_;
}
v_reusejp_3726_:
{
return v___x_3727_;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Vector_Basic_0__Vector_mapM_go___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__0___redArg___boxed(lean_object* v_n_3730_, lean_object* v_f_3731_, lean_object* v_xs_3732_, lean_object* v_k_3733_, lean_object* v_acc_3734_, lean_object* v___y_3735_, lean_object* v___y_3736_, lean_object* v___y_3737_, lean_object* v___y_3738_, lean_object* v___y_3739_, lean_object* v___y_3740_, lean_object* v___y_3741_){
_start:
{
lean_object* v_res_3742_; 
v_res_3742_ = l___private_Init_Data_Vector_Basic_0__Vector_mapM_go___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__0___redArg(v_n_3730_, v_f_3731_, v_xs_3732_, v_k_3733_, v_acc_3734_, v___y_3735_, v___y_3736_, v___y_3737_, v___y_3738_, v___y_3739_, v___y_3740_);
lean_dec_ref(v_xs_3732_);
lean_dec(v_n_3730_);
return v_res_3742_;
}
}
LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__1(uint8_t v___y_3743_, lean_object* v_imp_3744_, uint64_t v___x_3745_, lean_object* v_as_3746_, size_t v_i_3747_, size_t v_stop_3748_){
_start:
{
uint8_t v___x_3749_; 
v___x_3749_ = lean_usize_dec_eq(v_i_3747_, v_stop_3748_);
if (v___x_3749_ == 0)
{
uint8_t v___x_3750_; lean_object* v___x_3751_; uint64_t v___x_3752_; uint8_t v___x_3753_; 
v___x_3750_ = 1;
v___x_3751_ = lean_array_uget_borrowed(v_as_3746_, v_i_3747_);
v___x_3752_ = l___private_Lake_Build_Module_0__Lake_ModuleExportInfo_disambiguationHash(v___x_3751_, v___y_3743_, v_imp_3744_);
v___x_3753_ = lean_uint64_dec_eq(v___x_3745_, v___x_3752_);
if (v___x_3753_ == 0)
{
return v___x_3750_;
}
else
{
if (v___x_3749_ == 0)
{
size_t v___x_3754_; size_t v___x_3755_; 
v___x_3754_ = ((size_t)1ULL);
v___x_3755_ = lean_usize_add(v_i_3747_, v___x_3754_);
v_i_3747_ = v___x_3755_;
goto _start;
}
else
{
return v___x_3750_;
}
}
}
else
{
uint8_t v___x_3757_; 
v___x_3757_ = 0;
return v___x_3757_;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__1___boxed(lean_object* v___y_3758_, lean_object* v_imp_3759_, lean_object* v___x_3760_, lean_object* v_as_3761_, lean_object* v_i_3762_, lean_object* v_stop_3763_){
_start:
{
uint8_t v___y_37542__boxed_3764_; uint64_t v___x_37543__boxed_3765_; size_t v_i_boxed_3766_; size_t v_stop_boxed_3767_; uint8_t v_res_3768_; lean_object* v_r_3769_; 
v___y_37542__boxed_3764_ = lean_unbox(v___y_3758_);
v___x_37543__boxed_3765_ = lean_unbox_uint64(v___x_3760_);
lean_dec_ref(v___x_3760_);
v_i_boxed_3766_ = lean_unbox_usize(v_i_3762_);
lean_dec(v_i_3762_);
v_stop_boxed_3767_ = lean_unbox_usize(v_stop_3763_);
lean_dec(v_stop_3763_);
v_res_3768_ = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__1(v___y_37542__boxed_3764_, v_imp_3759_, v___x_37543__boxed_3765_, v_as_3761_, v_i_boxed_3766_, v_stop_boxed_3767_);
lean_dec_ref(v_as_3761_);
lean_dec_ref(v_imp_3759_);
v_r_3769_ = lean_box(v_res_3768_);
return v_r_3769_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2___redArg(lean_object* v_expInfos_3773_, uint8_t v___y_3774_, lean_object* v_imp_3775_, lean_object* v___x_3776_, lean_object* v_n_3777_, lean_object* v_j_3778_, lean_object* v_a_3779_){
_start:
{
lean_object* v_zero_3780_; uint8_t v_isZero_3781_; 
v_zero_3780_ = lean_unsigned_to_nat(0u);
v_isZero_3781_ = lean_nat_dec_eq(v_j_3778_, v_zero_3780_);
if (v_isZero_3781_ == 1)
{
lean_dec(v_j_3778_);
return v_a_3779_;
}
else
{
lean_object* v___x_3782_; lean_object* v___x_3783_; lean_object* v_lib_3784_; lean_object* v_pkg_3785_; lean_object* v_one_3786_; lean_object* v_n_3787_; lean_object* v___x_3788_; uint64_t v___x_3789_; lean_object* v___x_3790_; lean_object* v___x_3791_; lean_object* v___x_3792_; lean_object* v___x_3793_; lean_object* v___x_3794_; lean_object* v___x_3795_; lean_object* v___x_3796_; lean_object* v___x_3797_; lean_object* v___x_3798_; lean_object* v___x_3799_; 
v___x_3782_ = lean_nat_sub(v_n_3777_, v_j_3778_);
v___x_3783_ = lean_array_fget_borrowed(v___x_3776_, v___x_3782_);
v_lib_3784_ = lean_ctor_get(v___x_3783_, 0);
v_pkg_3785_ = lean_ctor_get(v_lib_3784_, 0);
v_one_3786_ = lean_unsigned_to_nat(1u);
v_n_3787_ = lean_nat_sub(v_j_3778_, v_one_3786_);
lean_dec(v_j_3778_);
v___x_3788_ = lean_array_fget_borrowed(v_expInfos_3773_, v___x_3782_);
lean_dec(v___x_3782_);
v___x_3789_ = l___private_Lake_Build_Module_0__Lake_ModuleExportInfo_disambiguationHash(v___x_3788_, v___y_3774_, v_imp_3775_);
v___x_3790_ = ((lean_object*)(l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2___redArg___closed__0));
v___x_3791_ = lean_string_append(v_a_3779_, v___x_3790_);
lean_inc_ref(v_pkg_3785_);
v___x_3792_ = l___private_Lake_Build_Module_0__Lake_Package_discriminant(v_pkg_3785_);
v___x_3793_ = lean_string_append(v___x_3791_, v___x_3792_);
lean_dec_ref(v___x_3792_);
v___x_3794_ = ((lean_object*)(l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2___redArg___closed__1));
v___x_3795_ = lean_string_append(v___x_3793_, v___x_3794_);
v___x_3796_ = l_Lake_Hash_hex(v___x_3789_);
v___x_3797_ = lean_string_append(v___x_3795_, v___x_3796_);
lean_dec_ref(v___x_3796_);
v___x_3798_ = ((lean_object*)(l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2___redArg___closed__2));
v___x_3799_ = lean_string_append(v___x_3797_, v___x_3798_);
v_j_3778_ = v_n_3787_;
v_a_3779_ = v___x_3799_;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2___redArg___boxed(lean_object* v_expInfos_3801_, lean_object* v___y_3802_, lean_object* v_imp_3803_, lean_object* v___x_3804_, lean_object* v_n_3805_, lean_object* v_j_3806_, lean_object* v_a_3807_){
_start:
{
uint8_t v___y_37572__boxed_3808_; lean_object* v_res_3809_; 
v___y_37572__boxed_3808_ = lean_unbox(v___y_3802_);
v_res_3809_ = l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2___redArg(v_expInfos_3801_, v___y_37572__boxed_3808_, v_imp_3803_, v___x_3804_, v_n_3805_, v_j_3806_, v_a_3807_);
lean_dec(v_n_3805_);
lean_dec_ref(v___x_3804_);
lean_dec_ref(v_imp_3803_);
lean_dec_ref(v_expInfos_3801_);
return v_res_3809_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__1(lean_object* v___x_3812_, lean_object* v_impInfo_3813_, uint8_t v___y_3814_, lean_object* v___x_3815_, lean_object* v___x_3816_, lean_object* v_fileName_3817_, lean_object* v_module_3818_, lean_object* v___x_3819_, lean_object* v___x_3820_, lean_object* v_expInfos_3821_, lean_object* v___y_3822_, lean_object* v___y_3823_, lean_object* v___y_3824_, lean_object* v___y_3825_, lean_object* v___y_3826_, lean_object* v___y_3827_){
_start:
{
lean_object* v___x_3829_; lean_object* v___x_3833_; uint8_t v___x_3834_; 
v___x_3829_ = lean_array_fget_borrowed(v_expInfos_3821_, v___x_3812_);
v___x_3833_ = lean_array_get_size(v_expInfos_3821_);
v___x_3834_ = lean_nat_dec_lt(v___x_3816_, v___x_3833_);
if (v___x_3834_ == 0)
{
lean_dec(v___x_3820_);
lean_dec(v_module_3818_);
lean_dec_ref(v_fileName_3817_);
goto v___jp_3830_;
}
else
{
if (v___x_3834_ == 0)
{
lean_dec(v___x_3820_);
lean_dec(v_module_3818_);
lean_dec_ref(v_fileName_3817_);
goto v___jp_3830_;
}
else
{
uint64_t v___x_3835_; size_t v___x_3836_; size_t v___x_3837_; uint8_t v___x_3838_; 
v___x_3835_ = l___private_Lake_Build_Module_0__Lake_ModuleExportInfo_disambiguationHash(v___x_3829_, v___y_3814_, v___x_3815_);
v___x_3836_ = ((size_t)1ULL);
v___x_3837_ = lean_usize_of_nat(v___x_3833_);
v___x_3838_ = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__1(v___y_3814_, v___x_3815_, v___x_3835_, v_expInfos_3821_, v___x_3836_, v___x_3837_);
if (v___x_3838_ == 0)
{
lean_dec(v___x_3820_);
lean_dec(v_module_3818_);
lean_dec_ref(v_fileName_3817_);
goto v___jp_3830_;
}
else
{
lean_object* v___x_3839_; lean_object* v___x_3840_; lean_object* v___x_3841_; lean_object* v___x_3842_; lean_object* v___x_3843_; lean_object* v___x_3844_; lean_object* v___x_3845_; lean_object* v_log_3846_; uint8_t v_action_3847_; uint8_t v_wantsRebuild_3848_; lean_object* v_trace_3849_; lean_object* v_buildTime_3850_; lean_object* v___x_3852_; uint8_t v_isShared_3853_; uint8_t v_isSharedCheck_3862_; 
lean_dec_ref(v_impInfo_3813_);
v___x_3839_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__1___closed__0));
v___x_3840_ = lean_string_append(v_fileName_3817_, v___x_3839_);
v___x_3841_ = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(v_module_3818_, v___x_3838_);
v___x_3842_ = lean_string_append(v___x_3840_, v___x_3841_);
lean_dec_ref(v___x_3841_);
v___x_3843_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__1___closed__1));
v___x_3844_ = lean_string_append(v___x_3842_, v___x_3843_);
lean_inc(v___x_3820_);
v___x_3845_ = l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2___redArg(v_expInfos_3821_, v___y_3814_, v___x_3815_, v___x_3819_, v___x_3820_, v___x_3820_, v___x_3844_);
lean_dec(v___x_3820_);
lean_dec_ref(v___x_3815_);
v_log_3846_ = lean_ctor_get(v___y_3827_, 0);
v_action_3847_ = lean_ctor_get_uint8(v___y_3827_, sizeof(void*)*3);
v_wantsRebuild_3848_ = lean_ctor_get_uint8(v___y_3827_, sizeof(void*)*3 + 1);
v_trace_3849_ = lean_ctor_get(v___y_3827_, 1);
v_buildTime_3850_ = lean_ctor_get(v___y_3827_, 2);
v_isSharedCheck_3862_ = !lean_is_exclusive(v___y_3827_);
if (v_isSharedCheck_3862_ == 0)
{
v___x_3852_ = v___y_3827_;
v_isShared_3853_ = v_isSharedCheck_3862_;
goto v_resetjp_3851_;
}
else
{
lean_inc(v_buildTime_3850_);
lean_inc(v_trace_3849_);
lean_inc(v_log_3846_);
lean_dec(v___y_3827_);
v___x_3852_ = lean_box(0);
v_isShared_3853_ = v_isSharedCheck_3862_;
goto v_resetjp_3851_;
}
v_resetjp_3851_:
{
uint8_t v___x_3854_; lean_object* v___x_3855_; lean_object* v___x_3856_; lean_object* v___x_3857_; lean_object* v___x_3859_; 
v___x_3854_ = 3;
v___x_3855_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_3855_, 0, v___x_3845_);
lean_ctor_set_uint8(v___x_3855_, sizeof(void*)*1, v___x_3854_);
v___x_3856_ = lean_array_get_size(v_log_3846_);
v___x_3857_ = lean_array_push(v_log_3846_, v___x_3855_);
if (v_isShared_3853_ == 0)
{
lean_ctor_set(v___x_3852_, 0, v___x_3857_);
v___x_3859_ = v___x_3852_;
goto v_reusejp_3858_;
}
else
{
lean_object* v_reuseFailAlloc_3861_; 
v_reuseFailAlloc_3861_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_3861_, 0, v___x_3857_);
lean_ctor_set(v_reuseFailAlloc_3861_, 1, v_trace_3849_);
lean_ctor_set(v_reuseFailAlloc_3861_, 2, v_buildTime_3850_);
lean_ctor_set_uint8(v_reuseFailAlloc_3861_, sizeof(void*)*3, v_action_3847_);
lean_ctor_set_uint8(v_reuseFailAlloc_3861_, sizeof(void*)*3 + 1, v_wantsRebuild_3848_);
v___x_3859_ = v_reuseFailAlloc_3861_;
goto v_reusejp_3858_;
}
v_reusejp_3858_:
{
lean_object* v___x_3860_; 
v___x_3860_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_3860_, 0, v___x_3856_);
lean_ctor_set(v___x_3860_, 1, v___x_3859_);
return v___x_3860_;
}
}
}
}
}
v___jp_3830_:
{
lean_object* v___x_3831_; lean_object* v___x_3832_; 
lean_inc(v___x_3829_);
v___x_3831_ = l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_addImport(v_impInfo_3813_, v___y_3814_, v___x_3815_, v___x_3829_);
v___x_3832_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_3832_, 0, v___x_3831_);
lean_ctor_set(v___x_3832_, 1, v___y_3827_);
return v___x_3832_;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__1___boxed(lean_object** _args){
lean_object* v___x_3863_ = _args[0];
lean_object* v_impInfo_3864_ = _args[1];
lean_object* v___y_3865_ = _args[2];
lean_object* v___x_3866_ = _args[3];
lean_object* v___x_3867_ = _args[4];
lean_object* v_fileName_3868_ = _args[5];
lean_object* v_module_3869_ = _args[6];
lean_object* v___x_3870_ = _args[7];
lean_object* v___x_3871_ = _args[8];
lean_object* v_expInfos_3872_ = _args[9];
lean_object* v___y_3873_ = _args[10];
lean_object* v___y_3874_ = _args[11];
lean_object* v___y_3875_ = _args[12];
lean_object* v___y_3876_ = _args[13];
lean_object* v___y_3877_ = _args[14];
lean_object* v___y_3878_ = _args[15];
lean_object* v___y_3879_ = _args[16];
_start:
{
uint8_t v___y_37621__boxed_3880_; lean_object* v_res_3881_; 
v___y_37621__boxed_3880_ = lean_unbox(v___y_3865_);
v_res_3881_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__1(v___x_3863_, v_impInfo_3864_, v___y_37621__boxed_3880_, v___x_3866_, v___x_3867_, v_fileName_3868_, v_module_3869_, v___x_3870_, v___x_3871_, v_expInfos_3872_, v___y_3873_, v___y_3874_, v___y_3875_, v___y_3876_, v___y_3877_, v___y_3878_);
lean_dec_ref(v___y_3877_);
lean_dec(v___y_3876_);
lean_dec(v___y_3875_);
lean_dec(v___y_3874_);
lean_dec_ref(v___y_3873_);
lean_dec_ref(v_expInfos_3872_);
lean_dec_ref(v___x_3870_);
lean_dec(v___x_3867_);
lean_dec(v___x_3863_);
return v_res_3881_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__2(lean_object* v___x_3882_, uint8_t v___y_3883_, lean_object* v___x_3884_, lean_object* v___x_3885_, lean_object* v_fileName_3886_, lean_object* v_module_3887_, lean_object* v___x_3888_, lean_object* v___x_3889_, lean_object* v___x_3890_, lean_object* v___x_3891_, lean_object* v_impInfo_3892_, lean_object* v___y_3893_, lean_object* v___y_3894_, lean_object* v___y_3895_, lean_object* v___y_3896_, lean_object* v___y_3897_, lean_object* v___y_3898_){
_start:
{
lean_object* v_trace_3900_; lean_object* v___x_3901_; lean_object* v___f_3902_; uint8_t v___x_3903_; lean_object* v___x_3904_; lean_object* v___x_3905_; 
v_trace_3900_ = lean_ctor_get(v___y_3898_, 1);
v___x_3901_ = lean_box(v___y_3883_);
lean_inc(v___x_3882_);
v___f_3902_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__1___boxed), 17, 9);
lean_closure_set(v___f_3902_, 0, v___x_3882_);
lean_closure_set(v___f_3902_, 1, v_impInfo_3892_);
lean_closure_set(v___f_3902_, 2, v___x_3901_);
lean_closure_set(v___f_3902_, 3, v___x_3884_);
lean_closure_set(v___f_3902_, 4, v___x_3885_);
lean_closure_set(v___f_3902_, 5, v_fileName_3886_);
lean_closure_set(v___f_3902_, 6, v_module_3887_);
lean_closure_set(v___f_3902_, 7, v___x_3888_);
lean_closure_set(v___f_3902_, 8, v___x_3889_);
v___x_3903_ = 1;
lean_inc_ref(v_trace_3900_);
v___x_3904_ = l_Lake_Job_mapM___redArg(v___x_3890_, v___x_3891_, v___f_3902_, v___x_3882_, v___x_3903_, v___y_3893_, v___y_3894_, v___y_3895_, v___y_3896_, v___y_3897_, v_trace_3900_);
v___x_3905_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_3905_, 0, v___x_3904_);
lean_ctor_set(v___x_3905_, 1, v___y_3898_);
return v___x_3905_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__2___boxed(lean_object** _args){
lean_object* v___x_3906_ = _args[0];
lean_object* v___y_3907_ = _args[1];
lean_object* v___x_3908_ = _args[2];
lean_object* v___x_3909_ = _args[3];
lean_object* v_fileName_3910_ = _args[4];
lean_object* v_module_3911_ = _args[5];
lean_object* v___x_3912_ = _args[6];
lean_object* v___x_3913_ = _args[7];
lean_object* v___x_3914_ = _args[8];
lean_object* v___x_3915_ = _args[9];
lean_object* v_impInfo_3916_ = _args[10];
lean_object* v___y_3917_ = _args[11];
lean_object* v___y_3918_ = _args[12];
lean_object* v___y_3919_ = _args[13];
lean_object* v___y_3920_ = _args[14];
lean_object* v___y_3921_ = _args[15];
lean_object* v___y_3922_ = _args[16];
lean_object* v___y_3923_ = _args[17];
_start:
{
uint8_t v___y_37720__boxed_3924_; lean_object* v_res_3925_; 
v___y_37720__boxed_3924_ = lean_unbox(v___y_3907_);
v_res_3925_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__2(v___x_3906_, v___y_37720__boxed_3924_, v___x_3908_, v___x_3909_, v_fileName_3910_, v_module_3911_, v___x_3912_, v___x_3913_, v___x_3914_, v___x_3915_, v_impInfo_3916_, v___y_3917_, v___y_3918_, v___y_3919_, v___y_3920_, v___y_3921_, v___y_3922_);
return v_res_3925_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3(lean_object* v_modName_3931_, uint8_t v___y_3932_, lean_object* v_fileName_3933_, lean_object* v_as_3934_, size_t v_i_3935_, size_t v_stop_3936_, lean_object* v_b_3937_, lean_object* v___y_3938_, lean_object* v___y_3939_, lean_object* v___y_3940_, lean_object* v___y_3941_, lean_object* v___y_3942_, lean_object* v___y_3943_){
_start:
{
lean_object* v_a_3946_; lean_object* v_a_3947_; uint8_t v___x_3951_; 
v___x_3951_ = lean_usize_dec_eq(v_i_3935_, v_stop_3936_);
if (v___x_3951_ == 0)
{
lean_object* v___x_3952_; lean_object* v_module_3953_; lean_object* v___x_3954_; lean_object* v___x_3955_; lean_object* v___x_3956_; uint8_t v___x_3957_; 
v___x_3952_ = lean_array_uget_borrowed(v_as_3934_, v_i_3935_);
v_module_3953_ = lean_ctor_get(v___x_3952_, 0);
v___x_3954_ = lean_box(0);
v___x_3955_ = lean_unsigned_to_nat(0u);
v___x_3956_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1));
v___x_3957_ = lean_name_eq(v_modName_3931_, v_module_3953_);
if (v___x_3957_ == 0)
{
lean_object* v_toContext_3958_; lean_object* v___x_3959_; lean_object* v___x_3960_; uint8_t v___x_3961_; 
v_toContext_3958_ = lean_ctor_get(v___y_3942_, 1);
lean_inc(v_module_3953_);
v___x_3959_ = l_Lake_Workspace_findModules(v_module_3953_, v_toContext_3958_);
v___x_3960_ = lean_array_get_size(v___x_3959_);
v___x_3961_ = lean_nat_dec_eq(v___x_3960_, v___x_3955_);
if (v___x_3961_ == 0)
{
lean_object* v___x_3962_; uint8_t v___x_3963_; 
v___x_3962_ = lean_unsigned_to_nat(1u);
v___x_3963_ = lean_nat_dec_eq(v___x_3960_, v___x_3962_);
if (v___x_3963_ == 0)
{
lean_object* v___f_3964_; lean_object* v___x_3965_; lean_object* v___x_3966_; 
v___f_3964_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___closed__0));
v___x_3965_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___closed__1));
lean_inc_ref(v___y_3942_);
lean_inc(v___y_3941_);
lean_inc(v___y_3940_);
lean_inc(v___y_3939_);
lean_inc_ref(v___y_3938_);
v___x_3966_ = l___private_Init_Data_Vector_Basic_0__Vector_mapM_go___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__0___redArg(v___x_3960_, v___f_3964_, v___x_3959_, v___x_3955_, v___x_3965_, v___y_3938_, v___y_3939_, v___y_3940_, v___y_3941_, v___y_3942_, v___y_3943_);
if (lean_obj_tag(v___x_3966_) == 0)
{
lean_object* v_a_3967_; lean_object* v_a_3968_; lean_object* v___x_3969_; lean_object* v___x_3970_; lean_object* v___x_3971_; lean_object* v___f_3972_; uint8_t v___x_3973_; lean_object* v___x_3974_; lean_object* v___x_3975_; 
v_a_3967_ = lean_ctor_get(v___x_3966_, 0);
lean_inc(v_a_3967_);
v_a_3968_ = lean_ctor_get(v___x_3966_, 1);
lean_inc(v_a_3968_);
lean_dec_ref(v___x_3966_);
v___x_3969_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___closed__2));
v___x_3970_ = l_Lake_Job_collectVector___redArg(v___x_3960_, v_a_3967_, v___x_3969_);
v___x_3971_ = lean_box(v___y_3932_);
lean_inc(v_module_3953_);
lean_inc_ref(v_fileName_3933_);
lean_inc(v___x_3952_);
v___f_3972_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__2___boxed), 18, 10);
lean_closure_set(v___f_3972_, 0, v___x_3955_);
lean_closure_set(v___f_3972_, 1, v___x_3971_);
lean_closure_set(v___f_3972_, 2, v___x_3952_);
lean_closure_set(v___f_3972_, 3, v___x_3962_);
lean_closure_set(v___f_3972_, 4, v_fileName_3933_);
lean_closure_set(v___f_3972_, 5, v_module_3953_);
lean_closure_set(v___f_3972_, 6, v___x_3959_);
lean_closure_set(v___f_3972_, 7, v___x_3960_);
lean_closure_set(v___f_3972_, 8, v___x_3954_);
lean_closure_set(v___f_3972_, 9, v___x_3970_);
v___x_3973_ = 1;
v___x_3974_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
lean_inc_ref(v___y_3942_);
lean_inc(v___y_3941_);
lean_inc(v___y_3940_);
lean_inc(v___y_3939_);
lean_inc_ref(v___y_3938_);
v___x_3975_ = l_Lake_Job_bindM___redArg(v___x_3954_, v_b_3937_, v___f_3972_, v___x_3955_, v___x_3973_, v___y_3938_, v___y_3939_, v___y_3940_, v___y_3941_, v___y_3942_, v___x_3974_);
v_a_3946_ = v___x_3975_;
v_a_3947_ = v_a_3968_;
goto v___jp_3945_;
}
else
{
lean_object* v_a_3976_; lean_object* v_a_3977_; lean_object* v___x_3979_; uint8_t v_isShared_3980_; uint8_t v_isSharedCheck_3984_; 
lean_dec_ref(v___x_3959_);
lean_dec_ref(v___y_3942_);
lean_dec(v___y_3941_);
lean_dec(v___y_3940_);
lean_dec(v___y_3939_);
lean_dec_ref(v___y_3938_);
lean_dec_ref(v_b_3937_);
lean_dec_ref(v_fileName_3933_);
v_a_3976_ = lean_ctor_get(v___x_3966_, 0);
v_a_3977_ = lean_ctor_get(v___x_3966_, 1);
v_isSharedCheck_3984_ = !lean_is_exclusive(v___x_3966_);
if (v_isSharedCheck_3984_ == 0)
{
v___x_3979_ = v___x_3966_;
v_isShared_3980_ = v_isSharedCheck_3984_;
goto v_resetjp_3978_;
}
else
{
lean_inc(v_a_3977_);
lean_inc(v_a_3976_);
lean_dec(v___x_3966_);
v___x_3979_ = lean_box(0);
v_isShared_3980_ = v_isSharedCheck_3984_;
goto v_resetjp_3978_;
}
v_resetjp_3978_:
{
lean_object* v___x_3982_; 
if (v_isShared_3980_ == 0)
{
v___x_3982_ = v___x_3979_;
goto v_reusejp_3981_;
}
else
{
lean_object* v_reuseFailAlloc_3983_; 
v_reuseFailAlloc_3983_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_3983_, 0, v_a_3976_);
lean_ctor_set(v_reuseFailAlloc_3983_, 1, v_a_3977_);
v___x_3982_ = v_reuseFailAlloc_3983_;
goto v_reusejp_3981_;
}
v_reusejp_3981_:
{
return v___x_3982_;
}
}
}
}
else
{
lean_object* v___x_3985_; lean_object* v_lib_3986_; lean_object* v_pkg_3987_; lean_object* v_name_3988_; lean_object* v_keyName_3989_; lean_object* v___x_3990_; lean_object* v___x_3991_; lean_object* v___x_3992_; lean_object* v___x_3993_; lean_object* v___x_3994_; 
v___x_3985_ = lean_array_fget(v___x_3959_, v___x_3955_);
lean_dec_ref(v___x_3959_);
v_lib_3986_ = lean_ctor_get(v___x_3985_, 0);
v_pkg_3987_ = lean_ctor_get(v_lib_3986_, 0);
v_name_3988_ = lean_ctor_get(v___x_3985_, 1);
v_keyName_3989_ = lean_ctor_get(v_pkg_3987_, 2);
v___x_3990_ = l_Lake_Module_exportInfoFacet;
lean_inc(v_name_3988_);
lean_inc(v_keyName_3989_);
v___x_3991_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_3991_, 0, v_keyName_3989_);
lean_ctor_set(v___x_3991_, 1, v_name_3988_);
v___x_3992_ = l_Lake_Module_keyword;
v___x_3993_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_3993_, 0, v___x_3991_);
lean_ctor_set(v___x_3993_, 1, v___x_3992_);
lean_ctor_set(v___x_3993_, 2, v___x_3985_);
lean_ctor_set(v___x_3993_, 3, v___x_3990_);
lean_inc_ref(v___y_3938_);
lean_inc_ref(v___y_3942_);
lean_inc(v___y_3941_);
lean_inc(v___y_3940_);
lean_inc(v___y_3939_);
v___x_3994_ = lean_apply_7(v___y_3938_, v___x_3993_, v___y_3939_, v___y_3940_, v___y_3941_, v___y_3942_, v___y_3943_, lean_box(0));
if (lean_obj_tag(v___x_3994_) == 0)
{
lean_object* v_a_3995_; lean_object* v_a_3996_; lean_object* v_task_3997_; lean_object* v___x_3999_; uint8_t v_isShared_4000_; uint8_t v_isSharedCheck_4008_; 
v_a_3995_ = lean_ctor_get(v___x_3994_, 0);
lean_inc(v_a_3995_);
v_a_3996_ = lean_ctor_get(v___x_3994_, 1);
lean_inc(v_a_3996_);
lean_dec_ref(v___x_3994_);
v_task_3997_ = lean_ctor_get(v_b_3937_, 0);
v_isSharedCheck_4008_ = !lean_is_exclusive(v_b_3937_);
if (v_isSharedCheck_4008_ == 0)
{
lean_object* v_unused_4009_; lean_object* v_unused_4010_; 
v_unused_4009_ = lean_ctor_get(v_b_3937_, 2);
lean_dec(v_unused_4009_);
v_unused_4010_ = lean_ctor_get(v_b_3937_, 1);
lean_dec(v_unused_4010_);
v___x_3999_ = v_b_3937_;
v_isShared_4000_ = v_isSharedCheck_4008_;
goto v_resetjp_3998_;
}
else
{
lean_inc(v_task_3997_);
lean_dec(v_b_3937_);
v___x_3999_ = lean_box(0);
v_isShared_4000_ = v_isSharedCheck_4008_;
goto v_resetjp_3998_;
}
v_resetjp_3998_:
{
lean_object* v___x_4001_; lean_object* v___x_4002_; lean_object* v___f_4003_; lean_object* v___x_4004_; lean_object* v___x_4006_; 
v___x_4001_ = lean_box(v___y_3932_);
v___x_4002_ = lean_box(v___x_3963_);
lean_inc(v___x_3952_);
v___f_4003_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___lam__4___boxed), 6, 5);
lean_closure_set(v___f_4003_, 0, v_a_3995_);
lean_closure_set(v___f_4003_, 1, v___x_3955_);
lean_closure_set(v___f_4003_, 2, v___x_4001_);
lean_closure_set(v___f_4003_, 3, v___x_3952_);
lean_closure_set(v___f_4003_, 4, v___x_4002_);
v___x_4004_ = lean_task_bind(v_task_3997_, v___f_4003_, v___x_3955_, v___x_3963_);
if (v_isShared_4000_ == 0)
{
lean_ctor_set(v___x_3999_, 2, v___x_3956_);
lean_ctor_set(v___x_3999_, 1, v___x_3954_);
lean_ctor_set(v___x_3999_, 0, v___x_4004_);
v___x_4006_ = v___x_3999_;
goto v_reusejp_4005_;
}
else
{
lean_object* v_reuseFailAlloc_4007_; 
v_reuseFailAlloc_4007_ = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(v_reuseFailAlloc_4007_, 0, v___x_4004_);
lean_ctor_set(v_reuseFailAlloc_4007_, 1, v___x_3954_);
lean_ctor_set(v_reuseFailAlloc_4007_, 2, v___x_3956_);
v___x_4006_ = v_reuseFailAlloc_4007_;
goto v_reusejp_4005_;
}
v_reusejp_4005_:
{
lean_ctor_set_uint8(v___x_4006_, sizeof(void*)*3, v___x_3951_);
v_a_3946_ = v___x_4006_;
v_a_3947_ = v_a_3996_;
goto v___jp_3945_;
}
}
}
else
{
lean_object* v_a_4011_; lean_object* v_a_4012_; lean_object* v___x_4014_; uint8_t v_isShared_4015_; uint8_t v_isSharedCheck_4019_; 
lean_dec_ref(v___y_3942_);
lean_dec(v___y_3941_);
lean_dec(v___y_3940_);
lean_dec(v___y_3939_);
lean_dec_ref(v___y_3938_);
lean_dec_ref(v_b_3937_);
lean_dec_ref(v_fileName_3933_);
v_a_4011_ = lean_ctor_get(v___x_3994_, 0);
v_a_4012_ = lean_ctor_get(v___x_3994_, 1);
v_isSharedCheck_4019_ = !lean_is_exclusive(v___x_3994_);
if (v_isSharedCheck_4019_ == 0)
{
v___x_4014_ = v___x_3994_;
v_isShared_4015_ = v_isSharedCheck_4019_;
goto v_resetjp_4013_;
}
else
{
lean_inc(v_a_4012_);
lean_inc(v_a_4011_);
lean_dec(v___x_3994_);
v___x_4014_ = lean_box(0);
v_isShared_4015_ = v_isSharedCheck_4019_;
goto v_resetjp_4013_;
}
v_resetjp_4013_:
{
lean_object* v___x_4017_; 
if (v_isShared_4015_ == 0)
{
v___x_4017_ = v___x_4014_;
goto v_reusejp_4016_;
}
else
{
lean_object* v_reuseFailAlloc_4018_; 
v_reuseFailAlloc_4018_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_4018_, 0, v_a_4011_);
lean_ctor_set(v_reuseFailAlloc_4018_, 1, v_a_4012_);
v___x_4017_ = v_reuseFailAlloc_4018_;
goto v_reusejp_4016_;
}
v_reusejp_4016_:
{
return v___x_4017_;
}
}
}
}
}
else
{
lean_dec_ref(v___x_3959_);
v_a_3946_ = v_b_3937_;
v_a_3947_ = v___y_3943_;
goto v___jp_3945_;
}
}
else
{
lean_object* v___x_4020_; lean_object* v___x_4021_; lean_object* v___x_4022_; uint8_t v___x_4023_; lean_object* v___x_4024_; lean_object* v___x_4025_; uint8_t v___x_4026_; lean_object* v___x_4027_; lean_object* v___x_4028_; lean_object* v___x_4029_; lean_object* v___x_4030_; lean_object* v___x_4031_; 
lean_dec_ref(v_b_3937_);
v___x_4020_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__5));
v___x_4021_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___closed__3));
lean_inc_ref(v_fileName_3933_);
v___x_4022_ = lean_string_append(v_fileName_3933_, v___x_4021_);
v___x_4023_ = 3;
v___x_4024_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_4024_, 0, v___x_4022_);
lean_ctor_set_uint8(v___x_4024_, sizeof(void*)*1, v___x_4023_);
v___x_4025_ = lean_array_push(v___y_3943_, v___x_4024_);
v___x_4026_ = 0;
v___x_4027_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_4028_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v___x_4028_, 0, v___x_4020_);
lean_ctor_set(v___x_4028_, 1, v___x_4027_);
lean_ctor_set(v___x_4028_, 2, v___x_3955_);
lean_ctor_set_uint8(v___x_4028_, sizeof(void*)*3, v___x_4026_);
lean_ctor_set_uint8(v___x_4028_, sizeof(void*)*3 + 1, v___x_3951_);
v___x_4029_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_4029_, 0, v___x_3955_);
lean_ctor_set(v___x_4029_, 1, v___x_4028_);
v___x_4030_ = lean_task_pure(v___x_4029_);
v___x_4031_ = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(v___x_4031_, 0, v___x_4030_);
lean_ctor_set(v___x_4031_, 1, v___x_3954_);
lean_ctor_set(v___x_4031_, 2, v___x_3956_);
lean_ctor_set_uint8(v___x_4031_, sizeof(void*)*3, v___x_3951_);
v_a_3946_ = v___x_4031_;
v_a_3947_ = v___x_4025_;
goto v___jp_3945_;
}
}
else
{
lean_object* v___x_4032_; 
lean_dec_ref(v___y_3942_);
lean_dec(v___y_3941_);
lean_dec(v___y_3940_);
lean_dec(v___y_3939_);
lean_dec_ref(v___y_3938_);
lean_dec_ref(v_fileName_3933_);
v___x_4032_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_4032_, 0, v_b_3937_);
lean_ctor_set(v___x_4032_, 1, v___y_3943_);
return v___x_4032_;
}
v___jp_3945_:
{
size_t v___x_3948_; size_t v___x_3949_; 
v___x_3948_ = ((size_t)1ULL);
v___x_3949_ = lean_usize_add(v_i_3935_, v___x_3948_);
v_i_3935_ = v___x_3949_;
v_b_3937_ = v_a_3946_;
v___y_3943_ = v_a_3947_;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___boxed(lean_object* v_modName_4033_, lean_object* v___y_4034_, lean_object* v_fileName_4035_, lean_object* v_as_4036_, lean_object* v_i_4037_, lean_object* v_stop_4038_, lean_object* v_b_4039_, lean_object* v___y_4040_, lean_object* v___y_4041_, lean_object* v___y_4042_, lean_object* v___y_4043_, lean_object* v___y_4044_, lean_object* v___y_4045_, lean_object* v___y_4046_){
_start:
{
uint8_t v___y_37793__boxed_4047_; size_t v_i_boxed_4048_; size_t v_stop_boxed_4049_; lean_object* v_res_4050_; 
v___y_37793__boxed_4047_ = lean_unbox(v___y_4034_);
v_i_boxed_4048_ = lean_unbox_usize(v_i_4037_);
lean_dec(v_i_4037_);
v_stop_boxed_4049_ = lean_unbox_usize(v_stop_4038_);
lean_dec(v_stop_4038_);
v_res_4050_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3(v_modName_4033_, v___y_37793__boxed_4047_, v_fileName_4035_, v_as_4036_, v_i_boxed_4048_, v_stop_boxed_4049_, v_b_4039_, v___y_4040_, v___y_4041_, v___y_4042_, v___y_4043_, v___y_4044_, v___y_4045_);
lean_dec_ref(v_as_4036_);
lean_dec(v_modName_4033_);
return v_res_4050_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchImportInfo___redArg(lean_object* v_fileName_4051_, lean_object* v_modName_4052_, lean_object* v_header_4053_, lean_object* v_a_4054_, lean_object* v_a_4055_, lean_object* v_a_4056_, lean_object* v_a_4057_, lean_object* v_a_4058_, lean_object* v_a_4059_){
_start:
{
lean_object* v_imports_4061_; uint8_t v_isModule_4062_; lean_object* v___x_4063_; uint8_t v___y_4065_; 
v_imports_4061_ = lean_ctor_get(v_header_4053_, 0);
v_isModule_4062_ = lean_ctor_get_uint8(v_header_4053_, sizeof(void*)*1);
v___x_4063_ = lean_box(0);
if (v_isModule_4062_ == 0)
{
uint8_t v___x_4085_; 
v___x_4085_ = 1;
v___y_4065_ = v___x_4085_;
goto v___jp_4064_;
}
else
{
uint8_t v___x_4086_; 
v___x_4086_ = 0;
v___y_4065_ = v___x_4086_;
goto v___jp_4064_;
}
v___jp_4064_:
{
lean_object* v___x_4066_; uint8_t v___x_4067_; lean_object* v___x_4068_; lean_object* v_info_4069_; lean_object* v___x_4070_; lean_object* v___x_4071_; lean_object* v___x_4072_; lean_object* v_impArtsJob_4073_; lean_object* v___x_4074_; uint8_t v___x_4075_; 
v___x_4066_ = lean_unsigned_to_nat(0u);
v___x_4067_ = 0;
v___x_4068_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__6, &l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__6_once, _init_l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__6);
lean_inc(v_modName_4052_);
v_info_4069_ = l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil(v_modName_4052_);
v___x_4070_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1));
v___x_4071_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_4071_, 0, v_info_4069_);
lean_ctor_set(v___x_4071_, 1, v___x_4068_);
v___x_4072_ = lean_task_pure(v___x_4071_);
v_impArtsJob_4073_ = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(v_impArtsJob_4073_, 0, v___x_4072_);
lean_ctor_set(v_impArtsJob_4073_, 1, v___x_4063_);
lean_ctor_set(v_impArtsJob_4073_, 2, v___x_4070_);
lean_ctor_set_uint8(v_impArtsJob_4073_, sizeof(void*)*3, v___x_4067_);
v___x_4074_ = lean_array_get_size(v_imports_4061_);
v___x_4075_ = lean_nat_dec_lt(v___x_4066_, v___x_4074_);
if (v___x_4075_ == 0)
{
lean_object* v___x_4076_; 
lean_dec_ref(v_a_4058_);
lean_dec(v_a_4057_);
lean_dec(v_a_4056_);
lean_dec(v_a_4055_);
lean_dec_ref(v_a_4054_);
lean_dec(v_modName_4052_);
lean_dec_ref(v_fileName_4051_);
v___x_4076_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_4076_, 0, v_impArtsJob_4073_);
lean_ctor_set(v___x_4076_, 1, v_a_4059_);
return v___x_4076_;
}
else
{
uint8_t v___x_4077_; 
v___x_4077_ = lean_nat_dec_le(v___x_4074_, v___x_4074_);
if (v___x_4077_ == 0)
{
if (v___x_4075_ == 0)
{
lean_object* v___x_4078_; 
lean_dec_ref(v_a_4058_);
lean_dec(v_a_4057_);
lean_dec(v_a_4056_);
lean_dec(v_a_4055_);
lean_dec_ref(v_a_4054_);
lean_dec(v_modName_4052_);
lean_dec_ref(v_fileName_4051_);
v___x_4078_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_4078_, 0, v_impArtsJob_4073_);
lean_ctor_set(v___x_4078_, 1, v_a_4059_);
return v___x_4078_;
}
else
{
size_t v___x_4079_; size_t v___x_4080_; lean_object* v___x_4081_; 
v___x_4079_ = ((size_t)0ULL);
v___x_4080_ = lean_usize_of_nat(v___x_4074_);
v___x_4081_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3(v_modName_4052_, v___y_4065_, v_fileName_4051_, v_imports_4061_, v___x_4079_, v___x_4080_, v_impArtsJob_4073_, v_a_4054_, v_a_4055_, v_a_4056_, v_a_4057_, v_a_4058_, v_a_4059_);
lean_dec(v_modName_4052_);
return v___x_4081_;
}
}
else
{
size_t v___x_4082_; size_t v___x_4083_; lean_object* v___x_4084_; 
v___x_4082_ = ((size_t)0ULL);
v___x_4083_ = lean_usize_of_nat(v___x_4074_);
v___x_4084_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3(v_modName_4052_, v___y_4065_, v_fileName_4051_, v_imports_4061_, v___x_4082_, v___x_4083_, v_impArtsJob_4073_, v_a_4054_, v_a_4055_, v_a_4056_, v_a_4057_, v_a_4058_, v_a_4059_);
lean_dec(v_modName_4052_);
return v___x_4084_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchImportInfo___redArg___boxed(lean_object* v_fileName_4087_, lean_object* v_modName_4088_, lean_object* v_header_4089_, lean_object* v_a_4090_, lean_object* v_a_4091_, lean_object* v_a_4092_, lean_object* v_a_4093_, lean_object* v_a_4094_, lean_object* v_a_4095_, lean_object* v_a_4096_){
_start:
{
lean_object* v_res_4097_; 
v_res_4097_ = l___private_Lake_Build_Module_0__Lake_fetchImportInfo___redArg(v_fileName_4087_, v_modName_4088_, v_header_4089_, v_a_4090_, v_a_4091_, v_a_4092_, v_a_4093_, v_a_4094_, v_a_4095_);
lean_dec_ref(v_header_4089_);
return v_res_4097_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchImportInfo(lean_object* v_fileName_4098_, lean_object* v_pkgName_4099_, lean_object* v_modName_4100_, lean_object* v_header_4101_, lean_object* v_a_4102_, lean_object* v_a_4103_, lean_object* v_a_4104_, lean_object* v_a_4105_, lean_object* v_a_4106_, lean_object* v_a_4107_){
_start:
{
lean_object* v___x_4109_; 
v___x_4109_ = l___private_Lake_Build_Module_0__Lake_fetchImportInfo___redArg(v_fileName_4098_, v_modName_4100_, v_header_4101_, v_a_4102_, v_a_4103_, v_a_4104_, v_a_4105_, v_a_4106_, v_a_4107_);
return v___x_4109_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_fetchImportInfo___boxed(lean_object* v_fileName_4110_, lean_object* v_pkgName_4111_, lean_object* v_modName_4112_, lean_object* v_header_4113_, lean_object* v_a_4114_, lean_object* v_a_4115_, lean_object* v_a_4116_, lean_object* v_a_4117_, lean_object* v_a_4118_, lean_object* v_a_4119_, lean_object* v_a_4120_){
_start:
{
lean_object* v_res_4121_; 
v_res_4121_ = l___private_Lake_Build_Module_0__Lake_fetchImportInfo(v_fileName_4110_, v_pkgName_4111_, v_modName_4112_, v_header_4113_, v_a_4114_, v_a_4115_, v_a_4116_, v_a_4117_, v_a_4118_, v_a_4119_);
lean_dec_ref(v_header_4113_);
lean_dec(v_pkgName_4111_);
return v_res_4121_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Vector_Basic_0__Vector_mapM_go___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__0(lean_object* v_00_u03b1_4122_, lean_object* v_00_u03b2_4123_, lean_object* v_n_4124_, lean_object* v_f_4125_, lean_object* v_xs_4126_, lean_object* v_k_4127_, lean_object* v_h_4128_, lean_object* v_acc_4129_, lean_object* v___y_4130_, lean_object* v___y_4131_, lean_object* v___y_4132_, lean_object* v___y_4133_, lean_object* v___y_4134_, lean_object* v___y_4135_){
_start:
{
lean_object* v___x_4137_; 
v___x_4137_ = l___private_Init_Data_Vector_Basic_0__Vector_mapM_go___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__0___redArg(v_n_4124_, v_f_4125_, v_xs_4126_, v_k_4127_, v_acc_4129_, v___y_4130_, v___y_4131_, v___y_4132_, v___y_4133_, v___y_4134_, v___y_4135_);
return v___x_4137_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Vector_Basic_0__Vector_mapM_go___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__0___boxed(lean_object* v_00_u03b1_4138_, lean_object* v_00_u03b2_4139_, lean_object* v_n_4140_, lean_object* v_f_4141_, lean_object* v_xs_4142_, lean_object* v_k_4143_, lean_object* v_h_4144_, lean_object* v_acc_4145_, lean_object* v___y_4146_, lean_object* v___y_4147_, lean_object* v___y_4148_, lean_object* v___y_4149_, lean_object* v___y_4150_, lean_object* v___y_4151_, lean_object* v___y_4152_){
_start:
{
lean_object* v_res_4153_; 
v_res_4153_ = l___private_Init_Data_Vector_Basic_0__Vector_mapM_go___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__0(v_00_u03b1_4138_, v_00_u03b2_4139_, v_n_4140_, v_f_4141_, v_xs_4142_, v_k_4143_, v_h_4144_, v_acc_4145_, v___y_4146_, v___y_4147_, v___y_4148_, v___y_4149_, v___y_4150_, v___y_4151_);
lean_dec_ref(v_xs_4142_);
lean_dec(v_n_4140_);
return v_res_4153_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2(lean_object* v_expInfos_4154_, uint8_t v___y_4155_, lean_object* v_imp_4156_, lean_object* v___x_4157_, lean_object* v_n_4158_, lean_object* v_j_4159_, lean_object* v_a_4160_, lean_object* v_a_4161_){
_start:
{
lean_object* v___x_4162_; 
v___x_4162_ = l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2___redArg(v_expInfos_4154_, v___y_4155_, v_imp_4156_, v___x_4157_, v_n_4158_, v_j_4159_, v_a_4161_);
return v___x_4162_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2___boxed(lean_object* v_expInfos_4163_, lean_object* v___y_4164_, lean_object* v_imp_4165_, lean_object* v___x_4166_, lean_object* v_n_4167_, lean_object* v_j_4168_, lean_object* v_a_4169_, lean_object* v_a_4170_){
_start:
{
uint8_t v___y_38111__boxed_4171_; lean_object* v_res_4172_; 
v___y_38111__boxed_4171_ = lean_unbox(v___y_4164_);
v_res_4172_ = l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2(v_expInfos_4163_, v___y_38111__boxed_4171_, v_imp_4165_, v___x_4166_, v_n_4167_, v_j_4168_, v_a_4169_, v_a_4170_);
lean_dec(v_n_4167_);
lean_dec_ref(v___x_4166_);
lean_dec_ref(v_imp_4165_);
lean_dec_ref(v_expInfos_4163_);
return v_res_4172_;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_importInfoFacetConfig_spec__0___redArg(uint8_t v_fmt_4173_){
_start:
{
if (v_fmt_4173_ == 0)
{
lean_object* v___x_4174_; 
v___x_4174_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1));
return v___x_4174_;
}
else
{
lean_object* v___x_4175_; 
v___x_4175_ = lean_obj_once(&l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg___closed__0, &l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg___closed__0_once, _init_l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg___closed__0);
return v___x_4175_;
}
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_importInfoFacetConfig_spec__0___redArg___boxed(lean_object* v_fmt_4176_){
_start:
{
uint8_t v_fmt_boxed_4177_; lean_object* v_res_4178_; 
v_fmt_boxed_4177_ = lean_unbox(v_fmt_4176_);
v_res_4178_ = l_Lake_formatQuery___at___00Lake_Module_importInfoFacetConfig_spec__0___redArg(v_fmt_boxed_4177_);
return v_res_4178_;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_importInfoFacetConfig_spec__0(uint8_t v_fmt_4179_, lean_object* v_a_4180_){
_start:
{
lean_object* v___x_4181_; 
v___x_4181_ = l_Lake_formatQuery___at___00Lake_Module_importInfoFacetConfig_spec__0___redArg(v_fmt_4179_);
return v___x_4181_;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_importInfoFacetConfig_spec__0___boxed(lean_object* v_fmt_4182_, lean_object* v_a_4183_){
_start:
{
uint8_t v_fmt_boxed_4184_; lean_object* v_res_4185_; 
v_fmt_boxed_4184_ = lean_unbox(v_fmt_4182_);
v_res_4185_ = l_Lake_formatQuery___at___00Lake_Module_importInfoFacetConfig_spec__0(v_fmt_boxed_4184_, v_a_4183_);
lean_dec_ref(v_a_4183_);
return v_res_4185_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_importInfoFacetConfig___lam__0(lean_object* v_mod_4186_, lean_object* v___y_4187_, lean_object* v___y_4188_, lean_object* v___y_4189_, lean_object* v___y_4190_, lean_object* v___y_4191_, lean_object* v___y_4192_){
_start:
{
lean_object* v_lib_4194_; lean_object* v_pkg_4195_; lean_object* v_name_4196_; lean_object* v_config_4197_; lean_object* v_keyName_4198_; lean_object* v_dir_4199_; lean_object* v_config_4200_; lean_object* v___x_4201_; lean_object* v___x_4202_; lean_object* v___x_4203_; lean_object* v___x_4204_; lean_object* v___x_4205_; 
v_lib_4194_ = lean_ctor_get(v_mod_4186_, 0);
v_pkg_4195_ = lean_ctor_get(v_lib_4194_, 0);
v_name_4196_ = lean_ctor_get(v_mod_4186_, 1);
lean_inc(v_name_4196_);
v_config_4197_ = lean_ctor_get(v_lib_4194_, 2);
lean_inc(v_config_4197_);
v_keyName_4198_ = lean_ctor_get(v_pkg_4195_, 2);
v_dir_4199_ = lean_ctor_get(v_pkg_4195_, 4);
lean_inc_ref(v_dir_4199_);
v_config_4200_ = lean_ctor_get(v_pkg_4195_, 6);
lean_inc_ref(v_config_4200_);
v___x_4201_ = l_Lake_Module_headerFacet;
lean_inc(v_name_4196_);
lean_inc(v_keyName_4198_);
v___x_4202_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_4202_, 0, v_keyName_4198_);
lean_ctor_set(v___x_4202_, 1, v_name_4196_);
v___x_4203_ = l_Lake_Module_keyword;
v___x_4204_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_4204_, 0, v___x_4202_);
lean_ctor_set(v___x_4204_, 1, v___x_4203_);
lean_ctor_set(v___x_4204_, 2, v_mod_4186_);
lean_ctor_set(v___x_4204_, 3, v___x_4201_);
lean_inc_ref(v___y_4187_);
lean_inc_ref(v___y_4191_);
lean_inc(v___y_4190_);
lean_inc(v___y_4189_);
lean_inc(v___y_4188_);
v___x_4205_ = lean_apply_7(v___y_4187_, v___x_4204_, v___y_4188_, v___y_4189_, v___y_4190_, v___y_4191_, v___y_4192_, lean_box(0));
if (lean_obj_tag(v___x_4205_) == 0)
{
lean_object* v_a_4206_; lean_object* v_a_4207_; lean_object* v___x_4208_; 
v_a_4206_ = lean_ctor_get(v___x_4205_, 0);
lean_inc(v_a_4206_);
v_a_4207_ = lean_ctor_get(v___x_4205_, 1);
lean_inc(v_a_4207_);
lean_dec_ref(v___x_4205_);
v___x_4208_ = l_Lake_Job_await___redArg(v_a_4206_, v_a_4207_);
if (lean_obj_tag(v___x_4208_) == 0)
{
lean_object* v_a_4209_; lean_object* v_a_4210_; lean_object* v_srcDir_4211_; lean_object* v_srcDir_4212_; lean_object* v___x_4213_; lean_object* v___x_4214_; lean_object* v___x_4215_; lean_object* v___x_4216_; lean_object* v___x_4217_; lean_object* v___x_4218_; lean_object* v___x_4219_; lean_object* v___x_4220_; 
v_a_4209_ = lean_ctor_get(v___x_4208_, 0);
lean_inc(v_a_4209_);
v_a_4210_ = lean_ctor_get(v___x_4208_, 1);
lean_inc(v_a_4210_);
lean_dec_ref(v___x_4208_);
v_srcDir_4211_ = lean_ctor_get(v_config_4200_, 5);
lean_inc_ref(v_srcDir_4211_);
lean_dec_ref(v_config_4200_);
v_srcDir_4212_ = lean_ctor_get(v_config_4197_, 1);
lean_inc_ref(v_srcDir_4212_);
lean_dec(v_config_4197_);
v___x_4213_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__0));
v___x_4214_ = l_System_FilePath_normalize(v_srcDir_4211_);
lean_inc_ref(v_dir_4199_);
v___x_4215_ = l_Lake_joinRelative(v_dir_4199_, v___x_4214_);
v___x_4216_ = l_System_FilePath_normalize(v_srcDir_4212_);
v___x_4217_ = l_Lake_joinRelative(v___x_4215_, v___x_4216_);
lean_inc(v_name_4196_);
v___x_4218_ = l_Lean_modToFilePath(v___x_4217_, v_name_4196_, v___x_4213_);
lean_dec_ref(v___x_4217_);
v___x_4219_ = l_Lake_relPathFrom(v_dir_4199_, v___x_4218_);
lean_dec_ref(v_dir_4199_);
v___x_4220_ = l___private_Lake_Build_Module_0__Lake_fetchImportInfo___redArg(v___x_4219_, v_name_4196_, v_a_4209_, v___y_4187_, v___y_4188_, v___y_4189_, v___y_4190_, v___y_4191_, v_a_4210_);
lean_dec(v_a_4209_);
return v___x_4220_;
}
else
{
lean_object* v_a_4221_; lean_object* v_a_4222_; lean_object* v___x_4224_; uint8_t v_isShared_4225_; uint8_t v_isSharedCheck_4229_; 
lean_dec_ref(v_config_4200_);
lean_dec_ref(v_dir_4199_);
lean_dec(v_config_4197_);
lean_dec(v_name_4196_);
lean_dec_ref(v___y_4191_);
lean_dec(v___y_4190_);
lean_dec(v___y_4189_);
lean_dec(v___y_4188_);
lean_dec_ref(v___y_4187_);
v_a_4221_ = lean_ctor_get(v___x_4208_, 0);
v_a_4222_ = lean_ctor_get(v___x_4208_, 1);
v_isSharedCheck_4229_ = !lean_is_exclusive(v___x_4208_);
if (v_isSharedCheck_4229_ == 0)
{
v___x_4224_ = v___x_4208_;
v_isShared_4225_ = v_isSharedCheck_4229_;
goto v_resetjp_4223_;
}
else
{
lean_inc(v_a_4222_);
lean_inc(v_a_4221_);
lean_dec(v___x_4208_);
v___x_4224_ = lean_box(0);
v_isShared_4225_ = v_isSharedCheck_4229_;
goto v_resetjp_4223_;
}
v_resetjp_4223_:
{
lean_object* v___x_4227_; 
if (v_isShared_4225_ == 0)
{
v___x_4227_ = v___x_4224_;
goto v_reusejp_4226_;
}
else
{
lean_object* v_reuseFailAlloc_4228_; 
v_reuseFailAlloc_4228_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_4228_, 0, v_a_4221_);
lean_ctor_set(v_reuseFailAlloc_4228_, 1, v_a_4222_);
v___x_4227_ = v_reuseFailAlloc_4228_;
goto v_reusejp_4226_;
}
v_reusejp_4226_:
{
return v___x_4227_;
}
}
}
}
else
{
lean_object* v_a_4230_; lean_object* v_a_4231_; lean_object* v___x_4233_; uint8_t v_isShared_4234_; uint8_t v_isSharedCheck_4238_; 
lean_dec_ref(v_config_4200_);
lean_dec_ref(v_dir_4199_);
lean_dec(v_config_4197_);
lean_dec(v_name_4196_);
lean_dec_ref(v___y_4191_);
lean_dec(v___y_4190_);
lean_dec(v___y_4189_);
lean_dec(v___y_4188_);
lean_dec_ref(v___y_4187_);
v_a_4230_ = lean_ctor_get(v___x_4205_, 0);
v_a_4231_ = lean_ctor_get(v___x_4205_, 1);
v_isSharedCheck_4238_ = !lean_is_exclusive(v___x_4205_);
if (v_isSharedCheck_4238_ == 0)
{
v___x_4233_ = v___x_4205_;
v_isShared_4234_ = v_isSharedCheck_4238_;
goto v_resetjp_4232_;
}
else
{
lean_inc(v_a_4231_);
lean_inc(v_a_4230_);
lean_dec(v___x_4205_);
v___x_4233_ = lean_box(0);
v_isShared_4234_ = v_isSharedCheck_4238_;
goto v_resetjp_4232_;
}
v_resetjp_4232_:
{
lean_object* v___x_4236_; 
if (v_isShared_4234_ == 0)
{
v___x_4236_ = v___x_4233_;
goto v_reusejp_4235_;
}
else
{
lean_object* v_reuseFailAlloc_4237_; 
v_reuseFailAlloc_4237_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_4237_, 0, v_a_4230_);
lean_ctor_set(v_reuseFailAlloc_4237_, 1, v_a_4231_);
v___x_4236_ = v_reuseFailAlloc_4237_;
goto v_reusejp_4235_;
}
v_reusejp_4235_:
{
return v___x_4236_;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_importInfoFacetConfig___lam__0___boxed(lean_object* v_mod_4239_, lean_object* v___y_4240_, lean_object* v___y_4241_, lean_object* v___y_4242_, lean_object* v___y_4243_, lean_object* v___y_4244_, lean_object* v___y_4245_, lean_object* v___y_4246_){
_start:
{
lean_object* v_res_4247_; 
v_res_4247_ = l_Lake_Module_importInfoFacetConfig___lam__0(v_mod_4239_, v___y_4240_, v___y_4241_, v___y_4242_, v___y_4243_, v___y_4244_, v___y_4245_);
return v_res_4247_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_importInfoFacetConfig___lam__1(uint8_t v___y_4248_, lean_object* v___y_4249_){
_start:
{
lean_object* v___x_4250_; 
v___x_4250_ = l_Lake_formatQuery___at___00Lake_Module_importInfoFacetConfig_spec__0___redArg(v___y_4248_);
return v___x_4250_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_importInfoFacetConfig___lam__1___boxed(lean_object* v___y_4251_, lean_object* v___y_4252_){
_start:
{
uint8_t v___y_3670__boxed_4253_; lean_object* v_res_4254_; 
v___y_3670__boxed_4253_ = lean_unbox(v___y_4251_);
v_res_4254_ = l_Lake_Module_importInfoFacetConfig___lam__1(v___y_3670__boxed_4253_, v___y_4252_);
lean_dec_ref(v___y_4252_);
return v_res_4254_;
}
}
static lean_object* _init_l_Lake_Module_importInfoFacetConfig___closed__2(void){
_start:
{
lean_object* v___f_4257_; uint8_t v___x_4258_; lean_object* v___x_4259_; lean_object* v___f_4260_; lean_object* v___x_4261_; lean_object* v___x_4262_; 
v___f_4257_ = ((lean_object*)(l_Lake_Module_importInfoFacetConfig___closed__1));
v___x_4258_ = 1;
v___x_4259_ = lean_box(0);
v___f_4260_ = ((lean_object*)(l_Lake_Module_importInfoFacetConfig___closed__0));
v___x_4261_ = l_Lake_Module_keyword;
v___x_4262_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_4262_, 0, v___x_4261_);
lean_ctor_set(v___x_4262_, 1, v___f_4260_);
lean_ctor_set(v___x_4262_, 2, v___x_4259_);
lean_ctor_set(v___x_4262_, 3, v___f_4257_);
lean_ctor_set_uint8(v___x_4262_, sizeof(void*)*4, v___x_4258_);
lean_ctor_set_uint8(v___x_4262_, sizeof(void*)*4 + 1, v___x_4258_);
return v___x_4262_;
}
}
static lean_object* _init_l_Lake_Module_importInfoFacetConfig(void){
_start:
{
lean_object* v___x_4263_; 
v___x_4263_ = lean_obj_once(&l_Lake_Module_importInfoFacetConfig___closed__2, &l_Lake_Module_importInfoFacetConfig___closed__2_once, _init_l_Lake_Module_importInfoFacetConfig___closed__2);
return v___x_4263_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0(lean_object* v_keyName_4282_, lean_object* v_name_4283_, lean_object* v_mod_4284_, lean_object* v_arts_4285_, lean_object* v___y_4286_, lean_object* v___y_4287_, lean_object* v___y_4288_, lean_object* v___y_4289_, lean_object* v___y_4290_, lean_object* v___y_4291_){
_start:
{
lean_object* v_log_4293_; uint8_t v_action_4294_; uint8_t v_wantsRebuild_4295_; lean_object* v_trace_4296_; lean_object* v_buildTime_4297_; lean_object* v___x_4299_; uint8_t v_isShared_4300_; uint8_t v_isSharedCheck_4466_; 
v_log_4293_ = lean_ctor_get(v___y_4291_, 0);
v_action_4294_ = lean_ctor_get_uint8(v___y_4291_, sizeof(void*)*3);
v_wantsRebuild_4295_ = lean_ctor_get_uint8(v___y_4291_, sizeof(void*)*3 + 1);
v_trace_4296_ = lean_ctor_get(v___y_4291_, 1);
v_buildTime_4297_ = lean_ctor_get(v___y_4291_, 2);
v_isSharedCheck_4466_ = !lean_is_exclusive(v___y_4291_);
if (v_isSharedCheck_4466_ == 0)
{
v___x_4299_ = v___y_4291_;
v_isShared_4300_ = v_isSharedCheck_4466_;
goto v_resetjp_4298_;
}
else
{
lean_inc(v_buildTime_4297_);
lean_inc(v_trace_4296_);
lean_inc(v_log_4293_);
lean_dec(v___y_4291_);
v___x_4299_ = lean_box(0);
v_isShared_4300_ = v_isSharedCheck_4466_;
goto v_resetjp_4298_;
}
v_resetjp_4298_:
{
lean_object* v___x_4301_; lean_object* v___x_4302_; lean_object* v___x_4303_; lean_object* v___x_4304_; lean_object* v___x_4305_; 
v___x_4301_ = l_Lake_Module_inputFacet;
lean_inc(v_name_4283_);
v___x_4302_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_4302_, 0, v_keyName_4282_);
lean_ctor_set(v___x_4302_, 1, v_name_4283_);
v___x_4303_ = l_Lake_Module_keyword;
lean_inc_ref(v_mod_4284_);
lean_inc_ref(v___x_4302_);
v___x_4304_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_4304_, 0, v___x_4302_);
lean_ctor_set(v___x_4304_, 1, v___x_4303_);
lean_ctor_set(v___x_4304_, 2, v_mod_4284_);
lean_ctor_set(v___x_4304_, 3, v___x_4301_);
lean_inc_ref(v___y_4286_);
lean_inc_ref(v___y_4290_);
lean_inc(v___y_4289_);
lean_inc(v___y_4288_);
lean_inc(v___y_4287_);
v___x_4305_ = lean_apply_7(v___y_4286_, v___x_4304_, v___y_4287_, v___y_4288_, v___y_4289_, v___y_4290_, v_log_4293_, lean_box(0));
if (lean_obj_tag(v___x_4305_) == 0)
{
lean_object* v_a_4306_; lean_object* v_a_4307_; lean_object* v___x_4308_; 
v_a_4306_ = lean_ctor_get(v___x_4305_, 0);
lean_inc(v_a_4306_);
v_a_4307_ = lean_ctor_get(v___x_4305_, 1);
lean_inc(v_a_4307_);
lean_dec_ref(v___x_4305_);
v___x_4308_ = l_Lake_Job_await___redArg(v_a_4306_, v_a_4307_);
if (lean_obj_tag(v___x_4308_) == 0)
{
lean_object* v_a_4309_; lean_object* v_a_4310_; lean_object* v___x_4311_; lean_object* v___x_4312_; lean_object* v___x_4313_; 
v_a_4309_ = lean_ctor_get(v___x_4308_, 0);
lean_inc(v_a_4309_);
v_a_4310_ = lean_ctor_get(v___x_4308_, 1);
lean_inc(v_a_4310_);
lean_dec_ref(v___x_4308_);
v___x_4311_ = l_Lake_Module_importInfoFacet;
v___x_4312_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_4312_, 0, v___x_4302_);
lean_ctor_set(v___x_4312_, 1, v___x_4303_);
lean_ctor_set(v___x_4312_, 2, v_mod_4284_);
lean_ctor_set(v___x_4312_, 3, v___x_4311_);
v___x_4313_ = lean_apply_7(v___y_4286_, v___x_4312_, v___y_4287_, v___y_4288_, v___y_4289_, v___y_4290_, v_a_4310_, lean_box(0));
if (lean_obj_tag(v___x_4313_) == 0)
{
lean_object* v_a_4314_; lean_object* v_a_4315_; lean_object* v___x_4316_; 
v_a_4314_ = lean_ctor_get(v___x_4313_, 0);
lean_inc(v_a_4314_);
v_a_4315_ = lean_ctor_get(v___x_4313_, 1);
lean_inc(v_a_4315_);
lean_dec_ref(v___x_4313_);
v___x_4316_ = l_Lake_Job_await___redArg(v_a_4314_, v_a_4315_);
if (lean_obj_tag(v___x_4316_) == 0)
{
lean_object* v_header_4317_; lean_object* v_a_4318_; lean_object* v_a_4319_; lean_object* v___x_4321_; uint8_t v_isShared_4322_; uint8_t v_isSharedCheck_4417_; 
v_header_4317_ = lean_ctor_get(v_a_4309_, 2);
lean_inc_ref(v_header_4317_);
v_a_4318_ = lean_ctor_get(v___x_4316_, 0);
v_a_4319_ = lean_ctor_get(v___x_4316_, 1);
v_isSharedCheck_4417_ = !lean_is_exclusive(v___x_4316_);
if (v_isSharedCheck_4417_ == 0)
{
v___x_4321_ = v___x_4316_;
v_isShared_4322_ = v_isSharedCheck_4417_;
goto v_resetjp_4320_;
}
else
{
lean_inc(v_a_4319_);
lean_inc(v_a_4318_);
lean_dec(v___x_4316_);
v___x_4321_ = lean_box(0);
v_isShared_4322_ = v_isSharedCheck_4417_;
goto v_resetjp_4320_;
}
v_resetjp_4320_:
{
lean_object* v_olean_4323_; lean_object* v_oleanServer_x3f_4324_; lean_object* v_oleanPrivate_x3f_4325_; lean_object* v_ir_x3f_4326_; lean_object* v_trace_4327_; uint8_t v_isModule_4328_; uint8_t v___x_4329_; lean_object* v___x_4330_; lean_object* v___x_4331_; lean_object* v___x_4332_; lean_object* v___x_4333_; lean_object* v___x_4334_; lean_object* v___x_4336_; 
v_olean_4323_ = lean_ctor_get(v_arts_4285_, 0);
lean_inc_ref(v_olean_4323_);
v_oleanServer_x3f_4324_ = lean_ctor_get(v_arts_4285_, 1);
lean_inc(v_oleanServer_x3f_4324_);
v_oleanPrivate_x3f_4325_ = lean_ctor_get(v_arts_4285_, 2);
lean_inc(v_oleanPrivate_x3f_4325_);
v_ir_x3f_4326_ = lean_ctor_get(v_arts_4285_, 4);
lean_inc(v_ir_x3f_4326_);
lean_dec_ref(v_arts_4285_);
v_trace_4327_ = lean_ctor_get(v_a_4309_, 1);
lean_inc_ref(v_trace_4327_);
lean_dec(v_a_4309_);
v_isModule_4328_ = lean_ctor_get_uint8(v_header_4317_, sizeof(void*)*1);
lean_dec_ref(v_header_4317_);
v___x_4329_ = 1;
v___x_4330_ = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(v_name_4283_, v___x_4329_);
v___x_4331_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__0));
lean_inc_ref(v___x_4330_);
v___x_4332_ = lean_string_append(v___x_4330_, v___x_4331_);
v___x_4333_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__1));
lean_inc_ref(v___x_4330_);
v___x_4334_ = lean_string_append(v___x_4330_, v___x_4333_);
lean_inc(v_buildTime_4297_);
lean_inc_ref(v_trace_4296_);
lean_inc(v_a_4319_);
if (v_isShared_4300_ == 0)
{
lean_ctor_set(v___x_4299_, 0, v_a_4319_);
v___x_4336_ = v___x_4299_;
goto v_reusejp_4335_;
}
else
{
lean_object* v_reuseFailAlloc_4416_; 
v_reuseFailAlloc_4416_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_4416_, 0, v_a_4319_);
lean_ctor_set(v_reuseFailAlloc_4416_, 1, v_trace_4296_);
lean_ctor_set(v_reuseFailAlloc_4416_, 2, v_buildTime_4297_);
lean_ctor_set_uint8(v_reuseFailAlloc_4416_, sizeof(void*)*3, v_action_4294_);
lean_ctor_set_uint8(v_reuseFailAlloc_4416_, sizeof(void*)*3 + 1, v_wantsRebuild_4295_);
v___x_4336_ = v_reuseFailAlloc_4416_;
goto v_reusejp_4335_;
}
v_reusejp_4335_:
{
lean_object* v___x_4337_; lean_object* v___x_4338_; lean_object* v___x_4339_; lean_object* v___x_4340_; lean_object* v___x_4341_; 
v___x_4337_ = l_Lake_BuildTrace_nil(v___x_4332_);
v___x_4338_ = l_Lake_BuildTrace_nil(v___x_4334_);
v___x_4339_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__2));
v___x_4340_ = lean_string_append(v___x_4330_, v___x_4339_);
v___x_4341_ = l_Lake_BuildTrace_nil(v___x_4340_);
if (v_isModule_4328_ == 0)
{
lean_object* v_path_4342_; lean_object* v_transTrace_4343_; lean_object* v_metaTransTrace_4344_; lean_object* v_allTransTrace_4345_; lean_object* v_legacyTransTrace_4346_; lean_object* v___x_4347_; lean_object* v___x_4348_; lean_object* v___x_4349_; lean_object* v___x_4350_; lean_object* v___x_4351_; lean_object* v___x_4352_; lean_object* v___x_4353_; lean_object* v___x_4354_; lean_object* v___x_4356_; 
lean_dec(v_ir_x3f_4326_);
lean_dec(v_oleanPrivate_x3f_4325_);
lean_dec(v_oleanServer_x3f_4324_);
lean_dec(v_a_4319_);
lean_dec(v_buildTime_4297_);
lean_dec_ref(v_trace_4296_);
v_path_4342_ = lean_ctor_get(v_olean_4323_, 1);
lean_inc_ref(v_path_4342_);
v_transTrace_4343_ = lean_ctor_get(v_a_4318_, 2);
lean_inc_ref(v_transTrace_4343_);
v_metaTransTrace_4344_ = lean_ctor_get(v_a_4318_, 3);
lean_inc_ref(v_metaTransTrace_4344_);
v_allTransTrace_4345_ = lean_ctor_get(v_a_4318_, 4);
lean_inc_ref(v_allTransTrace_4345_);
v_legacyTransTrace_4346_ = lean_ctor_get(v_a_4318_, 5);
lean_inc_ref(v_legacyTransTrace_4346_);
lean_dec(v_a_4318_);
v___x_4347_ = l_Lake_Artifact_trace(v_olean_4323_);
lean_dec_ref(v_olean_4323_);
lean_inc_ref(v___x_4347_);
v___x_4348_ = l_Lake_BuildTrace_mix(v___x_4337_, v___x_4347_);
lean_inc_ref(v___x_4347_);
v___x_4349_ = l_Lake_BuildTrace_mix(v___x_4338_, v___x_4347_);
v___x_4350_ = lean_unsigned_to_nat(1u);
v___x_4351_ = lean_mk_empty_array_with_capacity(v___x_4350_);
v___x_4352_ = lean_array_push(v___x_4351_, v_path_4342_);
v___x_4353_ = l_Lake_BuildTrace_mix(v___x_4341_, v___x_4347_);
lean_inc_ref(v___x_4352_);
v___x_4354_ = lean_alloc_ctor(0, 10, 0);
lean_ctor_set(v___x_4354_, 0, v_trace_4327_);
lean_ctor_set(v___x_4354_, 1, v___x_4352_);
lean_ctor_set(v___x_4354_, 2, v___x_4348_);
lean_ctor_set(v___x_4354_, 3, v___x_4349_);
lean_ctor_set(v___x_4354_, 4, v___x_4352_);
lean_ctor_set(v___x_4354_, 5, v___x_4353_);
lean_ctor_set(v___x_4354_, 6, v_transTrace_4343_);
lean_ctor_set(v___x_4354_, 7, v_metaTransTrace_4344_);
lean_ctor_set(v___x_4354_, 8, v_allTransTrace_4345_);
lean_ctor_set(v___x_4354_, 9, v_legacyTransTrace_4346_);
if (v_isShared_4322_ == 0)
{
lean_ctor_set(v___x_4321_, 1, v___x_4336_);
lean_ctor_set(v___x_4321_, 0, v___x_4354_);
v___x_4356_ = v___x_4321_;
goto v_reusejp_4355_;
}
else
{
lean_object* v_reuseFailAlloc_4357_; 
v_reuseFailAlloc_4357_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_4357_, 0, v___x_4354_);
lean_ctor_set(v_reuseFailAlloc_4357_, 1, v___x_4336_);
v___x_4356_ = v_reuseFailAlloc_4357_;
goto v_reusejp_4355_;
}
v_reusejp_4355_:
{
return v___x_4356_;
}
}
else
{
if (lean_obj_tag(v_oleanServer_x3f_4324_) == 1)
{
if (lean_obj_tag(v_ir_x3f_4326_) == 1)
{
if (lean_obj_tag(v_oleanPrivate_x3f_4325_) == 1)
{
lean_object* v_val_4358_; lean_object* v_val_4359_; lean_object* v_val_4360_; lean_object* v_path_4361_; lean_object* v_path_4362_; lean_object* v_path_4363_; lean_object* v_path_4364_; lean_object* v_transTrace_4365_; lean_object* v_metaTransTrace_4366_; lean_object* v_allTransTrace_4367_; lean_object* v_legacyTransTrace_4368_; lean_object* v___x_4369_; lean_object* v___x_4370_; lean_object* v___x_4371_; lean_object* v___x_4372_; lean_object* v___x_4373_; lean_object* v___x_4374_; lean_object* v___x_4375_; lean_object* v___x_4376_; lean_object* v___x_4377_; lean_object* v___x_4378_; lean_object* v___x_4379_; lean_object* v___x_4380_; lean_object* v___x_4381_; lean_object* v___x_4382_; lean_object* v___x_4383_; lean_object* v___x_4384_; lean_object* v___x_4385_; lean_object* v___x_4386_; lean_object* v___x_4387_; lean_object* v___x_4388_; lean_object* v___x_4389_; lean_object* v___x_4390_; lean_object* v___x_4391_; lean_object* v___x_4393_; 
lean_dec(v_a_4319_);
lean_dec(v_buildTime_4297_);
lean_dec_ref(v_trace_4296_);
v_val_4358_ = lean_ctor_get(v_ir_x3f_4326_, 0);
lean_inc(v_val_4358_);
lean_dec_ref(v_ir_x3f_4326_);
v_val_4359_ = lean_ctor_get(v_oleanServer_x3f_4324_, 0);
lean_inc(v_val_4359_);
lean_dec_ref(v_oleanServer_x3f_4324_);
v_val_4360_ = lean_ctor_get(v_oleanPrivate_x3f_4325_, 0);
lean_inc(v_val_4360_);
lean_dec_ref(v_oleanPrivate_x3f_4325_);
v_path_4361_ = lean_ctor_get(v_olean_4323_, 1);
lean_inc_ref(v_path_4361_);
v_path_4362_ = lean_ctor_get(v_val_4358_, 1);
lean_inc_ref(v_path_4362_);
v_path_4363_ = lean_ctor_get(v_val_4359_, 1);
v_path_4364_ = lean_ctor_get(v_val_4360_, 1);
v_transTrace_4365_ = lean_ctor_get(v_a_4318_, 2);
lean_inc_ref(v_transTrace_4365_);
v_metaTransTrace_4366_ = lean_ctor_get(v_a_4318_, 3);
lean_inc_ref(v_metaTransTrace_4366_);
v_allTransTrace_4367_ = lean_ctor_get(v_a_4318_, 4);
lean_inc_ref(v_allTransTrace_4367_);
v_legacyTransTrace_4368_ = lean_ctor_get(v_a_4318_, 5);
lean_inc_ref(v_legacyTransTrace_4368_);
lean_dec(v_a_4318_);
v___x_4369_ = l_Lake_Artifact_trace(v_olean_4323_);
lean_dec_ref(v_olean_4323_);
lean_inc_ref(v___x_4369_);
v___x_4370_ = l_Lake_BuildTrace_mix(v___x_4337_, v___x_4369_);
v___x_4371_ = lean_unsigned_to_nat(3u);
v___x_4372_ = lean_mk_empty_array_with_capacity(v___x_4371_);
lean_inc_ref(v_path_4361_);
v___x_4373_ = lean_array_push(v___x_4372_, v_path_4361_);
lean_inc_ref(v_path_4362_);
v___x_4374_ = lean_array_push(v___x_4373_, v_path_4362_);
lean_inc_ref(v_path_4363_);
v___x_4375_ = lean_array_push(v___x_4374_, v_path_4363_);
lean_inc_ref(v___x_4369_);
v___x_4376_ = l_Lake_BuildTrace_mix(v___x_4338_, v___x_4369_);
v___x_4377_ = l_Lake_Artifact_trace(v_val_4358_);
lean_dec(v_val_4358_);
lean_inc_ref(v___x_4377_);
v___x_4378_ = l_Lake_BuildTrace_mix(v___x_4376_, v___x_4377_);
v___x_4379_ = lean_unsigned_to_nat(4u);
v___x_4380_ = lean_mk_empty_array_with_capacity(v___x_4379_);
v___x_4381_ = lean_array_push(v___x_4380_, v_path_4361_);
v___x_4382_ = lean_array_push(v___x_4381_, v_path_4362_);
lean_inc_ref(v_path_4363_);
v___x_4383_ = lean_array_push(v___x_4382_, v_path_4363_);
lean_inc_ref(v_path_4364_);
v___x_4384_ = lean_array_push(v___x_4383_, v_path_4364_);
v___x_4385_ = l_Lake_BuildTrace_mix(v___x_4341_, v___x_4369_);
v___x_4386_ = l_Lake_BuildTrace_mix(v___x_4385_, v___x_4377_);
v___x_4387_ = l_Lake_Artifact_trace(v_val_4359_);
lean_dec(v_val_4359_);
v___x_4388_ = l_Lake_BuildTrace_mix(v___x_4386_, v___x_4387_);
v___x_4389_ = l_Lake_Artifact_trace(v_val_4360_);
lean_dec(v_val_4360_);
v___x_4390_ = l_Lake_BuildTrace_mix(v___x_4388_, v___x_4389_);
v___x_4391_ = lean_alloc_ctor(0, 10, 0);
lean_ctor_set(v___x_4391_, 0, v_trace_4327_);
lean_ctor_set(v___x_4391_, 1, v___x_4375_);
lean_ctor_set(v___x_4391_, 2, v___x_4370_);
lean_ctor_set(v___x_4391_, 3, v___x_4378_);
lean_ctor_set(v___x_4391_, 4, v___x_4384_);
lean_ctor_set(v___x_4391_, 5, v___x_4390_);
lean_ctor_set(v___x_4391_, 6, v_transTrace_4365_);
lean_ctor_set(v___x_4391_, 7, v_metaTransTrace_4366_);
lean_ctor_set(v___x_4391_, 8, v_allTransTrace_4367_);
lean_ctor_set(v___x_4391_, 9, v_legacyTransTrace_4368_);
if (v_isShared_4322_ == 0)
{
lean_ctor_set(v___x_4321_, 1, v___x_4336_);
lean_ctor_set(v___x_4321_, 0, v___x_4391_);
v___x_4393_ = v___x_4321_;
goto v_reusejp_4392_;
}
else
{
lean_object* v_reuseFailAlloc_4394_; 
v_reuseFailAlloc_4394_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_4394_, 0, v___x_4391_);
lean_ctor_set(v_reuseFailAlloc_4394_, 1, v___x_4336_);
v___x_4393_ = v_reuseFailAlloc_4394_;
goto v_reusejp_4392_;
}
v_reusejp_4392_:
{
return v___x_4393_;
}
}
else
{
lean_object* v___x_4395_; lean_object* v___x_4396_; lean_object* v___x_4397_; lean_object* v___x_4398_; lean_object* v___x_4400_; 
lean_dec_ref(v_ir_x3f_4326_);
lean_dec_ref(v_oleanServer_x3f_4324_);
lean_dec_ref(v___x_4341_);
lean_dec_ref(v___x_4338_);
lean_dec_ref(v___x_4337_);
lean_dec_ref(v___x_4336_);
lean_dec_ref(v_trace_4327_);
lean_dec(v_oleanPrivate_x3f_4325_);
lean_dec_ref(v_olean_4323_);
lean_dec(v_a_4318_);
v___x_4395_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__3));
v___x_4396_ = lean_array_get_size(v_a_4319_);
v___x_4397_ = lean_array_push(v_a_4319_, v___x_4395_);
v___x_4398_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v___x_4398_, 0, v___x_4397_);
lean_ctor_set(v___x_4398_, 1, v_trace_4296_);
lean_ctor_set(v___x_4398_, 2, v_buildTime_4297_);
lean_ctor_set_uint8(v___x_4398_, sizeof(void*)*3, v_action_4294_);
lean_ctor_set_uint8(v___x_4398_, sizeof(void*)*3 + 1, v_wantsRebuild_4295_);
if (v_isShared_4322_ == 0)
{
lean_ctor_set_tag(v___x_4321_, 1);
lean_ctor_set(v___x_4321_, 1, v___x_4398_);
lean_ctor_set(v___x_4321_, 0, v___x_4396_);
v___x_4400_ = v___x_4321_;
goto v_reusejp_4399_;
}
else
{
lean_object* v_reuseFailAlloc_4401_; 
v_reuseFailAlloc_4401_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_4401_, 0, v___x_4396_);
lean_ctor_set(v_reuseFailAlloc_4401_, 1, v___x_4398_);
v___x_4400_ = v_reuseFailAlloc_4401_;
goto v_reusejp_4399_;
}
v_reusejp_4399_:
{
return v___x_4400_;
}
}
}
else
{
lean_object* v___x_4402_; lean_object* v___x_4403_; lean_object* v___x_4404_; lean_object* v___x_4405_; lean_object* v___x_4407_; 
lean_dec_ref(v_oleanServer_x3f_4324_);
lean_dec_ref(v___x_4341_);
lean_dec_ref(v___x_4338_);
lean_dec_ref(v___x_4337_);
lean_dec_ref(v___x_4336_);
lean_dec_ref(v_trace_4327_);
lean_dec(v_ir_x3f_4326_);
lean_dec(v_oleanPrivate_x3f_4325_);
lean_dec_ref(v_olean_4323_);
lean_dec(v_a_4318_);
v___x_4402_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__4));
v___x_4403_ = lean_array_get_size(v_a_4319_);
v___x_4404_ = lean_array_push(v_a_4319_, v___x_4402_);
v___x_4405_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v___x_4405_, 0, v___x_4404_);
lean_ctor_set(v___x_4405_, 1, v_trace_4296_);
lean_ctor_set(v___x_4405_, 2, v_buildTime_4297_);
lean_ctor_set_uint8(v___x_4405_, sizeof(void*)*3, v_action_4294_);
lean_ctor_set_uint8(v___x_4405_, sizeof(void*)*3 + 1, v_wantsRebuild_4295_);
if (v_isShared_4322_ == 0)
{
lean_ctor_set_tag(v___x_4321_, 1);
lean_ctor_set(v___x_4321_, 1, v___x_4405_);
lean_ctor_set(v___x_4321_, 0, v___x_4403_);
v___x_4407_ = v___x_4321_;
goto v_reusejp_4406_;
}
else
{
lean_object* v_reuseFailAlloc_4408_; 
v_reuseFailAlloc_4408_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_4408_, 0, v___x_4403_);
lean_ctor_set(v_reuseFailAlloc_4408_, 1, v___x_4405_);
v___x_4407_ = v_reuseFailAlloc_4408_;
goto v_reusejp_4406_;
}
v_reusejp_4406_:
{
return v___x_4407_;
}
}
}
else
{
lean_object* v___x_4409_; lean_object* v___x_4410_; lean_object* v___x_4411_; lean_object* v___x_4412_; lean_object* v___x_4414_; 
lean_dec_ref(v___x_4341_);
lean_dec_ref(v___x_4338_);
lean_dec_ref(v___x_4337_);
lean_dec_ref(v___x_4336_);
lean_dec_ref(v_trace_4327_);
lean_dec(v_ir_x3f_4326_);
lean_dec(v_oleanPrivate_x3f_4325_);
lean_dec(v_oleanServer_x3f_4324_);
lean_dec_ref(v_olean_4323_);
lean_dec(v_a_4318_);
v___x_4409_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__5));
v___x_4410_ = lean_array_get_size(v_a_4319_);
v___x_4411_ = lean_array_push(v_a_4319_, v___x_4409_);
v___x_4412_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v___x_4412_, 0, v___x_4411_);
lean_ctor_set(v___x_4412_, 1, v_trace_4296_);
lean_ctor_set(v___x_4412_, 2, v_buildTime_4297_);
lean_ctor_set_uint8(v___x_4412_, sizeof(void*)*3, v_action_4294_);
lean_ctor_set_uint8(v___x_4412_, sizeof(void*)*3 + 1, v_wantsRebuild_4295_);
if (v_isShared_4322_ == 0)
{
lean_ctor_set_tag(v___x_4321_, 1);
lean_ctor_set(v___x_4321_, 1, v___x_4412_);
lean_ctor_set(v___x_4321_, 0, v___x_4410_);
v___x_4414_ = v___x_4321_;
goto v_reusejp_4413_;
}
else
{
lean_object* v_reuseFailAlloc_4415_; 
v_reuseFailAlloc_4415_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_4415_, 0, v___x_4410_);
lean_ctor_set(v_reuseFailAlloc_4415_, 1, v___x_4412_);
v___x_4414_ = v_reuseFailAlloc_4415_;
goto v_reusejp_4413_;
}
v_reusejp_4413_:
{
return v___x_4414_;
}
}
}
}
}
}
else
{
lean_object* v_a_4418_; lean_object* v_a_4419_; lean_object* v___x_4421_; uint8_t v_isShared_4422_; uint8_t v_isSharedCheck_4429_; 
lean_dec(v_a_4309_);
lean_dec_ref(v_arts_4285_);
lean_dec(v_name_4283_);
v_a_4418_ = lean_ctor_get(v___x_4316_, 0);
v_a_4419_ = lean_ctor_get(v___x_4316_, 1);
v_isSharedCheck_4429_ = !lean_is_exclusive(v___x_4316_);
if (v_isSharedCheck_4429_ == 0)
{
v___x_4421_ = v___x_4316_;
v_isShared_4422_ = v_isSharedCheck_4429_;
goto v_resetjp_4420_;
}
else
{
lean_inc(v_a_4419_);
lean_inc(v_a_4418_);
lean_dec(v___x_4316_);
v___x_4421_ = lean_box(0);
v_isShared_4422_ = v_isSharedCheck_4429_;
goto v_resetjp_4420_;
}
v_resetjp_4420_:
{
lean_object* v___x_4424_; 
if (v_isShared_4300_ == 0)
{
lean_ctor_set(v___x_4299_, 0, v_a_4419_);
v___x_4424_ = v___x_4299_;
goto v_reusejp_4423_;
}
else
{
lean_object* v_reuseFailAlloc_4428_; 
v_reuseFailAlloc_4428_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_4428_, 0, v_a_4419_);
lean_ctor_set(v_reuseFailAlloc_4428_, 1, v_trace_4296_);
lean_ctor_set(v_reuseFailAlloc_4428_, 2, v_buildTime_4297_);
lean_ctor_set_uint8(v_reuseFailAlloc_4428_, sizeof(void*)*3, v_action_4294_);
lean_ctor_set_uint8(v_reuseFailAlloc_4428_, sizeof(void*)*3 + 1, v_wantsRebuild_4295_);
v___x_4424_ = v_reuseFailAlloc_4428_;
goto v_reusejp_4423_;
}
v_reusejp_4423_:
{
lean_object* v___x_4426_; 
if (v_isShared_4422_ == 0)
{
lean_ctor_set(v___x_4421_, 1, v___x_4424_);
v___x_4426_ = v___x_4421_;
goto v_reusejp_4425_;
}
else
{
lean_object* v_reuseFailAlloc_4427_; 
v_reuseFailAlloc_4427_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_4427_, 0, v_a_4418_);
lean_ctor_set(v_reuseFailAlloc_4427_, 1, v___x_4424_);
v___x_4426_ = v_reuseFailAlloc_4427_;
goto v_reusejp_4425_;
}
v_reusejp_4425_:
{
return v___x_4426_;
}
}
}
}
}
else
{
lean_object* v_a_4430_; lean_object* v_a_4431_; lean_object* v___x_4433_; uint8_t v_isShared_4434_; uint8_t v_isSharedCheck_4441_; 
lean_dec(v_a_4309_);
lean_dec_ref(v_arts_4285_);
lean_dec(v_name_4283_);
v_a_4430_ = lean_ctor_get(v___x_4313_, 0);
v_a_4431_ = lean_ctor_get(v___x_4313_, 1);
v_isSharedCheck_4441_ = !lean_is_exclusive(v___x_4313_);
if (v_isSharedCheck_4441_ == 0)
{
v___x_4433_ = v___x_4313_;
v_isShared_4434_ = v_isSharedCheck_4441_;
goto v_resetjp_4432_;
}
else
{
lean_inc(v_a_4431_);
lean_inc(v_a_4430_);
lean_dec(v___x_4313_);
v___x_4433_ = lean_box(0);
v_isShared_4434_ = v_isSharedCheck_4441_;
goto v_resetjp_4432_;
}
v_resetjp_4432_:
{
lean_object* v___x_4436_; 
if (v_isShared_4300_ == 0)
{
lean_ctor_set(v___x_4299_, 0, v_a_4431_);
v___x_4436_ = v___x_4299_;
goto v_reusejp_4435_;
}
else
{
lean_object* v_reuseFailAlloc_4440_; 
v_reuseFailAlloc_4440_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_4440_, 0, v_a_4431_);
lean_ctor_set(v_reuseFailAlloc_4440_, 1, v_trace_4296_);
lean_ctor_set(v_reuseFailAlloc_4440_, 2, v_buildTime_4297_);
lean_ctor_set_uint8(v_reuseFailAlloc_4440_, sizeof(void*)*3, v_action_4294_);
lean_ctor_set_uint8(v_reuseFailAlloc_4440_, sizeof(void*)*3 + 1, v_wantsRebuild_4295_);
v___x_4436_ = v_reuseFailAlloc_4440_;
goto v_reusejp_4435_;
}
v_reusejp_4435_:
{
lean_object* v___x_4438_; 
if (v_isShared_4434_ == 0)
{
lean_ctor_set(v___x_4433_, 1, v___x_4436_);
v___x_4438_ = v___x_4433_;
goto v_reusejp_4437_;
}
else
{
lean_object* v_reuseFailAlloc_4439_; 
v_reuseFailAlloc_4439_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_4439_, 0, v_a_4430_);
lean_ctor_set(v_reuseFailAlloc_4439_, 1, v___x_4436_);
v___x_4438_ = v_reuseFailAlloc_4439_;
goto v_reusejp_4437_;
}
v_reusejp_4437_:
{
return v___x_4438_;
}
}
}
}
}
else
{
lean_object* v_a_4442_; lean_object* v_a_4443_; lean_object* v___x_4445_; uint8_t v_isShared_4446_; uint8_t v_isSharedCheck_4453_; 
lean_dec_ref(v___x_4302_);
lean_dec_ref(v___y_4290_);
lean_dec(v___y_4289_);
lean_dec(v___y_4288_);
lean_dec(v___y_4287_);
lean_dec_ref(v___y_4286_);
lean_dec_ref(v_arts_4285_);
lean_dec_ref(v_mod_4284_);
lean_dec(v_name_4283_);
v_a_4442_ = lean_ctor_get(v___x_4308_, 0);
v_a_4443_ = lean_ctor_get(v___x_4308_, 1);
v_isSharedCheck_4453_ = !lean_is_exclusive(v___x_4308_);
if (v_isSharedCheck_4453_ == 0)
{
v___x_4445_ = v___x_4308_;
v_isShared_4446_ = v_isSharedCheck_4453_;
goto v_resetjp_4444_;
}
else
{
lean_inc(v_a_4443_);
lean_inc(v_a_4442_);
lean_dec(v___x_4308_);
v___x_4445_ = lean_box(0);
v_isShared_4446_ = v_isSharedCheck_4453_;
goto v_resetjp_4444_;
}
v_resetjp_4444_:
{
lean_object* v___x_4448_; 
if (v_isShared_4300_ == 0)
{
lean_ctor_set(v___x_4299_, 0, v_a_4443_);
v___x_4448_ = v___x_4299_;
goto v_reusejp_4447_;
}
else
{
lean_object* v_reuseFailAlloc_4452_; 
v_reuseFailAlloc_4452_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_4452_, 0, v_a_4443_);
lean_ctor_set(v_reuseFailAlloc_4452_, 1, v_trace_4296_);
lean_ctor_set(v_reuseFailAlloc_4452_, 2, v_buildTime_4297_);
lean_ctor_set_uint8(v_reuseFailAlloc_4452_, sizeof(void*)*3, v_action_4294_);
lean_ctor_set_uint8(v_reuseFailAlloc_4452_, sizeof(void*)*3 + 1, v_wantsRebuild_4295_);
v___x_4448_ = v_reuseFailAlloc_4452_;
goto v_reusejp_4447_;
}
v_reusejp_4447_:
{
lean_object* v___x_4450_; 
if (v_isShared_4446_ == 0)
{
lean_ctor_set(v___x_4445_, 1, v___x_4448_);
v___x_4450_ = v___x_4445_;
goto v_reusejp_4449_;
}
else
{
lean_object* v_reuseFailAlloc_4451_; 
v_reuseFailAlloc_4451_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_4451_, 0, v_a_4442_);
lean_ctor_set(v_reuseFailAlloc_4451_, 1, v___x_4448_);
v___x_4450_ = v_reuseFailAlloc_4451_;
goto v_reusejp_4449_;
}
v_reusejp_4449_:
{
return v___x_4450_;
}
}
}
}
}
else
{
lean_object* v_a_4454_; lean_object* v_a_4455_; lean_object* v___x_4457_; uint8_t v_isShared_4458_; uint8_t v_isSharedCheck_4465_; 
lean_dec_ref(v___x_4302_);
lean_dec_ref(v___y_4290_);
lean_dec(v___y_4289_);
lean_dec(v___y_4288_);
lean_dec(v___y_4287_);
lean_dec_ref(v___y_4286_);
lean_dec_ref(v_arts_4285_);
lean_dec_ref(v_mod_4284_);
lean_dec(v_name_4283_);
v_a_4454_ = lean_ctor_get(v___x_4305_, 0);
v_a_4455_ = lean_ctor_get(v___x_4305_, 1);
v_isSharedCheck_4465_ = !lean_is_exclusive(v___x_4305_);
if (v_isSharedCheck_4465_ == 0)
{
v___x_4457_ = v___x_4305_;
v_isShared_4458_ = v_isSharedCheck_4465_;
goto v_resetjp_4456_;
}
else
{
lean_inc(v_a_4455_);
lean_inc(v_a_4454_);
lean_dec(v___x_4305_);
v___x_4457_ = lean_box(0);
v_isShared_4458_ = v_isSharedCheck_4465_;
goto v_resetjp_4456_;
}
v_resetjp_4456_:
{
lean_object* v___x_4460_; 
if (v_isShared_4300_ == 0)
{
lean_ctor_set(v___x_4299_, 0, v_a_4455_);
v___x_4460_ = v___x_4299_;
goto v_reusejp_4459_;
}
else
{
lean_object* v_reuseFailAlloc_4464_; 
v_reuseFailAlloc_4464_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_4464_, 0, v_a_4455_);
lean_ctor_set(v_reuseFailAlloc_4464_, 1, v_trace_4296_);
lean_ctor_set(v_reuseFailAlloc_4464_, 2, v_buildTime_4297_);
lean_ctor_set_uint8(v_reuseFailAlloc_4464_, sizeof(void*)*3, v_action_4294_);
lean_ctor_set_uint8(v_reuseFailAlloc_4464_, sizeof(void*)*3 + 1, v_wantsRebuild_4295_);
v___x_4460_ = v_reuseFailAlloc_4464_;
goto v_reusejp_4459_;
}
v_reusejp_4459_:
{
lean_object* v___x_4462_; 
if (v_isShared_4458_ == 0)
{
lean_ctor_set(v___x_4457_, 1, v___x_4460_);
v___x_4462_ = v___x_4457_;
goto v_reusejp_4461_;
}
else
{
lean_object* v_reuseFailAlloc_4463_; 
v_reuseFailAlloc_4463_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_4463_, 0, v_a_4454_);
lean_ctor_set(v_reuseFailAlloc_4463_, 1, v___x_4460_);
v___x_4462_ = v_reuseFailAlloc_4463_;
goto v_reusejp_4461_;
}
v_reusejp_4461_:
{
return v___x_4462_;
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___boxed(lean_object* v_keyName_4467_, lean_object* v_name_4468_, lean_object* v_mod_4469_, lean_object* v_arts_4470_, lean_object* v___y_4471_, lean_object* v___y_4472_, lean_object* v___y_4473_, lean_object* v___y_4474_, lean_object* v___y_4475_, lean_object* v___y_4476_, lean_object* v___y_4477_){
_start:
{
lean_object* v_res_4478_; 
v_res_4478_ = l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0(v_keyName_4467_, v_name_4468_, v_mod_4469_, v_arts_4470_, v___y_4471_, v___y_4472_, v___y_4473_, v___y_4474_, v___y_4475_, v___y_4476_);
return v_res_4478_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo(lean_object* v_mod_4479_, lean_object* v_a_4480_, lean_object* v_a_4481_, lean_object* v_a_4482_, lean_object* v_a_4483_, lean_object* v_a_4484_, lean_object* v_a_4485_){
_start:
{
lean_object* v_lib_4487_; lean_object* v_pkg_4488_; lean_object* v_name_4489_; lean_object* v_keyName_4490_; lean_object* v___x_4491_; lean_object* v___x_4492_; lean_object* v___x_4493_; lean_object* v___x_4494_; lean_object* v___x_4495_; 
v_lib_4487_ = lean_ctor_get(v_mod_4479_, 0);
v_pkg_4488_ = lean_ctor_get(v_lib_4487_, 0);
v_name_4489_ = lean_ctor_get(v_mod_4479_, 1);
lean_inc(v_name_4489_);
v_keyName_4490_ = lean_ctor_get(v_pkg_4488_, 2);
lean_inc(v_keyName_4490_);
v___x_4491_ = l_Lake_Module_leanArtsFacet;
lean_inc(v_name_4489_);
lean_inc(v_keyName_4490_);
v___x_4492_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_4492_, 0, v_keyName_4490_);
lean_ctor_set(v___x_4492_, 1, v_name_4489_);
v___x_4493_ = l_Lake_Module_keyword;
lean_inc_ref(v_mod_4479_);
v___x_4494_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_4494_, 0, v___x_4492_);
lean_ctor_set(v___x_4494_, 1, v___x_4493_);
lean_ctor_set(v___x_4494_, 2, v_mod_4479_);
lean_ctor_set(v___x_4494_, 3, v___x_4491_);
lean_inc_ref(v_a_4480_);
lean_inc_ref(v_a_4484_);
lean_inc(v_a_4483_);
lean_inc(v_a_4482_);
lean_inc(v_a_4481_);
v___x_4495_ = lean_apply_7(v_a_4480_, v___x_4494_, v_a_4481_, v_a_4482_, v_a_4483_, v_a_4484_, v_a_4485_, lean_box(0));
if (lean_obj_tag(v___x_4495_) == 0)
{
lean_object* v_a_4496_; lean_object* v_a_4497_; lean_object* v___x_4499_; uint8_t v_isShared_4500_; uint8_t v_isSharedCheck_4510_; 
v_a_4496_ = lean_ctor_get(v___x_4495_, 0);
v_a_4497_ = lean_ctor_get(v___x_4495_, 1);
v_isSharedCheck_4510_ = !lean_is_exclusive(v___x_4495_);
if (v_isSharedCheck_4510_ == 0)
{
v___x_4499_ = v___x_4495_;
v_isShared_4500_ = v_isSharedCheck_4510_;
goto v_resetjp_4498_;
}
else
{
lean_inc(v_a_4497_);
lean_inc(v_a_4496_);
lean_dec(v___x_4495_);
v___x_4499_ = lean_box(0);
v_isShared_4500_ = v_isSharedCheck_4510_;
goto v_resetjp_4498_;
}
v_resetjp_4498_:
{
lean_object* v___f_4501_; lean_object* v___x_4502_; lean_object* v___x_4503_; uint8_t v___x_4504_; lean_object* v___x_4505_; lean_object* v___x_4506_; lean_object* v___x_4508_; 
v___f_4501_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___boxed), 11, 3);
lean_closure_set(v___f_4501_, 0, v_keyName_4490_);
lean_closure_set(v___f_4501_, 1, v_name_4489_);
lean_closure_set(v___f_4501_, 2, v_mod_4479_);
v___x_4502_ = lean_box(0);
v___x_4503_ = lean_unsigned_to_nat(0u);
v___x_4504_ = 1;
v___x_4505_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_4506_ = l_Lake_Job_mapM___redArg(v___x_4502_, v_a_4496_, v___f_4501_, v___x_4503_, v___x_4504_, v_a_4480_, v_a_4481_, v_a_4482_, v_a_4483_, v_a_4484_, v___x_4505_);
if (v_isShared_4500_ == 0)
{
lean_ctor_set(v___x_4499_, 0, v___x_4506_);
v___x_4508_ = v___x_4499_;
goto v_reusejp_4507_;
}
else
{
lean_object* v_reuseFailAlloc_4509_; 
v_reuseFailAlloc_4509_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_4509_, 0, v___x_4506_);
lean_ctor_set(v_reuseFailAlloc_4509_, 1, v_a_4497_);
v___x_4508_ = v_reuseFailAlloc_4509_;
goto v_reusejp_4507_;
}
v_reusejp_4507_:
{
return v___x_4508_;
}
}
}
else
{
lean_object* v_a_4511_; lean_object* v_a_4512_; lean_object* v___x_4514_; uint8_t v_isShared_4515_; uint8_t v_isSharedCheck_4519_; 
lean_dec(v_keyName_4490_);
lean_dec(v_name_4489_);
lean_dec_ref(v_a_4484_);
lean_dec(v_a_4483_);
lean_dec(v_a_4482_);
lean_dec(v_a_4481_);
lean_dec_ref(v_a_4480_);
lean_dec_ref(v_mod_4479_);
v_a_4511_ = lean_ctor_get(v___x_4495_, 0);
v_a_4512_ = lean_ctor_get(v___x_4495_, 1);
v_isSharedCheck_4519_ = !lean_is_exclusive(v___x_4495_);
if (v_isSharedCheck_4519_ == 0)
{
v___x_4514_ = v___x_4495_;
v_isShared_4515_ = v_isSharedCheck_4519_;
goto v_resetjp_4513_;
}
else
{
lean_inc(v_a_4512_);
lean_inc(v_a_4511_);
lean_dec(v___x_4495_);
v___x_4514_ = lean_box(0);
v_isShared_4515_ = v_isSharedCheck_4519_;
goto v_resetjp_4513_;
}
v_resetjp_4513_:
{
lean_object* v___x_4517_; 
if (v_isShared_4515_ == 0)
{
v___x_4517_ = v___x_4514_;
goto v_reusejp_4516_;
}
else
{
lean_object* v_reuseFailAlloc_4518_; 
v_reuseFailAlloc_4518_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_4518_, 0, v_a_4511_);
lean_ctor_set(v_reuseFailAlloc_4518_, 1, v_a_4512_);
v___x_4517_ = v_reuseFailAlloc_4518_;
goto v_reusejp_4516_;
}
v_reusejp_4516_:
{
return v___x_4517_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___boxed(lean_object* v_mod_4520_, lean_object* v_a_4521_, lean_object* v_a_4522_, lean_object* v_a_4523_, lean_object* v_a_4524_, lean_object* v_a_4525_, lean_object* v_a_4526_, lean_object* v_a_4527_){
_start:
{
lean_object* v_res_4528_; 
v_res_4528_ = l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo(v_mod_4520_, v_a_4521_, v_a_4522_, v_a_4523_, v_a_4524_, v_a_4525_, v_a_4526_);
return v_res_4528_;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_exportInfoFacetConfig_spec__0___redArg(uint8_t v_fmt_4529_){
_start:
{
if (v_fmt_4529_ == 0)
{
lean_object* v___x_4530_; 
v___x_4530_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1));
return v___x_4530_;
}
else
{
lean_object* v___x_4531_; 
v___x_4531_ = lean_obj_once(&l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg___closed__0, &l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg___closed__0_once, _init_l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg___closed__0);
return v___x_4531_;
}
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_exportInfoFacetConfig_spec__0___redArg___boxed(lean_object* v_fmt_4532_){
_start:
{
uint8_t v_fmt_boxed_4533_; lean_object* v_res_4534_; 
v_fmt_boxed_4533_ = lean_unbox(v_fmt_4532_);
v_res_4534_ = l_Lake_formatQuery___at___00Lake_Module_exportInfoFacetConfig_spec__0___redArg(v_fmt_boxed_4533_);
return v_res_4534_;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_exportInfoFacetConfig_spec__0(uint8_t v_fmt_4535_, lean_object* v_a_4536_){
_start:
{
lean_object* v___x_4537_; 
v___x_4537_ = l_Lake_formatQuery___at___00Lake_Module_exportInfoFacetConfig_spec__0___redArg(v_fmt_4535_);
return v___x_4537_;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_exportInfoFacetConfig_spec__0___boxed(lean_object* v_fmt_4538_, lean_object* v_a_4539_){
_start:
{
uint8_t v_fmt_boxed_4540_; lean_object* v_res_4541_; 
v_fmt_boxed_4540_ = lean_unbox(v_fmt_4538_);
v_res_4541_ = l_Lake_formatQuery___at___00Lake_Module_exportInfoFacetConfig_spec__0(v_fmt_boxed_4540_, v_a_4539_);
lean_dec_ref(v_a_4539_);
return v_res_4541_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_exportInfoFacetConfig___lam__0(uint8_t v___y_4542_, lean_object* v___y_4543_){
_start:
{
lean_object* v___x_4544_; 
v___x_4544_ = l_Lake_formatQuery___at___00Lake_Module_exportInfoFacetConfig_spec__0___redArg(v___y_4542_);
return v___x_4544_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_exportInfoFacetConfig___lam__0___boxed(lean_object* v___y_4545_, lean_object* v___y_4546_){
_start:
{
uint8_t v___y_65__boxed_4547_; lean_object* v_res_4548_; 
v___y_65__boxed_4547_ = lean_unbox(v___y_4545_);
v_res_4548_ = l_Lake_Module_exportInfoFacetConfig___lam__0(v___y_65__boxed_4547_, v___y_4546_);
lean_dec_ref(v___y_4546_);
return v_res_4548_;
}
}
static lean_object* _init_l_Lake_Module_exportInfoFacetConfig___closed__2(void){
_start:
{
uint8_t v___x_4551_; lean_object* v___f_4552_; uint8_t v___x_4553_; lean_object* v___x_4554_; lean_object* v___x_4555_; lean_object* v___x_4556_; lean_object* v___x_4557_; 
v___x_4551_ = 1;
v___f_4552_ = ((lean_object*)(l_Lake_Module_exportInfoFacetConfig___closed__0));
v___x_4553_ = 0;
v___x_4554_ = lean_box(0);
v___x_4555_ = ((lean_object*)(l_Lake_Module_exportInfoFacetConfig___closed__1));
v___x_4556_ = l_Lake_Module_keyword;
v___x_4557_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_4557_, 0, v___x_4556_);
lean_ctor_set(v___x_4557_, 1, v___x_4555_);
lean_ctor_set(v___x_4557_, 2, v___x_4554_);
lean_ctor_set(v___x_4557_, 3, v___f_4552_);
lean_ctor_set_uint8(v___x_4557_, sizeof(void*)*4, v___x_4553_);
lean_ctor_set_uint8(v___x_4557_, sizeof(void*)*4 + 1, v___x_4551_);
return v___x_4557_;
}
}
static lean_object* _init_l_Lake_Module_exportInfoFacetConfig(void){
_start:
{
lean_object* v___x_4558_; 
v___x_4558_ = lean_obj_once(&l_Lake_Module_exportInfoFacetConfig___closed__2, &l_Lake_Module_exportInfoFacetConfig___closed__2_once, _init_l_Lake_Module_exportInfoFacetConfig___closed__2);
return v___x_4558_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_importArtsFacetConfig___lam__0(lean_object* v_x_4559_){
_start:
{
if (lean_obj_tag(v_x_4559_) == 0)
{
lean_object* v_a_4560_; lean_object* v_a_4561_; lean_object* v___x_4563_; uint8_t v_isShared_4564_; uint8_t v_isSharedCheck_4582_; 
v_a_4560_ = lean_ctor_get(v_x_4559_, 0);
v_a_4561_ = lean_ctor_get(v_x_4559_, 1);
v_isSharedCheck_4582_ = !lean_is_exclusive(v_x_4559_);
if (v_isSharedCheck_4582_ == 0)
{
v___x_4563_ = v_x_4559_;
v_isShared_4564_ = v_isSharedCheck_4582_;
goto v_resetjp_4562_;
}
else
{
lean_inc(v_a_4561_);
lean_inc(v_a_4560_);
lean_dec(v_x_4559_);
v___x_4563_ = lean_box(0);
v_isShared_4564_ = v_isSharedCheck_4582_;
goto v_resetjp_4562_;
}
v_resetjp_4562_:
{
lean_object* v_arts_4565_; lean_object* v_artsTrace_4566_; lean_object* v_log_4567_; uint8_t v_action_4568_; uint8_t v_wantsRebuild_4569_; lean_object* v_buildTime_4570_; lean_object* v___x_4572_; uint8_t v_isShared_4573_; uint8_t v_isSharedCheck_4580_; 
v_arts_4565_ = lean_ctor_get(v_a_4560_, 1);
lean_inc_ref(v_arts_4565_);
v_artsTrace_4566_ = lean_ctor_get(v_a_4560_, 2);
lean_inc_ref(v_artsTrace_4566_);
lean_dec(v_a_4560_);
v_log_4567_ = lean_ctor_get(v_a_4561_, 0);
v_action_4568_ = lean_ctor_get_uint8(v_a_4561_, sizeof(void*)*3);
v_wantsRebuild_4569_ = lean_ctor_get_uint8(v_a_4561_, sizeof(void*)*3 + 1);
v_buildTime_4570_ = lean_ctor_get(v_a_4561_, 2);
v_isSharedCheck_4580_ = !lean_is_exclusive(v_a_4561_);
if (v_isSharedCheck_4580_ == 0)
{
lean_object* v_unused_4581_; 
v_unused_4581_ = lean_ctor_get(v_a_4561_, 1);
lean_dec(v_unused_4581_);
v___x_4572_ = v_a_4561_;
v_isShared_4573_ = v_isSharedCheck_4580_;
goto v_resetjp_4571_;
}
else
{
lean_inc(v_buildTime_4570_);
lean_inc(v_log_4567_);
lean_dec(v_a_4561_);
v___x_4572_ = lean_box(0);
v_isShared_4573_ = v_isSharedCheck_4580_;
goto v_resetjp_4571_;
}
v_resetjp_4571_:
{
lean_object* v___x_4575_; 
if (v_isShared_4573_ == 0)
{
lean_ctor_set(v___x_4572_, 1, v_artsTrace_4566_);
v___x_4575_ = v___x_4572_;
goto v_reusejp_4574_;
}
else
{
lean_object* v_reuseFailAlloc_4579_; 
v_reuseFailAlloc_4579_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_4579_, 0, v_log_4567_);
lean_ctor_set(v_reuseFailAlloc_4579_, 1, v_artsTrace_4566_);
lean_ctor_set(v_reuseFailAlloc_4579_, 2, v_buildTime_4570_);
lean_ctor_set_uint8(v_reuseFailAlloc_4579_, sizeof(void*)*3, v_action_4568_);
lean_ctor_set_uint8(v_reuseFailAlloc_4579_, sizeof(void*)*3 + 1, v_wantsRebuild_4569_);
v___x_4575_ = v_reuseFailAlloc_4579_;
goto v_reusejp_4574_;
}
v_reusejp_4574_:
{
lean_object* v___x_4577_; 
if (v_isShared_4564_ == 0)
{
lean_ctor_set(v___x_4563_, 1, v___x_4575_);
lean_ctor_set(v___x_4563_, 0, v_arts_4565_);
v___x_4577_ = v___x_4563_;
goto v_reusejp_4576_;
}
else
{
lean_object* v_reuseFailAlloc_4578_; 
v_reuseFailAlloc_4578_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_4578_, 0, v_arts_4565_);
lean_ctor_set(v_reuseFailAlloc_4578_, 1, v___x_4575_);
v___x_4577_ = v_reuseFailAlloc_4578_;
goto v_reusejp_4576_;
}
v_reusejp_4576_:
{
return v___x_4577_;
}
}
}
}
}
else
{
lean_object* v_a_4583_; lean_object* v_a_4584_; lean_object* v___x_4586_; uint8_t v_isShared_4587_; uint8_t v_isSharedCheck_4591_; 
v_a_4583_ = lean_ctor_get(v_x_4559_, 0);
v_a_4584_ = lean_ctor_get(v_x_4559_, 1);
v_isSharedCheck_4591_ = !lean_is_exclusive(v_x_4559_);
if (v_isSharedCheck_4591_ == 0)
{
v___x_4586_ = v_x_4559_;
v_isShared_4587_ = v_isSharedCheck_4591_;
goto v_resetjp_4585_;
}
else
{
lean_inc(v_a_4584_);
lean_inc(v_a_4583_);
lean_dec(v_x_4559_);
v___x_4586_ = lean_box(0);
v_isShared_4587_ = v_isSharedCheck_4591_;
goto v_resetjp_4585_;
}
v_resetjp_4585_:
{
lean_object* v___x_4589_; 
if (v_isShared_4587_ == 0)
{
v___x_4589_ = v___x_4586_;
goto v_reusejp_4588_;
}
else
{
lean_object* v_reuseFailAlloc_4590_; 
v_reuseFailAlloc_4590_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_4590_, 0, v_a_4583_);
lean_ctor_set(v_reuseFailAlloc_4590_, 1, v_a_4584_);
v___x_4589_ = v_reuseFailAlloc_4590_;
goto v_reusejp_4588_;
}
v_reusejp_4588_:
{
return v___x_4589_;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_importArtsFacetConfig___lam__1(lean_object* v___f_4592_, lean_object* v___x_4593_, lean_object* v_mod_4594_, lean_object* v___y_4595_, lean_object* v___y_4596_, lean_object* v___y_4597_, lean_object* v___y_4598_, lean_object* v___y_4599_, lean_object* v___y_4600_){
_start:
{
lean_object* v_lib_4602_; lean_object* v_pkg_4603_; lean_object* v_name_4604_; lean_object* v_keyName_4605_; lean_object* v___x_4606_; lean_object* v___x_4607_; lean_object* v___x_4608_; lean_object* v___x_4609_; lean_object* v___x_4610_; 
v_lib_4602_ = lean_ctor_get(v_mod_4594_, 0);
v_pkg_4603_ = lean_ctor_get(v_lib_4602_, 0);
v_name_4604_ = lean_ctor_get(v_mod_4594_, 1);
v_keyName_4605_ = lean_ctor_get(v_pkg_4603_, 2);
v___x_4606_ = l_Lake_Module_exportInfoFacet;
lean_inc(v_name_4604_);
lean_inc(v_keyName_4605_);
v___x_4607_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_4607_, 0, v_keyName_4605_);
lean_ctor_set(v___x_4607_, 1, v_name_4604_);
v___x_4608_ = l_Lake_Module_keyword;
v___x_4609_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_4609_, 0, v___x_4607_);
lean_ctor_set(v___x_4609_, 1, v___x_4608_);
lean_ctor_set(v___x_4609_, 2, v_mod_4594_);
lean_ctor_set(v___x_4609_, 3, v___x_4606_);
v___x_4610_ = lean_apply_7(v___y_4595_, v___x_4609_, v___y_4596_, v___y_4597_, v___y_4598_, v___y_4599_, v___y_4600_, lean_box(0));
if (lean_obj_tag(v___x_4610_) == 0)
{
lean_object* v_a_4611_; lean_object* v_a_4612_; lean_object* v___x_4614_; uint8_t v_isShared_4615_; uint8_t v_isSharedCheck_4633_; 
v_a_4611_ = lean_ctor_get(v___x_4610_, 0);
v_a_4612_ = lean_ctor_get(v___x_4610_, 1);
v_isSharedCheck_4633_ = !lean_is_exclusive(v___x_4610_);
if (v_isSharedCheck_4633_ == 0)
{
v___x_4614_ = v___x_4610_;
v_isShared_4615_ = v_isSharedCheck_4633_;
goto v_resetjp_4613_;
}
else
{
lean_inc(v_a_4612_);
lean_inc(v_a_4611_);
lean_dec(v___x_4610_);
v___x_4614_ = lean_box(0);
v_isShared_4615_ = v_isSharedCheck_4633_;
goto v_resetjp_4613_;
}
v_resetjp_4613_:
{
lean_object* v_task_4616_; lean_object* v_caption_4617_; uint8_t v_optional_4618_; lean_object* v___x_4620_; uint8_t v_isShared_4621_; uint8_t v_isSharedCheck_4631_; 
v_task_4616_ = lean_ctor_get(v_a_4611_, 0);
v_caption_4617_ = lean_ctor_get(v_a_4611_, 2);
v_optional_4618_ = lean_ctor_get_uint8(v_a_4611_, sizeof(void*)*3);
v_isSharedCheck_4631_ = !lean_is_exclusive(v_a_4611_);
if (v_isSharedCheck_4631_ == 0)
{
lean_object* v_unused_4632_; 
v_unused_4632_ = lean_ctor_get(v_a_4611_, 1);
lean_dec(v_unused_4632_);
v___x_4620_ = v_a_4611_;
v_isShared_4621_ = v_isSharedCheck_4631_;
goto v_resetjp_4619_;
}
else
{
lean_inc(v_caption_4617_);
lean_inc(v_task_4616_);
lean_dec(v_a_4611_);
v___x_4620_ = lean_box(0);
v_isShared_4621_ = v_isSharedCheck_4631_;
goto v_resetjp_4619_;
}
v_resetjp_4619_:
{
lean_object* v___x_4622_; uint8_t v___x_4623_; lean_object* v___x_4624_; lean_object* v___x_4626_; 
v___x_4622_ = lean_unsigned_to_nat(0u);
v___x_4623_ = 1;
v___x_4624_ = lean_task_map(v___f_4592_, v_task_4616_, v___x_4622_, v___x_4623_);
if (v_isShared_4621_ == 0)
{
lean_ctor_set(v___x_4620_, 1, v___x_4593_);
lean_ctor_set(v___x_4620_, 0, v___x_4624_);
v___x_4626_ = v___x_4620_;
goto v_reusejp_4625_;
}
else
{
lean_object* v_reuseFailAlloc_4630_; 
v_reuseFailAlloc_4630_ = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(v_reuseFailAlloc_4630_, 0, v___x_4624_);
lean_ctor_set(v_reuseFailAlloc_4630_, 1, v___x_4593_);
lean_ctor_set(v_reuseFailAlloc_4630_, 2, v_caption_4617_);
lean_ctor_set_uint8(v_reuseFailAlloc_4630_, sizeof(void*)*3, v_optional_4618_);
v___x_4626_ = v_reuseFailAlloc_4630_;
goto v_reusejp_4625_;
}
v_reusejp_4625_:
{
lean_object* v___x_4628_; 
if (v_isShared_4615_ == 0)
{
lean_ctor_set(v___x_4614_, 0, v___x_4626_);
v___x_4628_ = v___x_4614_;
goto v_reusejp_4627_;
}
else
{
lean_object* v_reuseFailAlloc_4629_; 
v_reuseFailAlloc_4629_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_4629_, 0, v___x_4626_);
lean_ctor_set(v_reuseFailAlloc_4629_, 1, v_a_4612_);
v___x_4628_ = v_reuseFailAlloc_4629_;
goto v_reusejp_4627_;
}
v_reusejp_4627_:
{
return v___x_4628_;
}
}
}
}
}
else
{
lean_object* v_a_4634_; lean_object* v_a_4635_; lean_object* v___x_4637_; uint8_t v_isShared_4638_; uint8_t v_isSharedCheck_4642_; 
lean_dec(v___x_4593_);
lean_dec_ref(v___f_4592_);
v_a_4634_ = lean_ctor_get(v___x_4610_, 0);
v_a_4635_ = lean_ctor_get(v___x_4610_, 1);
v_isSharedCheck_4642_ = !lean_is_exclusive(v___x_4610_);
if (v_isSharedCheck_4642_ == 0)
{
v___x_4637_ = v___x_4610_;
v_isShared_4638_ = v_isSharedCheck_4642_;
goto v_resetjp_4636_;
}
else
{
lean_inc(v_a_4635_);
lean_inc(v_a_4634_);
lean_dec(v___x_4610_);
v___x_4637_ = lean_box(0);
v_isShared_4638_ = v_isSharedCheck_4642_;
goto v_resetjp_4636_;
}
v_resetjp_4636_:
{
lean_object* v___x_4640_; 
if (v_isShared_4638_ == 0)
{
v___x_4640_ = v___x_4637_;
goto v_reusejp_4639_;
}
else
{
lean_object* v_reuseFailAlloc_4641_; 
v_reuseFailAlloc_4641_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_4641_, 0, v_a_4634_);
lean_ctor_set(v_reuseFailAlloc_4641_, 1, v_a_4635_);
v___x_4640_ = v_reuseFailAlloc_4641_;
goto v_reusejp_4639_;
}
v_reusejp_4639_:
{
return v___x_4640_;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_importArtsFacetConfig___lam__1___boxed(lean_object* v___f_4643_, lean_object* v___x_4644_, lean_object* v_mod_4645_, lean_object* v___y_4646_, lean_object* v___y_4647_, lean_object* v___y_4648_, lean_object* v___y_4649_, lean_object* v___y_4650_, lean_object* v___y_4651_, lean_object* v___y_4652_){
_start:
{
lean_object* v_res_4653_; 
v_res_4653_ = l_Lake_Module_importArtsFacetConfig___lam__1(v___f_4643_, v___x_4644_, v_mod_4645_, v___y_4646_, v___y_4647_, v___y_4648_, v___y_4649_, v___y_4650_, v___y_4651_);
return v_res_4653_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lake_formatQuery___at___00Lake_Module_importArtsFacetConfig_spec__0_spec__0_spec__1(size_t v_sz_4654_, size_t v_i_4655_, lean_object* v_bs_4656_){
_start:
{
uint8_t v___x_4657_; 
v___x_4657_ = lean_usize_dec_lt(v_i_4655_, v_sz_4654_);
if (v___x_4657_ == 0)
{
return v_bs_4656_;
}
else
{
lean_object* v_v_4658_; lean_object* v___x_4659_; lean_object* v_bs_x27_4660_; lean_object* v___x_4661_; size_t v___x_4662_; size_t v___x_4663_; lean_object* v___x_4664_; 
v_v_4658_ = lean_array_uget(v_bs_4656_, v_i_4655_);
v___x_4659_ = lean_unsigned_to_nat(0u);
v_bs_x27_4660_ = lean_array_uset(v_bs_4656_, v_i_4655_, v___x_4659_);
v___x_4661_ = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(v___x_4661_, 0, v_v_4658_);
v___x_4662_ = ((size_t)1ULL);
v___x_4663_ = lean_usize_add(v_i_4655_, v___x_4662_);
v___x_4664_ = lean_array_uset(v_bs_x27_4660_, v_i_4655_, v___x_4661_);
v_i_4655_ = v___x_4663_;
v_bs_4656_ = v___x_4664_;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lake_formatQuery___at___00Lake_Module_importArtsFacetConfig_spec__0_spec__0_spec__1___boxed(lean_object* v_sz_4666_, lean_object* v_i_4667_, lean_object* v_bs_4668_){
_start:
{
size_t v_sz_boxed_4669_; size_t v_i_boxed_4670_; lean_object* v_res_4671_; 
v_sz_boxed_4669_ = lean_unbox_usize(v_sz_4666_);
lean_dec(v_sz_4666_);
v_i_boxed_4670_ = lean_unbox_usize(v_i_4667_);
lean_dec(v_i_4667_);
v_res_4671_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lake_formatQuery___at___00Lake_Module_importArtsFacetConfig_spec__0_spec__0_spec__1(v_sz_boxed_4669_, v_i_boxed_4670_, v_bs_4668_);
return v_res_4671_;
}
}
LEAN_EXPORT lean_object* l_Array_toJson___at___00Lake_formatQuery___at___00Lake_Module_importArtsFacetConfig_spec__0_spec__0(lean_object* v_a_4672_){
_start:
{
size_t v_sz_4673_; size_t v___x_4674_; lean_object* v___x_4675_; lean_object* v___x_4676_; 
v_sz_4673_ = lean_array_size(v_a_4672_);
v___x_4674_ = ((size_t)0ULL);
v___x_4675_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lake_formatQuery___at___00Lake_Module_importArtsFacetConfig_spec__0_spec__0_spec__1(v_sz_4673_, v___x_4674_, v_a_4672_);
v___x_4676_ = lean_alloc_ctor(4, 1, 0);
lean_ctor_set(v___x_4676_, 0, v___x_4675_);
return v___x_4676_;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_importArtsFacetConfig_spec__0(uint8_t v_fmt_4677_, lean_object* v_a_4678_){
_start:
{
if (v_fmt_4677_ == 0)
{
lean_object* v___x_4679_; 
lean_dec_ref(v_a_4678_);
v___x_4679_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1));
return v___x_4679_;
}
else
{
lean_object* v___x_4680_; lean_object* v___x_4681_; 
v___x_4680_ = l_Array_toJson___at___00Lake_formatQuery___at___00Lake_Module_importArtsFacetConfig_spec__0_spec__0(v_a_4678_);
v___x_4681_ = l_Lean_Json_compress(v___x_4680_);
return v___x_4681_;
}
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_importArtsFacetConfig_spec__0___boxed(lean_object* v_fmt_4682_, lean_object* v_a_4683_){
_start:
{
uint8_t v_fmt_boxed_4684_; lean_object* v_res_4685_; 
v_fmt_boxed_4684_ = lean_unbox(v_fmt_4682_);
v_res_4685_ = l_Lake_formatQuery___at___00Lake_Module_importArtsFacetConfig_spec__0(v_fmt_boxed_4684_, v_a_4683_);
return v_res_4685_;
}
}
static lean_object* _init_l_Lake_Module_importArtsFacetConfig___closed__3(void){
_start:
{
lean_object* v___f_4691_; uint8_t v___x_4692_; lean_object* v___x_4693_; lean_object* v___f_4694_; lean_object* v___x_4695_; lean_object* v___x_4696_; 
v___f_4691_ = ((lean_object*)(l_Lake_Module_importArtsFacetConfig___closed__0));
v___x_4692_ = 1;
v___x_4693_ = lean_box(0);
v___f_4694_ = ((lean_object*)(l_Lake_Module_importArtsFacetConfig___closed__2));
v___x_4695_ = l_Lake_Module_keyword;
v___x_4696_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_4696_, 0, v___x_4695_);
lean_ctor_set(v___x_4696_, 1, v___f_4694_);
lean_ctor_set(v___x_4696_, 2, v___x_4693_);
lean_ctor_set(v___x_4696_, 3, v___f_4691_);
lean_ctor_set_uint8(v___x_4696_, sizeof(void*)*4, v___x_4692_);
lean_ctor_set_uint8(v___x_4696_, sizeof(void*)*4 + 1, v___x_4692_);
return v___x_4696_;
}
}
static lean_object* _init_l_Lake_Module_importArtsFacetConfig(void){
_start:
{
lean_object* v___x_4697_; 
v___x_4697_ = lean_obj_once(&l_Lake_Module_importArtsFacetConfig___closed__3, &l_Lake_Module_importArtsFacetConfig___closed__3_once, _init_l_Lake_Module_importArtsFacetConfig___closed__3);
return v___x_4697_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_importAllArtsFacetConfig___lam__0(lean_object* v_x_4698_){
_start:
{
if (lean_obj_tag(v_x_4698_) == 0)
{
lean_object* v_a_4699_; lean_object* v_a_4700_; lean_object* v___x_4702_; uint8_t v_isShared_4703_; uint8_t v_isSharedCheck_4721_; 
v_a_4699_ = lean_ctor_get(v_x_4698_, 0);
v_a_4700_ = lean_ctor_get(v_x_4698_, 1);
v_isSharedCheck_4721_ = !lean_is_exclusive(v_x_4698_);
if (v_isSharedCheck_4721_ == 0)
{
v___x_4702_ = v_x_4698_;
v_isShared_4703_ = v_isSharedCheck_4721_;
goto v_resetjp_4701_;
}
else
{
lean_inc(v_a_4700_);
lean_inc(v_a_4699_);
lean_dec(v_x_4698_);
v___x_4702_ = lean_box(0);
v_isShared_4703_ = v_isSharedCheck_4721_;
goto v_resetjp_4701_;
}
v_resetjp_4701_:
{
lean_object* v_arts_4704_; lean_object* v_allArtsTrace_4705_; lean_object* v_log_4706_; uint8_t v_action_4707_; uint8_t v_wantsRebuild_4708_; lean_object* v_buildTime_4709_; lean_object* v___x_4711_; uint8_t v_isShared_4712_; uint8_t v_isSharedCheck_4719_; 
v_arts_4704_ = lean_ctor_get(v_a_4699_, 1);
lean_inc_ref(v_arts_4704_);
v_allArtsTrace_4705_ = lean_ctor_get(v_a_4699_, 5);
lean_inc_ref(v_allArtsTrace_4705_);
lean_dec(v_a_4699_);
v_log_4706_ = lean_ctor_get(v_a_4700_, 0);
v_action_4707_ = lean_ctor_get_uint8(v_a_4700_, sizeof(void*)*3);
v_wantsRebuild_4708_ = lean_ctor_get_uint8(v_a_4700_, sizeof(void*)*3 + 1);
v_buildTime_4709_ = lean_ctor_get(v_a_4700_, 2);
v_isSharedCheck_4719_ = !lean_is_exclusive(v_a_4700_);
if (v_isSharedCheck_4719_ == 0)
{
lean_object* v_unused_4720_; 
v_unused_4720_ = lean_ctor_get(v_a_4700_, 1);
lean_dec(v_unused_4720_);
v___x_4711_ = v_a_4700_;
v_isShared_4712_ = v_isSharedCheck_4719_;
goto v_resetjp_4710_;
}
else
{
lean_inc(v_buildTime_4709_);
lean_inc(v_log_4706_);
lean_dec(v_a_4700_);
v___x_4711_ = lean_box(0);
v_isShared_4712_ = v_isSharedCheck_4719_;
goto v_resetjp_4710_;
}
v_resetjp_4710_:
{
lean_object* v___x_4714_; 
if (v_isShared_4712_ == 0)
{
lean_ctor_set(v___x_4711_, 1, v_allArtsTrace_4705_);
v___x_4714_ = v___x_4711_;
goto v_reusejp_4713_;
}
else
{
lean_object* v_reuseFailAlloc_4718_; 
v_reuseFailAlloc_4718_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_4718_, 0, v_log_4706_);
lean_ctor_set(v_reuseFailAlloc_4718_, 1, v_allArtsTrace_4705_);
lean_ctor_set(v_reuseFailAlloc_4718_, 2, v_buildTime_4709_);
lean_ctor_set_uint8(v_reuseFailAlloc_4718_, sizeof(void*)*3, v_action_4707_);
lean_ctor_set_uint8(v_reuseFailAlloc_4718_, sizeof(void*)*3 + 1, v_wantsRebuild_4708_);
v___x_4714_ = v_reuseFailAlloc_4718_;
goto v_reusejp_4713_;
}
v_reusejp_4713_:
{
lean_object* v___x_4716_; 
if (v_isShared_4703_ == 0)
{
lean_ctor_set(v___x_4702_, 1, v___x_4714_);
lean_ctor_set(v___x_4702_, 0, v_arts_4704_);
v___x_4716_ = v___x_4702_;
goto v_reusejp_4715_;
}
else
{
lean_object* v_reuseFailAlloc_4717_; 
v_reuseFailAlloc_4717_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_4717_, 0, v_arts_4704_);
lean_ctor_set(v_reuseFailAlloc_4717_, 1, v___x_4714_);
v___x_4716_ = v_reuseFailAlloc_4717_;
goto v_reusejp_4715_;
}
v_reusejp_4715_:
{
return v___x_4716_;
}
}
}
}
}
else
{
lean_object* v_a_4722_; lean_object* v_a_4723_; lean_object* v___x_4725_; uint8_t v_isShared_4726_; uint8_t v_isSharedCheck_4730_; 
v_a_4722_ = lean_ctor_get(v_x_4698_, 0);
v_a_4723_ = lean_ctor_get(v_x_4698_, 1);
v_isSharedCheck_4730_ = !lean_is_exclusive(v_x_4698_);
if (v_isSharedCheck_4730_ == 0)
{
v___x_4725_ = v_x_4698_;
v_isShared_4726_ = v_isSharedCheck_4730_;
goto v_resetjp_4724_;
}
else
{
lean_inc(v_a_4723_);
lean_inc(v_a_4722_);
lean_dec(v_x_4698_);
v___x_4725_ = lean_box(0);
v_isShared_4726_ = v_isSharedCheck_4730_;
goto v_resetjp_4724_;
}
v_resetjp_4724_:
{
lean_object* v___x_4728_; 
if (v_isShared_4726_ == 0)
{
v___x_4728_ = v___x_4725_;
goto v_reusejp_4727_;
}
else
{
lean_object* v_reuseFailAlloc_4729_; 
v_reuseFailAlloc_4729_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_4729_, 0, v_a_4722_);
lean_ctor_set(v_reuseFailAlloc_4729_, 1, v_a_4723_);
v___x_4728_ = v_reuseFailAlloc_4729_;
goto v_reusejp_4727_;
}
v_reusejp_4727_:
{
return v___x_4728_;
}
}
}
}
}
static lean_object* _init_l_Lake_Module_importAllArtsFacetConfig___closed__2(void){
_start:
{
lean_object* v___f_4735_; uint8_t v___x_4736_; lean_object* v___x_4737_; lean_object* v___f_4738_; lean_object* v___x_4739_; lean_object* v___x_4740_; 
v___f_4735_ = ((lean_object*)(l_Lake_Module_importArtsFacetConfig___closed__0));
v___x_4736_ = 1;
v___x_4737_ = lean_box(0);
v___f_4738_ = ((lean_object*)(l_Lake_Module_importAllArtsFacetConfig___closed__1));
v___x_4739_ = l_Lake_Module_keyword;
v___x_4740_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_4740_, 0, v___x_4739_);
lean_ctor_set(v___x_4740_, 1, v___f_4738_);
lean_ctor_set(v___x_4740_, 2, v___x_4737_);
lean_ctor_set(v___x_4740_, 3, v___f_4735_);
lean_ctor_set_uint8(v___x_4740_, sizeof(void*)*4, v___x_4736_);
lean_ctor_set_uint8(v___x_4740_, sizeof(void*)*4 + 1, v___x_4736_);
return v___x_4740_;
}
}
static lean_object* _init_l_Lake_Module_importAllArtsFacetConfig(void){
_start:
{
lean_object* v___x_4741_; 
v___x_4741_ = lean_obj_once(&l_Lake_Module_importAllArtsFacetConfig___closed__2, &l_Lake_Module_importAllArtsFacetConfig___closed__2_once, _init_l_Lake_Module_importAllArtsFacetConfig___closed__2);
return v___x_4741_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__1(size_t v_sz_4742_, size_t v_i_4743_, lean_object* v_bs_4744_){
_start:
{
uint8_t v___x_4745_; 
v___x_4745_ = lean_usize_dec_lt(v_i_4743_, v_sz_4742_);
if (v___x_4745_ == 0)
{
return v_bs_4744_;
}
else
{
lean_object* v_v_4746_; lean_object* v_path_4747_; lean_object* v___x_4748_; lean_object* v_bs_x27_4749_; size_t v___x_4750_; size_t v___x_4751_; lean_object* v___x_4752_; 
v_v_4746_ = lean_array_uget_borrowed(v_bs_4744_, v_i_4743_);
v_path_4747_ = lean_ctor_get(v_v_4746_, 0);
lean_inc_ref(v_path_4747_);
v___x_4748_ = lean_unsigned_to_nat(0u);
v_bs_x27_4749_ = lean_array_uset(v_bs_4744_, v_i_4743_, v___x_4748_);
v___x_4750_ = ((size_t)1ULL);
v___x_4751_ = lean_usize_add(v_i_4743_, v___x_4750_);
v___x_4752_ = lean_array_uset(v_bs_x27_4749_, v_i_4743_, v_path_4747_);
v_i_4743_ = v___x_4751_;
v_bs_4744_ = v___x_4752_;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__1___boxed(lean_object* v_sz_4754_, lean_object* v_i_4755_, lean_object* v_bs_4756_){
_start:
{
size_t v_sz_boxed_4757_; size_t v_i_boxed_4758_; lean_object* v_res_4759_; 
v_sz_boxed_4757_ = lean_unbox_usize(v_sz_4754_);
lean_dec(v_sz_4754_);
v_i_boxed_4758_ = lean_unbox_usize(v_i_4755_);
lean_dec(v_i_4755_);
v_res_4759_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__1(v_sz_boxed_4757_, v_i_boxed_4758_, v_bs_4756_);
return v_res_4759_;
}
}
static lean_object* _init_l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0___closed__1(void){
_start:
{
lean_object* v___x_4761_; lean_object* v___x_4762_; 
v___x_4761_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0___closed__0));
v___x_4762_ = l_Lake_BuildTrace_nil(v___x_4761_);
return v___x_4762_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0(lean_object* v_a_4765_, lean_object* v_leanOptions_4766_, lean_object* v_leanOptions_4767_, lean_object* v_name_4768_, lean_object* v_impLibs_4769_, lean_object* v_externLibs_4770_, lean_object* v_dynlibs_4771_, lean_object* v_header_4772_, lean_object* v_pkg_4773_, uint8_t v_buildType_4774_, uint8_t v_buildType_4775_, lean_object* v_info_4776_, uint8_t v___x_4777_, lean_object* v_platformIndependent_4778_, lean_object* v_platformIndependent_4779_, lean_object* v_plugins_4780_, lean_object* v___y_4781_, lean_object* v___y_4782_, lean_object* v___y_4783_, lean_object* v___y_4784_, lean_object* v___y_4785_, lean_object* v___y_4786_){
_start:
{
lean_object* v___y_4789_; lean_object* v___y_4790_; lean_object* v___y_4791_; uint8_t v___y_4792_; lean_object* v___y_4793_; lean_object* v___y_4794_; lean_object* v___y_4795_; uint8_t v___y_4796_; lean_object* v___y_4804_; lean_object* v___y_4805_; lean_object* v___y_4806_; lean_object* v___y_4807_; lean_object* v___y_4808_; lean_object* v___y_4809_; lean_object* v_log_4810_; uint8_t v_action_4811_; uint8_t v_wantsRebuild_4812_; lean_object* v_trace_4813_; lean_object* v_buildTime_4814_; lean_object* v_log_4840_; uint8_t v_action_4841_; uint8_t v_wantsRebuild_4842_; lean_object* v_trace_4843_; lean_object* v_buildTime_4844_; lean_object* v___y_4846_; lean_object* v___y_4847_; lean_object* v___y_4848_; lean_object* v___y_4849_; uint8_t v_val_4850_; lean_object* v_task_4856_; lean_object* v___x_4857_; lean_object* v___x_4858_; lean_object* v___y_4860_; lean_object* v___x_4897_; lean_object* v_a_4898_; lean_object* v_trace_4899_; 
v_log_4840_ = lean_ctor_get(v___y_4786_, 0);
lean_inc_ref(v_log_4840_);
v_action_4841_ = lean_ctor_get_uint8(v___y_4786_, sizeof(void*)*3);
v_wantsRebuild_4842_ = lean_ctor_get_uint8(v___y_4786_, sizeof(void*)*3 + 1);
v_trace_4843_ = lean_ctor_get(v___y_4786_, 1);
lean_inc_ref(v_trace_4843_);
v_buildTime_4844_ = lean_ctor_get(v___y_4786_, 2);
lean_inc(v_buildTime_4844_);
lean_dec_ref(v___y_4786_);
v_task_4856_ = lean_ctor_get(v_a_4765_, 0);
lean_inc_ref(v_task_4856_);
lean_dec_ref(v_a_4765_);
v___x_4857_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_4858_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0___closed__1, &l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0___closed__1_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0___closed__1);
v___x_4897_ = lean_task_get_own(v_task_4856_);
v_a_4898_ = lean_ctor_get(v___x_4897_, 1);
lean_inc(v_a_4898_);
lean_dec(v___x_4897_);
v_trace_4899_ = lean_ctor_get(v_a_4898_, 1);
lean_inc_ref(v_trace_4899_);
lean_dec(v_a_4898_);
v___y_4860_ = v_trace_4899_;
goto v___jp_4859_;
v___jp_4788_:
{
lean_object* v___x_4797_; lean_object* v___x_4798_; lean_object* v___x_4799_; lean_object* v___x_4800_; lean_object* v___x_4801_; lean_object* v___x_4802_; 
v___x_4797_ = l_Lake_BuildType_leanOptions(v___y_4796_);
v___x_4798_ = l_Lean_LeanOptions_ofArray(v_leanOptions_4766_);
v___x_4799_ = l_Lean_LeanOptions_append(v___x_4797_, v___x_4798_);
v___x_4800_ = l_Lean_LeanOptions_appendArray(v___x_4799_, v_leanOptions_4767_);
v___x_4801_ = lean_alloc_ctor(0, 7, 1);
lean_ctor_set(v___x_4801_, 0, v_name_4768_);
lean_ctor_set(v___x_4801_, 1, v___y_4795_);
lean_ctor_set(v___x_4801_, 2, v___y_4794_);
lean_ctor_set(v___x_4801_, 3, v___y_4791_);
lean_ctor_set(v___x_4801_, 4, v___y_4790_);
lean_ctor_set(v___x_4801_, 5, v___y_4789_);
lean_ctor_set(v___x_4801_, 6, v___x_4800_);
lean_ctor_set_uint8(v___x_4801_, sizeof(void*)*7, v___y_4792_);
v___x_4802_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_4802_, 0, v___x_4801_);
lean_ctor_set(v___x_4802_, 1, v___y_4793_);
return v___x_4802_;
}
v___jp_4803_:
{
lean_object* v___x_4815_; 
v___x_4815_ = l___private_Lake_Build_Module_0__Lake_computeModuleDeps(v_impLibs_4769_, v_externLibs_4770_, v_dynlibs_4771_, v_plugins_4780_, v___y_4805_, v___y_4806_, v___y_4807_, v___y_4808_, v___y_4809_, v_log_4810_);
if (lean_obj_tag(v___x_4815_) == 0)
{
lean_object* v_a_4816_; lean_object* v_a_4817_; lean_object* v_dynlibs_4818_; lean_object* v_plugins_4819_; uint8_t v_isModule_4820_; lean_object* v___x_4821_; lean_object* v___x_4822_; lean_object* v___x_4823_; size_t v_sz_4824_; size_t v___x_4825_; lean_object* v___x_4826_; size_t v_sz_4827_; lean_object* v___x_4828_; uint8_t v___x_4829_; 
v_a_4816_ = lean_ctor_get(v___x_4815_, 0);
lean_inc(v_a_4816_);
v_a_4817_ = lean_ctor_get(v___x_4815_, 1);
lean_inc(v_a_4817_);
lean_dec_ref(v___x_4815_);
v_dynlibs_4818_ = lean_ctor_get(v_a_4816_, 0);
lean_inc_ref(v_dynlibs_4818_);
v_plugins_4819_ = lean_ctor_get(v_a_4816_, 1);
lean_inc_ref(v_plugins_4819_);
lean_dec(v_a_4816_);
v_isModule_4820_ = lean_ctor_get_uint8(v_header_4772_, sizeof(void*)*1);
v___x_4821_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v___x_4821_, 0, v_a_4817_);
lean_ctor_set(v___x_4821_, 1, v_trace_4813_);
lean_ctor_set(v___x_4821_, 2, v_buildTime_4814_);
lean_ctor_set_uint8(v___x_4821_, sizeof(void*)*3, v_action_4811_);
lean_ctor_set_uint8(v___x_4821_, sizeof(void*)*3 + 1, v_wantsRebuild_4812_);
v___x_4822_ = l_Lake_Package_id_x3f(v_pkg_4773_);
v___x_4823_ = lean_box(0);
v_sz_4824_ = lean_array_size(v_dynlibs_4818_);
v___x_4825_ = ((size_t)0ULL);
v___x_4826_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__1(v_sz_4824_, v___x_4825_, v_dynlibs_4818_);
v_sz_4827_ = lean_array_size(v_plugins_4819_);
v___x_4828_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__1(v_sz_4827_, v___x_4825_, v_plugins_4819_);
v___x_4829_ = l_Lake_instOrdBuildType_ord(v_buildType_4774_, v_buildType_4775_);
if (v___x_4829_ == 2)
{
v___y_4789_ = v___x_4828_;
v___y_4790_ = v___x_4826_;
v___y_4791_ = v___y_4804_;
v___y_4792_ = v_isModule_4820_;
v___y_4793_ = v___x_4821_;
v___y_4794_ = v___x_4823_;
v___y_4795_ = v___x_4822_;
v___y_4796_ = v_buildType_4775_;
goto v___jp_4788_;
}
else
{
v___y_4789_ = v___x_4828_;
v___y_4790_ = v___x_4826_;
v___y_4791_ = v___y_4804_;
v___y_4792_ = v_isModule_4820_;
v___y_4793_ = v___x_4821_;
v___y_4794_ = v___x_4823_;
v___y_4795_ = v___x_4822_;
v___y_4796_ = v_buildType_4774_;
goto v___jp_4788_;
}
}
else
{
lean_object* v_a_4830_; lean_object* v_a_4831_; lean_object* v___x_4833_; uint8_t v_isShared_4834_; uint8_t v_isSharedCheck_4839_; 
lean_dec(v___y_4804_);
lean_dec_ref(v_pkg_4773_);
lean_dec(v_name_4768_);
v_a_4830_ = lean_ctor_get(v___x_4815_, 0);
v_a_4831_ = lean_ctor_get(v___x_4815_, 1);
v_isSharedCheck_4839_ = !lean_is_exclusive(v___x_4815_);
if (v_isSharedCheck_4839_ == 0)
{
v___x_4833_ = v___x_4815_;
v_isShared_4834_ = v_isSharedCheck_4839_;
goto v_resetjp_4832_;
}
else
{
lean_inc(v_a_4831_);
lean_inc(v_a_4830_);
lean_dec(v___x_4815_);
v___x_4833_ = lean_box(0);
v_isShared_4834_ = v_isSharedCheck_4839_;
goto v_resetjp_4832_;
}
v_resetjp_4832_:
{
lean_object* v___x_4835_; lean_object* v___x_4837_; 
v___x_4835_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v___x_4835_, 0, v_a_4831_);
lean_ctor_set(v___x_4835_, 1, v_trace_4813_);
lean_ctor_set(v___x_4835_, 2, v_buildTime_4814_);
lean_ctor_set_uint8(v___x_4835_, sizeof(void*)*3, v_action_4811_);
lean_ctor_set_uint8(v___x_4835_, sizeof(void*)*3 + 1, v_wantsRebuild_4812_);
if (v_isShared_4834_ == 0)
{
lean_ctor_set(v___x_4833_, 1, v___x_4835_);
v___x_4837_ = v___x_4833_;
goto v_reusejp_4836_;
}
else
{
lean_object* v_reuseFailAlloc_4838_; 
v_reuseFailAlloc_4838_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_4838_, 0, v_a_4830_);
lean_ctor_set(v_reuseFailAlloc_4838_, 1, v___x_4835_);
v___x_4837_ = v_reuseFailAlloc_4838_;
goto v_reusejp_4836_;
}
v_reusejp_4836_:
{
return v___x_4837_;
}
}
}
}
v___jp_4845_:
{
if (v_val_4850_ == 0)
{
lean_object* v___x_4851_; lean_object* v___x_4852_; lean_object* v___x_4853_; lean_object* v___x_4854_; 
v___x_4851_ = l_Lake_BuildTrace_mix(v___y_4846_, v___y_4847_);
v___x_4852_ = l_Lake_BuildTrace_mix(v___x_4851_, v___y_4848_);
v___x_4853_ = l_Lake_platformTrace;
v___x_4854_ = l_Lake_BuildTrace_mix(v___x_4852_, v___x_4853_);
v___y_4804_ = v___y_4849_;
v___y_4805_ = v___y_4781_;
v___y_4806_ = v___y_4782_;
v___y_4807_ = v___y_4783_;
v___y_4808_ = v___y_4784_;
v___y_4809_ = v___y_4785_;
v_log_4810_ = v_log_4840_;
v_action_4811_ = v_action_4841_;
v_wantsRebuild_4812_ = v_wantsRebuild_4842_;
v_trace_4813_ = v___x_4854_;
v_buildTime_4814_ = v_buildTime_4844_;
goto v___jp_4803_;
}
else
{
lean_object* v___x_4855_; 
lean_dec_ref(v___y_4848_);
v___x_4855_ = l_Lake_BuildTrace_mix(v___y_4846_, v___y_4847_);
v___y_4804_ = v___y_4849_;
v___y_4805_ = v___y_4781_;
v___y_4806_ = v___y_4782_;
v___y_4807_ = v___y_4783_;
v___y_4808_ = v___y_4784_;
v___y_4809_ = v___y_4785_;
v_log_4810_ = v_log_4840_;
v_action_4811_ = v_action_4841_;
v_wantsRebuild_4812_ = v_wantsRebuild_4842_;
v_trace_4813_ = v___x_4855_;
v_buildTime_4814_ = v_buildTime_4844_;
goto v___jp_4803_;
}
}
v___jp_4859_:
{
lean_object* v_directArts_4861_; lean_object* v_trace_4862_; lean_object* v_inputs_4863_; uint64_t v_hash_4864_; lean_object* v_mtime_4865_; lean_object* v___x_4867_; uint8_t v_isShared_4868_; uint8_t v_isSharedCheck_4895_; 
v_directArts_4861_ = lean_ctor_get(v_info_4776_, 0);
lean_inc(v_directArts_4861_);
v_trace_4862_ = lean_ctor_get(v_info_4776_, 1);
lean_inc_ref(v_trace_4862_);
lean_dec_ref(v_info_4776_);
v_inputs_4863_ = lean_ctor_get(v___x_4857_, 1);
v_hash_4864_ = lean_ctor_get_uint64(v___x_4857_, sizeof(void*)*3);
v_mtime_4865_ = lean_ctor_get(v___x_4857_, 2);
v_isSharedCheck_4895_ = !lean_is_exclusive(v___x_4857_);
if (v_isSharedCheck_4895_ == 0)
{
lean_object* v_unused_4896_; 
v_unused_4896_ = lean_ctor_get(v___x_4857_, 0);
lean_dec(v_unused_4896_);
v___x_4867_ = v___x_4857_;
v_isShared_4868_ = v_isSharedCheck_4895_;
goto v_resetjp_4866_;
}
else
{
lean_inc(v_mtime_4865_);
lean_inc(v_inputs_4863_);
lean_dec(v___x_4857_);
v___x_4867_ = lean_box(0);
v_isShared_4868_ = v_isSharedCheck_4895_;
goto v_resetjp_4866_;
}
v_resetjp_4866_:
{
lean_object* v_inputs_4869_; uint64_t v_hash_4870_; lean_object* v_mtime_4871_; lean_object* v___x_4873_; uint8_t v_isShared_4874_; uint8_t v_isSharedCheck_4893_; 
v_inputs_4869_ = lean_ctor_get(v_trace_4843_, 1);
v_hash_4870_ = lean_ctor_get_uint64(v_trace_4843_, sizeof(void*)*3);
v_mtime_4871_ = lean_ctor_get(v_trace_4843_, 2);
v_isSharedCheck_4893_ = !lean_is_exclusive(v_trace_4843_);
if (v_isSharedCheck_4893_ == 0)
{
lean_object* v_unused_4894_; 
v_unused_4894_ = lean_ctor_get(v_trace_4843_, 0);
lean_dec(v_unused_4894_);
v___x_4873_ = v_trace_4843_;
v_isShared_4874_ = v_isSharedCheck_4893_;
goto v_resetjp_4872_;
}
else
{
lean_inc(v_mtime_4871_);
lean_inc(v_inputs_4869_);
lean_dec(v_trace_4843_);
v___x_4873_ = lean_box(0);
v_isShared_4874_ = v_isSharedCheck_4893_;
goto v_resetjp_4872_;
}
v_resetjp_4872_:
{
lean_object* v___x_4875_; lean_object* v___x_4876_; lean_object* v___x_4877_; lean_object* v___x_4878_; lean_object* v___x_4879_; lean_object* v___x_4881_; 
v___x_4875_ = l_Lake_BuildTrace_mix(v___x_4858_, v___y_4860_);
v___x_4876_ = l_Lake_BuildTrace_mix(v___x_4875_, v_trace_4862_);
lean_inc(v_name_4768_);
v___x_4877_ = l_Lean_Name_toString(v_name_4768_, v___x_4777_);
v___x_4878_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0___closed__2));
v___x_4879_ = lean_string_append(v___x_4877_, v___x_4878_);
if (v_isShared_4874_ == 0)
{
lean_ctor_set(v___x_4873_, 2, v_mtime_4865_);
lean_ctor_set(v___x_4873_, 1, v_inputs_4863_);
lean_ctor_set(v___x_4873_, 0, v___x_4879_);
v___x_4881_ = v___x_4873_;
goto v_reusejp_4880_;
}
else
{
lean_object* v_reuseFailAlloc_4892_; 
v_reuseFailAlloc_4892_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v_reuseFailAlloc_4892_, 0, v___x_4879_);
lean_ctor_set(v_reuseFailAlloc_4892_, 1, v_inputs_4863_);
lean_ctor_set(v_reuseFailAlloc_4892_, 2, v_mtime_4865_);
v___x_4881_ = v_reuseFailAlloc_4892_;
goto v_reusejp_4880_;
}
v_reusejp_4880_:
{
lean_object* v___x_4882_; lean_object* v___x_4884_; 
lean_ctor_set_uint64(v___x_4881_, sizeof(void*)*3, v_hash_4864_);
v___x_4882_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0___closed__3));
if (v_isShared_4868_ == 0)
{
lean_ctor_set(v___x_4867_, 2, v_mtime_4871_);
lean_ctor_set(v___x_4867_, 1, v_inputs_4869_);
lean_ctor_set(v___x_4867_, 0, v___x_4882_);
v___x_4884_ = v___x_4867_;
goto v_reusejp_4883_;
}
else
{
lean_object* v_reuseFailAlloc_4891_; 
v_reuseFailAlloc_4891_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v_reuseFailAlloc_4891_, 0, v___x_4882_);
lean_ctor_set(v_reuseFailAlloc_4891_, 1, v_inputs_4869_);
lean_ctor_set(v_reuseFailAlloc_4891_, 2, v_mtime_4871_);
v___x_4884_ = v_reuseFailAlloc_4891_;
goto v_reusejp_4883_;
}
v_reusejp_4883_:
{
lean_ctor_set_uint64(v___x_4884_, sizeof(void*)*3, v_hash_4870_);
if (lean_obj_tag(v_platformIndependent_4778_) == 0)
{
if (lean_obj_tag(v_platformIndependent_4779_) == 0)
{
lean_object* v___x_4885_; lean_object* v___x_4886_; 
v___x_4885_ = l_Lake_BuildTrace_mix(v___x_4881_, v___x_4876_);
v___x_4886_ = l_Lake_BuildTrace_mix(v___x_4885_, v___x_4884_);
v___y_4804_ = v_directArts_4861_;
v___y_4805_ = v___y_4781_;
v___y_4806_ = v___y_4782_;
v___y_4807_ = v___y_4783_;
v___y_4808_ = v___y_4784_;
v___y_4809_ = v___y_4785_;
v_log_4810_ = v_log_4840_;
v_action_4811_ = v_action_4841_;
v_wantsRebuild_4812_ = v_wantsRebuild_4842_;
v_trace_4813_ = v___x_4886_;
v_buildTime_4814_ = v_buildTime_4844_;
goto v___jp_4803_;
}
else
{
lean_object* v_val_4887_; uint8_t v___x_4888_; 
v_val_4887_ = lean_ctor_get(v_platformIndependent_4779_, 0);
v___x_4888_ = lean_unbox(v_val_4887_);
v___y_4846_ = v___x_4881_;
v___y_4847_ = v___x_4876_;
v___y_4848_ = v___x_4884_;
v___y_4849_ = v_directArts_4861_;
v_val_4850_ = v___x_4888_;
goto v___jp_4845_;
}
}
else
{
lean_object* v_val_4889_; uint8_t v___x_4890_; 
v_val_4889_ = lean_ctor_get(v_platformIndependent_4778_, 0);
v___x_4890_ = lean_unbox(v_val_4889_);
v___y_4846_ = v___x_4881_;
v___y_4847_ = v___x_4876_;
v___y_4848_ = v___x_4884_;
v___y_4849_ = v_directArts_4861_;
v_val_4850_ = v___x_4890_;
goto v___jp_4845_;
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0___boxed(lean_object** _args){
lean_object* v_a_4900_ = _args[0];
lean_object* v_leanOptions_4901_ = _args[1];
lean_object* v_leanOptions_4902_ = _args[2];
lean_object* v_name_4903_ = _args[3];
lean_object* v_impLibs_4904_ = _args[4];
lean_object* v_externLibs_4905_ = _args[5];
lean_object* v_dynlibs_4906_ = _args[6];
lean_object* v_header_4907_ = _args[7];
lean_object* v_pkg_4908_ = _args[8];
lean_object* v_buildType_4909_ = _args[9];
lean_object* v_buildType_4910_ = _args[10];
lean_object* v_info_4911_ = _args[11];
lean_object* v___x_4912_ = _args[12];
lean_object* v_platformIndependent_4913_ = _args[13];
lean_object* v_platformIndependent_4914_ = _args[14];
lean_object* v_plugins_4915_ = _args[15];
lean_object* v___y_4916_ = _args[16];
lean_object* v___y_4917_ = _args[17];
lean_object* v___y_4918_ = _args[18];
lean_object* v___y_4919_ = _args[19];
lean_object* v___y_4920_ = _args[20];
lean_object* v___y_4921_ = _args[21];
lean_object* v___y_4922_ = _args[22];
_start:
{
uint8_t v_buildType_boxed_4923_; uint8_t v_buildType_boxed_4924_; uint8_t v___x_117512__boxed_4925_; lean_object* v_res_4926_; 
v_buildType_boxed_4923_ = lean_unbox(v_buildType_4909_);
v_buildType_boxed_4924_ = lean_unbox(v_buildType_4910_);
v___x_117512__boxed_4925_ = lean_unbox(v___x_4912_);
v_res_4926_ = l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0(v_a_4900_, v_leanOptions_4901_, v_leanOptions_4902_, v_name_4903_, v_impLibs_4904_, v_externLibs_4905_, v_dynlibs_4906_, v_header_4907_, v_pkg_4908_, v_buildType_boxed_4923_, v_buildType_boxed_4924_, v_info_4911_, v___x_117512__boxed_4925_, v_platformIndependent_4913_, v_platformIndependent_4914_, v_plugins_4915_, v___y_4916_, v___y_4917_, v___y_4918_, v___y_4919_, v___y_4920_, v___y_4921_);
lean_dec(v___y_4919_);
lean_dec(v___y_4918_);
lean_dec(v___y_4917_);
lean_dec_ref(v___y_4916_);
lean_dec(v_platformIndependent_4914_);
lean_dec(v_platformIndependent_4913_);
lean_dec_ref(v_header_4907_);
lean_dec_ref(v_dynlibs_4906_);
lean_dec_ref(v_impLibs_4904_);
lean_dec_ref(v_leanOptions_4902_);
lean_dec_ref(v_leanOptions_4901_);
return v_res_4926_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__1(lean_object* v_a_4927_, lean_object* v_leanOptions_4928_, lean_object* v_leanOptions_4929_, lean_object* v_name_4930_, lean_object* v_impLibs_4931_, lean_object* v_externLibs_4932_, lean_object* v_header_4933_, lean_object* v_pkg_4934_, uint8_t v_buildType_4935_, uint8_t v_buildType_4936_, lean_object* v_info_4937_, uint8_t v___x_4938_, lean_object* v_platformIndependent_4939_, lean_object* v_platformIndependent_4940_, lean_object* v___x_4941_, lean_object* v_a_4942_, lean_object* v_dynlibs_4943_, lean_object* v___y_4944_, lean_object* v___y_4945_, lean_object* v___y_4946_, lean_object* v___y_4947_, lean_object* v___y_4948_, lean_object* v___y_4949_){
_start:
{
lean_object* v_trace_4951_; lean_object* v___x_4952_; lean_object* v___x_4953_; lean_object* v___x_4954_; lean_object* v___f_4955_; lean_object* v___x_4956_; uint8_t v___x_4957_; lean_object* v___x_4958_; lean_object* v___x_4959_; 
v_trace_4951_ = lean_ctor_get(v___y_4949_, 1);
v___x_4952_ = lean_box(v_buildType_4935_);
v___x_4953_ = lean_box(v_buildType_4936_);
v___x_4954_ = lean_box(v___x_4938_);
v___f_4955_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0___boxed), 23, 15);
lean_closure_set(v___f_4955_, 0, v_a_4927_);
lean_closure_set(v___f_4955_, 1, v_leanOptions_4928_);
lean_closure_set(v___f_4955_, 2, v_leanOptions_4929_);
lean_closure_set(v___f_4955_, 3, v_name_4930_);
lean_closure_set(v___f_4955_, 4, v_impLibs_4931_);
lean_closure_set(v___f_4955_, 5, v_externLibs_4932_);
lean_closure_set(v___f_4955_, 6, v_dynlibs_4943_);
lean_closure_set(v___f_4955_, 7, v_header_4933_);
lean_closure_set(v___f_4955_, 8, v_pkg_4934_);
lean_closure_set(v___f_4955_, 9, v___x_4952_);
lean_closure_set(v___f_4955_, 10, v___x_4953_);
lean_closure_set(v___f_4955_, 11, v_info_4937_);
lean_closure_set(v___f_4955_, 12, v___x_4954_);
lean_closure_set(v___f_4955_, 13, v_platformIndependent_4939_);
lean_closure_set(v___f_4955_, 14, v_platformIndependent_4940_);
v___x_4956_ = lean_unsigned_to_nat(0u);
v___x_4957_ = 0;
lean_inc_ref(v_trace_4951_);
v___x_4958_ = l_Lake_Job_mapM___redArg(v___x_4941_, v_a_4942_, v___f_4955_, v___x_4956_, v___x_4957_, v___y_4944_, v___y_4945_, v___y_4946_, v___y_4947_, v___y_4948_, v_trace_4951_);
v___x_4959_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_4959_, 0, v___x_4958_);
lean_ctor_set(v___x_4959_, 1, v___y_4949_);
return v___x_4959_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__1___boxed(lean_object** _args){
lean_object* v_a_4960_ = _args[0];
lean_object* v_leanOptions_4961_ = _args[1];
lean_object* v_leanOptions_4962_ = _args[2];
lean_object* v_name_4963_ = _args[3];
lean_object* v_impLibs_4964_ = _args[4];
lean_object* v_externLibs_4965_ = _args[5];
lean_object* v_header_4966_ = _args[6];
lean_object* v_pkg_4967_ = _args[7];
lean_object* v_buildType_4968_ = _args[8];
lean_object* v_buildType_4969_ = _args[9];
lean_object* v_info_4970_ = _args[10];
lean_object* v___x_4971_ = _args[11];
lean_object* v_platformIndependent_4972_ = _args[12];
lean_object* v_platformIndependent_4973_ = _args[13];
lean_object* v___x_4974_ = _args[14];
lean_object* v_a_4975_ = _args[15];
lean_object* v_dynlibs_4976_ = _args[16];
lean_object* v___y_4977_ = _args[17];
lean_object* v___y_4978_ = _args[18];
lean_object* v___y_4979_ = _args[19];
lean_object* v___y_4980_ = _args[20];
lean_object* v___y_4981_ = _args[21];
lean_object* v___y_4982_ = _args[22];
lean_object* v___y_4983_ = _args[23];
_start:
{
uint8_t v_buildType_boxed_4984_; uint8_t v_buildType_boxed_4985_; uint8_t v___x_117723__boxed_4986_; lean_object* v_res_4987_; 
v_buildType_boxed_4984_ = lean_unbox(v_buildType_4968_);
v_buildType_boxed_4985_ = lean_unbox(v_buildType_4969_);
v___x_117723__boxed_4986_ = lean_unbox(v___x_4971_);
v_res_4987_ = l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__1(v_a_4960_, v_leanOptions_4961_, v_leanOptions_4962_, v_name_4963_, v_impLibs_4964_, v_externLibs_4965_, v_header_4966_, v_pkg_4967_, v_buildType_boxed_4984_, v_buildType_boxed_4985_, v_info_4970_, v___x_117723__boxed_4986_, v_platformIndependent_4972_, v_platformIndependent_4973_, v___x_4974_, v_a_4975_, v_dynlibs_4976_, v___y_4977_, v___y_4978_, v___y_4979_, v___y_4980_, v___y_4981_, v___y_4982_);
return v_res_4987_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__2(lean_object* v_a_4988_, lean_object* v_leanOptions_4989_, lean_object* v_leanOptions_4990_, lean_object* v_name_4991_, lean_object* v_impLibs_4992_, lean_object* v_header_4993_, lean_object* v_pkg_4994_, uint8_t v_buildType_4995_, uint8_t v_buildType_4996_, lean_object* v_info_4997_, uint8_t v___x_4998_, lean_object* v_platformIndependent_4999_, lean_object* v_platformIndependent_5000_, lean_object* v___x_5001_, lean_object* v_a_5002_, lean_object* v_a_5003_, lean_object* v_externLibs_5004_, lean_object* v___y_5005_, lean_object* v___y_5006_, lean_object* v___y_5007_, lean_object* v___y_5008_, lean_object* v___y_5009_, lean_object* v___y_5010_){
_start:
{
lean_object* v_trace_5012_; lean_object* v___x_5013_; lean_object* v___x_5014_; lean_object* v___x_5015_; lean_object* v___f_5016_; lean_object* v___x_5017_; lean_object* v___x_5018_; lean_object* v___x_5019_; 
v_trace_5012_ = lean_ctor_get(v___y_5010_, 1);
v___x_5013_ = lean_box(v_buildType_4995_);
v___x_5014_ = lean_box(v_buildType_4996_);
v___x_5015_ = lean_box(v___x_4998_);
lean_inc(v___x_5001_);
v___f_5016_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__1___boxed), 24, 16);
lean_closure_set(v___f_5016_, 0, v_a_4988_);
lean_closure_set(v___f_5016_, 1, v_leanOptions_4989_);
lean_closure_set(v___f_5016_, 2, v_leanOptions_4990_);
lean_closure_set(v___f_5016_, 3, v_name_4991_);
lean_closure_set(v___f_5016_, 4, v_impLibs_4992_);
lean_closure_set(v___f_5016_, 5, v_externLibs_5004_);
lean_closure_set(v___f_5016_, 6, v_header_4993_);
lean_closure_set(v___f_5016_, 7, v_pkg_4994_);
lean_closure_set(v___f_5016_, 8, v___x_5013_);
lean_closure_set(v___f_5016_, 9, v___x_5014_);
lean_closure_set(v___f_5016_, 10, v_info_4997_);
lean_closure_set(v___f_5016_, 11, v___x_5015_);
lean_closure_set(v___f_5016_, 12, v_platformIndependent_4999_);
lean_closure_set(v___f_5016_, 13, v_platformIndependent_5000_);
lean_closure_set(v___f_5016_, 14, v___x_5001_);
lean_closure_set(v___f_5016_, 15, v_a_5002_);
v___x_5017_ = lean_unsigned_to_nat(0u);
lean_inc_ref(v_trace_5012_);
v___x_5018_ = l_Lake_Job_bindM___redArg(v___x_5001_, v_a_5003_, v___f_5016_, v___x_5017_, v___x_4998_, v___y_5005_, v___y_5006_, v___y_5007_, v___y_5008_, v___y_5009_, v_trace_5012_);
v___x_5019_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_5019_, 0, v___x_5018_);
lean_ctor_set(v___x_5019_, 1, v___y_5010_);
return v___x_5019_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__2___boxed(lean_object** _args){
lean_object* v_a_5020_ = _args[0];
lean_object* v_leanOptions_5021_ = _args[1];
lean_object* v_leanOptions_5022_ = _args[2];
lean_object* v_name_5023_ = _args[3];
lean_object* v_impLibs_5024_ = _args[4];
lean_object* v_header_5025_ = _args[5];
lean_object* v_pkg_5026_ = _args[6];
lean_object* v_buildType_5027_ = _args[7];
lean_object* v_buildType_5028_ = _args[8];
lean_object* v_info_5029_ = _args[9];
lean_object* v___x_5030_ = _args[10];
lean_object* v_platformIndependent_5031_ = _args[11];
lean_object* v_platformIndependent_5032_ = _args[12];
lean_object* v___x_5033_ = _args[13];
lean_object* v_a_5034_ = _args[14];
lean_object* v_a_5035_ = _args[15];
lean_object* v_externLibs_5036_ = _args[16];
lean_object* v___y_5037_ = _args[17];
lean_object* v___y_5038_ = _args[18];
lean_object* v___y_5039_ = _args[19];
lean_object* v___y_5040_ = _args[20];
lean_object* v___y_5041_ = _args[21];
lean_object* v___y_5042_ = _args[22];
lean_object* v___y_5043_ = _args[23];
_start:
{
uint8_t v_buildType_boxed_5044_; uint8_t v_buildType_boxed_5045_; uint8_t v___x_117772__boxed_5046_; lean_object* v_res_5047_; 
v_buildType_boxed_5044_ = lean_unbox(v_buildType_5027_);
v_buildType_boxed_5045_ = lean_unbox(v_buildType_5028_);
v___x_117772__boxed_5046_ = lean_unbox(v___x_5030_);
v_res_5047_ = l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__2(v_a_5020_, v_leanOptions_5021_, v_leanOptions_5022_, v_name_5023_, v_impLibs_5024_, v_header_5025_, v_pkg_5026_, v_buildType_boxed_5044_, v_buildType_boxed_5045_, v_info_5029_, v___x_117772__boxed_5046_, v_platformIndependent_5031_, v_platformIndependent_5032_, v___x_5033_, v_a_5034_, v_a_5035_, v_externLibs_5036_, v___y_5037_, v___y_5038_, v___y_5039_, v___y_5040_, v___y_5041_, v___y_5042_);
return v_res_5047_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__3(lean_object* v_a_5048_, lean_object* v_leanOptions_5049_, lean_object* v_leanOptions_5050_, lean_object* v_name_5051_, lean_object* v_header_5052_, lean_object* v_pkg_5053_, uint8_t v_buildType_5054_, uint8_t v_buildType_5055_, lean_object* v_info_5056_, uint8_t v___x_5057_, lean_object* v_platformIndependent_5058_, lean_object* v_platformIndependent_5059_, lean_object* v___x_5060_, lean_object* v_a_5061_, lean_object* v_a_5062_, lean_object* v___x_5063_, lean_object* v_impLibs_5064_, lean_object* v___y_5065_, lean_object* v___y_5066_, lean_object* v___y_5067_, lean_object* v___y_5068_, lean_object* v___y_5069_, lean_object* v___y_5070_){
_start:
{
lean_object* v_trace_5072_; lean_object* v___x_5073_; lean_object* v___x_5074_; lean_object* v___x_5075_; lean_object* v___f_5076_; lean_object* v___x_5077_; lean_object* v___x_5078_; lean_object* v___x_5079_; 
v_trace_5072_ = lean_ctor_get(v___y_5070_, 1);
v___x_5073_ = lean_box(v_buildType_5054_);
v___x_5074_ = lean_box(v_buildType_5055_);
v___x_5075_ = lean_box(v___x_5057_);
lean_inc(v___x_5060_);
v___f_5076_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__2___boxed), 24, 16);
lean_closure_set(v___f_5076_, 0, v_a_5048_);
lean_closure_set(v___f_5076_, 1, v_leanOptions_5049_);
lean_closure_set(v___f_5076_, 2, v_leanOptions_5050_);
lean_closure_set(v___f_5076_, 3, v_name_5051_);
lean_closure_set(v___f_5076_, 4, v_impLibs_5064_);
lean_closure_set(v___f_5076_, 5, v_header_5052_);
lean_closure_set(v___f_5076_, 6, v_pkg_5053_);
lean_closure_set(v___f_5076_, 7, v___x_5073_);
lean_closure_set(v___f_5076_, 8, v___x_5074_);
lean_closure_set(v___f_5076_, 9, v_info_5056_);
lean_closure_set(v___f_5076_, 10, v___x_5075_);
lean_closure_set(v___f_5076_, 11, v_platformIndependent_5058_);
lean_closure_set(v___f_5076_, 12, v_platformIndependent_5059_);
lean_closure_set(v___f_5076_, 13, v___x_5060_);
lean_closure_set(v___f_5076_, 14, v_a_5061_);
lean_closure_set(v___f_5076_, 15, v_a_5062_);
v___x_5077_ = lean_unsigned_to_nat(0u);
lean_inc_ref(v_trace_5072_);
v___x_5078_ = l_Lake_Job_bindM___redArg(v___x_5060_, v___x_5063_, v___f_5076_, v___x_5077_, v___x_5057_, v___y_5065_, v___y_5066_, v___y_5067_, v___y_5068_, v___y_5069_, v_trace_5072_);
v___x_5079_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_5079_, 0, v___x_5078_);
lean_ctor_set(v___x_5079_, 1, v___y_5070_);
return v___x_5079_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__3___boxed(lean_object** _args){
lean_object* v_a_5080_ = _args[0];
lean_object* v_leanOptions_5081_ = _args[1];
lean_object* v_leanOptions_5082_ = _args[2];
lean_object* v_name_5083_ = _args[3];
lean_object* v_header_5084_ = _args[4];
lean_object* v_pkg_5085_ = _args[5];
lean_object* v_buildType_5086_ = _args[6];
lean_object* v_buildType_5087_ = _args[7];
lean_object* v_info_5088_ = _args[8];
lean_object* v___x_5089_ = _args[9];
lean_object* v_platformIndependent_5090_ = _args[10];
lean_object* v_platformIndependent_5091_ = _args[11];
lean_object* v___x_5092_ = _args[12];
lean_object* v_a_5093_ = _args[13];
lean_object* v_a_5094_ = _args[14];
lean_object* v___x_5095_ = _args[15];
lean_object* v_impLibs_5096_ = _args[16];
lean_object* v___y_5097_ = _args[17];
lean_object* v___y_5098_ = _args[18];
lean_object* v___y_5099_ = _args[19];
lean_object* v___y_5100_ = _args[20];
lean_object* v___y_5101_ = _args[21];
lean_object* v___y_5102_ = _args[22];
lean_object* v___y_5103_ = _args[23];
_start:
{
uint8_t v_buildType_boxed_5104_; uint8_t v_buildType_boxed_5105_; uint8_t v___x_117822__boxed_5106_; lean_object* v_res_5107_; 
v_buildType_boxed_5104_ = lean_unbox(v_buildType_5086_);
v_buildType_boxed_5105_ = lean_unbox(v_buildType_5087_);
v___x_117822__boxed_5106_ = lean_unbox(v___x_5089_);
v_res_5107_ = l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__3(v_a_5080_, v_leanOptions_5081_, v_leanOptions_5082_, v_name_5083_, v_header_5084_, v_pkg_5085_, v_buildType_boxed_5104_, v_buildType_boxed_5105_, v_info_5088_, v___x_117822__boxed_5106_, v_platformIndependent_5090_, v_platformIndependent_5091_, v___x_5092_, v_a_5093_, v_a_5094_, v___x_5095_, v_impLibs_5096_, v___y_5097_, v___y_5098_, v___y_5099_, v___y_5100_, v___y_5101_, v___y_5102_);
return v_res_5107_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__4(lean_object* v_a_5108_, lean_object* v_leanOptions_5109_, lean_object* v_leanOptions_5110_, lean_object* v_name_5111_, lean_object* v_header_5112_, lean_object* v_pkg_5113_, uint8_t v_buildType_5114_, uint8_t v_buildType_5115_, uint8_t v___x_5116_, lean_object* v_platformIndependent_5117_, lean_object* v_platformIndependent_5118_, lean_object* v___x_5119_, lean_object* v_a_5120_, lean_object* v_a_5121_, lean_object* v___x_5122_, lean_object* v___x_5123_, lean_object* v_info_5124_, lean_object* v___y_5125_, lean_object* v___y_5126_, lean_object* v___y_5127_, lean_object* v___y_5128_, lean_object* v___y_5129_, lean_object* v___y_5130_){
_start:
{
lean_object* v_log_5132_; uint8_t v_action_5133_; uint8_t v_wantsRebuild_5134_; lean_object* v_buildTime_5135_; lean_object* v___x_5137_; uint8_t v_isShared_5138_; uint8_t v_isSharedCheck_5150_; 
v_log_5132_ = lean_ctor_get(v___y_5130_, 0);
v_action_5133_ = lean_ctor_get_uint8(v___y_5130_, sizeof(void*)*3);
v_wantsRebuild_5134_ = lean_ctor_get_uint8(v___y_5130_, sizeof(void*)*3 + 1);
v_buildTime_5135_ = lean_ctor_get(v___y_5130_, 2);
v_isSharedCheck_5150_ = !lean_is_exclusive(v___y_5130_);
if (v_isSharedCheck_5150_ == 0)
{
lean_object* v_unused_5151_; 
v_unused_5151_ = lean_ctor_get(v___y_5130_, 1);
lean_dec(v_unused_5151_);
v___x_5137_ = v___y_5130_;
v_isShared_5138_ = v_isSharedCheck_5150_;
goto v_resetjp_5136_;
}
else
{
lean_inc(v_buildTime_5135_);
lean_inc(v_log_5132_);
lean_dec(v___y_5130_);
v___x_5137_ = lean_box(0);
v_isShared_5138_ = v_isSharedCheck_5150_;
goto v_resetjp_5136_;
}
v_resetjp_5136_:
{
lean_object* v___x_5139_; lean_object* v___x_5140_; lean_object* v___x_5141_; lean_object* v___f_5142_; lean_object* v___x_5143_; lean_object* v___x_5145_; 
v___x_5139_ = lean_box(v_buildType_5114_);
v___x_5140_ = lean_box(v_buildType_5115_);
v___x_5141_ = lean_box(v___x_5116_);
lean_inc(v___x_5119_);
v___f_5142_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__3___boxed), 24, 16);
lean_closure_set(v___f_5142_, 0, v_a_5108_);
lean_closure_set(v___f_5142_, 1, v_leanOptions_5109_);
lean_closure_set(v___f_5142_, 2, v_leanOptions_5110_);
lean_closure_set(v___f_5142_, 3, v_name_5111_);
lean_closure_set(v___f_5142_, 4, v_header_5112_);
lean_closure_set(v___f_5142_, 5, v_pkg_5113_);
lean_closure_set(v___f_5142_, 6, v___x_5139_);
lean_closure_set(v___f_5142_, 7, v___x_5140_);
lean_closure_set(v___f_5142_, 8, v_info_5124_);
lean_closure_set(v___f_5142_, 9, v___x_5141_);
lean_closure_set(v___f_5142_, 10, v_platformIndependent_5117_);
lean_closure_set(v___f_5142_, 11, v_platformIndependent_5118_);
lean_closure_set(v___f_5142_, 12, v___x_5119_);
lean_closure_set(v___f_5142_, 13, v_a_5120_);
lean_closure_set(v___f_5142_, 14, v_a_5121_);
lean_closure_set(v___f_5142_, 15, v___x_5122_);
v___x_5143_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
if (v_isShared_5138_ == 0)
{
lean_ctor_set(v___x_5137_, 1, v___x_5143_);
v___x_5145_ = v___x_5137_;
goto v_reusejp_5144_;
}
else
{
lean_object* v_reuseFailAlloc_5149_; 
v_reuseFailAlloc_5149_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_5149_, 0, v_log_5132_);
lean_ctor_set(v_reuseFailAlloc_5149_, 1, v___x_5143_);
lean_ctor_set(v_reuseFailAlloc_5149_, 2, v_buildTime_5135_);
lean_ctor_set_uint8(v_reuseFailAlloc_5149_, sizeof(void*)*3, v_action_5133_);
lean_ctor_set_uint8(v_reuseFailAlloc_5149_, sizeof(void*)*3 + 1, v_wantsRebuild_5134_);
v___x_5145_ = v_reuseFailAlloc_5149_;
goto v_reusejp_5144_;
}
v_reusejp_5144_:
{
lean_object* v___x_5146_; lean_object* v___x_5147_; lean_object* v___x_5148_; 
v___x_5146_ = lean_unsigned_to_nat(0u);
v___x_5147_ = l_Lake_Job_bindM___redArg(v___x_5119_, v___x_5123_, v___f_5142_, v___x_5146_, v___x_5116_, v___y_5125_, v___y_5126_, v___y_5127_, v___y_5128_, v___y_5129_, v___x_5143_);
v___x_5148_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_5148_, 0, v___x_5147_);
lean_ctor_set(v___x_5148_, 1, v___x_5145_);
return v___x_5148_;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__4___boxed(lean_object** _args){
lean_object* v_a_5152_ = _args[0];
lean_object* v_leanOptions_5153_ = _args[1];
lean_object* v_leanOptions_5154_ = _args[2];
lean_object* v_name_5155_ = _args[3];
lean_object* v_header_5156_ = _args[4];
lean_object* v_pkg_5157_ = _args[5];
lean_object* v_buildType_5158_ = _args[6];
lean_object* v_buildType_5159_ = _args[7];
lean_object* v___x_5160_ = _args[8];
lean_object* v_platformIndependent_5161_ = _args[9];
lean_object* v_platformIndependent_5162_ = _args[10];
lean_object* v___x_5163_ = _args[11];
lean_object* v_a_5164_ = _args[12];
lean_object* v_a_5165_ = _args[13];
lean_object* v___x_5166_ = _args[14];
lean_object* v___x_5167_ = _args[15];
lean_object* v_info_5168_ = _args[16];
lean_object* v___y_5169_ = _args[17];
lean_object* v___y_5170_ = _args[18];
lean_object* v___y_5171_ = _args[19];
lean_object* v___y_5172_ = _args[20];
lean_object* v___y_5173_ = _args[21];
lean_object* v___y_5174_ = _args[22];
lean_object* v___y_5175_ = _args[23];
_start:
{
uint8_t v_buildType_boxed_5176_; uint8_t v_buildType_boxed_5177_; uint8_t v___x_117878__boxed_5178_; lean_object* v_res_5179_; 
v_buildType_boxed_5176_ = lean_unbox(v_buildType_5158_);
v_buildType_boxed_5177_ = lean_unbox(v_buildType_5159_);
v___x_117878__boxed_5178_ = lean_unbox(v___x_5160_);
v_res_5179_ = l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__4(v_a_5152_, v_leanOptions_5153_, v_leanOptions_5154_, v_name_5155_, v_header_5156_, v_pkg_5157_, v_buildType_boxed_5176_, v_buildType_boxed_5177_, v___x_117878__boxed_5178_, v_platformIndependent_5161_, v_platformIndependent_5162_, v___x_5163_, v_a_5164_, v_a_5165_, v___x_5166_, v___x_5167_, v_info_5168_, v___y_5169_, v___y_5170_, v___y_5171_, v___y_5172_, v___y_5173_, v___y_5174_);
return v_res_5179_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__5(lean_object* v___x_5180_, lean_object* v_a_5181_, lean_object* v___f_5182_, uint8_t v___x_5183_, lean_object* v_x_5184_, lean_object* v___y_5185_, lean_object* v___y_5186_, lean_object* v___y_5187_, lean_object* v___y_5188_, lean_object* v___y_5189_, lean_object* v___y_5190_){
_start:
{
lean_object* v_trace_5192_; lean_object* v___x_5193_; lean_object* v___x_5194_; lean_object* v___x_5195_; 
v_trace_5192_ = lean_ctor_get(v___y_5190_, 1);
v___x_5193_ = lean_unsigned_to_nat(0u);
lean_inc_ref(v_trace_5192_);
v___x_5194_ = l_Lake_Job_bindM___redArg(v___x_5180_, v_a_5181_, v___f_5182_, v___x_5193_, v___x_5183_, v___y_5185_, v___y_5186_, v___y_5187_, v___y_5188_, v___y_5189_, v_trace_5192_);
v___x_5195_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_5195_, 0, v___x_5194_);
lean_ctor_set(v___x_5195_, 1, v___y_5190_);
return v___x_5195_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__5___boxed(lean_object* v___x_5196_, lean_object* v_a_5197_, lean_object* v___f_5198_, lean_object* v___x_5199_, lean_object* v_x_5200_, lean_object* v___y_5201_, lean_object* v___y_5202_, lean_object* v___y_5203_, lean_object* v___y_5204_, lean_object* v___y_5205_, lean_object* v___y_5206_, lean_object* v___y_5207_){
_start:
{
uint8_t v___x_117955__boxed_5208_; lean_object* v_res_5209_; 
v___x_117955__boxed_5208_ = lean_unbox(v___x_5199_);
v_res_5209_ = l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__5(v___x_5196_, v_a_5197_, v___f_5198_, v___x_117955__boxed_5208_, v_x_5200_, v___y_5201_, v___y_5202_, v___y_5203_, v___y_5204_, v___y_5205_, v___y_5206_);
return v_res_5209_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__6(lean_object* v_a_5210_, lean_object* v_leanOptions_5211_, lean_object* v_leanOptions_5212_, lean_object* v_name_5213_, lean_object* v_pkg_5214_, uint8_t v_buildType_5215_, uint8_t v_buildType_5216_, uint8_t v___x_5217_, lean_object* v_platformIndependent_5218_, lean_object* v_platformIndependent_5219_, lean_object* v___x_5220_, lean_object* v_a_5221_, lean_object* v_a_5222_, lean_object* v___x_5223_, lean_object* v___x_5224_, lean_object* v_a_5225_, lean_object* v_header_5226_, lean_object* v___y_5227_, lean_object* v___y_5228_, lean_object* v___y_5229_, lean_object* v___y_5230_, lean_object* v___y_5231_, lean_object* v___y_5232_){
_start:
{
lean_object* v_trace_5234_; lean_object* v___x_5235_; lean_object* v___x_5236_; lean_object* v___x_5237_; lean_object* v___f_5238_; lean_object* v___x_5239_; lean_object* v___f_5240_; lean_object* v___x_5241_; lean_object* v___x_5242_; lean_object* v___x_5243_; 
v_trace_5234_ = lean_ctor_get(v___y_5232_, 1);
v___x_5235_ = lean_box(v_buildType_5215_);
v___x_5236_ = lean_box(v_buildType_5216_);
v___x_5237_ = lean_box(v___x_5217_);
lean_inc(v___x_5220_);
lean_inc_ref(v_a_5210_);
v___f_5238_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__4___boxed), 24, 16);
lean_closure_set(v___f_5238_, 0, v_a_5210_);
lean_closure_set(v___f_5238_, 1, v_leanOptions_5211_);
lean_closure_set(v___f_5238_, 2, v_leanOptions_5212_);
lean_closure_set(v___f_5238_, 3, v_name_5213_);
lean_closure_set(v___f_5238_, 4, v_header_5226_);
lean_closure_set(v___f_5238_, 5, v_pkg_5214_);
lean_closure_set(v___f_5238_, 6, v___x_5235_);
lean_closure_set(v___f_5238_, 7, v___x_5236_);
lean_closure_set(v___f_5238_, 8, v___x_5237_);
lean_closure_set(v___f_5238_, 9, v_platformIndependent_5218_);
lean_closure_set(v___f_5238_, 10, v_platformIndependent_5219_);
lean_closure_set(v___f_5238_, 11, v___x_5220_);
lean_closure_set(v___f_5238_, 12, v_a_5221_);
lean_closure_set(v___f_5238_, 13, v_a_5222_);
lean_closure_set(v___f_5238_, 14, v___x_5223_);
lean_closure_set(v___f_5238_, 15, v___x_5224_);
v___x_5239_ = lean_box(v___x_5217_);
lean_inc(v___x_5220_);
v___f_5240_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__5___boxed), 12, 4);
lean_closure_set(v___f_5240_, 0, v___x_5220_);
lean_closure_set(v___f_5240_, 1, v_a_5225_);
lean_closure_set(v___f_5240_, 2, v___f_5238_);
lean_closure_set(v___f_5240_, 3, v___x_5239_);
v___x_5241_ = lean_unsigned_to_nat(0u);
lean_inc_ref(v_trace_5234_);
v___x_5242_ = l_Lake_Job_bindM___redArg(v___x_5220_, v_a_5210_, v___f_5240_, v___x_5241_, v___x_5217_, v___y_5227_, v___y_5228_, v___y_5229_, v___y_5230_, v___y_5231_, v_trace_5234_);
v___x_5243_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_5243_, 0, v___x_5242_);
lean_ctor_set(v___x_5243_, 1, v___y_5232_);
return v___x_5243_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__6___boxed(lean_object** _args){
lean_object* v_a_5244_ = _args[0];
lean_object* v_leanOptions_5245_ = _args[1];
lean_object* v_leanOptions_5246_ = _args[2];
lean_object* v_name_5247_ = _args[3];
lean_object* v_pkg_5248_ = _args[4];
lean_object* v_buildType_5249_ = _args[5];
lean_object* v_buildType_5250_ = _args[6];
lean_object* v___x_5251_ = _args[7];
lean_object* v_platformIndependent_5252_ = _args[8];
lean_object* v_platformIndependent_5253_ = _args[9];
lean_object* v___x_5254_ = _args[10];
lean_object* v_a_5255_ = _args[11];
lean_object* v_a_5256_ = _args[12];
lean_object* v___x_5257_ = _args[13];
lean_object* v___x_5258_ = _args[14];
lean_object* v_a_5259_ = _args[15];
lean_object* v_header_5260_ = _args[16];
lean_object* v___y_5261_ = _args[17];
lean_object* v___y_5262_ = _args[18];
lean_object* v___y_5263_ = _args[19];
lean_object* v___y_5264_ = _args[20];
lean_object* v___y_5265_ = _args[21];
lean_object* v___y_5266_ = _args[22];
lean_object* v___y_5267_ = _args[23];
_start:
{
uint8_t v_buildType_boxed_5268_; uint8_t v_buildType_boxed_5269_; uint8_t v___x_117995__boxed_5270_; lean_object* v_res_5271_; 
v_buildType_boxed_5268_ = lean_unbox(v_buildType_5249_);
v_buildType_boxed_5269_ = lean_unbox(v_buildType_5250_);
v___x_117995__boxed_5270_ = lean_unbox(v___x_5251_);
v_res_5271_ = l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__6(v_a_5244_, v_leanOptions_5245_, v_leanOptions_5246_, v_name_5247_, v_pkg_5248_, v_buildType_boxed_5268_, v_buildType_boxed_5269_, v___x_117995__boxed_5270_, v_platformIndependent_5252_, v_platformIndependent_5253_, v___x_5254_, v_a_5255_, v_a_5256_, v___x_5257_, v___x_5258_, v_a_5259_, v_header_5260_, v___y_5261_, v___y_5262_, v___y_5263_, v___y_5264_, v___y_5265_, v___y_5266_);
return v_res_5271_;
}
}
static lean_object* _init_l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___closed__2(void){
_start:
{
uint8_t v___x_5274_; lean_object* v_name_5275_; lean_object* v___x_5276_; 
v___x_5274_ = 1;
v_name_5275_ = l_Lake_instDataKindDynlib;
v___x_5276_ = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(v_name_5275_, v___x_5274_);
return v___x_5276_;
}
}
LEAN_EXPORT lean_object* l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0(lean_object* v_defaultPkg_5279_, lean_object* v_self_5280_, lean_object* v_a_5281_, lean_object* v_a_5282_, lean_object* v_a_5283_, lean_object* v_a_5284_, lean_object* v_a_5285_, lean_object* v_a_5286_){
_start:
{
uint8_t v___x_5288_; lean_object* v___x_5289_; 
v___x_5288_ = 1;
lean_inc_ref_n(v_self_5280_, 2);
v___x_5289_ = l___private_Lake_Build_Target_Fetch_0__Lake_PartialBuildKey_fetchInCoreAux(v_defaultPkg_5279_, v_self_5280_, v_self_5280_, v___x_5288_, v_a_5281_, v_a_5282_, v_a_5283_, v_a_5284_, v_a_5285_, v_a_5286_);
if (lean_obj_tag(v___x_5289_) == 0)
{
lean_object* v_a_5290_; lean_object* v_snd_5291_; lean_object* v___x_5293_; uint8_t v_isShared_5294_; uint8_t v_isSharedCheck_5332_; 
v_a_5290_ = lean_ctor_get(v___x_5289_, 0);
lean_inc(v_a_5290_);
v_snd_5291_ = lean_ctor_get(v_a_5290_, 1);
v_isSharedCheck_5332_ = !lean_is_exclusive(v_a_5290_);
if (v_isSharedCheck_5332_ == 0)
{
lean_object* v_unused_5333_; 
v_unused_5333_ = lean_ctor_get(v_a_5290_, 0);
lean_dec(v_unused_5333_);
v___x_5293_ = v_a_5290_;
v_isShared_5294_ = v_isSharedCheck_5332_;
goto v_resetjp_5292_;
}
else
{
lean_inc(v_snd_5291_);
lean_dec(v_a_5290_);
v___x_5293_ = lean_box(0);
v_isShared_5294_ = v_isSharedCheck_5332_;
goto v_resetjp_5292_;
}
v_resetjp_5292_:
{
lean_object* v_a_5295_; lean_object* v___x_5297_; uint8_t v_isShared_5298_; uint8_t v_isSharedCheck_5330_; 
v_a_5295_ = lean_ctor_get(v___x_5289_, 1);
v_isSharedCheck_5330_ = !lean_is_exclusive(v___x_5289_);
if (v_isSharedCheck_5330_ == 0)
{
lean_object* v_unused_5331_; 
v_unused_5331_ = lean_ctor_get(v___x_5289_, 0);
lean_dec(v_unused_5331_);
v___x_5297_ = v___x_5289_;
v_isShared_5298_ = v_isSharedCheck_5330_;
goto v_resetjp_5296_;
}
else
{
lean_inc(v_a_5295_);
lean_dec(v___x_5289_);
v___x_5297_ = lean_box(0);
v_isShared_5298_ = v_isSharedCheck_5330_;
goto v_resetjp_5296_;
}
v_resetjp_5296_:
{
lean_object* v_kind_5299_; lean_object* v_name_5300_; lean_object* v___y_5302_; uint8_t v___x_5320_; 
v_kind_5299_ = lean_ctor_get(v_snd_5291_, 1);
v_name_5300_ = l_Lake_instDataKindDynlib;
v___x_5320_ = lean_name_eq(v_kind_5299_, v_name_5300_);
if (v___x_5320_ == 0)
{
uint8_t v___x_5321_; 
lean_inc(v_kind_5299_);
lean_del_object(v___x_5293_);
lean_dec(v_snd_5291_);
v___x_5321_ = l_Lean_Name_isAnonymous(v_kind_5299_);
if (v___x_5321_ == 0)
{
lean_object* v___x_5322_; lean_object* v___x_5323_; lean_object* v___x_5324_; lean_object* v___x_5325_; 
v___x_5322_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__2___closed__1));
v___x_5323_ = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(v_kind_5299_, v___x_5288_);
v___x_5324_ = lean_string_append(v___x_5322_, v___x_5323_);
lean_dec_ref(v___x_5323_);
v___x_5325_ = lean_string_append(v___x_5324_, v___x_5322_);
v___y_5302_ = v___x_5325_;
goto v___jp_5301_;
}
else
{
lean_object* v___x_5326_; 
lean_dec(v_kind_5299_);
v___x_5326_ = ((lean_object*)(l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___closed__4));
v___y_5302_ = v___x_5326_;
goto v___jp_5301_;
}
}
else
{
lean_object* v___x_5328_; 
lean_del_object(v___x_5297_);
lean_dec_ref(v_self_5280_);
if (v_isShared_5294_ == 0)
{
lean_ctor_set(v___x_5293_, 1, v_a_5295_);
lean_ctor_set(v___x_5293_, 0, v_snd_5291_);
v___x_5328_ = v___x_5293_;
goto v_reusejp_5327_;
}
else
{
lean_object* v_reuseFailAlloc_5329_; 
v_reuseFailAlloc_5329_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_5329_, 0, v_snd_5291_);
lean_ctor_set(v_reuseFailAlloc_5329_, 1, v_a_5295_);
v___x_5328_ = v_reuseFailAlloc_5329_;
goto v_reusejp_5327_;
}
v_reusejp_5327_:
{
return v___x_5328_;
}
}
v___jp_5301_:
{
lean_object* v___x_5303_; lean_object* v___x_5304_; lean_object* v___x_5305_; lean_object* v___x_5306_; lean_object* v___x_5307_; lean_object* v___x_5308_; lean_object* v___x_5309_; lean_object* v___x_5310_; lean_object* v___x_5311_; lean_object* v___x_5312_; uint8_t v___x_5313_; lean_object* v___x_5314_; lean_object* v___x_5315_; lean_object* v___x_5316_; lean_object* v___x_5318_; 
v___x_5303_ = ((lean_object*)(l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___closed__0));
v___x_5304_ = l_Lake_PartialBuildKey_toString(v_self_5280_);
v___x_5305_ = lean_string_append(v___x_5303_, v___x_5304_);
lean_dec_ref(v___x_5304_);
v___x_5306_ = ((lean_object*)(l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___closed__1));
v___x_5307_ = lean_string_append(v___x_5305_, v___x_5306_);
v___x_5308_ = lean_obj_once(&l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___closed__2, &l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___closed__2_once, _init_l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___closed__2);
v___x_5309_ = lean_string_append(v___x_5307_, v___x_5308_);
v___x_5310_ = ((lean_object*)(l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___closed__3));
v___x_5311_ = lean_string_append(v___x_5309_, v___x_5310_);
v___x_5312_ = lean_string_append(v___x_5311_, v___y_5302_);
lean_dec_ref(v___y_5302_);
v___x_5313_ = 3;
v___x_5314_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_5314_, 0, v___x_5312_);
lean_ctor_set_uint8(v___x_5314_, sizeof(void*)*1, v___x_5313_);
v___x_5315_ = lean_array_get_size(v_a_5295_);
v___x_5316_ = lean_array_push(v_a_5295_, v___x_5314_);
if (v_isShared_5298_ == 0)
{
lean_ctor_set_tag(v___x_5297_, 1);
lean_ctor_set(v___x_5297_, 1, v___x_5316_);
lean_ctor_set(v___x_5297_, 0, v___x_5315_);
v___x_5318_ = v___x_5297_;
goto v_reusejp_5317_;
}
else
{
lean_object* v_reuseFailAlloc_5319_; 
v_reuseFailAlloc_5319_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_5319_, 0, v___x_5315_);
lean_ctor_set(v_reuseFailAlloc_5319_, 1, v___x_5316_);
v___x_5318_ = v_reuseFailAlloc_5319_;
goto v_reusejp_5317_;
}
v_reusejp_5317_:
{
return v___x_5318_;
}
}
}
}
}
else
{
lean_object* v_a_5334_; lean_object* v_a_5335_; lean_object* v___x_5337_; uint8_t v_isShared_5338_; uint8_t v_isSharedCheck_5342_; 
lean_dec_ref(v_self_5280_);
v_a_5334_ = lean_ctor_get(v___x_5289_, 0);
v_a_5335_ = lean_ctor_get(v___x_5289_, 1);
v_isSharedCheck_5342_ = !lean_is_exclusive(v___x_5289_);
if (v_isSharedCheck_5342_ == 0)
{
v___x_5337_ = v___x_5289_;
v_isShared_5338_ = v_isSharedCheck_5342_;
goto v_resetjp_5336_;
}
else
{
lean_inc(v_a_5335_);
lean_inc(v_a_5334_);
lean_dec(v___x_5289_);
v___x_5337_ = lean_box(0);
v_isShared_5338_ = v_isSharedCheck_5342_;
goto v_resetjp_5336_;
}
v_resetjp_5336_:
{
lean_object* v___x_5340_; 
if (v_isShared_5338_ == 0)
{
v___x_5340_ = v___x_5337_;
goto v_reusejp_5339_;
}
else
{
lean_object* v_reuseFailAlloc_5341_; 
v_reuseFailAlloc_5341_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_5341_, 0, v_a_5334_);
lean_ctor_set(v_reuseFailAlloc_5341_, 1, v_a_5335_);
v___x_5340_ = v_reuseFailAlloc_5341_;
goto v_reusejp_5339_;
}
v_reusejp_5339_:
{
return v___x_5340_;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0___boxed(lean_object* v_defaultPkg_5343_, lean_object* v_self_5344_, lean_object* v_a_5345_, lean_object* v_a_5346_, lean_object* v_a_5347_, lean_object* v_a_5348_, lean_object* v_a_5349_, lean_object* v_a_5350_, lean_object* v_a_5351_){
_start:
{
lean_object* v_res_5352_; 
v_res_5352_ = l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0(v_defaultPkg_5343_, v_self_5344_, v_a_5345_, v_a_5346_, v_a_5347_, v_a_5348_, v_a_5349_, v_a_5350_);
return v_res_5352_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__1(lean_object* v_defaultPkg_5353_, size_t v_sz_5354_, size_t v_i_5355_, lean_object* v_bs_5356_, lean_object* v___y_5357_, lean_object* v___y_5358_, lean_object* v___y_5359_, lean_object* v___y_5360_, lean_object* v___y_5361_, lean_object* v___y_5362_){
_start:
{
uint8_t v___x_5364_; 
v___x_5364_ = lean_usize_dec_lt(v_i_5355_, v_sz_5354_);
if (v___x_5364_ == 0)
{
lean_object* v___x_5365_; 
lean_dec_ref(v___y_5361_);
lean_dec(v___y_5360_);
lean_dec(v___y_5359_);
lean_dec(v___y_5358_);
lean_dec_ref(v___y_5357_);
lean_dec_ref(v_defaultPkg_5353_);
v___x_5365_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_5365_, 0, v_bs_5356_);
lean_ctor_set(v___x_5365_, 1, v___y_5362_);
return v___x_5365_;
}
else
{
lean_object* v_v_5366_; lean_object* v___x_5367_; 
v_v_5366_ = lean_array_uget_borrowed(v_bs_5356_, v_i_5355_);
lean_inc_ref(v___y_5361_);
lean_inc(v___y_5360_);
lean_inc(v___y_5359_);
lean_inc(v___y_5358_);
lean_inc_ref(v___y_5357_);
lean_inc(v_v_5366_);
lean_inc_ref(v_defaultPkg_5353_);
v___x_5367_ = l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0(v_defaultPkg_5353_, v_v_5366_, v___y_5357_, v___y_5358_, v___y_5359_, v___y_5360_, v___y_5361_, v___y_5362_);
if (lean_obj_tag(v___x_5367_) == 0)
{
lean_object* v_a_5368_; lean_object* v_a_5369_; lean_object* v___x_5370_; lean_object* v_bs_x27_5371_; size_t v___x_5372_; size_t v___x_5373_; lean_object* v___x_5374_; 
v_a_5368_ = lean_ctor_get(v___x_5367_, 0);
lean_inc(v_a_5368_);
v_a_5369_ = lean_ctor_get(v___x_5367_, 1);
lean_inc(v_a_5369_);
lean_dec_ref(v___x_5367_);
v___x_5370_ = lean_unsigned_to_nat(0u);
v_bs_x27_5371_ = lean_array_uset(v_bs_5356_, v_i_5355_, v___x_5370_);
v___x_5372_ = ((size_t)1ULL);
v___x_5373_ = lean_usize_add(v_i_5355_, v___x_5372_);
v___x_5374_ = lean_array_uset(v_bs_x27_5371_, v_i_5355_, v_a_5368_);
v_i_5355_ = v___x_5373_;
v_bs_5356_ = v___x_5374_;
v___y_5362_ = v_a_5369_;
goto _start;
}
else
{
lean_object* v_a_5376_; lean_object* v_a_5377_; lean_object* v___x_5379_; uint8_t v_isShared_5380_; uint8_t v_isSharedCheck_5384_; 
lean_dec_ref(v___y_5361_);
lean_dec(v___y_5360_);
lean_dec(v___y_5359_);
lean_dec(v___y_5358_);
lean_dec_ref(v___y_5357_);
lean_dec_ref(v_bs_5356_);
lean_dec_ref(v_defaultPkg_5353_);
v_a_5376_ = lean_ctor_get(v___x_5367_, 0);
v_a_5377_ = lean_ctor_get(v___x_5367_, 1);
v_isSharedCheck_5384_ = !lean_is_exclusive(v___x_5367_);
if (v_isSharedCheck_5384_ == 0)
{
v___x_5379_ = v___x_5367_;
v_isShared_5380_ = v_isSharedCheck_5384_;
goto v_resetjp_5378_;
}
else
{
lean_inc(v_a_5377_);
lean_inc(v_a_5376_);
lean_dec(v___x_5367_);
v___x_5379_ = lean_box(0);
v_isShared_5380_ = v_isSharedCheck_5384_;
goto v_resetjp_5378_;
}
v_resetjp_5378_:
{
lean_object* v___x_5382_; 
if (v_isShared_5380_ == 0)
{
v___x_5382_ = v___x_5379_;
goto v_reusejp_5381_;
}
else
{
lean_object* v_reuseFailAlloc_5383_; 
v_reuseFailAlloc_5383_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_5383_, 0, v_a_5376_);
lean_ctor_set(v_reuseFailAlloc_5383_, 1, v_a_5377_);
v___x_5382_ = v_reuseFailAlloc_5383_;
goto v_reusejp_5381_;
}
v_reusejp_5381_:
{
return v___x_5382_;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__1___boxed(lean_object* v_defaultPkg_5385_, lean_object* v_sz_5386_, lean_object* v_i_5387_, lean_object* v_bs_5388_, lean_object* v___y_5389_, lean_object* v___y_5390_, lean_object* v___y_5391_, lean_object* v___y_5392_, lean_object* v___y_5393_, lean_object* v___y_5394_, lean_object* v___y_5395_){
_start:
{
size_t v_sz_boxed_5396_; size_t v_i_boxed_5397_; lean_object* v_res_5398_; 
v_sz_boxed_5396_ = lean_unbox_usize(v_sz_5386_);
lean_dec(v_sz_5386_);
v_i_boxed_5397_ = lean_unbox_usize(v_i_5387_);
lean_dec(v_i_5387_);
v_res_5398_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__1(v_defaultPkg_5385_, v_sz_boxed_5396_, v_i_boxed_5397_, v_bs_5388_, v___y_5389_, v___y_5390_, v___y_5391_, v___y_5392_, v___y_5393_, v___y_5394_);
return v_res_5398_;
}
}
LEAN_EXPORT lean_object* l_Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0(lean_object* v_defaultPkg_5399_, lean_object* v_self_5400_, lean_object* v_traceCaption_5401_, lean_object* v_a_5402_, lean_object* v_a_5403_, lean_object* v_a_5404_, lean_object* v_a_5405_, lean_object* v_a_5406_, lean_object* v_a_5407_){
_start:
{
size_t v_sz_5409_; size_t v___x_5410_; lean_object* v___x_5411_; 
v_sz_5409_ = lean_array_size(v_self_5400_);
v___x_5410_ = ((size_t)0ULL);
v___x_5411_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__1(v_defaultPkg_5399_, v_sz_5409_, v___x_5410_, v_self_5400_, v_a_5402_, v_a_5403_, v_a_5404_, v_a_5405_, v_a_5406_, v_a_5407_);
if (lean_obj_tag(v___x_5411_) == 0)
{
lean_object* v_a_5412_; lean_object* v_a_5413_; lean_object* v___x_5415_; uint8_t v_isShared_5416_; uint8_t v_isSharedCheck_5421_; 
v_a_5412_ = lean_ctor_get(v___x_5411_, 0);
v_a_5413_ = lean_ctor_get(v___x_5411_, 1);
v_isSharedCheck_5421_ = !lean_is_exclusive(v___x_5411_);
if (v_isSharedCheck_5421_ == 0)
{
v___x_5415_ = v___x_5411_;
v_isShared_5416_ = v_isSharedCheck_5421_;
goto v_resetjp_5414_;
}
else
{
lean_inc(v_a_5413_);
lean_inc(v_a_5412_);
lean_dec(v___x_5411_);
v___x_5415_ = lean_box(0);
v_isShared_5416_ = v_isSharedCheck_5421_;
goto v_resetjp_5414_;
}
v_resetjp_5414_:
{
lean_object* v___x_5417_; lean_object* v___x_5419_; 
v___x_5417_ = l_Lake_Job_collectArray___redArg(v_a_5412_, v_traceCaption_5401_);
lean_dec(v_a_5412_);
if (v_isShared_5416_ == 0)
{
lean_ctor_set(v___x_5415_, 0, v___x_5417_);
v___x_5419_ = v___x_5415_;
goto v_reusejp_5418_;
}
else
{
lean_object* v_reuseFailAlloc_5420_; 
v_reuseFailAlloc_5420_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_5420_, 0, v___x_5417_);
lean_ctor_set(v_reuseFailAlloc_5420_, 1, v_a_5413_);
v___x_5419_ = v_reuseFailAlloc_5420_;
goto v_reusejp_5418_;
}
v_reusejp_5418_:
{
return v___x_5419_;
}
}
}
else
{
lean_object* v_a_5422_; lean_object* v_a_5423_; lean_object* v___x_5425_; uint8_t v_isShared_5426_; uint8_t v_isSharedCheck_5430_; 
lean_dec_ref(v_traceCaption_5401_);
v_a_5422_ = lean_ctor_get(v___x_5411_, 0);
v_a_5423_ = lean_ctor_get(v___x_5411_, 1);
v_isSharedCheck_5430_ = !lean_is_exclusive(v___x_5411_);
if (v_isSharedCheck_5430_ == 0)
{
v___x_5425_ = v___x_5411_;
v_isShared_5426_ = v_isSharedCheck_5430_;
goto v_resetjp_5424_;
}
else
{
lean_inc(v_a_5423_);
lean_inc(v_a_5422_);
lean_dec(v___x_5411_);
v___x_5425_ = lean_box(0);
v_isShared_5426_ = v_isSharedCheck_5430_;
goto v_resetjp_5424_;
}
v_resetjp_5424_:
{
lean_object* v___x_5428_; 
if (v_isShared_5426_ == 0)
{
v___x_5428_ = v___x_5425_;
goto v_reusejp_5427_;
}
else
{
lean_object* v_reuseFailAlloc_5429_; 
v_reuseFailAlloc_5429_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_5429_, 0, v_a_5422_);
lean_ctor_set(v_reuseFailAlloc_5429_, 1, v_a_5423_);
v___x_5428_ = v_reuseFailAlloc_5429_;
goto v_reusejp_5427_;
}
v_reusejp_5427_:
{
return v___x_5428_;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0___boxed(lean_object* v_defaultPkg_5431_, lean_object* v_self_5432_, lean_object* v_traceCaption_5433_, lean_object* v_a_5434_, lean_object* v_a_5435_, lean_object* v_a_5436_, lean_object* v_a_5437_, lean_object* v_a_5438_, lean_object* v_a_5439_, lean_object* v_a_5440_){
_start:
{
lean_object* v_res_5441_; 
v_res_5441_ = l_Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0(v_defaultPkg_5431_, v_self_5432_, v_traceCaption_5433_, v_a_5434_, v_a_5435_, v_a_5436_, v_a_5437_, v_a_5438_, v_a_5439_);
return v_res_5441_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__3(lean_object* v___x_5442_, lean_object* v_as_5443_, size_t v_i_5444_, size_t v_stop_5445_, lean_object* v_b_5446_){
_start:
{
lean_object* v___y_5448_; uint8_t v___x_5452_; 
v___x_5452_ = lean_usize_dec_eq(v_i_5444_, v_stop_5445_);
if (v___x_5452_ == 0)
{
lean_object* v_toConfigDecl_5453_; lean_object* v_name_5454_; lean_object* v_kind_5455_; lean_object* v_config_5456_; lean_object* v___x_5457_; uint8_t v___x_5458_; 
v_toConfigDecl_5453_ = lean_array_uget_borrowed(v_as_5443_, v_i_5444_);
v_name_5454_ = lean_ctor_get(v_toConfigDecl_5453_, 1);
v_kind_5455_ = lean_ctor_get(v_toConfigDecl_5453_, 2);
v_config_5456_ = lean_ctor_get(v_toConfigDecl_5453_, 3);
v___x_5457_ = l_Lake_ExternLib_keyword;
v___x_5458_ = lean_name_eq(v_kind_5455_, v___x_5457_);
if (v___x_5458_ == 0)
{
v___y_5448_ = v_b_5446_;
goto v___jp_5447_;
}
else
{
lean_object* v___x_5459_; lean_object* v___x_5460_; 
lean_inc(v_config_5456_);
lean_inc(v_name_5454_);
lean_inc_ref(v___x_5442_);
v___x_5459_ = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(v___x_5459_, 0, v___x_5442_);
lean_ctor_set(v___x_5459_, 1, v_name_5454_);
lean_ctor_set(v___x_5459_, 2, v_config_5456_);
v___x_5460_ = lean_array_push(v_b_5446_, v___x_5459_);
v___y_5448_ = v___x_5460_;
goto v___jp_5447_;
}
}
else
{
lean_dec_ref(v___x_5442_);
return v_b_5446_;
}
v___jp_5447_:
{
size_t v___x_5449_; size_t v___x_5450_; 
v___x_5449_ = ((size_t)1ULL);
v___x_5450_ = lean_usize_add(v_i_5444_, v___x_5449_);
v_i_5444_ = v___x_5450_;
v_b_5446_ = v___y_5448_;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__3___boxed(lean_object* v___x_5461_, lean_object* v_as_5462_, lean_object* v_i_5463_, lean_object* v_stop_5464_, lean_object* v_b_5465_){
_start:
{
size_t v_i_boxed_5466_; size_t v_stop_boxed_5467_; lean_object* v_res_5468_; 
v_i_boxed_5466_ = lean_unbox_usize(v_i_5463_);
lean_dec(v_i_5463_);
v_stop_boxed_5467_ = lean_unbox_usize(v_stop_5464_);
lean_dec(v_stop_5464_);
v_res_5468_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__3(v___x_5461_, v_as_5462_, v_i_boxed_5466_, v_stop_boxed_5467_, v_b_5465_);
lean_dec_ref(v_as_5462_);
return v_res_5468_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__2(size_t v_sz_5469_, size_t v_i_5470_, lean_object* v_bs_5471_, lean_object* v___y_5472_, lean_object* v___y_5473_, lean_object* v___y_5474_, lean_object* v___y_5475_, lean_object* v___y_5476_, lean_object* v___y_5477_){
_start:
{
uint8_t v___x_5479_; 
v___x_5479_ = lean_usize_dec_lt(v_i_5470_, v_sz_5469_);
if (v___x_5479_ == 0)
{
lean_object* v___x_5480_; 
lean_dec_ref(v___y_5476_);
lean_dec(v___y_5475_);
lean_dec(v___y_5474_);
lean_dec(v___y_5473_);
lean_dec_ref(v___y_5472_);
v___x_5480_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_5480_, 0, v_bs_5471_);
lean_ctor_set(v___x_5480_, 1, v___y_5477_);
return v___x_5480_;
}
else
{
lean_object* v_v_5481_; lean_object* v_pkg_5482_; lean_object* v_name_5483_; lean_object* v_keyName_5484_; lean_object* v___x_5485_; lean_object* v___x_5486_; lean_object* v___x_5487_; lean_object* v___x_5488_; lean_object* v___x_5489_; 
v_v_5481_ = lean_array_uget_borrowed(v_bs_5471_, v_i_5470_);
v_pkg_5482_ = lean_ctor_get(v_v_5481_, 0);
v_name_5483_ = lean_ctor_get(v_v_5481_, 1);
v_keyName_5484_ = lean_ctor_get(v_pkg_5482_, 2);
v___x_5485_ = l_Lake_ExternLib_dynlibFacet;
lean_inc(v_name_5483_);
lean_inc(v_keyName_5484_);
v___x_5486_ = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(v___x_5486_, 0, v_keyName_5484_);
lean_ctor_set(v___x_5486_, 1, v_name_5483_);
v___x_5487_ = l_Lake_ExternLib_keyword;
lean_inc(v_v_5481_);
v___x_5488_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_5488_, 0, v___x_5486_);
lean_ctor_set(v___x_5488_, 1, v___x_5487_);
lean_ctor_set(v___x_5488_, 2, v_v_5481_);
lean_ctor_set(v___x_5488_, 3, v___x_5485_);
lean_inc_ref(v___y_5472_);
lean_inc_ref(v___y_5476_);
lean_inc(v___y_5475_);
lean_inc(v___y_5474_);
lean_inc(v___y_5473_);
v___x_5489_ = lean_apply_7(v___y_5472_, v___x_5488_, v___y_5473_, v___y_5474_, v___y_5475_, v___y_5476_, v___y_5477_, lean_box(0));
if (lean_obj_tag(v___x_5489_) == 0)
{
lean_object* v_a_5490_; lean_object* v_a_5491_; lean_object* v___x_5492_; lean_object* v_bs_x27_5493_; size_t v___x_5494_; size_t v___x_5495_; lean_object* v___x_5496_; 
v_a_5490_ = lean_ctor_get(v___x_5489_, 0);
lean_inc(v_a_5490_);
v_a_5491_ = lean_ctor_get(v___x_5489_, 1);
lean_inc(v_a_5491_);
lean_dec_ref(v___x_5489_);
v___x_5492_ = lean_unsigned_to_nat(0u);
v_bs_x27_5493_ = lean_array_uset(v_bs_5471_, v_i_5470_, v___x_5492_);
v___x_5494_ = ((size_t)1ULL);
v___x_5495_ = lean_usize_add(v_i_5470_, v___x_5494_);
v___x_5496_ = lean_array_uset(v_bs_x27_5493_, v_i_5470_, v_a_5490_);
v_i_5470_ = v___x_5495_;
v_bs_5471_ = v___x_5496_;
v___y_5477_ = v_a_5491_;
goto _start;
}
else
{
lean_object* v_a_5498_; lean_object* v_a_5499_; lean_object* v___x_5501_; uint8_t v_isShared_5502_; uint8_t v_isSharedCheck_5506_; 
lean_dec_ref(v___y_5476_);
lean_dec(v___y_5475_);
lean_dec(v___y_5474_);
lean_dec(v___y_5473_);
lean_dec_ref(v___y_5472_);
lean_dec_ref(v_bs_5471_);
v_a_5498_ = lean_ctor_get(v___x_5489_, 0);
v_a_5499_ = lean_ctor_get(v___x_5489_, 1);
v_isSharedCheck_5506_ = !lean_is_exclusive(v___x_5489_);
if (v_isSharedCheck_5506_ == 0)
{
v___x_5501_ = v___x_5489_;
v_isShared_5502_ = v_isSharedCheck_5506_;
goto v_resetjp_5500_;
}
else
{
lean_inc(v_a_5499_);
lean_inc(v_a_5498_);
lean_dec(v___x_5489_);
v___x_5501_ = lean_box(0);
v_isShared_5502_ = v_isSharedCheck_5506_;
goto v_resetjp_5500_;
}
v_resetjp_5500_:
{
lean_object* v___x_5504_; 
if (v_isShared_5502_ == 0)
{
v___x_5504_ = v___x_5501_;
goto v_reusejp_5503_;
}
else
{
lean_object* v_reuseFailAlloc_5505_; 
v_reuseFailAlloc_5505_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_5505_, 0, v_a_5498_);
lean_ctor_set(v_reuseFailAlloc_5505_, 1, v_a_5499_);
v___x_5504_ = v_reuseFailAlloc_5505_;
goto v_reusejp_5503_;
}
v_reusejp_5503_:
{
return v___x_5504_;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__2___boxed(lean_object* v_sz_5507_, lean_object* v_i_5508_, lean_object* v_bs_5509_, lean_object* v___y_5510_, lean_object* v___y_5511_, lean_object* v___y_5512_, lean_object* v___y_5513_, lean_object* v___y_5514_, lean_object* v___y_5515_, lean_object* v___y_5516_){
_start:
{
size_t v_sz_boxed_5517_; size_t v_i_boxed_5518_; lean_object* v_res_5519_; 
v_sz_boxed_5517_ = lean_unbox_usize(v_sz_5507_);
lean_dec(v_sz_5507_);
v_i_boxed_5518_ = lean_unbox_usize(v_i_5508_);
lean_dec(v_i_5508_);
v_res_5519_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__2(v_sz_boxed_5517_, v_i_boxed_5518_, v_bs_5509_, v___y_5510_, v___y_5511_, v___y_5512_, v___y_5513_, v___y_5514_, v___y_5515_);
return v_res_5519_;
}
}
static size_t _init_l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__4(void){
_start:
{
lean_object* v___x_5525_; size_t v_sz_5526_; 
v___x_5525_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__3));
v_sz_5526_ = lean_array_size(v___x_5525_);
return v_sz_5526_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7(lean_object* v___x_5527_, lean_object* v_keyName_5528_, lean_object* v_name_5529_, lean_object* v_mod_5530_, lean_object* v_config_5531_, lean_object* v_config_5532_, lean_object* v_pkg_5533_, lean_object* v___x_5534_, lean_object* v_targetDecls_5535_, lean_object* v___y_5536_, lean_object* v___y_5537_, lean_object* v___y_5538_, lean_object* v___y_5539_, lean_object* v___y_5540_, lean_object* v___y_5541_){
_start:
{
lean_object* v___x_5543_; 
lean_inc_ref(v___y_5536_);
lean_inc_ref(v___y_5540_);
lean_inc(v___y_5539_);
lean_inc(v___y_5538_);
lean_inc(v___y_5537_);
v___x_5543_ = lean_apply_7(v___y_5536_, v___x_5527_, v___y_5537_, v___y_5538_, v___y_5539_, v___y_5540_, v___y_5541_, lean_box(0));
if (lean_obj_tag(v___x_5543_) == 0)
{
lean_object* v_a_5544_; lean_object* v_a_5545_; lean_object* v___x_5546_; lean_object* v___x_5547_; lean_object* v___x_5548_; lean_object* v___x_5549_; lean_object* v___x_5550_; 
v_a_5544_ = lean_ctor_get(v___x_5543_, 0);
lean_inc(v_a_5544_);
v_a_5545_ = lean_ctor_get(v___x_5543_, 1);
lean_inc(v_a_5545_);
lean_dec_ref(v___x_5543_);
v___x_5546_ = l_Lake_Module_headerFacet;
lean_inc(v_name_5529_);
v___x_5547_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_5547_, 0, v_keyName_5528_);
lean_ctor_set(v___x_5547_, 1, v_name_5529_);
v___x_5548_ = l_Lake_Module_keyword;
lean_inc_ref(v_mod_5530_);
lean_inc_ref(v___x_5547_);
v___x_5549_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_5549_, 0, v___x_5547_);
lean_ctor_set(v___x_5549_, 1, v___x_5548_);
lean_ctor_set(v___x_5549_, 2, v_mod_5530_);
lean_ctor_set(v___x_5549_, 3, v___x_5546_);
lean_inc_ref(v___y_5536_);
lean_inc_ref(v___y_5540_);
lean_inc(v___y_5539_);
lean_inc(v___y_5538_);
lean_inc(v___y_5537_);
v___x_5550_ = lean_apply_7(v___y_5536_, v___x_5549_, v___y_5537_, v___y_5538_, v___y_5539_, v___y_5540_, v_a_5545_, lean_box(0));
if (lean_obj_tag(v___x_5550_) == 0)
{
lean_object* v_a_5551_; lean_object* v_a_5552_; lean_object* v___x_5553_; lean_object* v___x_5554_; lean_object* v___x_5555_; 
v_a_5551_ = lean_ctor_get(v___x_5550_, 0);
lean_inc(v_a_5551_);
v_a_5552_ = lean_ctor_get(v___x_5550_, 1);
lean_inc(v_a_5552_);
lean_dec_ref(v___x_5550_);
v___x_5553_ = l_Lake_Module_importInfoFacet;
lean_inc_ref(v_mod_5530_);
lean_inc_ref(v___x_5547_);
v___x_5554_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_5554_, 0, v___x_5547_);
lean_ctor_set(v___x_5554_, 1, v___x_5548_);
lean_ctor_set(v___x_5554_, 2, v_mod_5530_);
lean_ctor_set(v___x_5554_, 3, v___x_5553_);
lean_inc_ref(v___y_5536_);
lean_inc_ref(v___y_5540_);
lean_inc(v___y_5539_);
lean_inc(v___y_5538_);
lean_inc(v___y_5537_);
v___x_5555_ = lean_apply_7(v___y_5536_, v___x_5554_, v___y_5537_, v___y_5538_, v___y_5539_, v___y_5540_, v_a_5552_, lean_box(0));
if (lean_obj_tag(v___x_5555_) == 0)
{
lean_object* v_a_5556_; lean_object* v_a_5557_; lean_object* v_toLeanConfig_5558_; uint8_t v_precompileModules_5559_; uint8_t v___y_5561_; lean_object* v___y_5562_; uint8_t v___y_5563_; lean_object* v___y_5564_; lean_object* v___y_5565_; lean_object* v___y_5566_; lean_object* v___y_5567_; lean_object* v___y_5568_; lean_object* v_a_5569_; lean_object* v_a_5570_; uint8_t v___y_5627_; lean_object* v___y_5628_; uint8_t v___y_5629_; lean_object* v___y_5630_; lean_object* v___y_5631_; lean_object* v___y_5632_; lean_object* v___y_5633_; lean_object* v___y_5634_; lean_object* v___y_5635_; lean_object* v___y_5648_; lean_object* v___y_5649_; lean_object* v___y_5650_; lean_object* v___y_5651_; lean_object* v___y_5652_; lean_object* v___y_5653_; lean_object* v___y_5654_; uint8_t v___y_5655_; lean_object* v_precompileImports_5694_; lean_object* v___y_5695_; lean_object* v___y_5696_; lean_object* v___y_5697_; lean_object* v___y_5698_; lean_object* v___y_5699_; lean_object* v___y_5700_; 
v_a_5556_ = lean_ctor_get(v___x_5555_, 0);
lean_inc(v_a_5556_);
v_a_5557_ = lean_ctor_get(v___x_5555_, 1);
lean_inc(v_a_5557_);
lean_dec_ref(v___x_5555_);
v_toLeanConfig_5558_ = lean_ctor_get(v_config_5531_, 1);
lean_inc_ref(v_toLeanConfig_5558_);
v_precompileModules_5559_ = lean_ctor_get_uint8(v_config_5531_, sizeof(void*)*27 + 1);
lean_dec_ref(v_config_5531_);
if (v_precompileModules_5559_ == 0)
{
uint8_t v_precompileModules_5731_; 
v_precompileModules_5731_ = lean_ctor_get_uint8(v_config_5532_, sizeof(void*)*9 + 1);
if (v_precompileModules_5731_ == 0)
{
lean_object* v___x_5732_; lean_object* v___x_5733_; lean_object* v___x_5734_; 
v___x_5732_ = l_Lake_Module_precompileImportsFacet;
lean_inc_ref(v_mod_5530_);
v___x_5733_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_5733_, 0, v___x_5547_);
lean_ctor_set(v___x_5733_, 1, v___x_5548_);
lean_ctor_set(v___x_5733_, 2, v_mod_5530_);
lean_ctor_set(v___x_5733_, 3, v___x_5732_);
lean_inc_ref(v___y_5536_);
lean_inc_ref(v___y_5540_);
lean_inc(v___y_5539_);
lean_inc(v___y_5538_);
lean_inc(v___y_5537_);
v___x_5734_ = lean_apply_7(v___y_5536_, v___x_5733_, v___y_5537_, v___y_5538_, v___y_5539_, v___y_5540_, v_a_5557_, lean_box(0));
if (lean_obj_tag(v___x_5734_) == 0)
{
lean_object* v_a_5735_; lean_object* v_a_5736_; 
v_a_5735_ = lean_ctor_get(v___x_5734_, 0);
lean_inc(v_a_5735_);
v_a_5736_ = lean_ctor_get(v___x_5734_, 1);
lean_inc(v_a_5736_);
lean_dec_ref(v___x_5734_);
v_precompileImports_5694_ = v_a_5735_;
v___y_5695_ = v___y_5536_;
v___y_5696_ = v___y_5537_;
v___y_5697_ = v___y_5538_;
v___y_5698_ = v___y_5539_;
v___y_5699_ = v___y_5540_;
v___y_5700_ = v_a_5736_;
goto v___jp_5693_;
}
else
{
lean_object* v_a_5737_; lean_object* v_a_5738_; lean_object* v___x_5740_; uint8_t v_isShared_5741_; uint8_t v_isSharedCheck_5745_; 
lean_dec_ref(v_toLeanConfig_5558_);
lean_dec(v_a_5556_);
lean_dec(v_a_5551_);
lean_dec(v_a_5544_);
lean_dec_ref(v___y_5540_);
lean_dec(v___y_5539_);
lean_dec(v___y_5538_);
lean_dec(v___y_5537_);
lean_dec_ref(v___y_5536_);
lean_dec(v___x_5534_);
lean_dec_ref(v_pkg_5533_);
lean_dec(v_config_5532_);
lean_dec_ref(v_mod_5530_);
lean_dec(v_name_5529_);
v_a_5737_ = lean_ctor_get(v___x_5734_, 0);
v_a_5738_ = lean_ctor_get(v___x_5734_, 1);
v_isSharedCheck_5745_ = !lean_is_exclusive(v___x_5734_);
if (v_isSharedCheck_5745_ == 0)
{
v___x_5740_ = v___x_5734_;
v_isShared_5741_ = v_isSharedCheck_5745_;
goto v_resetjp_5739_;
}
else
{
lean_inc(v_a_5738_);
lean_inc(v_a_5737_);
lean_dec(v___x_5734_);
v___x_5740_ = lean_box(0);
v_isShared_5741_ = v_isSharedCheck_5745_;
goto v_resetjp_5739_;
}
v_resetjp_5739_:
{
lean_object* v___x_5743_; 
if (v_isShared_5741_ == 0)
{
v___x_5743_ = v___x_5740_;
goto v_reusejp_5742_;
}
else
{
lean_object* v_reuseFailAlloc_5744_; 
v_reuseFailAlloc_5744_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_5744_, 0, v_a_5737_);
lean_ctor_set(v_reuseFailAlloc_5744_, 1, v_a_5738_);
v___x_5743_ = v_reuseFailAlloc_5744_;
goto v_reusejp_5742_;
}
v_reusejp_5742_:
{
return v___x_5743_;
}
}
}
}
else
{
goto v___jp_5716_;
}
}
else
{
goto v___jp_5716_;
}
v___jp_5560_:
{
lean_object* v_toLeanConfig_5571_; uint8_t v_buildType_5572_; lean_object* v_leanOptions_5573_; lean_object* v_platformIndependent_5574_; lean_object* v_dynlibs_5575_; lean_object* v_plugins_5576_; uint8_t v_buildType_5577_; lean_object* v_leanOptions_5578_; lean_object* v_platformIndependent_5579_; lean_object* v_dynlibs_5580_; lean_object* v_plugins_5581_; lean_object* v___x_5582_; lean_object* v___x_5583_; lean_object* v___x_5584_; 
v_toLeanConfig_5571_ = lean_ctor_get(v_config_5532_, 0);
lean_inc_ref(v_toLeanConfig_5571_);
lean_dec(v_config_5532_);
v_buildType_5572_ = lean_ctor_get_uint8(v_toLeanConfig_5558_, sizeof(void*)*13);
v_leanOptions_5573_ = lean_ctor_get(v_toLeanConfig_5558_, 0);
lean_inc_ref(v_leanOptions_5573_);
v_platformIndependent_5574_ = lean_ctor_get(v_toLeanConfig_5558_, 10);
lean_inc(v_platformIndependent_5574_);
v_dynlibs_5575_ = lean_ctor_get(v_toLeanConfig_5558_, 11);
lean_inc_ref(v_dynlibs_5575_);
v_plugins_5576_ = lean_ctor_get(v_toLeanConfig_5558_, 12);
lean_inc_ref(v_plugins_5576_);
lean_dec_ref(v_toLeanConfig_5558_);
v_buildType_5577_ = lean_ctor_get_uint8(v_toLeanConfig_5571_, sizeof(void*)*13);
v_leanOptions_5578_ = lean_ctor_get(v_toLeanConfig_5571_, 0);
lean_inc_ref(v_leanOptions_5578_);
v_platformIndependent_5579_ = lean_ctor_get(v_toLeanConfig_5571_, 10);
lean_inc(v_platformIndependent_5579_);
v_dynlibs_5580_ = lean_ctor_get(v_toLeanConfig_5571_, 11);
lean_inc_ref(v_dynlibs_5580_);
v_plugins_5581_ = lean_ctor_get(v_toLeanConfig_5571_, 12);
lean_inc_ref(v_plugins_5581_);
lean_dec_ref(v_toLeanConfig_5571_);
v___x_5582_ = l_Array_append___redArg(v_dynlibs_5575_, v_dynlibs_5580_);
lean_dec_ref(v_dynlibs_5580_);
v___x_5583_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__0));
lean_inc_ref(v___y_5564_);
lean_inc(v___y_5565_);
lean_inc(v___y_5567_);
lean_inc(v___y_5566_);
lean_inc_ref(v___y_5568_);
lean_inc_ref(v_pkg_5533_);
v___x_5584_ = l_Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0(v_pkg_5533_, v___x_5582_, v___x_5583_, v___y_5568_, v___y_5566_, v___y_5567_, v___y_5565_, v___y_5564_, v_a_5570_);
if (lean_obj_tag(v___x_5584_) == 0)
{
lean_object* v_a_5585_; lean_object* v_a_5586_; lean_object* v___x_5587_; lean_object* v___x_5588_; lean_object* v___x_5589_; 
v_a_5585_ = lean_ctor_get(v___x_5584_, 0);
lean_inc(v_a_5585_);
v_a_5586_ = lean_ctor_get(v___x_5584_, 1);
lean_inc(v_a_5586_);
lean_dec_ref(v___x_5584_);
v___x_5587_ = l_Array_append___redArg(v_plugins_5576_, v_plugins_5581_);
lean_dec_ref(v_plugins_5581_);
v___x_5588_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__1));
lean_inc_ref(v___y_5564_);
lean_inc(v___y_5565_);
lean_inc(v___y_5567_);
lean_inc(v___y_5566_);
lean_inc_ref(v___y_5568_);
lean_inc_ref(v_pkg_5533_);
v___x_5589_ = l_Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0(v_pkg_5533_, v___x_5587_, v___x_5588_, v___y_5568_, v___y_5566_, v___y_5567_, v___y_5565_, v___y_5564_, v_a_5586_);
if (lean_obj_tag(v___x_5589_) == 0)
{
lean_object* v_a_5590_; lean_object* v_a_5591_; lean_object* v___x_5593_; uint8_t v_isShared_5594_; uint8_t v_isSharedCheck_5607_; 
v_a_5590_ = lean_ctor_get(v___x_5589_, 0);
v_a_5591_ = lean_ctor_get(v___x_5589_, 1);
v_isSharedCheck_5607_ = !lean_is_exclusive(v___x_5589_);
if (v_isSharedCheck_5607_ == 0)
{
v___x_5593_ = v___x_5589_;
v_isShared_5594_ = v_isSharedCheck_5607_;
goto v_resetjp_5592_;
}
else
{
lean_inc(v_a_5591_);
lean_inc(v_a_5590_);
lean_dec(v___x_5589_);
v___x_5593_ = lean_box(0);
v_isShared_5594_ = v_isSharedCheck_5607_;
goto v_resetjp_5592_;
}
v_resetjp_5592_:
{
lean_object* v___x_5595_; lean_object* v___x_5596_; lean_object* v___x_5597_; lean_object* v___x_5598_; lean_object* v___x_5599_; lean_object* v___f_5600_; lean_object* v___x_5601_; lean_object* v___x_5602_; lean_object* v___x_5603_; lean_object* v___x_5605_; 
v___x_5595_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__2));
v___x_5596_ = l_Lake_Job_collectArray___redArg(v_a_5569_, v___x_5595_);
lean_dec_ref(v_a_5569_);
v___x_5597_ = lean_box(v_buildType_5572_);
v___x_5598_ = lean_box(v_buildType_5577_);
v___x_5599_ = lean_box(v___y_5561_);
lean_inc(v___x_5534_);
v___f_5600_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__6___boxed), 24, 16);
lean_closure_set(v___f_5600_, 0, v_a_5544_);
lean_closure_set(v___f_5600_, 1, v_leanOptions_5573_);
lean_closure_set(v___f_5600_, 2, v_leanOptions_5578_);
lean_closure_set(v___f_5600_, 3, v_name_5529_);
lean_closure_set(v___f_5600_, 4, v_pkg_5533_);
lean_closure_set(v___f_5600_, 5, v___x_5597_);
lean_closure_set(v___f_5600_, 6, v___x_5598_);
lean_closure_set(v___f_5600_, 7, v___x_5599_);
lean_closure_set(v___f_5600_, 8, v_platformIndependent_5579_);
lean_closure_set(v___f_5600_, 9, v_platformIndependent_5574_);
lean_closure_set(v___f_5600_, 10, v___x_5534_);
lean_closure_set(v___f_5600_, 11, v_a_5590_);
lean_closure_set(v___f_5600_, 12, v_a_5585_);
lean_closure_set(v___f_5600_, 13, v___x_5596_);
lean_closure_set(v___f_5600_, 14, v___y_5562_);
lean_closure_set(v___f_5600_, 15, v_a_5556_);
v___x_5601_ = lean_unsigned_to_nat(0u);
v___x_5602_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_5603_ = l_Lake_Job_bindM___redArg(v___x_5534_, v_a_5551_, v___f_5600_, v___x_5601_, v___y_5563_, v___y_5568_, v___y_5566_, v___y_5567_, v___y_5565_, v___y_5564_, v___x_5602_);
if (v_isShared_5594_ == 0)
{
lean_ctor_set(v___x_5593_, 0, v___x_5603_);
v___x_5605_ = v___x_5593_;
goto v_reusejp_5604_;
}
else
{
lean_object* v_reuseFailAlloc_5606_; 
v_reuseFailAlloc_5606_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_5606_, 0, v___x_5603_);
lean_ctor_set(v_reuseFailAlloc_5606_, 1, v_a_5591_);
v___x_5605_ = v_reuseFailAlloc_5606_;
goto v_reusejp_5604_;
}
v_reusejp_5604_:
{
return v___x_5605_;
}
}
}
else
{
lean_object* v_a_5608_; lean_object* v_a_5609_; lean_object* v___x_5611_; uint8_t v_isShared_5612_; uint8_t v_isSharedCheck_5616_; 
lean_dec(v_a_5585_);
lean_dec(v_platformIndependent_5579_);
lean_dec_ref(v_leanOptions_5578_);
lean_dec(v_platformIndependent_5574_);
lean_dec_ref(v_leanOptions_5573_);
lean_dec_ref(v_a_5569_);
lean_dec_ref(v___y_5568_);
lean_dec(v___y_5567_);
lean_dec(v___y_5566_);
lean_dec(v___y_5565_);
lean_dec_ref(v___y_5564_);
lean_dec_ref(v___y_5562_);
lean_dec(v_a_5556_);
lean_dec(v_a_5551_);
lean_dec(v_a_5544_);
lean_dec(v___x_5534_);
lean_dec_ref(v_pkg_5533_);
lean_dec(v_name_5529_);
v_a_5608_ = lean_ctor_get(v___x_5589_, 0);
v_a_5609_ = lean_ctor_get(v___x_5589_, 1);
v_isSharedCheck_5616_ = !lean_is_exclusive(v___x_5589_);
if (v_isSharedCheck_5616_ == 0)
{
v___x_5611_ = v___x_5589_;
v_isShared_5612_ = v_isSharedCheck_5616_;
goto v_resetjp_5610_;
}
else
{
lean_inc(v_a_5609_);
lean_inc(v_a_5608_);
lean_dec(v___x_5589_);
v___x_5611_ = lean_box(0);
v_isShared_5612_ = v_isSharedCheck_5616_;
goto v_resetjp_5610_;
}
v_resetjp_5610_:
{
lean_object* v___x_5614_; 
if (v_isShared_5612_ == 0)
{
v___x_5614_ = v___x_5611_;
goto v_reusejp_5613_;
}
else
{
lean_object* v_reuseFailAlloc_5615_; 
v_reuseFailAlloc_5615_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_5615_, 0, v_a_5608_);
lean_ctor_set(v_reuseFailAlloc_5615_, 1, v_a_5609_);
v___x_5614_ = v_reuseFailAlloc_5615_;
goto v_reusejp_5613_;
}
v_reusejp_5613_:
{
return v___x_5614_;
}
}
}
}
else
{
lean_object* v_a_5617_; lean_object* v_a_5618_; lean_object* v___x_5620_; uint8_t v_isShared_5621_; uint8_t v_isSharedCheck_5625_; 
lean_dec_ref(v_plugins_5581_);
lean_dec(v_platformIndependent_5579_);
lean_dec_ref(v_leanOptions_5578_);
lean_dec_ref(v_plugins_5576_);
lean_dec(v_platformIndependent_5574_);
lean_dec_ref(v_leanOptions_5573_);
lean_dec_ref(v_a_5569_);
lean_dec_ref(v___y_5568_);
lean_dec(v___y_5567_);
lean_dec(v___y_5566_);
lean_dec(v___y_5565_);
lean_dec_ref(v___y_5564_);
lean_dec_ref(v___y_5562_);
lean_dec(v_a_5556_);
lean_dec(v_a_5551_);
lean_dec(v_a_5544_);
lean_dec(v___x_5534_);
lean_dec_ref(v_pkg_5533_);
lean_dec(v_name_5529_);
v_a_5617_ = lean_ctor_get(v___x_5584_, 0);
v_a_5618_ = lean_ctor_get(v___x_5584_, 1);
v_isSharedCheck_5625_ = !lean_is_exclusive(v___x_5584_);
if (v_isSharedCheck_5625_ == 0)
{
v___x_5620_ = v___x_5584_;
v_isShared_5621_ = v_isSharedCheck_5625_;
goto v_resetjp_5619_;
}
else
{
lean_inc(v_a_5618_);
lean_inc(v_a_5617_);
lean_dec(v___x_5584_);
v___x_5620_ = lean_box(0);
v_isShared_5621_ = v_isSharedCheck_5625_;
goto v_resetjp_5619_;
}
v_resetjp_5619_:
{
lean_object* v___x_5623_; 
if (v_isShared_5621_ == 0)
{
v___x_5623_ = v___x_5620_;
goto v_reusejp_5622_;
}
else
{
lean_object* v_reuseFailAlloc_5624_; 
v_reuseFailAlloc_5624_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_5624_, 0, v_a_5617_);
lean_ctor_set(v_reuseFailAlloc_5624_, 1, v_a_5618_);
v___x_5623_ = v_reuseFailAlloc_5624_;
goto v_reusejp_5622_;
}
v_reusejp_5622_:
{
return v___x_5623_;
}
}
}
}
v___jp_5626_:
{
if (lean_obj_tag(v___y_5635_) == 0)
{
lean_object* v_a_5636_; lean_object* v_a_5637_; 
v_a_5636_ = lean_ctor_get(v___y_5635_, 0);
lean_inc(v_a_5636_);
v_a_5637_ = lean_ctor_get(v___y_5635_, 1);
lean_inc(v_a_5637_);
lean_dec_ref(v___y_5635_);
v___y_5561_ = v___y_5627_;
v___y_5562_ = v___y_5628_;
v___y_5563_ = v___y_5629_;
v___y_5564_ = v___y_5630_;
v___y_5565_ = v___y_5632_;
v___y_5566_ = v___y_5631_;
v___y_5567_ = v___y_5633_;
v___y_5568_ = v___y_5634_;
v_a_5569_ = v_a_5636_;
v_a_5570_ = v_a_5637_;
goto v___jp_5560_;
}
else
{
lean_object* v_a_5638_; lean_object* v_a_5639_; lean_object* v___x_5641_; uint8_t v_isShared_5642_; uint8_t v_isSharedCheck_5646_; 
lean_dec_ref(v___y_5634_);
lean_dec(v___y_5633_);
lean_dec(v___y_5632_);
lean_dec(v___y_5631_);
lean_dec_ref(v___y_5630_);
lean_dec_ref(v___y_5628_);
lean_dec_ref(v_toLeanConfig_5558_);
lean_dec(v_a_5556_);
lean_dec(v_a_5551_);
lean_dec(v_a_5544_);
lean_dec(v___x_5534_);
lean_dec_ref(v_pkg_5533_);
lean_dec(v_config_5532_);
lean_dec(v_name_5529_);
v_a_5638_ = lean_ctor_get(v___y_5635_, 0);
v_a_5639_ = lean_ctor_get(v___y_5635_, 1);
v_isSharedCheck_5646_ = !lean_is_exclusive(v___y_5635_);
if (v_isSharedCheck_5646_ == 0)
{
v___x_5641_ = v___y_5635_;
v_isShared_5642_ = v_isSharedCheck_5646_;
goto v_resetjp_5640_;
}
else
{
lean_inc(v_a_5639_);
lean_inc(v_a_5638_);
lean_dec(v___y_5635_);
v___x_5641_ = lean_box(0);
v_isShared_5642_ = v_isSharedCheck_5646_;
goto v_resetjp_5640_;
}
v_resetjp_5640_:
{
lean_object* v___x_5644_; 
if (v_isShared_5642_ == 0)
{
v___x_5644_ = v___x_5641_;
goto v_reusejp_5643_;
}
else
{
lean_object* v_reuseFailAlloc_5645_; 
v_reuseFailAlloc_5645_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_5645_, 0, v_a_5638_);
lean_ctor_set(v_reuseFailAlloc_5645_, 1, v_a_5639_);
v___x_5644_ = v_reuseFailAlloc_5645_;
goto v_reusejp_5643_;
}
v_reusejp_5643_:
{
return v___x_5644_;
}
}
}
}
v___jp_5647_:
{
lean_object* v___x_5656_; 
lean_inc_ref(v___y_5649_);
lean_inc(v___y_5650_);
lean_inc(v___y_5652_);
lean_inc(v___y_5651_);
lean_inc_ref(v___y_5653_);
v___x_5656_ = l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs(v_mod_5530_, v___y_5648_, v___y_5655_, v___y_5653_, v___y_5651_, v___y_5652_, v___y_5650_, v___y_5649_, v___y_5654_);
lean_dec_ref(v___y_5648_);
lean_dec_ref(v_mod_5530_);
if (lean_obj_tag(v___x_5656_) == 0)
{
lean_object* v_a_5657_; lean_object* v_a_5658_; lean_object* v___x_5659_; lean_object* v___x_5660_; uint8_t v___x_5661_; 
v_a_5657_ = lean_ctor_get(v___x_5656_, 0);
lean_inc(v_a_5657_);
v_a_5658_ = lean_ctor_get(v___x_5656_, 1);
lean_inc(v_a_5658_);
lean_dec_ref(v___x_5656_);
v___x_5659_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_fetchImportLibs___closed__0));
v___x_5660_ = l_Lake_Job_collectArray___redArg(v_a_5657_, v___x_5659_);
lean_dec(v_a_5657_);
v___x_5661_ = 1;
if (v___y_5655_ == 0)
{
lean_object* v___x_5662_; 
v___x_5662_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___closed__0));
v___y_5561_ = v___x_5661_;
v___y_5562_ = v___x_5660_;
v___y_5563_ = v___x_5661_;
v___y_5564_ = v___y_5649_;
v___y_5565_ = v___y_5650_;
v___y_5566_ = v___y_5651_;
v___y_5567_ = v___y_5652_;
v___y_5568_ = v___y_5653_;
v_a_5569_ = v___x_5662_;
v_a_5570_ = v_a_5658_;
goto v___jp_5560_;
}
else
{
lean_object* v___x_5663_; lean_object* v___x_5664_; lean_object* v___x_5665_; uint8_t v___x_5666_; 
v___x_5663_ = lean_unsigned_to_nat(0u);
v___x_5664_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__3));
v___x_5665_ = lean_array_get_size(v_targetDecls_5535_);
v___x_5666_ = lean_nat_dec_lt(v___x_5663_, v___x_5665_);
if (v___x_5666_ == 0)
{
size_t v_sz_5667_; size_t v___x_5668_; lean_object* v___x_5669_; 
v_sz_5667_ = lean_usize_once(&l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__4, &l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__4_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__4);
v___x_5668_ = ((size_t)0ULL);
lean_inc_ref(v___y_5649_);
lean_inc(v___y_5650_);
lean_inc(v___y_5652_);
lean_inc(v___y_5651_);
lean_inc_ref(v___y_5653_);
v___x_5669_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__2(v_sz_5667_, v___x_5668_, v___x_5664_, v___y_5653_, v___y_5651_, v___y_5652_, v___y_5650_, v___y_5649_, v_a_5658_);
v___y_5627_ = v___x_5661_;
v___y_5628_ = v___x_5660_;
v___y_5629_ = v___x_5661_;
v___y_5630_ = v___y_5649_;
v___y_5631_ = v___y_5651_;
v___y_5632_ = v___y_5650_;
v___y_5633_ = v___y_5652_;
v___y_5634_ = v___y_5653_;
v___y_5635_ = v___x_5669_;
goto v___jp_5626_;
}
else
{
uint8_t v___x_5670_; 
v___x_5670_ = lean_nat_dec_le(v___x_5665_, v___x_5665_);
if (v___x_5670_ == 0)
{
if (v___x_5666_ == 0)
{
size_t v_sz_5671_; size_t v___x_5672_; lean_object* v___x_5673_; 
v_sz_5671_ = lean_usize_once(&l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__4, &l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__4_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__4);
v___x_5672_ = ((size_t)0ULL);
lean_inc_ref(v___y_5649_);
lean_inc(v___y_5650_);
lean_inc(v___y_5652_);
lean_inc(v___y_5651_);
lean_inc_ref(v___y_5653_);
v___x_5673_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__2(v_sz_5671_, v___x_5672_, v___x_5664_, v___y_5653_, v___y_5651_, v___y_5652_, v___y_5650_, v___y_5649_, v_a_5658_);
v___y_5627_ = v___x_5661_;
v___y_5628_ = v___x_5660_;
v___y_5629_ = v___x_5661_;
v___y_5630_ = v___y_5649_;
v___y_5631_ = v___y_5651_;
v___y_5632_ = v___y_5650_;
v___y_5633_ = v___y_5652_;
v___y_5634_ = v___y_5653_;
v___y_5635_ = v___x_5673_;
goto v___jp_5626_;
}
else
{
size_t v___x_5674_; size_t v___x_5675_; lean_object* v___x_5676_; size_t v_sz_5677_; lean_object* v___x_5678_; 
v___x_5674_ = ((size_t)0ULL);
v___x_5675_ = lean_usize_of_nat(v___x_5665_);
lean_inc_ref(v_pkg_5533_);
v___x_5676_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__3(v_pkg_5533_, v_targetDecls_5535_, v___x_5674_, v___x_5675_, v___x_5664_);
v_sz_5677_ = lean_array_size(v___x_5676_);
lean_inc_ref(v___y_5649_);
lean_inc(v___y_5650_);
lean_inc(v___y_5652_);
lean_inc(v___y_5651_);
lean_inc_ref(v___y_5653_);
v___x_5678_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__2(v_sz_5677_, v___x_5674_, v___x_5676_, v___y_5653_, v___y_5651_, v___y_5652_, v___y_5650_, v___y_5649_, v_a_5658_);
v___y_5627_ = v___x_5661_;
v___y_5628_ = v___x_5660_;
v___y_5629_ = v___x_5661_;
v___y_5630_ = v___y_5649_;
v___y_5631_ = v___y_5651_;
v___y_5632_ = v___y_5650_;
v___y_5633_ = v___y_5652_;
v___y_5634_ = v___y_5653_;
v___y_5635_ = v___x_5678_;
goto v___jp_5626_;
}
}
else
{
size_t v___x_5679_; size_t v___x_5680_; lean_object* v___x_5681_; size_t v_sz_5682_; lean_object* v___x_5683_; 
v___x_5679_ = ((size_t)0ULL);
v___x_5680_ = lean_usize_of_nat(v___x_5665_);
lean_inc_ref(v_pkg_5533_);
v___x_5681_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__3(v_pkg_5533_, v_targetDecls_5535_, v___x_5679_, v___x_5680_, v___x_5664_);
v_sz_5682_ = lean_array_size(v___x_5681_);
lean_inc_ref(v___y_5649_);
lean_inc(v___y_5650_);
lean_inc(v___y_5652_);
lean_inc(v___y_5651_);
lean_inc_ref(v___y_5653_);
v___x_5683_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__2(v_sz_5682_, v___x_5679_, v___x_5681_, v___y_5653_, v___y_5651_, v___y_5652_, v___y_5650_, v___y_5649_, v_a_5658_);
v___y_5627_ = v___x_5661_;
v___y_5628_ = v___x_5660_;
v___y_5629_ = v___x_5661_;
v___y_5630_ = v___y_5649_;
v___y_5631_ = v___y_5651_;
v___y_5632_ = v___y_5650_;
v___y_5633_ = v___y_5652_;
v___y_5634_ = v___y_5653_;
v___y_5635_ = v___x_5683_;
goto v___jp_5626_;
}
}
}
}
else
{
lean_object* v_a_5684_; lean_object* v_a_5685_; lean_object* v___x_5687_; uint8_t v_isShared_5688_; uint8_t v_isSharedCheck_5692_; 
lean_dec_ref(v___y_5653_);
lean_dec(v___y_5652_);
lean_dec(v___y_5651_);
lean_dec(v___y_5650_);
lean_dec_ref(v___y_5649_);
lean_dec_ref(v_toLeanConfig_5558_);
lean_dec(v_a_5556_);
lean_dec(v_a_5551_);
lean_dec(v_a_5544_);
lean_dec(v___x_5534_);
lean_dec_ref(v_pkg_5533_);
lean_dec(v_config_5532_);
lean_dec(v_name_5529_);
v_a_5684_ = lean_ctor_get(v___x_5656_, 0);
v_a_5685_ = lean_ctor_get(v___x_5656_, 1);
v_isSharedCheck_5692_ = !lean_is_exclusive(v___x_5656_);
if (v_isSharedCheck_5692_ == 0)
{
v___x_5687_ = v___x_5656_;
v_isShared_5688_ = v_isSharedCheck_5692_;
goto v_resetjp_5686_;
}
else
{
lean_inc(v_a_5685_);
lean_inc(v_a_5684_);
lean_dec(v___x_5656_);
v___x_5687_ = lean_box(0);
v_isShared_5688_ = v_isSharedCheck_5692_;
goto v_resetjp_5686_;
}
v_resetjp_5686_:
{
lean_object* v___x_5690_; 
if (v_isShared_5688_ == 0)
{
v___x_5690_ = v___x_5687_;
goto v_reusejp_5689_;
}
else
{
lean_object* v_reuseFailAlloc_5691_; 
v_reuseFailAlloc_5691_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_5691_, 0, v_a_5684_);
lean_ctor_set(v_reuseFailAlloc_5691_, 1, v_a_5685_);
v___x_5690_ = v_reuseFailAlloc_5691_;
goto v_reusejp_5689_;
}
v_reusejp_5689_:
{
return v___x_5690_;
}
}
}
}
v___jp_5693_:
{
lean_object* v___x_5701_; 
v___x_5701_ = l_Lake_Job_await___redArg(v_precompileImports_5694_, v___y_5700_);
if (lean_obj_tag(v___x_5701_) == 0)
{
if (v_precompileModules_5559_ == 0)
{
lean_object* v_a_5702_; lean_object* v_a_5703_; uint8_t v_precompileModules_5704_; 
v_a_5702_ = lean_ctor_get(v___x_5701_, 0);
lean_inc(v_a_5702_);
v_a_5703_ = lean_ctor_get(v___x_5701_, 1);
lean_inc(v_a_5703_);
lean_dec_ref(v___x_5701_);
v_precompileModules_5704_ = lean_ctor_get_uint8(v_config_5532_, sizeof(void*)*9 + 1);
v___y_5648_ = v_a_5702_;
v___y_5649_ = v___y_5699_;
v___y_5650_ = v___y_5698_;
v___y_5651_ = v___y_5696_;
v___y_5652_ = v___y_5697_;
v___y_5653_ = v___y_5695_;
v___y_5654_ = v_a_5703_;
v___y_5655_ = v_precompileModules_5704_;
goto v___jp_5647_;
}
else
{
lean_object* v_a_5705_; lean_object* v_a_5706_; 
v_a_5705_ = lean_ctor_get(v___x_5701_, 0);
lean_inc(v_a_5705_);
v_a_5706_ = lean_ctor_get(v___x_5701_, 1);
lean_inc(v_a_5706_);
lean_dec_ref(v___x_5701_);
v___y_5648_ = v_a_5705_;
v___y_5649_ = v___y_5699_;
v___y_5650_ = v___y_5698_;
v___y_5651_ = v___y_5696_;
v___y_5652_ = v___y_5697_;
v___y_5653_ = v___y_5695_;
v___y_5654_ = v_a_5706_;
v___y_5655_ = v_precompileModules_5559_;
goto v___jp_5647_;
}
}
else
{
lean_object* v_a_5707_; lean_object* v_a_5708_; lean_object* v___x_5710_; uint8_t v_isShared_5711_; uint8_t v_isSharedCheck_5715_; 
lean_dec_ref(v___y_5699_);
lean_dec(v___y_5698_);
lean_dec(v___y_5697_);
lean_dec(v___y_5696_);
lean_dec_ref(v___y_5695_);
lean_dec_ref(v_toLeanConfig_5558_);
lean_dec(v_a_5556_);
lean_dec(v_a_5551_);
lean_dec(v_a_5544_);
lean_dec(v___x_5534_);
lean_dec_ref(v_pkg_5533_);
lean_dec(v_config_5532_);
lean_dec_ref(v_mod_5530_);
lean_dec(v_name_5529_);
v_a_5707_ = lean_ctor_get(v___x_5701_, 0);
v_a_5708_ = lean_ctor_get(v___x_5701_, 1);
v_isSharedCheck_5715_ = !lean_is_exclusive(v___x_5701_);
if (v_isSharedCheck_5715_ == 0)
{
v___x_5710_ = v___x_5701_;
v_isShared_5711_ = v_isSharedCheck_5715_;
goto v_resetjp_5709_;
}
else
{
lean_inc(v_a_5708_);
lean_inc(v_a_5707_);
lean_dec(v___x_5701_);
v___x_5710_ = lean_box(0);
v_isShared_5711_ = v_isSharedCheck_5715_;
goto v_resetjp_5709_;
}
v_resetjp_5709_:
{
lean_object* v___x_5713_; 
if (v_isShared_5711_ == 0)
{
v___x_5713_ = v___x_5710_;
goto v_reusejp_5712_;
}
else
{
lean_object* v_reuseFailAlloc_5714_; 
v_reuseFailAlloc_5714_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_5714_, 0, v_a_5707_);
lean_ctor_set(v_reuseFailAlloc_5714_, 1, v_a_5708_);
v___x_5713_ = v_reuseFailAlloc_5714_;
goto v_reusejp_5712_;
}
v_reusejp_5712_:
{
return v___x_5713_;
}
}
}
}
v___jp_5716_:
{
lean_object* v___x_5717_; lean_object* v___x_5718_; lean_object* v___x_5719_; 
v___x_5717_ = l_Lake_Module_transImportsFacet;
lean_inc_ref(v_mod_5530_);
v___x_5718_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_5718_, 0, v___x_5547_);
lean_ctor_set(v___x_5718_, 1, v___x_5548_);
lean_ctor_set(v___x_5718_, 2, v_mod_5530_);
lean_ctor_set(v___x_5718_, 3, v___x_5717_);
lean_inc_ref(v___y_5536_);
lean_inc_ref(v___y_5540_);
lean_inc(v___y_5539_);
lean_inc(v___y_5538_);
lean_inc(v___y_5537_);
v___x_5719_ = lean_apply_7(v___y_5536_, v___x_5718_, v___y_5537_, v___y_5538_, v___y_5539_, v___y_5540_, v_a_5557_, lean_box(0));
if (lean_obj_tag(v___x_5719_) == 0)
{
lean_object* v_a_5720_; lean_object* v_a_5721_; 
v_a_5720_ = lean_ctor_get(v___x_5719_, 0);
lean_inc(v_a_5720_);
v_a_5721_ = lean_ctor_get(v___x_5719_, 1);
lean_inc(v_a_5721_);
lean_dec_ref(v___x_5719_);
v_precompileImports_5694_ = v_a_5720_;
v___y_5695_ = v___y_5536_;
v___y_5696_ = v___y_5537_;
v___y_5697_ = v___y_5538_;
v___y_5698_ = v___y_5539_;
v___y_5699_ = v___y_5540_;
v___y_5700_ = v_a_5721_;
goto v___jp_5693_;
}
else
{
lean_object* v_a_5722_; lean_object* v_a_5723_; lean_object* v___x_5725_; uint8_t v_isShared_5726_; uint8_t v_isSharedCheck_5730_; 
lean_dec_ref(v_toLeanConfig_5558_);
lean_dec(v_a_5556_);
lean_dec(v_a_5551_);
lean_dec(v_a_5544_);
lean_dec_ref(v___y_5540_);
lean_dec(v___y_5539_);
lean_dec(v___y_5538_);
lean_dec(v___y_5537_);
lean_dec_ref(v___y_5536_);
lean_dec(v___x_5534_);
lean_dec_ref(v_pkg_5533_);
lean_dec(v_config_5532_);
lean_dec_ref(v_mod_5530_);
lean_dec(v_name_5529_);
v_a_5722_ = lean_ctor_get(v___x_5719_, 0);
v_a_5723_ = lean_ctor_get(v___x_5719_, 1);
v_isSharedCheck_5730_ = !lean_is_exclusive(v___x_5719_);
if (v_isSharedCheck_5730_ == 0)
{
v___x_5725_ = v___x_5719_;
v_isShared_5726_ = v_isSharedCheck_5730_;
goto v_resetjp_5724_;
}
else
{
lean_inc(v_a_5723_);
lean_inc(v_a_5722_);
lean_dec(v___x_5719_);
v___x_5725_ = lean_box(0);
v_isShared_5726_ = v_isSharedCheck_5730_;
goto v_resetjp_5724_;
}
v_resetjp_5724_:
{
lean_object* v___x_5728_; 
if (v_isShared_5726_ == 0)
{
v___x_5728_ = v___x_5725_;
goto v_reusejp_5727_;
}
else
{
lean_object* v_reuseFailAlloc_5729_; 
v_reuseFailAlloc_5729_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_5729_, 0, v_a_5722_);
lean_ctor_set(v_reuseFailAlloc_5729_, 1, v_a_5723_);
v___x_5728_ = v_reuseFailAlloc_5729_;
goto v_reusejp_5727_;
}
v_reusejp_5727_:
{
return v___x_5728_;
}
}
}
}
}
else
{
lean_object* v_a_5746_; lean_object* v_a_5747_; lean_object* v___x_5749_; uint8_t v_isShared_5750_; uint8_t v_isSharedCheck_5754_; 
lean_dec(v_a_5551_);
lean_dec_ref(v___x_5547_);
lean_dec(v_a_5544_);
lean_dec_ref(v___y_5540_);
lean_dec(v___y_5539_);
lean_dec(v___y_5538_);
lean_dec(v___y_5537_);
lean_dec_ref(v___y_5536_);
lean_dec(v___x_5534_);
lean_dec_ref(v_pkg_5533_);
lean_dec(v_config_5532_);
lean_dec_ref(v_config_5531_);
lean_dec_ref(v_mod_5530_);
lean_dec(v_name_5529_);
v_a_5746_ = lean_ctor_get(v___x_5555_, 0);
v_a_5747_ = lean_ctor_get(v___x_5555_, 1);
v_isSharedCheck_5754_ = !lean_is_exclusive(v___x_5555_);
if (v_isSharedCheck_5754_ == 0)
{
v___x_5749_ = v___x_5555_;
v_isShared_5750_ = v_isSharedCheck_5754_;
goto v_resetjp_5748_;
}
else
{
lean_inc(v_a_5747_);
lean_inc(v_a_5746_);
lean_dec(v___x_5555_);
v___x_5749_ = lean_box(0);
v_isShared_5750_ = v_isSharedCheck_5754_;
goto v_resetjp_5748_;
}
v_resetjp_5748_:
{
lean_object* v___x_5752_; 
if (v_isShared_5750_ == 0)
{
v___x_5752_ = v___x_5749_;
goto v_reusejp_5751_;
}
else
{
lean_object* v_reuseFailAlloc_5753_; 
v_reuseFailAlloc_5753_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_5753_, 0, v_a_5746_);
lean_ctor_set(v_reuseFailAlloc_5753_, 1, v_a_5747_);
v___x_5752_ = v_reuseFailAlloc_5753_;
goto v_reusejp_5751_;
}
v_reusejp_5751_:
{
return v___x_5752_;
}
}
}
}
else
{
lean_object* v_a_5755_; lean_object* v_a_5756_; lean_object* v___x_5758_; uint8_t v_isShared_5759_; uint8_t v_isSharedCheck_5763_; 
lean_dec_ref(v___x_5547_);
lean_dec(v_a_5544_);
lean_dec_ref(v___y_5540_);
lean_dec(v___y_5539_);
lean_dec(v___y_5538_);
lean_dec(v___y_5537_);
lean_dec_ref(v___y_5536_);
lean_dec(v___x_5534_);
lean_dec_ref(v_pkg_5533_);
lean_dec(v_config_5532_);
lean_dec_ref(v_config_5531_);
lean_dec_ref(v_mod_5530_);
lean_dec(v_name_5529_);
v_a_5755_ = lean_ctor_get(v___x_5550_, 0);
v_a_5756_ = lean_ctor_get(v___x_5550_, 1);
v_isSharedCheck_5763_ = !lean_is_exclusive(v___x_5550_);
if (v_isSharedCheck_5763_ == 0)
{
v___x_5758_ = v___x_5550_;
v_isShared_5759_ = v_isSharedCheck_5763_;
goto v_resetjp_5757_;
}
else
{
lean_inc(v_a_5756_);
lean_inc(v_a_5755_);
lean_dec(v___x_5550_);
v___x_5758_ = lean_box(0);
v_isShared_5759_ = v_isSharedCheck_5763_;
goto v_resetjp_5757_;
}
v_resetjp_5757_:
{
lean_object* v___x_5761_; 
if (v_isShared_5759_ == 0)
{
v___x_5761_ = v___x_5758_;
goto v_reusejp_5760_;
}
else
{
lean_object* v_reuseFailAlloc_5762_; 
v_reuseFailAlloc_5762_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_5762_, 0, v_a_5755_);
lean_ctor_set(v_reuseFailAlloc_5762_, 1, v_a_5756_);
v___x_5761_ = v_reuseFailAlloc_5762_;
goto v_reusejp_5760_;
}
v_reusejp_5760_:
{
return v___x_5761_;
}
}
}
}
else
{
lean_object* v_a_5764_; lean_object* v_a_5765_; lean_object* v___x_5767_; uint8_t v_isShared_5768_; uint8_t v_isSharedCheck_5772_; 
lean_dec_ref(v___y_5540_);
lean_dec(v___y_5539_);
lean_dec(v___y_5538_);
lean_dec(v___y_5537_);
lean_dec_ref(v___y_5536_);
lean_dec(v___x_5534_);
lean_dec_ref(v_pkg_5533_);
lean_dec(v_config_5532_);
lean_dec_ref(v_config_5531_);
lean_dec_ref(v_mod_5530_);
lean_dec(v_name_5529_);
lean_dec(v_keyName_5528_);
v_a_5764_ = lean_ctor_get(v___x_5543_, 0);
v_a_5765_ = lean_ctor_get(v___x_5543_, 1);
v_isSharedCheck_5772_ = !lean_is_exclusive(v___x_5543_);
if (v_isSharedCheck_5772_ == 0)
{
v___x_5767_ = v___x_5543_;
v_isShared_5768_ = v_isSharedCheck_5772_;
goto v_resetjp_5766_;
}
else
{
lean_inc(v_a_5765_);
lean_inc(v_a_5764_);
lean_dec(v___x_5543_);
v___x_5767_ = lean_box(0);
v_isShared_5768_ = v_isSharedCheck_5772_;
goto v_resetjp_5766_;
}
v_resetjp_5766_:
{
lean_object* v___x_5770_; 
if (v_isShared_5768_ == 0)
{
v___x_5770_ = v___x_5767_;
goto v_reusejp_5769_;
}
else
{
lean_object* v_reuseFailAlloc_5771_; 
v_reuseFailAlloc_5771_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_5771_, 0, v_a_5764_);
lean_ctor_set(v_reuseFailAlloc_5771_, 1, v_a_5765_);
v___x_5770_ = v_reuseFailAlloc_5771_;
goto v_reusejp_5769_;
}
v_reusejp_5769_:
{
return v___x_5770_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___boxed(lean_object* v___x_5773_, lean_object* v_keyName_5774_, lean_object* v_name_5775_, lean_object* v_mod_5776_, lean_object* v_config_5777_, lean_object* v_config_5778_, lean_object* v_pkg_5779_, lean_object* v___x_5780_, lean_object* v_targetDecls_5781_, lean_object* v___y_5782_, lean_object* v___y_5783_, lean_object* v___y_5784_, lean_object* v___y_5785_, lean_object* v___y_5786_, lean_object* v___y_5787_, lean_object* v___y_5788_){
_start:
{
lean_object* v_res_5789_; 
v_res_5789_ = l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7(v___x_5773_, v_keyName_5774_, v_name_5775_, v_mod_5776_, v_config_5777_, v_config_5778_, v_pkg_5779_, v___x_5780_, v_targetDecls_5781_, v___y_5782_, v___y_5783_, v___y_5784_, v___y_5785_, v___y_5786_, v___y_5787_);
lean_dec_ref(v_targetDecls_5781_);
return v_res_5789_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup(lean_object* v_mod_5790_, lean_object* v_a_5791_, lean_object* v_a_5792_, lean_object* v_a_5793_, lean_object* v_a_5794_, lean_object* v_a_5795_, lean_object* v_a_5796_){
_start:
{
lean_object* v_lib_5798_; lean_object* v_pkg_5799_; lean_object* v_name_5800_; lean_object* v_name_5801_; lean_object* v_config_5802_; lean_object* v_keyName_5803_; lean_object* v_config_5804_; lean_object* v_targetDecls_5805_; lean_object* v___x_5806_; lean_object* v___x_5807_; lean_object* v___x_5808_; lean_object* v___x_5809_; lean_object* v___x_5810_; lean_object* v___f_5811_; lean_object* v___x_5812_; 
v_lib_5798_ = lean_ctor_get(v_mod_5790_, 0);
v_pkg_5799_ = lean_ctor_get(v_lib_5798_, 0);
lean_inc_ref(v_pkg_5799_);
v_name_5800_ = lean_ctor_get(v_mod_5790_, 1);
lean_inc(v_name_5800_);
v_name_5801_ = lean_ctor_get(v_lib_5798_, 1);
v_config_5802_ = lean_ctor_get(v_lib_5798_, 2);
lean_inc(v_config_5802_);
v_keyName_5803_ = lean_ctor_get(v_pkg_5799_, 2);
lean_inc(v_keyName_5803_);
v_config_5804_ = lean_ctor_get(v_pkg_5799_, 6);
lean_inc_ref(v_config_5804_);
v_targetDecls_5805_ = lean_ctor_get(v_pkg_5799_, 13);
lean_inc_ref(v_targetDecls_5805_);
v___x_5806_ = lean_box(0);
v___x_5807_ = l_Lake_LeanLib_extraDepFacet;
lean_inc(v_name_5801_);
lean_inc(v_keyName_5803_);
v___x_5808_ = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(v___x_5808_, 0, v_keyName_5803_);
lean_ctor_set(v___x_5808_, 1, v_name_5801_);
v___x_5809_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_fetchImportLibs_spec__0___closed__1));
lean_inc_ref(v_lib_5798_);
v___x_5810_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_5810_, 0, v___x_5808_);
lean_ctor_set(v___x_5810_, 1, v___x_5809_);
lean_ctor_set(v___x_5810_, 2, v_lib_5798_);
lean_ctor_set(v___x_5810_, 3, v___x_5807_);
v___f_5811_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___boxed), 16, 9);
lean_closure_set(v___f_5811_, 0, v___x_5810_);
lean_closure_set(v___f_5811_, 1, v_keyName_5803_);
lean_closure_set(v___f_5811_, 2, v_name_5800_);
lean_closure_set(v___f_5811_, 3, v_mod_5790_);
lean_closure_set(v___f_5811_, 4, v_config_5804_);
lean_closure_set(v___f_5811_, 5, v_config_5802_);
lean_closure_set(v___f_5811_, 6, v_pkg_5799_);
lean_closure_set(v___f_5811_, 7, v___x_5806_);
lean_closure_set(v___f_5811_, 8, v_targetDecls_5805_);
v___x_5812_ = l_Lake_ensureJob___redArg(v___x_5806_, v___f_5811_, v_a_5791_, v_a_5792_, v_a_5793_, v_a_5794_, v_a_5795_, v_a_5796_);
return v___x_5812_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___boxed(lean_object* v_mod_5813_, lean_object* v_a_5814_, lean_object* v_a_5815_, lean_object* v_a_5816_, lean_object* v_a_5817_, lean_object* v_a_5818_, lean_object* v_a_5819_, lean_object* v_a_5820_){
_start:
{
lean_object* v_res_5821_; 
v_res_5821_ = l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup(v_mod_5813_, v_a_5814_, v_a_5815_, v_a_5816_, v_a_5817_, v_a_5818_, v_a_5819_);
return v_res_5821_;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_setupFacetConfig_spec__0(uint8_t v_fmt_5822_, lean_object* v_a_5823_){
_start:
{
if (v_fmt_5822_ == 0)
{
lean_object* v___x_5824_; 
lean_dec_ref(v_a_5823_);
v___x_5824_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1));
return v___x_5824_;
}
else
{
lean_object* v___x_5825_; lean_object* v___x_5826_; 
v___x_5825_ = l_Lean_instToJsonModuleSetup_toJson(v_a_5823_);
v___x_5826_ = l_Lean_Json_compress(v___x_5825_);
return v___x_5826_;
}
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_setupFacetConfig_spec__0___boxed(lean_object* v_fmt_5827_, lean_object* v_a_5828_){
_start:
{
uint8_t v_fmt_boxed_5829_; lean_object* v_res_5830_; 
v_fmt_boxed_5829_ = lean_unbox(v_fmt_5827_);
v_res_5830_ = l_Lake_formatQuery___at___00Lake_Module_setupFacetConfig_spec__0(v_fmt_boxed_5829_, v_a_5828_);
return v_res_5830_;
}
}
static lean_object* _init_l_Lake_Module_setupFacetConfig___closed__2(void){
_start:
{
lean_object* v___f_5833_; uint8_t v___x_5834_; lean_object* v___x_5835_; lean_object* v___x_5836_; lean_object* v___x_5837_; lean_object* v___x_5838_; 
v___f_5833_ = ((lean_object*)(l_Lake_Module_setupFacetConfig___closed__0));
v___x_5834_ = 1;
v___x_5835_ = lean_box(0);
v___x_5836_ = ((lean_object*)(l_Lake_Module_setupFacetConfig___closed__1));
v___x_5837_ = l_Lake_Module_keyword;
v___x_5838_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_5838_, 0, v___x_5837_);
lean_ctor_set(v___x_5838_, 1, v___x_5836_);
lean_ctor_set(v___x_5838_, 2, v___x_5835_);
lean_ctor_set(v___x_5838_, 3, v___f_5833_);
lean_ctor_set_uint8(v___x_5838_, sizeof(void*)*4, v___x_5834_);
lean_ctor_set_uint8(v___x_5838_, sizeof(void*)*4 + 1, v___x_5834_);
return v___x_5838_;
}
}
static lean_object* _init_l_Lake_Module_setupFacetConfig(void){
_start:
{
lean_object* v___x_5839_; 
v___x_5839_ = lean_obj_once(&l_Lake_Module_setupFacetConfig___closed__2, &l_Lake_Module_setupFacetConfig___closed__2_once, _init_l_Lake_Module_setupFacetConfig___closed__2);
return v___x_5839_;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_depsFacetConfig_spec__0___redArg(uint8_t v_fmt_5840_){
_start:
{
if (v_fmt_5840_ == 0)
{
lean_object* v___x_5841_; 
v___x_5841_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1));
return v___x_5841_;
}
else
{
lean_object* v___x_5842_; 
v___x_5842_ = lean_obj_once(&l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg___closed__0, &l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg___closed__0_once, _init_l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg___closed__0);
return v___x_5842_;
}
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_depsFacetConfig_spec__0___redArg___boxed(lean_object* v_fmt_5843_){
_start:
{
uint8_t v_fmt_boxed_5844_; lean_object* v_res_5845_; 
v_fmt_boxed_5844_ = lean_unbox(v_fmt_5843_);
v_res_5845_ = l_Lake_formatQuery___at___00Lake_Module_depsFacetConfig_spec__0___redArg(v_fmt_boxed_5844_);
return v_res_5845_;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_depsFacetConfig_spec__0(uint8_t v_fmt_5846_, lean_object* v_a_5847_){
_start:
{
lean_object* v___x_5848_; 
v___x_5848_ = l_Lake_formatQuery___at___00Lake_Module_depsFacetConfig_spec__0___redArg(v_fmt_5846_);
return v___x_5848_;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_depsFacetConfig_spec__0___boxed(lean_object* v_fmt_5849_, lean_object* v_a_5850_){
_start:
{
uint8_t v_fmt_boxed_5851_; lean_object* v_res_5852_; 
v_fmt_boxed_5851_ = lean_unbox(v_fmt_5849_);
v_res_5852_ = l_Lake_formatQuery___at___00Lake_Module_depsFacetConfig_spec__0(v_fmt_boxed_5851_, v_a_5850_);
lean_dec(v_a_5850_);
return v_res_5852_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_depsFacetConfig___lam__0(lean_object* v_mod_5853_, lean_object* v___y_5854_, lean_object* v___y_5855_, lean_object* v___y_5856_, lean_object* v___y_5857_, lean_object* v___y_5858_, lean_object* v___y_5859_){
_start:
{
lean_object* v_lib_5861_; lean_object* v_pkg_5862_; lean_object* v_name_5863_; lean_object* v_keyName_5864_; lean_object* v___x_5865_; lean_object* v___x_5866_; lean_object* v___x_5867_; lean_object* v___x_5868_; lean_object* v___x_5869_; 
v_lib_5861_ = lean_ctor_get(v_mod_5853_, 0);
v_pkg_5862_ = lean_ctor_get(v_lib_5861_, 0);
v_name_5863_ = lean_ctor_get(v_mod_5853_, 1);
v_keyName_5864_ = lean_ctor_get(v_pkg_5862_, 2);
v___x_5865_ = l_Lake_Module_setupFacet;
lean_inc(v_name_5863_);
lean_inc(v_keyName_5864_);
v___x_5866_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_5866_, 0, v_keyName_5864_);
lean_ctor_set(v___x_5866_, 1, v_name_5863_);
v___x_5867_ = l_Lake_Module_keyword;
v___x_5868_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_5868_, 0, v___x_5866_);
lean_ctor_set(v___x_5868_, 1, v___x_5867_);
lean_ctor_set(v___x_5868_, 2, v_mod_5853_);
lean_ctor_set(v___x_5868_, 3, v___x_5865_);
v___x_5869_ = lean_apply_7(v___y_5854_, v___x_5868_, v___y_5855_, v___y_5856_, v___y_5857_, v___y_5858_, v___y_5859_, lean_box(0));
if (lean_obj_tag(v___x_5869_) == 0)
{
lean_object* v_a_5870_; lean_object* v_a_5871_; lean_object* v___x_5873_; uint8_t v_isShared_5874_; uint8_t v_isSharedCheck_5879_; 
v_a_5870_ = lean_ctor_get(v___x_5869_, 0);
v_a_5871_ = lean_ctor_get(v___x_5869_, 1);
v_isSharedCheck_5879_ = !lean_is_exclusive(v___x_5869_);
if (v_isSharedCheck_5879_ == 0)
{
v___x_5873_ = v___x_5869_;
v_isShared_5874_ = v_isSharedCheck_5879_;
goto v_resetjp_5872_;
}
else
{
lean_inc(v_a_5871_);
lean_inc(v_a_5870_);
lean_dec(v___x_5869_);
v___x_5873_ = lean_box(0);
v_isShared_5874_ = v_isSharedCheck_5879_;
goto v_resetjp_5872_;
}
v_resetjp_5872_:
{
lean_object* v___x_5875_; lean_object* v___x_5877_; 
v___x_5875_ = l_Lake_Job_toOpaque___redArg(v_a_5870_);
if (v_isShared_5874_ == 0)
{
lean_ctor_set(v___x_5873_, 0, v___x_5875_);
v___x_5877_ = v___x_5873_;
goto v_reusejp_5876_;
}
else
{
lean_object* v_reuseFailAlloc_5878_; 
v_reuseFailAlloc_5878_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_5878_, 0, v___x_5875_);
lean_ctor_set(v_reuseFailAlloc_5878_, 1, v_a_5871_);
v___x_5877_ = v_reuseFailAlloc_5878_;
goto v_reusejp_5876_;
}
v_reusejp_5876_:
{
return v___x_5877_;
}
}
}
else
{
lean_object* v_a_5880_; lean_object* v_a_5881_; lean_object* v___x_5883_; uint8_t v_isShared_5884_; uint8_t v_isSharedCheck_5888_; 
v_a_5880_ = lean_ctor_get(v___x_5869_, 0);
v_a_5881_ = lean_ctor_get(v___x_5869_, 1);
v_isSharedCheck_5888_ = !lean_is_exclusive(v___x_5869_);
if (v_isSharedCheck_5888_ == 0)
{
v___x_5883_ = v___x_5869_;
v_isShared_5884_ = v_isSharedCheck_5888_;
goto v_resetjp_5882_;
}
else
{
lean_inc(v_a_5881_);
lean_inc(v_a_5880_);
lean_dec(v___x_5869_);
v___x_5883_ = lean_box(0);
v_isShared_5884_ = v_isSharedCheck_5888_;
goto v_resetjp_5882_;
}
v_resetjp_5882_:
{
lean_object* v___x_5886_; 
if (v_isShared_5884_ == 0)
{
v___x_5886_ = v___x_5883_;
goto v_reusejp_5885_;
}
else
{
lean_object* v_reuseFailAlloc_5887_; 
v_reuseFailAlloc_5887_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_5887_, 0, v_a_5880_);
lean_ctor_set(v_reuseFailAlloc_5887_, 1, v_a_5881_);
v___x_5886_ = v_reuseFailAlloc_5887_;
goto v_reusejp_5885_;
}
v_reusejp_5885_:
{
return v___x_5886_;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_depsFacetConfig___lam__0___boxed(lean_object* v_mod_5889_, lean_object* v___y_5890_, lean_object* v___y_5891_, lean_object* v___y_5892_, lean_object* v___y_5893_, lean_object* v___y_5894_, lean_object* v___y_5895_, lean_object* v___y_5896_){
_start:
{
lean_object* v_res_5897_; 
v_res_5897_ = l_Lake_Module_depsFacetConfig___lam__0(v_mod_5889_, v___y_5890_, v___y_5891_, v___y_5892_, v___y_5893_, v___y_5894_, v___y_5895_);
return v_res_5897_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_depsFacetConfig___lam__1(uint8_t v___y_5898_, lean_object* v___y_5899_){
_start:
{
lean_object* v___x_5900_; 
v___x_5900_ = l_Lake_formatQuery___at___00Lake_Module_depsFacetConfig_spec__0___redArg(v___y_5898_);
return v___x_5900_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_depsFacetConfig___lam__1___boxed(lean_object* v___y_5901_, lean_object* v___y_5902_){
_start:
{
uint8_t v___y_895__boxed_5903_; lean_object* v_res_5904_; 
v___y_895__boxed_5903_ = lean_unbox(v___y_5901_);
v_res_5904_ = l_Lake_Module_depsFacetConfig___lam__1(v___y_895__boxed_5903_, v___y_5902_);
lean_dec(v___y_5902_);
return v_res_5904_;
}
}
static lean_object* _init_l_Lake_Module_depsFacetConfig___closed__2(void){
_start:
{
lean_object* v___f_5907_; uint8_t v___x_5908_; lean_object* v___x_5909_; lean_object* v___f_5910_; lean_object* v___x_5911_; lean_object* v___x_5912_; 
v___f_5907_ = ((lean_object*)(l_Lake_Module_depsFacetConfig___closed__1));
v___x_5908_ = 1;
v___x_5909_ = lean_box(0);
v___f_5910_ = ((lean_object*)(l_Lake_Module_depsFacetConfig___closed__0));
v___x_5911_ = l_Lake_Module_keyword;
v___x_5912_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_5912_, 0, v___x_5911_);
lean_ctor_set(v___x_5912_, 1, v___f_5910_);
lean_ctor_set(v___x_5912_, 2, v___x_5909_);
lean_ctor_set(v___x_5912_, 3, v___f_5907_);
lean_ctor_set_uint8(v___x_5912_, sizeof(void*)*4, v___x_5908_);
lean_ctor_set_uint8(v___x_5912_, sizeof(void*)*4 + 1, v___x_5908_);
return v___x_5912_;
}
}
static lean_object* _init_l_Lake_Module_depsFacetConfig(void){
_start:
{
lean_object* v___x_5913_; 
v___x_5913_ = lean_obj_once(&l_Lake_Module_depsFacetConfig___closed__2, &l_Lake_Module_depsFacetConfig___closed__2_once, _init_l_Lake_Module_depsFacetConfig___closed__2);
return v___x_5913_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_clearOutputArtifacts(lean_object* v_mod_5923_){
_start:
{
lean_object* v___y_5926_; lean_object* v_lib_5939_; lean_object* v_pkg_5940_; lean_object* v_config_5941_; lean_object* v_name_5942_; lean_object* v_dir_5943_; lean_object* v_buildDir_5944_; lean_object* v_leanLibDir_5945_; lean_object* v_irDir_5946_; lean_object* v___x_5947_; lean_object* v___x_5948_; lean_object* v___x_5949_; lean_object* v___x_5950_; lean_object* v___x_5951_; lean_object* v___x_5952_; lean_object* v___x_5953_; 
v_lib_5939_ = lean_ctor_get(v_mod_5923_, 0);
v_pkg_5940_ = lean_ctor_get(v_lib_5939_, 0);
lean_inc_ref(v_pkg_5940_);
v_config_5941_ = lean_ctor_get(v_pkg_5940_, 6);
lean_inc_ref(v_config_5941_);
v_name_5942_ = lean_ctor_get(v_mod_5923_, 1);
lean_inc(v_name_5942_);
lean_dec_ref(v_mod_5923_);
v_dir_5943_ = lean_ctor_get(v_pkg_5940_, 4);
lean_inc_ref(v_dir_5943_);
lean_dec_ref(v_pkg_5940_);
v_buildDir_5944_ = lean_ctor_get(v_config_5941_, 6);
lean_inc_ref(v_buildDir_5944_);
v_leanLibDir_5945_ = lean_ctor_get(v_config_5941_, 7);
lean_inc_ref(v_leanLibDir_5945_);
v_irDir_5946_ = lean_ctor_get(v_config_5941_, 10);
lean_inc_ref(v_irDir_5946_);
lean_dec_ref(v_config_5941_);
v___x_5947_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__1));
v___x_5948_ = l_System_FilePath_normalize(v_buildDir_5944_);
v___x_5949_ = l_Lake_joinRelative(v_dir_5943_, v___x_5948_);
v___x_5950_ = l_System_FilePath_normalize(v_irDir_5946_);
lean_inc_ref(v___x_5949_);
v___x_5951_ = l_Lake_joinRelative(v___x_5949_, v___x_5950_);
lean_inc(v_name_5942_);
v___x_5952_ = l_Lean_modToFilePath(v___x_5951_, v_name_5942_, v___x_5947_);
v___x_5953_ = l_Lake_removeFileIfExists(v___x_5952_);
lean_dec_ref(v___x_5952_);
if (lean_obj_tag(v___x_5953_) == 0)
{
lean_object* v___x_5954_; lean_object* v___x_5955_; lean_object* v___x_5956_; lean_object* v___x_5957_; lean_object* v___x_5958_; 
lean_dec_ref(v___x_5953_);
v___x_5954_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__2));
v___x_5955_ = l_System_FilePath_normalize(v_leanLibDir_5945_);
v___x_5956_ = l_Lake_joinRelative(v___x_5949_, v___x_5955_);
lean_inc(v_name_5942_);
v___x_5957_ = l_Lean_modToFilePath(v___x_5956_, v_name_5942_, v___x_5954_);
v___x_5958_ = l_Lake_removeFileIfExists(v___x_5957_);
lean_dec_ref(v___x_5957_);
if (lean_obj_tag(v___x_5958_) == 0)
{
lean_object* v___x_5959_; lean_object* v___x_5960_; lean_object* v___x_5961_; 
lean_dec_ref(v___x_5958_);
v___x_5959_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__3));
lean_inc(v_name_5942_);
v___x_5960_ = l_Lean_modToFilePath(v___x_5956_, v_name_5942_, v___x_5959_);
v___x_5961_ = l_Lake_removeFileIfExists(v___x_5960_);
lean_dec_ref(v___x_5960_);
if (lean_obj_tag(v___x_5961_) == 0)
{
lean_object* v___x_5962_; lean_object* v___x_5963_; lean_object* v___x_5964_; 
lean_dec_ref(v___x_5961_);
v___x_5962_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__4));
lean_inc(v_name_5942_);
v___x_5963_ = l_Lean_modToFilePath(v___x_5956_, v_name_5942_, v___x_5962_);
v___x_5964_ = l_Lake_removeFileIfExists(v___x_5963_);
lean_dec_ref(v___x_5963_);
if (lean_obj_tag(v___x_5964_) == 0)
{
lean_object* v___x_5965_; lean_object* v___x_5966_; lean_object* v___x_5967_; 
lean_dec_ref(v___x_5964_);
v___x_5965_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__5));
lean_inc(v_name_5942_);
v___x_5966_ = l_Lean_modToFilePath(v___x_5956_, v_name_5942_, v___x_5965_);
v___x_5967_ = l_Lake_removeFileIfExists(v___x_5966_);
lean_dec_ref(v___x_5966_);
if (lean_obj_tag(v___x_5967_) == 0)
{
lean_object* v___x_5968_; lean_object* v___x_5969_; lean_object* v___x_5970_; 
lean_dec_ref(v___x_5967_);
v___x_5968_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__6));
lean_inc(v_name_5942_);
v___x_5969_ = l_Lean_modToFilePath(v___x_5956_, v_name_5942_, v___x_5968_);
lean_dec_ref(v___x_5956_);
v___x_5970_ = l_Lake_removeFileIfExists(v___x_5969_);
lean_dec_ref(v___x_5969_);
if (lean_obj_tag(v___x_5970_) == 0)
{
lean_object* v___x_5971_; lean_object* v___x_5972_; lean_object* v___x_5973_; 
lean_dec_ref(v___x_5970_);
v___x_5971_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__7));
lean_inc(v_name_5942_);
v___x_5972_ = l_Lean_modToFilePath(v___x_5951_, v_name_5942_, v___x_5971_);
v___x_5973_ = l_Lake_removeFileIfExists(v___x_5972_);
lean_dec_ref(v___x_5972_);
if (lean_obj_tag(v___x_5973_) == 0)
{
lean_object* v___x_5974_; lean_object* v___x_5975_; lean_object* v___x_5976_; 
lean_dec_ref(v___x_5973_);
v___x_5974_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__8));
v___x_5975_ = l_Lean_modToFilePath(v___x_5951_, v_name_5942_, v___x_5974_);
lean_dec_ref(v___x_5951_);
v___x_5976_ = l_Lake_removeFileIfExists(v___x_5975_);
lean_dec_ref(v___x_5975_);
v___y_5926_ = v___x_5976_;
goto v___jp_5925_;
}
else
{
lean_dec_ref(v___x_5951_);
lean_dec(v_name_5942_);
v___y_5926_ = v___x_5973_;
goto v___jp_5925_;
}
}
else
{
lean_dec_ref(v___x_5951_);
lean_dec(v_name_5942_);
v___y_5926_ = v___x_5970_;
goto v___jp_5925_;
}
}
else
{
lean_dec_ref(v___x_5956_);
lean_dec_ref(v___x_5951_);
lean_dec(v_name_5942_);
v___y_5926_ = v___x_5967_;
goto v___jp_5925_;
}
}
else
{
lean_dec_ref(v___x_5956_);
lean_dec_ref(v___x_5951_);
lean_dec(v_name_5942_);
v___y_5926_ = v___x_5964_;
goto v___jp_5925_;
}
}
else
{
lean_dec_ref(v___x_5956_);
lean_dec_ref(v___x_5951_);
lean_dec(v_name_5942_);
v___y_5926_ = v___x_5961_;
goto v___jp_5925_;
}
}
else
{
lean_dec_ref(v___x_5956_);
lean_dec_ref(v___x_5951_);
lean_dec(v_name_5942_);
v___y_5926_ = v___x_5958_;
goto v___jp_5925_;
}
}
else
{
lean_dec_ref(v___x_5951_);
lean_dec_ref(v___x_5949_);
lean_dec_ref(v_leanLibDir_5945_);
lean_dec(v_name_5942_);
v___y_5926_ = v___x_5953_;
goto v___jp_5925_;
}
v___jp_5925_:
{
if (lean_obj_tag(v___y_5926_) == 0)
{
return v___y_5926_;
}
else
{
lean_object* v_a_5927_; lean_object* v___x_5929_; uint8_t v_isShared_5930_; uint8_t v_isSharedCheck_5938_; 
v_a_5927_ = lean_ctor_get(v___y_5926_, 0);
v_isSharedCheck_5938_ = !lean_is_exclusive(v___y_5926_);
if (v_isSharedCheck_5938_ == 0)
{
v___x_5929_ = v___y_5926_;
v_isShared_5930_ = v_isSharedCheck_5938_;
goto v_resetjp_5928_;
}
else
{
lean_inc(v_a_5927_);
lean_dec(v___y_5926_);
v___x_5929_ = lean_box(0);
v_isShared_5930_ = v_isSharedCheck_5938_;
goto v_resetjp_5928_;
}
v_resetjp_5928_:
{
lean_object* v___x_5931_; lean_object* v___x_5932_; lean_object* v___x_5933_; lean_object* v___x_5934_; lean_object* v___x_5936_; 
v___x_5931_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__0));
v___x_5932_ = lean_io_error_to_string(v_a_5927_);
v___x_5933_ = lean_string_append(v___x_5931_, v___x_5932_);
lean_dec_ref(v___x_5932_);
v___x_5934_ = lean_mk_io_user_error(v___x_5933_);
if (v_isShared_5930_ == 0)
{
lean_ctor_set(v___x_5929_, 0, v___x_5934_);
v___x_5936_ = v___x_5929_;
goto v_reusejp_5935_;
}
else
{
lean_object* v_reuseFailAlloc_5937_; 
v_reuseFailAlloc_5937_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_5937_, 0, v___x_5934_);
v___x_5936_ = v_reuseFailAlloc_5937_;
goto v_reusejp_5935_;
}
v_reusejp_5935_:
{
return v___x_5936_;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_clearOutputArtifacts___boxed(lean_object* v_mod_5977_, lean_object* v_a_5978_){
_start:
{
lean_object* v_res_5979_; 
v_res_5979_ = l_Lake_Module_clearOutputArtifacts(v_mod_5977_);
return v_res_5979_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_clearOutputHashes(lean_object* v_mod_5981_){
_start:
{
lean_object* v___y_5984_; lean_object* v_lib_5997_; lean_object* v_pkg_5998_; lean_object* v_config_5999_; lean_object* v_name_6000_; lean_object* v_dir_6001_; lean_object* v_buildDir_6002_; lean_object* v_leanLibDir_6003_; lean_object* v_irDir_6004_; lean_object* v___x_6005_; lean_object* v___x_6006_; lean_object* v___x_6007_; lean_object* v___x_6008_; lean_object* v___x_6009_; lean_object* v___x_6010_; lean_object* v___x_6011_; 
v_lib_5997_ = lean_ctor_get(v_mod_5981_, 0);
v_pkg_5998_ = lean_ctor_get(v_lib_5997_, 0);
lean_inc_ref(v_pkg_5998_);
v_config_5999_ = lean_ctor_get(v_pkg_5998_, 6);
lean_inc_ref(v_config_5999_);
v_name_6000_ = lean_ctor_get(v_mod_5981_, 1);
lean_inc(v_name_6000_);
lean_dec_ref(v_mod_5981_);
v_dir_6001_ = lean_ctor_get(v_pkg_5998_, 4);
lean_inc_ref(v_dir_6001_);
lean_dec_ref(v_pkg_5998_);
v_buildDir_6002_ = lean_ctor_get(v_config_5999_, 6);
lean_inc_ref(v_buildDir_6002_);
v_leanLibDir_6003_ = lean_ctor_get(v_config_5999_, 7);
lean_inc_ref(v_leanLibDir_6003_);
v_irDir_6004_ = lean_ctor_get(v_config_5999_, 10);
lean_inc_ref(v_irDir_6004_);
lean_dec_ref(v_config_5999_);
v___x_6005_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__1));
v___x_6006_ = l_System_FilePath_normalize(v_buildDir_6002_);
v___x_6007_ = l_Lake_joinRelative(v_dir_6001_, v___x_6006_);
v___x_6008_ = l_System_FilePath_normalize(v_irDir_6004_);
lean_inc_ref(v___x_6007_);
v___x_6009_ = l_Lake_joinRelative(v___x_6007_, v___x_6008_);
lean_inc(v_name_6000_);
v___x_6010_ = l_Lean_modToFilePath(v___x_6009_, v_name_6000_, v___x_6005_);
v___x_6011_ = l_Lake_clearFileHash(v___x_6010_);
if (lean_obj_tag(v___x_6011_) == 0)
{
lean_object* v___x_6012_; lean_object* v___x_6013_; lean_object* v___x_6014_; lean_object* v___x_6015_; lean_object* v___x_6016_; 
lean_dec_ref(v___x_6011_);
v___x_6012_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__2));
v___x_6013_ = l_System_FilePath_normalize(v_leanLibDir_6003_);
v___x_6014_ = l_Lake_joinRelative(v___x_6007_, v___x_6013_);
lean_inc(v_name_6000_);
v___x_6015_ = l_Lean_modToFilePath(v___x_6014_, v_name_6000_, v___x_6012_);
v___x_6016_ = l_Lake_clearFileHash(v___x_6015_);
if (lean_obj_tag(v___x_6016_) == 0)
{
lean_object* v___x_6017_; lean_object* v___x_6018_; lean_object* v___x_6019_; 
lean_dec_ref(v___x_6016_);
v___x_6017_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__3));
lean_inc(v_name_6000_);
v___x_6018_ = l_Lean_modToFilePath(v___x_6014_, v_name_6000_, v___x_6017_);
v___x_6019_ = l_Lake_clearFileHash(v___x_6018_);
if (lean_obj_tag(v___x_6019_) == 0)
{
lean_object* v___x_6020_; lean_object* v___x_6021_; lean_object* v___x_6022_; 
lean_dec_ref(v___x_6019_);
v___x_6020_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__4));
lean_inc(v_name_6000_);
v___x_6021_ = l_Lean_modToFilePath(v___x_6014_, v_name_6000_, v___x_6020_);
v___x_6022_ = l_Lake_clearFileHash(v___x_6021_);
if (lean_obj_tag(v___x_6022_) == 0)
{
lean_object* v___x_6023_; lean_object* v___x_6024_; lean_object* v___x_6025_; 
lean_dec_ref(v___x_6022_);
v___x_6023_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__5));
lean_inc(v_name_6000_);
v___x_6024_ = l_Lean_modToFilePath(v___x_6014_, v_name_6000_, v___x_6023_);
v___x_6025_ = l_Lake_clearFileHash(v___x_6024_);
if (lean_obj_tag(v___x_6025_) == 0)
{
lean_object* v___x_6026_; lean_object* v___x_6027_; lean_object* v___x_6028_; 
lean_dec_ref(v___x_6025_);
v___x_6026_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__6));
lean_inc(v_name_6000_);
v___x_6027_ = l_Lean_modToFilePath(v___x_6014_, v_name_6000_, v___x_6026_);
lean_dec_ref(v___x_6014_);
v___x_6028_ = l_Lake_clearFileHash(v___x_6027_);
if (lean_obj_tag(v___x_6028_) == 0)
{
lean_object* v___x_6029_; lean_object* v___x_6030_; lean_object* v___x_6031_; 
lean_dec_ref(v___x_6028_);
v___x_6029_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__7));
lean_inc(v_name_6000_);
v___x_6030_ = l_Lean_modToFilePath(v___x_6009_, v_name_6000_, v___x_6029_);
v___x_6031_ = l_Lake_clearFileHash(v___x_6030_);
if (lean_obj_tag(v___x_6031_) == 0)
{
lean_object* v___x_6032_; lean_object* v___x_6033_; lean_object* v___x_6034_; 
lean_dec_ref(v___x_6031_);
v___x_6032_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__8));
v___x_6033_ = l_Lean_modToFilePath(v___x_6009_, v_name_6000_, v___x_6032_);
lean_dec_ref(v___x_6009_);
v___x_6034_ = l_Lake_clearFileHash(v___x_6033_);
v___y_5984_ = v___x_6034_;
goto v___jp_5983_;
}
else
{
lean_dec_ref(v___x_6009_);
lean_dec(v_name_6000_);
v___y_5984_ = v___x_6031_;
goto v___jp_5983_;
}
}
else
{
lean_dec_ref(v___x_6009_);
lean_dec(v_name_6000_);
v___y_5984_ = v___x_6028_;
goto v___jp_5983_;
}
}
else
{
lean_dec_ref(v___x_6014_);
lean_dec_ref(v___x_6009_);
lean_dec(v_name_6000_);
v___y_5984_ = v___x_6025_;
goto v___jp_5983_;
}
}
else
{
lean_dec_ref(v___x_6014_);
lean_dec_ref(v___x_6009_);
lean_dec(v_name_6000_);
v___y_5984_ = v___x_6022_;
goto v___jp_5983_;
}
}
else
{
lean_dec_ref(v___x_6014_);
lean_dec_ref(v___x_6009_);
lean_dec(v_name_6000_);
v___y_5984_ = v___x_6019_;
goto v___jp_5983_;
}
}
else
{
lean_dec_ref(v___x_6014_);
lean_dec_ref(v___x_6009_);
lean_dec(v_name_6000_);
v___y_5984_ = v___x_6016_;
goto v___jp_5983_;
}
}
else
{
lean_dec_ref(v___x_6009_);
lean_dec_ref(v___x_6007_);
lean_dec_ref(v_leanLibDir_6003_);
lean_dec(v_name_6000_);
v___y_5984_ = v___x_6011_;
goto v___jp_5983_;
}
v___jp_5983_:
{
if (lean_obj_tag(v___y_5984_) == 0)
{
return v___y_5984_;
}
else
{
lean_object* v_a_5985_; lean_object* v___x_5987_; uint8_t v_isShared_5988_; uint8_t v_isSharedCheck_5996_; 
v_a_5985_ = lean_ctor_get(v___y_5984_, 0);
v_isSharedCheck_5996_ = !lean_is_exclusive(v___y_5984_);
if (v_isSharedCheck_5996_ == 0)
{
v___x_5987_ = v___y_5984_;
v_isShared_5988_ = v_isSharedCheck_5996_;
goto v_resetjp_5986_;
}
else
{
lean_inc(v_a_5985_);
lean_dec(v___y_5984_);
v___x_5987_ = lean_box(0);
v_isShared_5988_ = v_isSharedCheck_5996_;
goto v_resetjp_5986_;
}
v_resetjp_5986_:
{
lean_object* v___x_5989_; lean_object* v___x_5990_; lean_object* v___x_5991_; lean_object* v___x_5992_; lean_object* v___x_5994_; 
v___x_5989_ = ((lean_object*)(l_Lake_Module_clearOutputHashes___closed__0));
v___x_5990_ = lean_io_error_to_string(v_a_5985_);
v___x_5991_ = lean_string_append(v___x_5989_, v___x_5990_);
lean_dec_ref(v___x_5990_);
v___x_5992_ = lean_mk_io_user_error(v___x_5991_);
if (v_isShared_5988_ == 0)
{
lean_ctor_set(v___x_5987_, 0, v___x_5992_);
v___x_5994_ = v___x_5987_;
goto v_reusejp_5993_;
}
else
{
lean_object* v_reuseFailAlloc_5995_; 
v_reuseFailAlloc_5995_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_5995_, 0, v___x_5992_);
v___x_5994_ = v_reuseFailAlloc_5995_;
goto v_reusejp_5993_;
}
v_reusejp_5993_:
{
return v___x_5994_;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_clearOutputHashes___boxed(lean_object* v_mod_6035_, lean_object* v_a_6036_){
_start:
{
lean_object* v_res_6037_; 
v_res_6037_ = l_Lake_Module_clearOutputHashes(v_mod_6035_);
return v_res_6037_;
}
}
static uint8_t _init_l_Lake_Module_cacheOutputHashes___closed__0(void){
_start:
{
lean_object* v___x_6038_; uint8_t v___x_6039_; 
v___x_6038_ = lean_box(0);
v___x_6039_ = lean_internal_has_llvm_backend(v___x_6038_);
return v___x_6039_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_cacheOutputHashes(lean_object* v_mod_6040_){
_start:
{
lean_object* v___y_6043_; lean_object* v___y_6044_; uint8_t v___y_6045_; lean_object* v___y_6046_; lean_object* v___y_6066_; lean_object* v___y_6067_; lean_object* v___y_6068_; lean_object* v___y_6069_; uint8_t v___y_6070_; lean_object* v___y_6079_; lean_object* v___y_6080_; lean_object* v___y_6081_; uint8_t v___y_6082_; lean_object* v___y_6083_; lean_object* v_lib_6088_; lean_object* v_pkg_6089_; lean_object* v_config_6090_; lean_object* v_name_6091_; lean_object* v_dir_6092_; lean_object* v_buildDir_6093_; lean_object* v_leanLibDir_6094_; lean_object* v_irDir_6095_; lean_object* v___x_6109_; lean_object* v___x_6110_; lean_object* v___x_6111_; lean_object* v___x_6112_; lean_object* v___x_6113_; lean_object* v___x_6114_; uint8_t v___x_6115_; 
v_lib_6088_ = lean_ctor_get(v_mod_6040_, 0);
v_pkg_6089_ = lean_ctor_get(v_lib_6088_, 0);
lean_inc_ref(v_pkg_6089_);
v_config_6090_ = lean_ctor_get(v_pkg_6089_, 6);
lean_inc_ref(v_config_6090_);
v_name_6091_ = lean_ctor_get(v_mod_6040_, 1);
lean_inc(v_name_6091_);
lean_dec_ref(v_mod_6040_);
v_dir_6092_ = lean_ctor_get(v_pkg_6089_, 4);
lean_inc_ref(v_dir_6092_);
lean_dec_ref(v_pkg_6089_);
v_buildDir_6093_ = lean_ctor_get(v_config_6090_, 6);
lean_inc_ref(v_buildDir_6093_);
v_leanLibDir_6094_ = lean_ctor_get(v_config_6090_, 7);
lean_inc_ref(v_leanLibDir_6094_);
v_irDir_6095_ = lean_ctor_get(v_config_6090_, 10);
lean_inc_ref(v_irDir_6095_);
lean_dec_ref(v_config_6090_);
v___x_6109_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__1));
lean_inc_ref(v_buildDir_6093_);
v___x_6110_ = l_System_FilePath_normalize(v_buildDir_6093_);
lean_inc_ref(v_dir_6092_);
v___x_6111_ = l_Lake_joinRelative(v_dir_6092_, v___x_6110_);
lean_inc_ref(v_irDir_6095_);
v___x_6112_ = l_System_FilePath_normalize(v_irDir_6095_);
v___x_6113_ = l_Lake_joinRelative(v___x_6111_, v___x_6112_);
lean_inc(v_name_6091_);
v___x_6114_ = l_Lean_modToFilePath(v___x_6113_, v_name_6091_, v___x_6109_);
lean_dec_ref(v___x_6113_);
v___x_6115_ = l_System_FilePath_pathExists(v___x_6114_);
if (v___x_6115_ == 0)
{
lean_dec_ref(v___x_6114_);
goto v___jp_6096_;
}
else
{
uint8_t v___x_6116_; lean_object* v___x_6117_; 
v___x_6116_ = 0;
v___x_6117_ = l_Lake_cacheFileHash(v___x_6114_, v___x_6116_);
if (lean_obj_tag(v___x_6117_) == 0)
{
lean_dec_ref(v___x_6117_);
goto v___jp_6096_;
}
else
{
lean_dec_ref(v_irDir_6095_);
lean_dec_ref(v_leanLibDir_6094_);
lean_dec_ref(v_buildDir_6093_);
lean_dec_ref(v_dir_6092_);
lean_dec(v_name_6091_);
return v___x_6117_;
}
}
v___jp_6042_:
{
lean_object* v___x_6047_; lean_object* v___x_6048_; lean_object* v___x_6049_; lean_object* v___x_6050_; lean_object* v___x_6051_; 
v___x_6047_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__7));
v___x_6048_ = l_System_FilePath_normalize(v___y_6043_);
v___x_6049_ = l_Lake_joinRelative(v___y_6046_, v___x_6048_);
lean_inc(v___y_6044_);
v___x_6050_ = l_Lean_modToFilePath(v___x_6049_, v___y_6044_, v___x_6047_);
v___x_6051_ = l_Lake_cacheFileHash(v___x_6050_, v___y_6045_);
if (lean_obj_tag(v___x_6051_) == 0)
{
lean_object* v___x_6053_; uint8_t v_isShared_6054_; uint8_t v_isSharedCheck_6063_; 
v_isSharedCheck_6063_ = !lean_is_exclusive(v___x_6051_);
if (v_isSharedCheck_6063_ == 0)
{
lean_object* v_unused_6064_; 
v_unused_6064_ = lean_ctor_get(v___x_6051_, 0);
lean_dec(v_unused_6064_);
v___x_6053_ = v___x_6051_;
v_isShared_6054_ = v_isSharedCheck_6063_;
goto v_resetjp_6052_;
}
else
{
lean_dec(v___x_6051_);
v___x_6053_ = lean_box(0);
v_isShared_6054_ = v_isSharedCheck_6063_;
goto v_resetjp_6052_;
}
v_resetjp_6052_:
{
lean_object* v___x_6055_; uint8_t v___x_6056_; 
v___x_6055_ = lean_box(0);
v___x_6056_ = lean_uint8_once(&l_Lake_Module_cacheOutputHashes___closed__0, &l_Lake_Module_cacheOutputHashes___closed__0_once, _init_l_Lake_Module_cacheOutputHashes___closed__0);
if (v___x_6056_ == 0)
{
lean_object* v___x_6058_; 
lean_dec_ref(v___x_6049_);
lean_dec(v___y_6044_);
if (v_isShared_6054_ == 0)
{
lean_ctor_set(v___x_6053_, 0, v___x_6055_);
v___x_6058_ = v___x_6053_;
goto v_reusejp_6057_;
}
else
{
lean_object* v_reuseFailAlloc_6059_; 
v_reuseFailAlloc_6059_ = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(v_reuseFailAlloc_6059_, 0, v___x_6055_);
v___x_6058_ = v_reuseFailAlloc_6059_;
goto v_reusejp_6057_;
}
v_reusejp_6057_:
{
return v___x_6058_;
}
}
else
{
lean_object* v___x_6060_; lean_object* v___x_6061_; lean_object* v___x_6062_; 
lean_del_object(v___x_6053_);
v___x_6060_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__8));
v___x_6061_ = l_Lean_modToFilePath(v___x_6049_, v___y_6044_, v___x_6060_);
lean_dec_ref(v___x_6049_);
v___x_6062_ = l_Lake_cacheFileHash(v___x_6061_, v___y_6045_);
return v___x_6062_;
}
}
}
else
{
lean_dec_ref(v___x_6049_);
lean_dec(v___y_6044_);
return v___x_6051_;
}
}
v___jp_6065_:
{
lean_object* v___x_6071_; lean_object* v___x_6072_; lean_object* v___x_6073_; 
v___x_6071_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__5));
lean_inc(v___y_6068_);
v___x_6072_ = l_Lean_modToFilePath(v___y_6067_, v___y_6068_, v___x_6071_);
v___x_6073_ = l_Lake_cacheFileHash(v___x_6072_, v___y_6070_);
if (lean_obj_tag(v___x_6073_) == 0)
{
lean_object* v___x_6074_; lean_object* v___x_6075_; uint8_t v___x_6076_; 
lean_dec_ref(v___x_6073_);
v___x_6074_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__6));
lean_inc(v___y_6068_);
v___x_6075_ = l_Lean_modToFilePath(v___y_6067_, v___y_6068_, v___x_6074_);
lean_dec_ref(v___y_6067_);
v___x_6076_ = l_System_FilePath_pathExists(v___x_6075_);
if (v___x_6076_ == 0)
{
lean_dec_ref(v___x_6075_);
v___y_6043_ = v___y_6066_;
v___y_6044_ = v___y_6068_;
v___y_6045_ = v___y_6070_;
v___y_6046_ = v___y_6069_;
goto v___jp_6042_;
}
else
{
lean_object* v___x_6077_; 
v___x_6077_ = l_Lake_cacheFileHash(v___x_6075_, v___y_6070_);
if (lean_obj_tag(v___x_6077_) == 0)
{
lean_dec_ref(v___x_6077_);
v___y_6043_ = v___y_6066_;
v___y_6044_ = v___y_6068_;
v___y_6045_ = v___y_6070_;
v___y_6046_ = v___y_6069_;
goto v___jp_6042_;
}
else
{
lean_dec_ref(v___y_6069_);
lean_dec(v___y_6068_);
lean_dec_ref(v___y_6066_);
return v___x_6077_;
}
}
}
else
{
lean_dec_ref(v___y_6069_);
lean_dec(v___y_6068_);
lean_dec_ref(v___y_6067_);
lean_dec_ref(v___y_6066_);
return v___x_6073_;
}
}
v___jp_6078_:
{
lean_object* v___x_6084_; lean_object* v___x_6085_; uint8_t v___x_6086_; 
v___x_6084_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__4));
lean_inc(v___y_6081_);
v___x_6085_ = l_Lean_modToFilePath(v___y_6080_, v___y_6081_, v___x_6084_);
v___x_6086_ = l_System_FilePath_pathExists(v___x_6085_);
if (v___x_6086_ == 0)
{
lean_dec_ref(v___x_6085_);
v___y_6066_ = v___y_6079_;
v___y_6067_ = v___y_6080_;
v___y_6068_ = v___y_6081_;
v___y_6069_ = v___y_6083_;
v___y_6070_ = v___y_6082_;
goto v___jp_6065_;
}
else
{
lean_object* v___x_6087_; 
v___x_6087_ = l_Lake_cacheFileHash(v___x_6085_, v___y_6082_);
if (lean_obj_tag(v___x_6087_) == 0)
{
lean_dec_ref(v___x_6087_);
v___y_6066_ = v___y_6079_;
v___y_6067_ = v___y_6080_;
v___y_6068_ = v___y_6081_;
v___y_6069_ = v___y_6083_;
v___y_6070_ = v___y_6082_;
goto v___jp_6065_;
}
else
{
lean_dec_ref(v___y_6083_);
lean_dec(v___y_6081_);
lean_dec_ref(v___y_6080_);
lean_dec_ref(v___y_6079_);
return v___x_6087_;
}
}
}
v___jp_6096_:
{
lean_object* v___x_6097_; lean_object* v___x_6098_; lean_object* v___x_6099_; lean_object* v___x_6100_; lean_object* v___x_6101_; lean_object* v___x_6102_; uint8_t v___x_6103_; lean_object* v___x_6104_; 
v___x_6097_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__2));
v___x_6098_ = l_System_FilePath_normalize(v_buildDir_6093_);
v___x_6099_ = l_Lake_joinRelative(v_dir_6092_, v___x_6098_);
v___x_6100_ = l_System_FilePath_normalize(v_leanLibDir_6094_);
lean_inc_ref(v___x_6099_);
v___x_6101_ = l_Lake_joinRelative(v___x_6099_, v___x_6100_);
lean_inc(v_name_6091_);
v___x_6102_ = l_Lean_modToFilePath(v___x_6101_, v_name_6091_, v___x_6097_);
v___x_6103_ = 0;
v___x_6104_ = l_Lake_cacheFileHash(v___x_6102_, v___x_6103_);
if (lean_obj_tag(v___x_6104_) == 0)
{
lean_object* v___x_6105_; lean_object* v___x_6106_; uint8_t v___x_6107_; 
lean_dec_ref(v___x_6104_);
v___x_6105_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__3));
lean_inc(v_name_6091_);
v___x_6106_ = l_Lean_modToFilePath(v___x_6101_, v_name_6091_, v___x_6105_);
v___x_6107_ = l_System_FilePath_pathExists(v___x_6106_);
if (v___x_6107_ == 0)
{
lean_dec_ref(v___x_6106_);
v___y_6079_ = v_irDir_6095_;
v___y_6080_ = v___x_6101_;
v___y_6081_ = v_name_6091_;
v___y_6082_ = v___x_6103_;
v___y_6083_ = v___x_6099_;
goto v___jp_6078_;
}
else
{
lean_object* v___x_6108_; 
v___x_6108_ = l_Lake_cacheFileHash(v___x_6106_, v___x_6103_);
if (lean_obj_tag(v___x_6108_) == 0)
{
lean_dec_ref(v___x_6108_);
v___y_6079_ = v_irDir_6095_;
v___y_6080_ = v___x_6101_;
v___y_6081_ = v_name_6091_;
v___y_6082_ = v___x_6103_;
v___y_6083_ = v___x_6099_;
goto v___jp_6078_;
}
else
{
lean_dec_ref(v___x_6101_);
lean_dec_ref(v___x_6099_);
lean_dec_ref(v_irDir_6095_);
lean_dec(v_name_6091_);
return v___x_6108_;
}
}
}
else
{
lean_dec_ref(v___x_6101_);
lean_dec_ref(v___x_6099_);
lean_dec_ref(v_irDir_6095_);
lean_dec(v_name_6091_);
return v___x_6104_;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_cacheOutputHashes___boxed(lean_object* v_mod_6118_, lean_object* v_a_6119_){
_start:
{
lean_object* v_res_6120_; 
v_res_6120_ = l_Lake_Module_cacheOutputHashes(v_mod_6118_);
return v_res_6120_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve_resolve___redArg(lean_object* v_service_x3f_6121_, lean_object* v_scope_x3f_6122_, lean_object* v_descr_6123_, lean_object* v_a_6124_, lean_object* v_a_6125_){
_start:
{
uint8_t v___x_6127_; lean_object* v___x_6128_; 
v___x_6127_ = 0;
v___x_6128_ = l_Lake_resolveArtifact___redArg(v_descr_6123_, v_service_x3f_6121_, v_scope_x3f_6122_, v___x_6127_, v_a_6124_, v_a_6125_);
return v___x_6128_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve_resolve___redArg___boxed(lean_object* v_service_x3f_6129_, lean_object* v_scope_x3f_6130_, lean_object* v_descr_6131_, lean_object* v_a_6132_, lean_object* v_a_6133_, lean_object* v_a_6134_){
_start:
{
lean_object* v_res_6135_; 
v_res_6135_ = l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve_resolve___redArg(v_service_x3f_6129_, v_scope_x3f_6130_, v_descr_6131_, v_a_6132_, v_a_6133_);
return v_res_6135_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve_resolve(lean_object* v_service_x3f_6136_, lean_object* v_scope_x3f_6137_, lean_object* v_descr_6138_, lean_object* v_a_6139_, lean_object* v_a_6140_, lean_object* v_a_6141_, lean_object* v_a_6142_, lean_object* v_a_6143_, lean_object* v_a_6144_){
_start:
{
uint8_t v___x_6146_; lean_object* v___x_6147_; 
v___x_6146_ = 0;
v___x_6147_ = l_Lake_resolveArtifact___redArg(v_descr_6138_, v_service_x3f_6136_, v_scope_x3f_6137_, v___x_6146_, v_a_6143_, v_a_6144_);
return v___x_6147_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve_resolve___boxed(lean_object* v_service_x3f_6148_, lean_object* v_scope_x3f_6149_, lean_object* v_descr_6150_, lean_object* v_a_6151_, lean_object* v_a_6152_, lean_object* v_a_6153_, lean_object* v_a_6154_, lean_object* v_a_6155_, lean_object* v_a_6156_, lean_object* v_a_6157_){
_start:
{
lean_object* v_res_6158_; 
v_res_6158_ = l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve_resolve(v_service_x3f_6148_, v_scope_x3f_6149_, v_descr_6150_, v_a_6151_, v_a_6152_, v_a_6153_, v_a_6154_, v_a_6155_, v_a_6156_);
lean_dec(v_a_6154_);
lean_dec(v_a_6153_);
lean_dec(v_a_6152_);
lean_dec_ref(v_a_6151_);
return v_res_6158_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve___redArg(lean_object* v_descrs_6163_, lean_object* v_service_x3f_6164_, lean_object* v_scope_x3f_6165_, lean_object* v_a_6166_, lean_object* v_a_6167_){
_start:
{
uint8_t v_isModule_6169_; lean_object* v_olean_6170_; lean_object* v_oleanServer_x3f_6171_; lean_object* v_oleanPrivate_x3f_6172_; lean_object* v_ilean_6173_; lean_object* v_ir_x3f_6174_; lean_object* v_c_6175_; lean_object* v_bc_x3f_6176_; lean_object* v_ltar_x3f_6177_; lean_object* v___x_6179_; uint8_t v_isShared_6180_; uint8_t v_isSharedCheck_6384_; 
v_isModule_6169_ = lean_ctor_get_uint8(v_descrs_6163_, sizeof(void*)*8);
v_olean_6170_ = lean_ctor_get(v_descrs_6163_, 0);
v_oleanServer_x3f_6171_ = lean_ctor_get(v_descrs_6163_, 1);
v_oleanPrivate_x3f_6172_ = lean_ctor_get(v_descrs_6163_, 2);
v_ilean_6173_ = lean_ctor_get(v_descrs_6163_, 3);
v_ir_x3f_6174_ = lean_ctor_get(v_descrs_6163_, 4);
v_c_6175_ = lean_ctor_get(v_descrs_6163_, 5);
v_bc_x3f_6176_ = lean_ctor_get(v_descrs_6163_, 6);
v_ltar_x3f_6177_ = lean_ctor_get(v_descrs_6163_, 7);
v_isSharedCheck_6384_ = !lean_is_exclusive(v_descrs_6163_);
if (v_isSharedCheck_6384_ == 0)
{
v___x_6179_ = v_descrs_6163_;
v_isShared_6180_ = v_isSharedCheck_6384_;
goto v_resetjp_6178_;
}
else
{
lean_inc(v_ltar_x3f_6177_);
lean_inc(v_bc_x3f_6176_);
lean_inc(v_c_6175_);
lean_inc(v_ir_x3f_6174_);
lean_inc(v_ilean_6173_);
lean_inc(v_oleanPrivate_x3f_6172_);
lean_inc(v_oleanServer_x3f_6171_);
lean_inc(v_olean_6170_);
lean_dec(v_descrs_6163_);
v___x_6179_ = lean_box(0);
v_isShared_6180_ = v_isSharedCheck_6384_;
goto v_resetjp_6178_;
}
v_resetjp_6178_:
{
uint8_t v___x_6181_; lean_object* v___x_6182_; 
v___x_6181_ = 0;
lean_inc_ref(v_a_6166_);
lean_inc(v_scope_x3f_6165_);
lean_inc(v_service_x3f_6164_);
v___x_6182_ = l_Lake_resolveArtifact___redArg(v_olean_6170_, v_service_x3f_6164_, v_scope_x3f_6165_, v___x_6181_, v_a_6166_, v_a_6167_);
if (lean_obj_tag(v___x_6182_) == 0)
{
lean_object* v_a_6183_; lean_object* v_a_6184_; lean_object* v___x_6186_; uint8_t v_isShared_6187_; uint8_t v_isSharedCheck_6374_; 
v_a_6183_ = lean_ctor_get(v___x_6182_, 0);
v_a_6184_ = lean_ctor_get(v___x_6182_, 1);
v_isSharedCheck_6374_ = !lean_is_exclusive(v___x_6182_);
if (v_isSharedCheck_6374_ == 0)
{
v___x_6186_ = v___x_6182_;
v_isShared_6187_ = v_isSharedCheck_6374_;
goto v_resetjp_6185_;
}
else
{
lean_inc(v_a_6184_);
lean_inc(v_a_6183_);
lean_dec(v___x_6182_);
v___x_6186_ = lean_box(0);
v_isShared_6187_ = v_isSharedCheck_6374_;
goto v_resetjp_6185_;
}
v_resetjp_6185_:
{
lean_object* v___y_6189_; lean_object* v___y_6190_; lean_object* v___y_6191_; lean_object* v___y_6192_; lean_object* v___y_6193_; lean_object* v_a_6194_; lean_object* v_a_6195_; lean_object* v___y_6253_; lean_object* v___y_6254_; lean_object* v_a_6255_; lean_object* v_a_6256_; lean_object* v___y_6305_; lean_object* v_a_6306_; lean_object* v_a_6307_; lean_object* v_a_6330_; lean_object* v_a_6331_; 
if (lean_obj_tag(v_oleanServer_x3f_6171_) == 0)
{
lean_object* v___x_6353_; 
v___x_6353_ = lean_box(0);
v_a_6330_ = v___x_6353_;
v_a_6331_ = v_a_6184_;
goto v___jp_6329_;
}
else
{
lean_object* v_val_6354_; lean_object* v___x_6356_; uint8_t v_isShared_6357_; uint8_t v_isSharedCheck_6373_; 
v_val_6354_ = lean_ctor_get(v_oleanServer_x3f_6171_, 0);
v_isSharedCheck_6373_ = !lean_is_exclusive(v_oleanServer_x3f_6171_);
if (v_isSharedCheck_6373_ == 0)
{
v___x_6356_ = v_oleanServer_x3f_6171_;
v_isShared_6357_ = v_isSharedCheck_6373_;
goto v_resetjp_6355_;
}
else
{
lean_inc(v_val_6354_);
lean_dec(v_oleanServer_x3f_6171_);
v___x_6356_ = lean_box(0);
v_isShared_6357_ = v_isSharedCheck_6373_;
goto v_resetjp_6355_;
}
v_resetjp_6355_:
{
lean_object* v___x_6358_; 
lean_inc_ref(v_a_6166_);
lean_inc(v_scope_x3f_6165_);
lean_inc(v_service_x3f_6164_);
v___x_6358_ = l_Lake_resolveArtifact___redArg(v_val_6354_, v_service_x3f_6164_, v_scope_x3f_6165_, v___x_6181_, v_a_6166_, v_a_6184_);
if (lean_obj_tag(v___x_6358_) == 0)
{
lean_object* v_a_6359_; lean_object* v_a_6360_; lean_object* v___x_6362_; 
v_a_6359_ = lean_ctor_get(v___x_6358_, 0);
lean_inc(v_a_6359_);
v_a_6360_ = lean_ctor_get(v___x_6358_, 1);
lean_inc(v_a_6360_);
lean_dec_ref(v___x_6358_);
if (v_isShared_6357_ == 0)
{
lean_ctor_set(v___x_6356_, 0, v_a_6359_);
v___x_6362_ = v___x_6356_;
goto v_reusejp_6361_;
}
else
{
lean_object* v_reuseFailAlloc_6363_; 
v_reuseFailAlloc_6363_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_6363_, 0, v_a_6359_);
v___x_6362_ = v_reuseFailAlloc_6363_;
goto v_reusejp_6361_;
}
v_reusejp_6361_:
{
v_a_6330_ = v___x_6362_;
v_a_6331_ = v_a_6360_;
goto v___jp_6329_;
}
}
else
{
lean_object* v_a_6364_; lean_object* v_a_6365_; lean_object* v___x_6367_; uint8_t v_isShared_6368_; uint8_t v_isSharedCheck_6372_; 
lean_del_object(v___x_6356_);
lean_del_object(v___x_6186_);
lean_dec(v_a_6183_);
lean_del_object(v___x_6179_);
lean_dec(v_ltar_x3f_6177_);
lean_dec(v_bc_x3f_6176_);
lean_dec_ref(v_c_6175_);
lean_dec(v_ir_x3f_6174_);
lean_dec_ref(v_ilean_6173_);
lean_dec(v_oleanPrivate_x3f_6172_);
lean_dec_ref(v_a_6166_);
lean_dec(v_scope_x3f_6165_);
lean_dec(v_service_x3f_6164_);
v_a_6364_ = lean_ctor_get(v___x_6358_, 0);
v_a_6365_ = lean_ctor_get(v___x_6358_, 1);
v_isSharedCheck_6372_ = !lean_is_exclusive(v___x_6358_);
if (v_isSharedCheck_6372_ == 0)
{
v___x_6367_ = v___x_6358_;
v_isShared_6368_ = v_isSharedCheck_6372_;
goto v_resetjp_6366_;
}
else
{
lean_inc(v_a_6365_);
lean_inc(v_a_6364_);
lean_dec(v___x_6358_);
v___x_6367_ = lean_box(0);
v_isShared_6368_ = v_isSharedCheck_6372_;
goto v_resetjp_6366_;
}
v_resetjp_6366_:
{
lean_object* v___x_6370_; 
if (v_isShared_6368_ == 0)
{
v___x_6370_ = v___x_6367_;
goto v_reusejp_6369_;
}
else
{
lean_object* v_reuseFailAlloc_6371_; 
v_reuseFailAlloc_6371_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_6371_, 0, v_a_6364_);
lean_ctor_set(v_reuseFailAlloc_6371_, 1, v_a_6365_);
v___x_6370_ = v_reuseFailAlloc_6371_;
goto v_reusejp_6369_;
}
v_reusejp_6369_:
{
return v___x_6370_;
}
}
}
}
}
v___jp_6188_:
{
uint8_t v___x_6196_; 
v___x_6196_ = lean_uint8_once(&l_Lake_Module_cacheOutputHashes___closed__0, &l_Lake_Module_cacheOutputHashes___closed__0_once, _init_l_Lake_Module_cacheOutputHashes___closed__0);
if (v___x_6196_ == 0)
{
lean_object* v___x_6197_; lean_object* v___x_6199_; 
lean_dec(v_bc_x3f_6176_);
lean_dec_ref(v_a_6166_);
lean_dec(v_scope_x3f_6165_);
lean_dec(v_service_x3f_6164_);
v___x_6197_ = lean_box(0);
if (v_isShared_6180_ == 0)
{
lean_ctor_set(v___x_6179_, 7, v_a_6194_);
lean_ctor_set(v___x_6179_, 6, v___x_6197_);
lean_ctor_set(v___x_6179_, 5, v___y_6192_);
lean_ctor_set(v___x_6179_, 4, v___y_6189_);
lean_ctor_set(v___x_6179_, 3, v___y_6190_);
lean_ctor_set(v___x_6179_, 2, v___y_6193_);
lean_ctor_set(v___x_6179_, 1, v___y_6191_);
lean_ctor_set(v___x_6179_, 0, v_a_6183_);
v___x_6199_ = v___x_6179_;
goto v_reusejp_6198_;
}
else
{
lean_object* v_reuseFailAlloc_6203_; 
v_reuseFailAlloc_6203_ = lean_alloc_ctor(0, 8, 1);
lean_ctor_set(v_reuseFailAlloc_6203_, 0, v_a_6183_);
lean_ctor_set(v_reuseFailAlloc_6203_, 1, v___y_6191_);
lean_ctor_set(v_reuseFailAlloc_6203_, 2, v___y_6193_);
lean_ctor_set(v_reuseFailAlloc_6203_, 3, v___y_6190_);
lean_ctor_set(v_reuseFailAlloc_6203_, 4, v___y_6189_);
lean_ctor_set(v_reuseFailAlloc_6203_, 5, v___y_6192_);
lean_ctor_set(v_reuseFailAlloc_6203_, 6, v___x_6197_);
lean_ctor_set(v_reuseFailAlloc_6203_, 7, v_a_6194_);
lean_ctor_set_uint8(v_reuseFailAlloc_6203_, sizeof(void*)*8, v_isModule_6169_);
v___x_6199_ = v_reuseFailAlloc_6203_;
goto v_reusejp_6198_;
}
v_reusejp_6198_:
{
lean_object* v___x_6201_; 
if (v_isShared_6187_ == 0)
{
lean_ctor_set(v___x_6186_, 1, v_a_6195_);
lean_ctor_set(v___x_6186_, 0, v___x_6199_);
v___x_6201_ = v___x_6186_;
goto v_reusejp_6200_;
}
else
{
lean_object* v_reuseFailAlloc_6202_; 
v_reuseFailAlloc_6202_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_6202_, 0, v___x_6199_);
lean_ctor_set(v_reuseFailAlloc_6202_, 1, v_a_6195_);
v___x_6201_ = v_reuseFailAlloc_6202_;
goto v_reusejp_6200_;
}
v_reusejp_6200_:
{
return v___x_6201_;
}
}
}
else
{
if (lean_obj_tag(v_bc_x3f_6176_) == 1)
{
lean_object* v_val_6204_; lean_object* v___x_6206_; uint8_t v_isShared_6207_; uint8_t v_isSharedCheck_6233_; 
lean_del_object(v___x_6186_);
v_val_6204_ = lean_ctor_get(v_bc_x3f_6176_, 0);
v_isSharedCheck_6233_ = !lean_is_exclusive(v_bc_x3f_6176_);
if (v_isSharedCheck_6233_ == 0)
{
v___x_6206_ = v_bc_x3f_6176_;
v_isShared_6207_ = v_isSharedCheck_6233_;
goto v_resetjp_6205_;
}
else
{
lean_inc(v_val_6204_);
lean_dec(v_bc_x3f_6176_);
v___x_6206_ = lean_box(0);
v_isShared_6207_ = v_isSharedCheck_6233_;
goto v_resetjp_6205_;
}
v_resetjp_6205_:
{
lean_object* v___x_6208_; 
v___x_6208_ = l_Lake_resolveArtifact___redArg(v_val_6204_, v_service_x3f_6164_, v_scope_x3f_6165_, v___x_6181_, v_a_6166_, v_a_6195_);
if (lean_obj_tag(v___x_6208_) == 0)
{
lean_object* v_a_6209_; lean_object* v_a_6210_; lean_object* v___x_6212_; uint8_t v_isShared_6213_; uint8_t v_isSharedCheck_6223_; 
v_a_6209_ = lean_ctor_get(v___x_6208_, 0);
v_a_6210_ = lean_ctor_get(v___x_6208_, 1);
v_isSharedCheck_6223_ = !lean_is_exclusive(v___x_6208_);
if (v_isSharedCheck_6223_ == 0)
{
v___x_6212_ = v___x_6208_;
v_isShared_6213_ = v_isSharedCheck_6223_;
goto v_resetjp_6211_;
}
else
{
lean_inc(v_a_6210_);
lean_inc(v_a_6209_);
lean_dec(v___x_6208_);
v___x_6212_ = lean_box(0);
v_isShared_6213_ = v_isSharedCheck_6223_;
goto v_resetjp_6211_;
}
v_resetjp_6211_:
{
lean_object* v___x_6215_; 
if (v_isShared_6207_ == 0)
{
lean_ctor_set(v___x_6206_, 0, v_a_6209_);
v___x_6215_ = v___x_6206_;
goto v_reusejp_6214_;
}
else
{
lean_object* v_reuseFailAlloc_6222_; 
v_reuseFailAlloc_6222_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_6222_, 0, v_a_6209_);
v___x_6215_ = v_reuseFailAlloc_6222_;
goto v_reusejp_6214_;
}
v_reusejp_6214_:
{
lean_object* v___x_6217_; 
if (v_isShared_6180_ == 0)
{
lean_ctor_set(v___x_6179_, 7, v_a_6194_);
lean_ctor_set(v___x_6179_, 6, v___x_6215_);
lean_ctor_set(v___x_6179_, 5, v___y_6192_);
lean_ctor_set(v___x_6179_, 4, v___y_6189_);
lean_ctor_set(v___x_6179_, 3, v___y_6190_);
lean_ctor_set(v___x_6179_, 2, v___y_6193_);
lean_ctor_set(v___x_6179_, 1, v___y_6191_);
lean_ctor_set(v___x_6179_, 0, v_a_6183_);
v___x_6217_ = v___x_6179_;
goto v_reusejp_6216_;
}
else
{
lean_object* v_reuseFailAlloc_6221_; 
v_reuseFailAlloc_6221_ = lean_alloc_ctor(0, 8, 1);
lean_ctor_set(v_reuseFailAlloc_6221_, 0, v_a_6183_);
lean_ctor_set(v_reuseFailAlloc_6221_, 1, v___y_6191_);
lean_ctor_set(v_reuseFailAlloc_6221_, 2, v___y_6193_);
lean_ctor_set(v_reuseFailAlloc_6221_, 3, v___y_6190_);
lean_ctor_set(v_reuseFailAlloc_6221_, 4, v___y_6189_);
lean_ctor_set(v_reuseFailAlloc_6221_, 5, v___y_6192_);
lean_ctor_set(v_reuseFailAlloc_6221_, 6, v___x_6215_);
lean_ctor_set(v_reuseFailAlloc_6221_, 7, v_a_6194_);
lean_ctor_set_uint8(v_reuseFailAlloc_6221_, sizeof(void*)*8, v_isModule_6169_);
v___x_6217_ = v_reuseFailAlloc_6221_;
goto v_reusejp_6216_;
}
v_reusejp_6216_:
{
lean_object* v___x_6219_; 
if (v_isShared_6213_ == 0)
{
lean_ctor_set(v___x_6212_, 0, v___x_6217_);
v___x_6219_ = v___x_6212_;
goto v_reusejp_6218_;
}
else
{
lean_object* v_reuseFailAlloc_6220_; 
v_reuseFailAlloc_6220_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_6220_, 0, v___x_6217_);
lean_ctor_set(v_reuseFailAlloc_6220_, 1, v_a_6210_);
v___x_6219_ = v_reuseFailAlloc_6220_;
goto v_reusejp_6218_;
}
v_reusejp_6218_:
{
return v___x_6219_;
}
}
}
}
}
else
{
lean_object* v_a_6224_; lean_object* v_a_6225_; lean_object* v___x_6227_; uint8_t v_isShared_6228_; uint8_t v_isSharedCheck_6232_; 
lean_del_object(v___x_6206_);
lean_dec(v_a_6194_);
lean_dec(v___y_6193_);
lean_dec_ref(v___y_6192_);
lean_dec(v___y_6191_);
lean_dec_ref(v___y_6190_);
lean_dec(v___y_6189_);
lean_dec(v_a_6183_);
lean_del_object(v___x_6179_);
v_a_6224_ = lean_ctor_get(v___x_6208_, 0);
v_a_6225_ = lean_ctor_get(v___x_6208_, 1);
v_isSharedCheck_6232_ = !lean_is_exclusive(v___x_6208_);
if (v_isSharedCheck_6232_ == 0)
{
v___x_6227_ = v___x_6208_;
v_isShared_6228_ = v_isSharedCheck_6232_;
goto v_resetjp_6226_;
}
else
{
lean_inc(v_a_6225_);
lean_inc(v_a_6224_);
lean_dec(v___x_6208_);
v___x_6227_ = lean_box(0);
v_isShared_6228_ = v_isSharedCheck_6232_;
goto v_resetjp_6226_;
}
v_resetjp_6226_:
{
lean_object* v___x_6230_; 
if (v_isShared_6228_ == 0)
{
v___x_6230_ = v___x_6227_;
goto v_reusejp_6229_;
}
else
{
lean_object* v_reuseFailAlloc_6231_; 
v_reuseFailAlloc_6231_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_6231_, 0, v_a_6224_);
lean_ctor_set(v_reuseFailAlloc_6231_, 1, v_a_6225_);
v___x_6230_ = v_reuseFailAlloc_6231_;
goto v_reusejp_6229_;
}
v_reusejp_6229_:
{
return v___x_6230_;
}
}
}
}
}
else
{
lean_object* v_log_6234_; uint8_t v_action_6235_; uint8_t v_wantsRebuild_6236_; lean_object* v_trace_6237_; lean_object* v_buildTime_6238_; lean_object* v___x_6240_; uint8_t v_isShared_6241_; uint8_t v_isSharedCheck_6251_; 
lean_dec(v_a_6194_);
lean_dec(v___y_6193_);
lean_dec_ref(v___y_6192_);
lean_dec(v___y_6191_);
lean_dec_ref(v___y_6190_);
lean_dec(v___y_6189_);
lean_dec(v_a_6183_);
lean_del_object(v___x_6179_);
lean_dec(v_bc_x3f_6176_);
lean_dec_ref(v_a_6166_);
lean_dec(v_scope_x3f_6165_);
lean_dec(v_service_x3f_6164_);
v_log_6234_ = lean_ctor_get(v_a_6195_, 0);
v_action_6235_ = lean_ctor_get_uint8(v_a_6195_, sizeof(void*)*3);
v_wantsRebuild_6236_ = lean_ctor_get_uint8(v_a_6195_, sizeof(void*)*3 + 1);
v_trace_6237_ = lean_ctor_get(v_a_6195_, 1);
v_buildTime_6238_ = lean_ctor_get(v_a_6195_, 2);
v_isSharedCheck_6251_ = !lean_is_exclusive(v_a_6195_);
if (v_isSharedCheck_6251_ == 0)
{
v___x_6240_ = v_a_6195_;
v_isShared_6241_ = v_isSharedCheck_6251_;
goto v_resetjp_6239_;
}
else
{
lean_inc(v_buildTime_6238_);
lean_inc(v_trace_6237_);
lean_inc(v_log_6234_);
lean_dec(v_a_6195_);
v___x_6240_ = lean_box(0);
v_isShared_6241_ = v_isSharedCheck_6251_;
goto v_resetjp_6239_;
}
v_resetjp_6239_:
{
lean_object* v___x_6242_; lean_object* v___x_6243_; lean_object* v___x_6244_; lean_object* v___x_6246_; 
v___x_6242_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve___redArg___closed__1));
v___x_6243_ = lean_array_get_size(v_log_6234_);
v___x_6244_ = lean_array_push(v_log_6234_, v___x_6242_);
if (v_isShared_6241_ == 0)
{
lean_ctor_set(v___x_6240_, 0, v___x_6244_);
v___x_6246_ = v___x_6240_;
goto v_reusejp_6245_;
}
else
{
lean_object* v_reuseFailAlloc_6250_; 
v_reuseFailAlloc_6250_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_6250_, 0, v___x_6244_);
lean_ctor_set(v_reuseFailAlloc_6250_, 1, v_trace_6237_);
lean_ctor_set(v_reuseFailAlloc_6250_, 2, v_buildTime_6238_);
lean_ctor_set_uint8(v_reuseFailAlloc_6250_, sizeof(void*)*3, v_action_6235_);
lean_ctor_set_uint8(v_reuseFailAlloc_6250_, sizeof(void*)*3 + 1, v_wantsRebuild_6236_);
v___x_6246_ = v_reuseFailAlloc_6250_;
goto v_reusejp_6245_;
}
v_reusejp_6245_:
{
lean_object* v___x_6248_; 
if (v_isShared_6187_ == 0)
{
lean_ctor_set_tag(v___x_6186_, 1);
lean_ctor_set(v___x_6186_, 1, v___x_6246_);
lean_ctor_set(v___x_6186_, 0, v___x_6243_);
v___x_6248_ = v___x_6186_;
goto v_reusejp_6247_;
}
else
{
lean_object* v_reuseFailAlloc_6249_; 
v_reuseFailAlloc_6249_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_6249_, 0, v___x_6243_);
lean_ctor_set(v_reuseFailAlloc_6249_, 1, v___x_6246_);
v___x_6248_ = v_reuseFailAlloc_6249_;
goto v_reusejp_6247_;
}
v_reusejp_6247_:
{
return v___x_6248_;
}
}
}
}
}
}
v___jp_6252_:
{
lean_object* v___x_6257_; 
lean_inc_ref(v_a_6166_);
lean_inc(v_scope_x3f_6165_);
lean_inc(v_service_x3f_6164_);
v___x_6257_ = l_Lake_resolveArtifact___redArg(v_ilean_6173_, v_service_x3f_6164_, v_scope_x3f_6165_, v___x_6181_, v_a_6166_, v_a_6256_);
if (lean_obj_tag(v___x_6257_) == 0)
{
lean_object* v_a_6258_; lean_object* v_a_6259_; lean_object* v___x_6260_; 
v_a_6258_ = lean_ctor_get(v___x_6257_, 0);
lean_inc(v_a_6258_);
v_a_6259_ = lean_ctor_get(v___x_6257_, 1);
lean_inc(v_a_6259_);
lean_dec_ref(v___x_6257_);
lean_inc_ref(v_a_6166_);
lean_inc(v_scope_x3f_6165_);
lean_inc(v_service_x3f_6164_);
v___x_6260_ = l_Lake_resolveArtifact___redArg(v_c_6175_, v_service_x3f_6164_, v_scope_x3f_6165_, v___x_6181_, v_a_6166_, v_a_6259_);
if (lean_obj_tag(v___x_6260_) == 0)
{
if (lean_obj_tag(v_ltar_x3f_6177_) == 0)
{
lean_object* v_a_6261_; lean_object* v_a_6262_; lean_object* v___x_6263_; 
v_a_6261_ = lean_ctor_get(v___x_6260_, 0);
lean_inc(v_a_6261_);
v_a_6262_ = lean_ctor_get(v___x_6260_, 1);
lean_inc(v_a_6262_);
lean_dec_ref(v___x_6260_);
v___x_6263_ = lean_box(0);
v___y_6189_ = v_a_6255_;
v___y_6190_ = v_a_6258_;
v___y_6191_ = v___y_6253_;
v___y_6192_ = v_a_6261_;
v___y_6193_ = v___y_6254_;
v_a_6194_ = v___x_6263_;
v_a_6195_ = v_a_6262_;
goto v___jp_6188_;
}
else
{
lean_object* v_a_6264_; lean_object* v_a_6265_; lean_object* v_val_6266_; lean_object* v___x_6268_; uint8_t v_isShared_6269_; uint8_t v_isSharedCheck_6285_; 
v_a_6264_ = lean_ctor_get(v___x_6260_, 0);
lean_inc(v_a_6264_);
v_a_6265_ = lean_ctor_get(v___x_6260_, 1);
lean_inc(v_a_6265_);
lean_dec_ref(v___x_6260_);
v_val_6266_ = lean_ctor_get(v_ltar_x3f_6177_, 0);
v_isSharedCheck_6285_ = !lean_is_exclusive(v_ltar_x3f_6177_);
if (v_isSharedCheck_6285_ == 0)
{
v___x_6268_ = v_ltar_x3f_6177_;
v_isShared_6269_ = v_isSharedCheck_6285_;
goto v_resetjp_6267_;
}
else
{
lean_inc(v_val_6266_);
lean_dec(v_ltar_x3f_6177_);
v___x_6268_ = lean_box(0);
v_isShared_6269_ = v_isSharedCheck_6285_;
goto v_resetjp_6267_;
}
v_resetjp_6267_:
{
lean_object* v___x_6270_; 
lean_inc_ref(v_a_6166_);
lean_inc(v_scope_x3f_6165_);
lean_inc(v_service_x3f_6164_);
v___x_6270_ = l_Lake_resolveArtifact___redArg(v_val_6266_, v_service_x3f_6164_, v_scope_x3f_6165_, v___x_6181_, v_a_6166_, v_a_6265_);
if (lean_obj_tag(v___x_6270_) == 0)
{
lean_object* v_a_6271_; lean_object* v_a_6272_; lean_object* v___x_6274_; 
v_a_6271_ = lean_ctor_get(v___x_6270_, 0);
lean_inc(v_a_6271_);
v_a_6272_ = lean_ctor_get(v___x_6270_, 1);
lean_inc(v_a_6272_);
lean_dec_ref(v___x_6270_);
if (v_isShared_6269_ == 0)
{
lean_ctor_set(v___x_6268_, 0, v_a_6271_);
v___x_6274_ = v___x_6268_;
goto v_reusejp_6273_;
}
else
{
lean_object* v_reuseFailAlloc_6275_; 
v_reuseFailAlloc_6275_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_6275_, 0, v_a_6271_);
v___x_6274_ = v_reuseFailAlloc_6275_;
goto v_reusejp_6273_;
}
v_reusejp_6273_:
{
v___y_6189_ = v_a_6255_;
v___y_6190_ = v_a_6258_;
v___y_6191_ = v___y_6253_;
v___y_6192_ = v_a_6264_;
v___y_6193_ = v___y_6254_;
v_a_6194_ = v___x_6274_;
v_a_6195_ = v_a_6272_;
goto v___jp_6188_;
}
}
else
{
lean_object* v_a_6276_; lean_object* v_a_6277_; lean_object* v___x_6279_; uint8_t v_isShared_6280_; uint8_t v_isSharedCheck_6284_; 
lean_del_object(v___x_6268_);
lean_dec(v_a_6264_);
lean_dec(v_a_6258_);
lean_dec(v_a_6255_);
lean_dec(v___y_6254_);
lean_dec(v___y_6253_);
lean_del_object(v___x_6186_);
lean_dec(v_a_6183_);
lean_del_object(v___x_6179_);
lean_dec(v_bc_x3f_6176_);
lean_dec_ref(v_a_6166_);
lean_dec(v_scope_x3f_6165_);
lean_dec(v_service_x3f_6164_);
v_a_6276_ = lean_ctor_get(v___x_6270_, 0);
v_a_6277_ = lean_ctor_get(v___x_6270_, 1);
v_isSharedCheck_6284_ = !lean_is_exclusive(v___x_6270_);
if (v_isSharedCheck_6284_ == 0)
{
v___x_6279_ = v___x_6270_;
v_isShared_6280_ = v_isSharedCheck_6284_;
goto v_resetjp_6278_;
}
else
{
lean_inc(v_a_6277_);
lean_inc(v_a_6276_);
lean_dec(v___x_6270_);
v___x_6279_ = lean_box(0);
v_isShared_6280_ = v_isSharedCheck_6284_;
goto v_resetjp_6278_;
}
v_resetjp_6278_:
{
lean_object* v___x_6282_; 
if (v_isShared_6280_ == 0)
{
v___x_6282_ = v___x_6279_;
goto v_reusejp_6281_;
}
else
{
lean_object* v_reuseFailAlloc_6283_; 
v_reuseFailAlloc_6283_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_6283_, 0, v_a_6276_);
lean_ctor_set(v_reuseFailAlloc_6283_, 1, v_a_6277_);
v___x_6282_ = v_reuseFailAlloc_6283_;
goto v_reusejp_6281_;
}
v_reusejp_6281_:
{
return v___x_6282_;
}
}
}
}
}
}
else
{
lean_object* v_a_6286_; lean_object* v_a_6287_; lean_object* v___x_6289_; uint8_t v_isShared_6290_; uint8_t v_isSharedCheck_6294_; 
lean_dec(v_a_6258_);
lean_dec(v_a_6255_);
lean_dec(v___y_6254_);
lean_dec(v___y_6253_);
lean_del_object(v___x_6186_);
lean_dec(v_a_6183_);
lean_del_object(v___x_6179_);
lean_dec(v_ltar_x3f_6177_);
lean_dec(v_bc_x3f_6176_);
lean_dec_ref(v_a_6166_);
lean_dec(v_scope_x3f_6165_);
lean_dec(v_service_x3f_6164_);
v_a_6286_ = lean_ctor_get(v___x_6260_, 0);
v_a_6287_ = lean_ctor_get(v___x_6260_, 1);
v_isSharedCheck_6294_ = !lean_is_exclusive(v___x_6260_);
if (v_isSharedCheck_6294_ == 0)
{
v___x_6289_ = v___x_6260_;
v_isShared_6290_ = v_isSharedCheck_6294_;
goto v_resetjp_6288_;
}
else
{
lean_inc(v_a_6287_);
lean_inc(v_a_6286_);
lean_dec(v___x_6260_);
v___x_6289_ = lean_box(0);
v_isShared_6290_ = v_isSharedCheck_6294_;
goto v_resetjp_6288_;
}
v_resetjp_6288_:
{
lean_object* v___x_6292_; 
if (v_isShared_6290_ == 0)
{
v___x_6292_ = v___x_6289_;
goto v_reusejp_6291_;
}
else
{
lean_object* v_reuseFailAlloc_6293_; 
v_reuseFailAlloc_6293_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_6293_, 0, v_a_6286_);
lean_ctor_set(v_reuseFailAlloc_6293_, 1, v_a_6287_);
v___x_6292_ = v_reuseFailAlloc_6293_;
goto v_reusejp_6291_;
}
v_reusejp_6291_:
{
return v___x_6292_;
}
}
}
}
else
{
lean_object* v_a_6295_; lean_object* v_a_6296_; lean_object* v___x_6298_; uint8_t v_isShared_6299_; uint8_t v_isSharedCheck_6303_; 
lean_dec(v_a_6255_);
lean_dec(v___y_6254_);
lean_dec(v___y_6253_);
lean_del_object(v___x_6186_);
lean_dec(v_a_6183_);
lean_del_object(v___x_6179_);
lean_dec(v_ltar_x3f_6177_);
lean_dec(v_bc_x3f_6176_);
lean_dec_ref(v_c_6175_);
lean_dec_ref(v_a_6166_);
lean_dec(v_scope_x3f_6165_);
lean_dec(v_service_x3f_6164_);
v_a_6295_ = lean_ctor_get(v___x_6257_, 0);
v_a_6296_ = lean_ctor_get(v___x_6257_, 1);
v_isSharedCheck_6303_ = !lean_is_exclusive(v___x_6257_);
if (v_isSharedCheck_6303_ == 0)
{
v___x_6298_ = v___x_6257_;
v_isShared_6299_ = v_isSharedCheck_6303_;
goto v_resetjp_6297_;
}
else
{
lean_inc(v_a_6296_);
lean_inc(v_a_6295_);
lean_dec(v___x_6257_);
v___x_6298_ = lean_box(0);
v_isShared_6299_ = v_isSharedCheck_6303_;
goto v_resetjp_6297_;
}
v_resetjp_6297_:
{
lean_object* v___x_6301_; 
if (v_isShared_6299_ == 0)
{
v___x_6301_ = v___x_6298_;
goto v_reusejp_6300_;
}
else
{
lean_object* v_reuseFailAlloc_6302_; 
v_reuseFailAlloc_6302_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_6302_, 0, v_a_6295_);
lean_ctor_set(v_reuseFailAlloc_6302_, 1, v_a_6296_);
v___x_6301_ = v_reuseFailAlloc_6302_;
goto v_reusejp_6300_;
}
v_reusejp_6300_:
{
return v___x_6301_;
}
}
}
}
v___jp_6304_:
{
if (lean_obj_tag(v_ir_x3f_6174_) == 0)
{
lean_object* v___x_6308_; 
v___x_6308_ = lean_box(0);
v___y_6253_ = v___y_6305_;
v___y_6254_ = v_a_6306_;
v_a_6255_ = v___x_6308_;
v_a_6256_ = v_a_6307_;
goto v___jp_6252_;
}
else
{
lean_object* v_val_6309_; lean_object* v___x_6311_; uint8_t v_isShared_6312_; uint8_t v_isSharedCheck_6328_; 
v_val_6309_ = lean_ctor_get(v_ir_x3f_6174_, 0);
v_isSharedCheck_6328_ = !lean_is_exclusive(v_ir_x3f_6174_);
if (v_isSharedCheck_6328_ == 0)
{
v___x_6311_ = v_ir_x3f_6174_;
v_isShared_6312_ = v_isSharedCheck_6328_;
goto v_resetjp_6310_;
}
else
{
lean_inc(v_val_6309_);
lean_dec(v_ir_x3f_6174_);
v___x_6311_ = lean_box(0);
v_isShared_6312_ = v_isSharedCheck_6328_;
goto v_resetjp_6310_;
}
v_resetjp_6310_:
{
lean_object* v___x_6313_; 
lean_inc_ref(v_a_6166_);
lean_inc(v_scope_x3f_6165_);
lean_inc(v_service_x3f_6164_);
v___x_6313_ = l_Lake_resolveArtifact___redArg(v_val_6309_, v_service_x3f_6164_, v_scope_x3f_6165_, v___x_6181_, v_a_6166_, v_a_6307_);
if (lean_obj_tag(v___x_6313_) == 0)
{
lean_object* v_a_6314_; lean_object* v_a_6315_; lean_object* v___x_6317_; 
v_a_6314_ = lean_ctor_get(v___x_6313_, 0);
lean_inc(v_a_6314_);
v_a_6315_ = lean_ctor_get(v___x_6313_, 1);
lean_inc(v_a_6315_);
lean_dec_ref(v___x_6313_);
if (v_isShared_6312_ == 0)
{
lean_ctor_set(v___x_6311_, 0, v_a_6314_);
v___x_6317_ = v___x_6311_;
goto v_reusejp_6316_;
}
else
{
lean_object* v_reuseFailAlloc_6318_; 
v_reuseFailAlloc_6318_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_6318_, 0, v_a_6314_);
v___x_6317_ = v_reuseFailAlloc_6318_;
goto v_reusejp_6316_;
}
v_reusejp_6316_:
{
v___y_6253_ = v___y_6305_;
v___y_6254_ = v_a_6306_;
v_a_6255_ = v___x_6317_;
v_a_6256_ = v_a_6315_;
goto v___jp_6252_;
}
}
else
{
lean_object* v_a_6319_; lean_object* v_a_6320_; lean_object* v___x_6322_; uint8_t v_isShared_6323_; uint8_t v_isSharedCheck_6327_; 
lean_del_object(v___x_6311_);
lean_dec(v_a_6306_);
lean_dec(v___y_6305_);
lean_del_object(v___x_6186_);
lean_dec(v_a_6183_);
lean_del_object(v___x_6179_);
lean_dec(v_ltar_x3f_6177_);
lean_dec(v_bc_x3f_6176_);
lean_dec_ref(v_c_6175_);
lean_dec_ref(v_ilean_6173_);
lean_dec_ref(v_a_6166_);
lean_dec(v_scope_x3f_6165_);
lean_dec(v_service_x3f_6164_);
v_a_6319_ = lean_ctor_get(v___x_6313_, 0);
v_a_6320_ = lean_ctor_get(v___x_6313_, 1);
v_isSharedCheck_6327_ = !lean_is_exclusive(v___x_6313_);
if (v_isSharedCheck_6327_ == 0)
{
v___x_6322_ = v___x_6313_;
v_isShared_6323_ = v_isSharedCheck_6327_;
goto v_resetjp_6321_;
}
else
{
lean_inc(v_a_6320_);
lean_inc(v_a_6319_);
lean_dec(v___x_6313_);
v___x_6322_ = lean_box(0);
v_isShared_6323_ = v_isSharedCheck_6327_;
goto v_resetjp_6321_;
}
v_resetjp_6321_:
{
lean_object* v___x_6325_; 
if (v_isShared_6323_ == 0)
{
v___x_6325_ = v___x_6322_;
goto v_reusejp_6324_;
}
else
{
lean_object* v_reuseFailAlloc_6326_; 
v_reuseFailAlloc_6326_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_6326_, 0, v_a_6319_);
lean_ctor_set(v_reuseFailAlloc_6326_, 1, v_a_6320_);
v___x_6325_ = v_reuseFailAlloc_6326_;
goto v_reusejp_6324_;
}
v_reusejp_6324_:
{
return v___x_6325_;
}
}
}
}
}
}
v___jp_6329_:
{
if (lean_obj_tag(v_oleanPrivate_x3f_6172_) == 0)
{
lean_object* v___x_6332_; 
v___x_6332_ = lean_box(0);
v___y_6305_ = v_a_6330_;
v_a_6306_ = v___x_6332_;
v_a_6307_ = v_a_6331_;
goto v___jp_6304_;
}
else
{
lean_object* v_val_6333_; lean_object* v___x_6335_; uint8_t v_isShared_6336_; uint8_t v_isSharedCheck_6352_; 
v_val_6333_ = lean_ctor_get(v_oleanPrivate_x3f_6172_, 0);
v_isSharedCheck_6352_ = !lean_is_exclusive(v_oleanPrivate_x3f_6172_);
if (v_isSharedCheck_6352_ == 0)
{
v___x_6335_ = v_oleanPrivate_x3f_6172_;
v_isShared_6336_ = v_isSharedCheck_6352_;
goto v_resetjp_6334_;
}
else
{
lean_inc(v_val_6333_);
lean_dec(v_oleanPrivate_x3f_6172_);
v___x_6335_ = lean_box(0);
v_isShared_6336_ = v_isSharedCheck_6352_;
goto v_resetjp_6334_;
}
v_resetjp_6334_:
{
lean_object* v___x_6337_; 
lean_inc_ref(v_a_6166_);
lean_inc(v_scope_x3f_6165_);
lean_inc(v_service_x3f_6164_);
v___x_6337_ = l_Lake_resolveArtifact___redArg(v_val_6333_, v_service_x3f_6164_, v_scope_x3f_6165_, v___x_6181_, v_a_6166_, v_a_6331_);
if (lean_obj_tag(v___x_6337_) == 0)
{
lean_object* v_a_6338_; lean_object* v_a_6339_; lean_object* v___x_6341_; 
v_a_6338_ = lean_ctor_get(v___x_6337_, 0);
lean_inc(v_a_6338_);
v_a_6339_ = lean_ctor_get(v___x_6337_, 1);
lean_inc(v_a_6339_);
lean_dec_ref(v___x_6337_);
if (v_isShared_6336_ == 0)
{
lean_ctor_set(v___x_6335_, 0, v_a_6338_);
v___x_6341_ = v___x_6335_;
goto v_reusejp_6340_;
}
else
{
lean_object* v_reuseFailAlloc_6342_; 
v_reuseFailAlloc_6342_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_6342_, 0, v_a_6338_);
v___x_6341_ = v_reuseFailAlloc_6342_;
goto v_reusejp_6340_;
}
v_reusejp_6340_:
{
v___y_6305_ = v_a_6330_;
v_a_6306_ = v___x_6341_;
v_a_6307_ = v_a_6339_;
goto v___jp_6304_;
}
}
else
{
lean_object* v_a_6343_; lean_object* v_a_6344_; lean_object* v___x_6346_; uint8_t v_isShared_6347_; uint8_t v_isSharedCheck_6351_; 
lean_del_object(v___x_6335_);
lean_dec(v_a_6330_);
lean_del_object(v___x_6186_);
lean_dec(v_a_6183_);
lean_del_object(v___x_6179_);
lean_dec(v_ltar_x3f_6177_);
lean_dec(v_bc_x3f_6176_);
lean_dec_ref(v_c_6175_);
lean_dec(v_ir_x3f_6174_);
lean_dec_ref(v_ilean_6173_);
lean_dec_ref(v_a_6166_);
lean_dec(v_scope_x3f_6165_);
lean_dec(v_service_x3f_6164_);
v_a_6343_ = lean_ctor_get(v___x_6337_, 0);
v_a_6344_ = lean_ctor_get(v___x_6337_, 1);
v_isSharedCheck_6351_ = !lean_is_exclusive(v___x_6337_);
if (v_isSharedCheck_6351_ == 0)
{
v___x_6346_ = v___x_6337_;
v_isShared_6347_ = v_isSharedCheck_6351_;
goto v_resetjp_6345_;
}
else
{
lean_inc(v_a_6344_);
lean_inc(v_a_6343_);
lean_dec(v___x_6337_);
v___x_6346_ = lean_box(0);
v_isShared_6347_ = v_isSharedCheck_6351_;
goto v_resetjp_6345_;
}
v_resetjp_6345_:
{
lean_object* v___x_6349_; 
if (v_isShared_6347_ == 0)
{
v___x_6349_ = v___x_6346_;
goto v_reusejp_6348_;
}
else
{
lean_object* v_reuseFailAlloc_6350_; 
v_reuseFailAlloc_6350_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_6350_, 0, v_a_6343_);
lean_ctor_set(v_reuseFailAlloc_6350_, 1, v_a_6344_);
v___x_6349_ = v_reuseFailAlloc_6350_;
goto v_reusejp_6348_;
}
v_reusejp_6348_:
{
return v___x_6349_;
}
}
}
}
}
}
}
}
else
{
lean_object* v_a_6375_; lean_object* v_a_6376_; lean_object* v___x_6378_; uint8_t v_isShared_6379_; uint8_t v_isSharedCheck_6383_; 
lean_del_object(v___x_6179_);
lean_dec(v_ltar_x3f_6177_);
lean_dec(v_bc_x3f_6176_);
lean_dec_ref(v_c_6175_);
lean_dec(v_ir_x3f_6174_);
lean_dec_ref(v_ilean_6173_);
lean_dec(v_oleanPrivate_x3f_6172_);
lean_dec(v_oleanServer_x3f_6171_);
lean_dec_ref(v_a_6166_);
lean_dec(v_scope_x3f_6165_);
lean_dec(v_service_x3f_6164_);
v_a_6375_ = lean_ctor_get(v___x_6182_, 0);
v_a_6376_ = lean_ctor_get(v___x_6182_, 1);
v_isSharedCheck_6383_ = !lean_is_exclusive(v___x_6182_);
if (v_isSharedCheck_6383_ == 0)
{
v___x_6378_ = v___x_6182_;
v_isShared_6379_ = v_isSharedCheck_6383_;
goto v_resetjp_6377_;
}
else
{
lean_inc(v_a_6376_);
lean_inc(v_a_6375_);
lean_dec(v___x_6182_);
v___x_6378_ = lean_box(0);
v_isShared_6379_ = v_isSharedCheck_6383_;
goto v_resetjp_6377_;
}
v_resetjp_6377_:
{
lean_object* v___x_6381_; 
if (v_isShared_6379_ == 0)
{
v___x_6381_ = v___x_6378_;
goto v_reusejp_6380_;
}
else
{
lean_object* v_reuseFailAlloc_6382_; 
v_reuseFailAlloc_6382_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_6382_, 0, v_a_6375_);
lean_ctor_set(v_reuseFailAlloc_6382_, 1, v_a_6376_);
v___x_6381_ = v_reuseFailAlloc_6382_;
goto v_reusejp_6380_;
}
v_reusejp_6380_:
{
return v___x_6381_;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve___redArg___boxed(lean_object* v_descrs_6385_, lean_object* v_service_x3f_6386_, lean_object* v_scope_x3f_6387_, lean_object* v_a_6388_, lean_object* v_a_6389_, lean_object* v_a_6390_){
_start:
{
lean_object* v_res_6391_; 
v_res_6391_ = l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve___redArg(v_descrs_6385_, v_service_x3f_6386_, v_scope_x3f_6387_, v_a_6388_, v_a_6389_);
return v_res_6391_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve(lean_object* v_descrs_6392_, lean_object* v_service_x3f_6393_, lean_object* v_scope_x3f_6394_, lean_object* v_a_6395_, lean_object* v_a_6396_, lean_object* v_a_6397_, lean_object* v_a_6398_, lean_object* v_a_6399_, lean_object* v_a_6400_){
_start:
{
lean_object* v___x_6402_; 
v___x_6402_ = l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve___redArg(v_descrs_6392_, v_service_x3f_6393_, v_scope_x3f_6394_, v_a_6399_, v_a_6400_);
return v___x_6402_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve___boxed(lean_object* v_descrs_6403_, lean_object* v_service_x3f_6404_, lean_object* v_scope_x3f_6405_, lean_object* v_a_6406_, lean_object* v_a_6407_, lean_object* v_a_6408_, lean_object* v_a_6409_, lean_object* v_a_6410_, lean_object* v_a_6411_, lean_object* v_a_6412_){
_start:
{
lean_object* v_res_6413_; 
v_res_6413_ = l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve(v_descrs_6403_, v_service_x3f_6404_, v_scope_x3f_6405_, v_a_6406_, v_a_6407_, v_a_6408_, v_a_6409_, v_a_6410_, v_a_6411_);
lean_dec(v_a_6409_);
lean_dec(v_a_6408_);
lean_dec(v_a_6407_);
lean_dec_ref(v_a_6406_);
return v_res_6413_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_resolveModuleOutputArtifacts___redArg(lean_object* v_out_6415_, lean_object* v_a_6416_, lean_object* v_a_6417_){
_start:
{
lean_object* v_data_6419_; lean_object* v_service_x3f_6420_; lean_object* v_scope_x3f_6421_; lean_object* v___x_6422_; 
v_data_6419_ = lean_ctor_get(v_out_6415_, 0);
lean_inc(v_data_6419_);
v_service_x3f_6420_ = lean_ctor_get(v_out_6415_, 1);
lean_inc(v_service_x3f_6420_);
v_scope_x3f_6421_ = lean_ctor_get(v_out_6415_, 2);
lean_inc(v_scope_x3f_6421_);
lean_dec_ref(v_out_6415_);
lean_inc(v_data_6419_);
v___x_6422_ = l_Lake_ModuleOutputDescrs_fromJson_x3f(v_data_6419_);
if (lean_obj_tag(v___x_6422_) == 0)
{
lean_object* v_a_6423_; lean_object* v_log_6424_; uint8_t v_action_6425_; uint8_t v_wantsRebuild_6426_; lean_object* v_trace_6427_; lean_object* v_buildTime_6428_; lean_object* v___x_6430_; uint8_t v_isShared_6431_; uint8_t v_isSharedCheck_6450_; 
lean_dec(v_scope_x3f_6421_);
lean_dec(v_service_x3f_6420_);
lean_dec_ref(v_a_6416_);
v_a_6423_ = lean_ctor_get(v___x_6422_, 0);
lean_inc(v_a_6423_);
lean_dec_ref(v___x_6422_);
v_log_6424_ = lean_ctor_get(v_a_6417_, 0);
v_action_6425_ = lean_ctor_get_uint8(v_a_6417_, sizeof(void*)*3);
v_wantsRebuild_6426_ = lean_ctor_get_uint8(v_a_6417_, sizeof(void*)*3 + 1);
v_trace_6427_ = lean_ctor_get(v_a_6417_, 1);
v_buildTime_6428_ = lean_ctor_get(v_a_6417_, 2);
v_isSharedCheck_6450_ = !lean_is_exclusive(v_a_6417_);
if (v_isSharedCheck_6450_ == 0)
{
v___x_6430_ = v_a_6417_;
v_isShared_6431_ = v_isSharedCheck_6450_;
goto v_resetjp_6429_;
}
else
{
lean_inc(v_buildTime_6428_);
lean_inc(v_trace_6427_);
lean_inc(v_log_6424_);
lean_dec(v_a_6417_);
v___x_6430_ = lean_box(0);
v_isShared_6431_ = v_isSharedCheck_6450_;
goto v_resetjp_6429_;
}
v_resetjp_6429_:
{
lean_object* v___x_6432_; lean_object* v___x_6433_; lean_object* v___x_6434_; lean_object* v___x_6435_; lean_object* v___x_6436_; lean_object* v___x_6437_; lean_object* v___x_6438_; lean_object* v___x_6439_; lean_object* v___x_6440_; lean_object* v___x_6441_; uint8_t v___x_6442_; lean_object* v___x_6443_; lean_object* v___x_6444_; lean_object* v___x_6445_; lean_object* v___x_6447_; 
v___x_6432_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_resolveModuleOutputArtifacts___redArg___closed__0));
v___x_6433_ = l_Lean_Json_render(v_data_6419_);
v___x_6434_ = lean_unsigned_to_nat(80u);
v___x_6435_ = lean_unsigned_to_nat(2u);
v___x_6436_ = lean_unsigned_to_nat(0u);
v___x_6437_ = l_Std_Format_pretty(v___x_6433_, v___x_6434_, v___x_6435_, v___x_6436_);
v___x_6438_ = lean_string_append(v___x_6432_, v___x_6437_);
lean_dec_ref(v___x_6437_);
v___x_6439_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__0___closed__0));
v___x_6440_ = lean_string_append(v___x_6438_, v___x_6439_);
v___x_6441_ = lean_string_append(v___x_6440_, v_a_6423_);
lean_dec(v_a_6423_);
v___x_6442_ = 3;
v___x_6443_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_6443_, 0, v___x_6441_);
lean_ctor_set_uint8(v___x_6443_, sizeof(void*)*1, v___x_6442_);
v___x_6444_ = lean_array_get_size(v_log_6424_);
v___x_6445_ = lean_array_push(v_log_6424_, v___x_6443_);
if (v_isShared_6431_ == 0)
{
lean_ctor_set(v___x_6430_, 0, v___x_6445_);
v___x_6447_ = v___x_6430_;
goto v_reusejp_6446_;
}
else
{
lean_object* v_reuseFailAlloc_6449_; 
v_reuseFailAlloc_6449_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_6449_, 0, v___x_6445_);
lean_ctor_set(v_reuseFailAlloc_6449_, 1, v_trace_6427_);
lean_ctor_set(v_reuseFailAlloc_6449_, 2, v_buildTime_6428_);
lean_ctor_set_uint8(v_reuseFailAlloc_6449_, sizeof(void*)*3, v_action_6425_);
lean_ctor_set_uint8(v_reuseFailAlloc_6449_, sizeof(void*)*3 + 1, v_wantsRebuild_6426_);
v___x_6447_ = v_reuseFailAlloc_6449_;
goto v_reusejp_6446_;
}
v_reusejp_6446_:
{
lean_object* v___x_6448_; 
v___x_6448_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_6448_, 0, v___x_6444_);
lean_ctor_set(v___x_6448_, 1, v___x_6447_);
return v___x_6448_;
}
}
}
else
{
lean_object* v_a_6451_; lean_object* v___x_6452_; 
lean_dec(v_data_6419_);
v_a_6451_ = lean_ctor_get(v___x_6422_, 0);
lean_inc(v_a_6451_);
lean_dec_ref(v___x_6422_);
v___x_6452_ = l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve___redArg(v_a_6451_, v_service_x3f_6420_, v_scope_x3f_6421_, v_a_6416_, v_a_6417_);
return v___x_6452_;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_resolveModuleOutputArtifacts___redArg___boxed(lean_object* v_out_6453_, lean_object* v_a_6454_, lean_object* v_a_6455_, lean_object* v_a_6456_){
_start:
{
lean_object* v_res_6457_; 
v_res_6457_ = l___private_Lake_Build_Module_0__Lake_resolveModuleOutputArtifacts___redArg(v_out_6453_, v_a_6454_, v_a_6455_);
return v_res_6457_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_resolveModuleOutputArtifacts(lean_object* v_out_6458_, lean_object* v_a_6459_, lean_object* v_a_6460_, lean_object* v_a_6461_, lean_object* v_a_6462_, lean_object* v_a_6463_, lean_object* v_a_6464_){
_start:
{
lean_object* v___x_6466_; 
v___x_6466_ = l___private_Lake_Build_Module_0__Lake_resolveModuleOutputArtifacts___redArg(v_out_6458_, v_a_6463_, v_a_6464_);
return v___x_6466_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_resolveModuleOutputArtifacts___boxed(lean_object* v_out_6467_, lean_object* v_a_6468_, lean_object* v_a_6469_, lean_object* v_a_6470_, lean_object* v_a_6471_, lean_object* v_a_6472_, lean_object* v_a_6473_, lean_object* v_a_6474_){
_start:
{
lean_object* v_res_6475_; 
v_res_6475_ = l___private_Lake_Build_Module_0__Lake_resolveModuleOutputArtifacts(v_out_6467_, v_a_6468_, v_a_6469_, v_a_6470_, v_a_6471_, v_a_6472_, v_a_6473_);
lean_dec(v_a_6471_);
lean_dec(v_a_6470_);
lean_dec(v_a_6469_);
lean_dec_ref(v_a_6468_);
return v_res_6475_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputs_ctorIdx(lean_object* v_x_6478_){
_start:
{
if (lean_obj_tag(v_x_6478_) == 0)
{
lean_object* v___x_6479_; 
v___x_6479_ = lean_unsigned_to_nat(0u);
return v___x_6479_;
}
else
{
lean_object* v___x_6480_; 
v___x_6480_ = lean_unsigned_to_nat(1u);
return v___x_6480_;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputs_ctorIdx___boxed(lean_object* v_x_6481_){
_start:
{
lean_object* v_res_6482_; 
v_res_6482_ = l___private_Lake_Build_Module_0__Lake_ModuleOutputs_ctorIdx(v_x_6481_);
lean_dec_ref(v_x_6481_);
return v_res_6482_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputs_ctorElim___redArg(lean_object* v_t_6483_, lean_object* v_k_6484_){
_start:
{
lean_object* v_art_6485_; lean_object* v___x_6486_; 
v_art_6485_ = lean_ctor_get(v_t_6483_, 0);
lean_inc_ref(v_art_6485_);
lean_dec_ref(v_t_6483_);
v___x_6486_ = lean_apply_1(v_k_6484_, v_art_6485_);
return v___x_6486_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputs_ctorElim(lean_object* v_motive_6487_, lean_object* v_ctorIdx_6488_, lean_object* v_t_6489_, lean_object* v_h_6490_, lean_object* v_k_6491_){
_start:
{
lean_object* v___x_6492_; 
v___x_6492_ = l___private_Lake_Build_Module_0__Lake_ModuleOutputs_ctorElim___redArg(v_t_6489_, v_k_6491_);
return v___x_6492_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputs_ctorElim___boxed(lean_object* v_motive_6493_, lean_object* v_ctorIdx_6494_, lean_object* v_t_6495_, lean_object* v_h_6496_, lean_object* v_k_6497_){
_start:
{
lean_object* v_res_6498_; 
v_res_6498_ = l___private_Lake_Build_Module_0__Lake_ModuleOutputs_ctorElim(v_motive_6493_, v_ctorIdx_6494_, v_t_6495_, v_h_6496_, v_k_6497_);
lean_dec(v_ctorIdx_6494_);
return v_res_6498_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputs_ltar_elim___redArg(lean_object* v_t_6499_, lean_object* v_ltar_6500_){
_start:
{
lean_object* v___x_6501_; 
v___x_6501_ = l___private_Lake_Build_Module_0__Lake_ModuleOutputs_ctorElim___redArg(v_t_6499_, v_ltar_6500_);
return v___x_6501_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputs_ltar_elim(lean_object* v_motive_6502_, lean_object* v_t_6503_, lean_object* v_h_6504_, lean_object* v_ltar_6505_){
_start:
{
lean_object* v___x_6506_; 
v___x_6506_ = l___private_Lake_Build_Module_0__Lake_ModuleOutputs_ctorElim___redArg(v_t_6503_, v_ltar_6505_);
return v___x_6506_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputs_arts_elim___redArg(lean_object* v_t_6507_, lean_object* v_arts_6508_){
_start:
{
lean_object* v___x_6509_; 
v___x_6509_ = l___private_Lake_Build_Module_0__Lake_ModuleOutputs_ctorElim___redArg(v_t_6507_, v_arts_6508_);
return v___x_6509_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputs_arts_elim(lean_object* v_motive_6510_, lean_object* v_t_6511_, lean_object* v_h_6512_, lean_object* v_arts_6513_){
_start:
{
lean_object* v___x_6514_; 
v___x_6514_ = l___private_Lake_Build_Module_0__Lake_ModuleOutputs_ctorElim___redArg(v_t_6511_, v_arts_6513_);
return v___x_6514_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_instCoeModuleOutputArtifactsModuleOutputs___lam__0(lean_object* v_arts_6515_){
_start:
{
lean_object* v___x_6516_; 
v___x_6516_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_6516_, 0, v_arts_6515_);
return v___x_6516_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_resolveModuleOutputs___redArg(lean_object* v_out_6520_, lean_object* v_a_6521_, lean_object* v_a_6522_){
_start:
{
lean_object* v_r_6525_; lean_object* v___y_6526_; lean_object* v_data_6528_; 
v_data_6528_ = lean_ctor_get(v_out_6520_, 0);
lean_inc(v_data_6528_);
if (lean_obj_tag(v_data_6528_) == 3)
{
lean_object* v_service_x3f_6529_; lean_object* v_scope_x3f_6530_; lean_object* v_s_6531_; lean_object* v___x_6532_; 
v_service_x3f_6529_ = lean_ctor_get(v_out_6520_, 1);
lean_inc(v_service_x3f_6529_);
v_scope_x3f_6530_ = lean_ctor_get(v_out_6520_, 2);
lean_inc(v_scope_x3f_6530_);
lean_dec_ref(v_out_6520_);
v_s_6531_ = lean_ctor_get(v_data_6528_, 0);
lean_inc_ref(v_s_6531_);
v___x_6532_ = l_Lake_ArtifactDescr_ofFilePath_x3f(v_s_6531_);
if (lean_obj_tag(v___x_6532_) == 0)
{
lean_object* v_a_6533_; lean_object* v_log_6534_; uint8_t v_action_6535_; uint8_t v_wantsRebuild_6536_; lean_object* v_trace_6537_; lean_object* v_buildTime_6538_; lean_object* v___x_6540_; uint8_t v_isShared_6541_; uint8_t v_isSharedCheck_6560_; 
lean_dec(v_scope_x3f_6530_);
lean_dec(v_service_x3f_6529_);
lean_dec_ref(v_a_6521_);
v_a_6533_ = lean_ctor_get(v___x_6532_, 0);
lean_inc(v_a_6533_);
lean_dec_ref(v___x_6532_);
v_log_6534_ = lean_ctor_get(v_a_6522_, 0);
v_action_6535_ = lean_ctor_get_uint8(v_a_6522_, sizeof(void*)*3);
v_wantsRebuild_6536_ = lean_ctor_get_uint8(v_a_6522_, sizeof(void*)*3 + 1);
v_trace_6537_ = lean_ctor_get(v_a_6522_, 1);
v_buildTime_6538_ = lean_ctor_get(v_a_6522_, 2);
v_isSharedCheck_6560_ = !lean_is_exclusive(v_a_6522_);
if (v_isSharedCheck_6560_ == 0)
{
v___x_6540_ = v_a_6522_;
v_isShared_6541_ = v_isSharedCheck_6560_;
goto v_resetjp_6539_;
}
else
{
lean_inc(v_buildTime_6538_);
lean_inc(v_trace_6537_);
lean_inc(v_log_6534_);
lean_dec(v_a_6522_);
v___x_6540_ = lean_box(0);
v_isShared_6541_ = v_isSharedCheck_6560_;
goto v_resetjp_6539_;
}
v_resetjp_6539_:
{
lean_object* v___x_6542_; lean_object* v___x_6543_; lean_object* v___x_6544_; lean_object* v___x_6545_; lean_object* v___x_6546_; lean_object* v___x_6547_; lean_object* v___x_6548_; lean_object* v___x_6549_; lean_object* v___x_6550_; lean_object* v___x_6551_; uint8_t v___x_6552_; lean_object* v___x_6553_; lean_object* v___x_6554_; lean_object* v___x_6555_; lean_object* v___x_6557_; 
v___x_6542_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_resolveModuleOutputs___redArg___closed__0));
v___x_6543_ = l_Lean_Json_render(v_data_6528_);
v___x_6544_ = lean_unsigned_to_nat(80u);
v___x_6545_ = lean_unsigned_to_nat(2u);
v___x_6546_ = lean_unsigned_to_nat(0u);
v___x_6547_ = l_Std_Format_pretty(v___x_6543_, v___x_6544_, v___x_6545_, v___x_6546_);
v___x_6548_ = lean_string_append(v___x_6542_, v___x_6547_);
lean_dec_ref(v___x_6547_);
v___x_6549_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__0___closed__0));
v___x_6550_ = lean_string_append(v___x_6548_, v___x_6549_);
v___x_6551_ = lean_string_append(v___x_6550_, v_a_6533_);
lean_dec(v_a_6533_);
v___x_6552_ = 3;
v___x_6553_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_6553_, 0, v___x_6551_);
lean_ctor_set_uint8(v___x_6553_, sizeof(void*)*1, v___x_6552_);
v___x_6554_ = lean_array_get_size(v_log_6534_);
v___x_6555_ = lean_array_push(v_log_6534_, v___x_6553_);
if (v_isShared_6541_ == 0)
{
lean_ctor_set(v___x_6540_, 0, v___x_6555_);
v___x_6557_ = v___x_6540_;
goto v_reusejp_6556_;
}
else
{
lean_object* v_reuseFailAlloc_6559_; 
v_reuseFailAlloc_6559_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_6559_, 0, v___x_6555_);
lean_ctor_set(v_reuseFailAlloc_6559_, 1, v_trace_6537_);
lean_ctor_set(v_reuseFailAlloc_6559_, 2, v_buildTime_6538_);
lean_ctor_set_uint8(v_reuseFailAlloc_6559_, sizeof(void*)*3, v_action_6535_);
lean_ctor_set_uint8(v_reuseFailAlloc_6559_, sizeof(void*)*3 + 1, v_wantsRebuild_6536_);
v___x_6557_ = v_reuseFailAlloc_6559_;
goto v_reusejp_6556_;
}
v_reusejp_6556_:
{
lean_object* v___x_6558_; 
v___x_6558_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_6558_, 0, v___x_6554_);
lean_ctor_set(v___x_6558_, 1, v___x_6557_);
return v___x_6558_;
}
}
}
else
{
lean_object* v_a_6561_; lean_object* v___x_6563_; uint8_t v_isShared_6564_; uint8_t v_isSharedCheck_6588_; 
lean_dec_ref(v_data_6528_);
v_a_6561_ = lean_ctor_get(v___x_6532_, 0);
v_isSharedCheck_6588_ = !lean_is_exclusive(v___x_6532_);
if (v_isSharedCheck_6588_ == 0)
{
v___x_6563_ = v___x_6532_;
v_isShared_6564_ = v_isSharedCheck_6588_;
goto v_resetjp_6562_;
}
else
{
lean_inc(v_a_6561_);
lean_dec(v___x_6532_);
v___x_6563_ = lean_box(0);
v_isShared_6564_ = v_isSharedCheck_6588_;
goto v_resetjp_6562_;
}
v_resetjp_6562_:
{
uint8_t v___x_6565_; lean_object* v___x_6566_; 
v___x_6565_ = 0;
v___x_6566_ = l_Lake_resolveArtifact___redArg(v_a_6561_, v_service_x3f_6529_, v_scope_x3f_6530_, v___x_6565_, v_a_6521_, v_a_6522_);
if (lean_obj_tag(v___x_6566_) == 0)
{
lean_object* v_a_6567_; lean_object* v_a_6568_; lean_object* v___x_6570_; uint8_t v_isShared_6571_; uint8_t v_isSharedCheck_6578_; 
v_a_6567_ = lean_ctor_get(v___x_6566_, 0);
v_a_6568_ = lean_ctor_get(v___x_6566_, 1);
v_isSharedCheck_6578_ = !lean_is_exclusive(v___x_6566_);
if (v_isSharedCheck_6578_ == 0)
{
v___x_6570_ = v___x_6566_;
v_isShared_6571_ = v_isSharedCheck_6578_;
goto v_resetjp_6569_;
}
else
{
lean_inc(v_a_6568_);
lean_inc(v_a_6567_);
lean_dec(v___x_6566_);
v___x_6570_ = lean_box(0);
v_isShared_6571_ = v_isSharedCheck_6578_;
goto v_resetjp_6569_;
}
v_resetjp_6569_:
{
lean_object* v___x_6573_; 
if (v_isShared_6564_ == 0)
{
lean_ctor_set_tag(v___x_6563_, 0);
lean_ctor_set(v___x_6563_, 0, v_a_6567_);
v___x_6573_ = v___x_6563_;
goto v_reusejp_6572_;
}
else
{
lean_object* v_reuseFailAlloc_6577_; 
v_reuseFailAlloc_6577_ = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(v_reuseFailAlloc_6577_, 0, v_a_6567_);
v___x_6573_ = v_reuseFailAlloc_6577_;
goto v_reusejp_6572_;
}
v_reusejp_6572_:
{
lean_object* v___x_6575_; 
if (v_isShared_6571_ == 0)
{
lean_ctor_set(v___x_6570_, 0, v___x_6573_);
v___x_6575_ = v___x_6570_;
goto v_reusejp_6574_;
}
else
{
lean_object* v_reuseFailAlloc_6576_; 
v_reuseFailAlloc_6576_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_6576_, 0, v___x_6573_);
lean_ctor_set(v_reuseFailAlloc_6576_, 1, v_a_6568_);
v___x_6575_ = v_reuseFailAlloc_6576_;
goto v_reusejp_6574_;
}
v_reusejp_6574_:
{
return v___x_6575_;
}
}
}
}
else
{
lean_object* v_a_6579_; lean_object* v_a_6580_; lean_object* v___x_6582_; uint8_t v_isShared_6583_; uint8_t v_isSharedCheck_6587_; 
lean_del_object(v___x_6563_);
v_a_6579_ = lean_ctor_get(v___x_6566_, 0);
v_a_6580_ = lean_ctor_get(v___x_6566_, 1);
v_isSharedCheck_6587_ = !lean_is_exclusive(v___x_6566_);
if (v_isSharedCheck_6587_ == 0)
{
v___x_6582_ = v___x_6566_;
v_isShared_6583_ = v_isSharedCheck_6587_;
goto v_resetjp_6581_;
}
else
{
lean_inc(v_a_6580_);
lean_inc(v_a_6579_);
lean_dec(v___x_6566_);
v___x_6582_ = lean_box(0);
v_isShared_6583_ = v_isSharedCheck_6587_;
goto v_resetjp_6581_;
}
v_resetjp_6581_:
{
lean_object* v___x_6585_; 
if (v_isShared_6583_ == 0)
{
v___x_6585_ = v___x_6582_;
goto v_reusejp_6584_;
}
else
{
lean_object* v_reuseFailAlloc_6586_; 
v_reuseFailAlloc_6586_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_6586_, 0, v_a_6579_);
lean_ctor_set(v_reuseFailAlloc_6586_, 1, v_a_6580_);
v___x_6585_ = v_reuseFailAlloc_6586_;
goto v_reusejp_6584_;
}
v_reusejp_6584_:
{
return v___x_6585_;
}
}
}
}
}
}
else
{
lean_object* v_service_x3f_6589_; lean_object* v_scope_x3f_6590_; lean_object* v___x_6591_; 
v_service_x3f_6589_ = lean_ctor_get(v_out_6520_, 1);
lean_inc(v_service_x3f_6589_);
v_scope_x3f_6590_ = lean_ctor_get(v_out_6520_, 2);
lean_inc(v_scope_x3f_6590_);
lean_dec_ref(v_out_6520_);
lean_inc(v_data_6528_);
v___x_6591_ = l_Lake_ModuleOutputDescrs_fromJson_x3f(v_data_6528_);
if (lean_obj_tag(v___x_6591_) == 0)
{
lean_object* v_a_6592_; lean_object* v_log_6593_; uint8_t v_action_6594_; uint8_t v_wantsRebuild_6595_; lean_object* v_trace_6596_; lean_object* v_buildTime_6597_; lean_object* v___x_6599_; uint8_t v_isShared_6600_; uint8_t v_isSharedCheck_6619_; 
lean_dec(v_scope_x3f_6590_);
lean_dec(v_service_x3f_6589_);
lean_dec_ref(v_a_6521_);
v_a_6592_ = lean_ctor_get(v___x_6591_, 0);
lean_inc(v_a_6592_);
lean_dec_ref(v___x_6591_);
v_log_6593_ = lean_ctor_get(v_a_6522_, 0);
v_action_6594_ = lean_ctor_get_uint8(v_a_6522_, sizeof(void*)*3);
v_wantsRebuild_6595_ = lean_ctor_get_uint8(v_a_6522_, sizeof(void*)*3 + 1);
v_trace_6596_ = lean_ctor_get(v_a_6522_, 1);
v_buildTime_6597_ = lean_ctor_get(v_a_6522_, 2);
v_isSharedCheck_6619_ = !lean_is_exclusive(v_a_6522_);
if (v_isSharedCheck_6619_ == 0)
{
v___x_6599_ = v_a_6522_;
v_isShared_6600_ = v_isSharedCheck_6619_;
goto v_resetjp_6598_;
}
else
{
lean_inc(v_buildTime_6597_);
lean_inc(v_trace_6596_);
lean_inc(v_log_6593_);
lean_dec(v_a_6522_);
v___x_6599_ = lean_box(0);
v_isShared_6600_ = v_isSharedCheck_6619_;
goto v_resetjp_6598_;
}
v_resetjp_6598_:
{
lean_object* v___x_6601_; lean_object* v___x_6602_; lean_object* v___x_6603_; lean_object* v___x_6604_; lean_object* v___x_6605_; lean_object* v___x_6606_; lean_object* v___x_6607_; lean_object* v___x_6608_; lean_object* v___x_6609_; lean_object* v___x_6610_; uint8_t v___x_6611_; lean_object* v___x_6612_; lean_object* v___x_6613_; lean_object* v___x_6614_; lean_object* v___x_6616_; 
v___x_6601_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_resolveModuleOutputArtifacts___redArg___closed__0));
v___x_6602_ = l_Lean_Json_render(v_data_6528_);
v___x_6603_ = lean_unsigned_to_nat(80u);
v___x_6604_ = lean_unsigned_to_nat(2u);
v___x_6605_ = lean_unsigned_to_nat(0u);
v___x_6606_ = l_Std_Format_pretty(v___x_6602_, v___x_6603_, v___x_6604_, v___x_6605_);
v___x_6607_ = lean_string_append(v___x_6601_, v___x_6606_);
lean_dec_ref(v___x_6606_);
v___x_6608_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Module_importsFacetConfig_spec__0_spec__0___closed__0));
v___x_6609_ = lean_string_append(v___x_6607_, v___x_6608_);
v___x_6610_ = lean_string_append(v___x_6609_, v_a_6592_);
lean_dec(v_a_6592_);
v___x_6611_ = 3;
v___x_6612_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_6612_, 0, v___x_6610_);
lean_ctor_set_uint8(v___x_6612_, sizeof(void*)*1, v___x_6611_);
v___x_6613_ = lean_array_get_size(v_log_6593_);
v___x_6614_ = lean_array_push(v_log_6593_, v___x_6612_);
if (v_isShared_6600_ == 0)
{
lean_ctor_set(v___x_6599_, 0, v___x_6614_);
v___x_6616_ = v___x_6599_;
goto v_reusejp_6615_;
}
else
{
lean_object* v_reuseFailAlloc_6618_; 
v_reuseFailAlloc_6618_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_6618_, 0, v___x_6614_);
lean_ctor_set(v_reuseFailAlloc_6618_, 1, v_trace_6596_);
lean_ctor_set(v_reuseFailAlloc_6618_, 2, v_buildTime_6597_);
lean_ctor_set_uint8(v_reuseFailAlloc_6618_, sizeof(void*)*3, v_action_6594_);
lean_ctor_set_uint8(v_reuseFailAlloc_6618_, sizeof(void*)*3 + 1, v_wantsRebuild_6595_);
v___x_6616_ = v_reuseFailAlloc_6618_;
goto v_reusejp_6615_;
}
v_reusejp_6615_:
{
lean_object* v___x_6617_; 
v___x_6617_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_6617_, 0, v___x_6613_);
lean_ctor_set(v___x_6617_, 1, v___x_6616_);
return v___x_6617_;
}
}
}
else
{
lean_object* v_a_6620_; lean_object* v___x_6622_; uint8_t v_isShared_6623_; uint8_t v_isSharedCheck_6689_; 
lean_dec(v_data_6528_);
v_a_6620_ = lean_ctor_get(v___x_6591_, 0);
v_isSharedCheck_6689_ = !lean_is_exclusive(v___x_6591_);
if (v_isSharedCheck_6689_ == 0)
{
v___x_6622_ = v___x_6591_;
v_isShared_6623_ = v_isSharedCheck_6689_;
goto v_resetjp_6621_;
}
else
{
lean_inc(v_a_6620_);
lean_dec(v___x_6591_);
v___x_6622_ = lean_box(0);
v_isShared_6623_ = v_isSharedCheck_6689_;
goto v_resetjp_6621_;
}
v_resetjp_6621_:
{
lean_object* v_ltar_x3f_6624_; 
v_ltar_x3f_6624_ = lean_ctor_get(v_a_6620_, 7);
lean_inc(v_ltar_x3f_6624_);
if (lean_obj_tag(v_ltar_x3f_6624_) == 1)
{
lean_object* v_val_6625_; lean_object* v___x_6627_; uint8_t v_isShared_6628_; uint8_t v_isSharedCheck_6666_; 
lean_del_object(v___x_6622_);
v_val_6625_ = lean_ctor_get(v_ltar_x3f_6624_, 0);
v_isSharedCheck_6666_ = !lean_is_exclusive(v_ltar_x3f_6624_);
if (v_isSharedCheck_6666_ == 0)
{
v___x_6627_ = v_ltar_x3f_6624_;
v_isShared_6628_ = v_isSharedCheck_6666_;
goto v_resetjp_6626_;
}
else
{
lean_inc(v_val_6625_);
lean_dec(v_ltar_x3f_6624_);
v___x_6627_ = lean_box(0);
v_isShared_6628_ = v_isSharedCheck_6666_;
goto v_resetjp_6626_;
}
v_resetjp_6626_:
{
lean_object* v___x_6629_; 
lean_inc_ref(v_a_6521_);
lean_inc(v_scope_x3f_6590_);
lean_inc(v_service_x3f_6589_);
v___x_6629_ = l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve___redArg(v_a_6620_, v_service_x3f_6589_, v_scope_x3f_6590_, v_a_6521_, v_a_6522_);
if (lean_obj_tag(v___x_6629_) == 0)
{
lean_object* v_a_6630_; lean_object* v_a_6631_; lean_object* v___x_6633_; 
lean_dec(v_val_6625_);
lean_dec(v_scope_x3f_6590_);
lean_dec(v_service_x3f_6589_);
lean_dec_ref(v_a_6521_);
v_a_6630_ = lean_ctor_get(v___x_6629_, 0);
lean_inc(v_a_6630_);
v_a_6631_ = lean_ctor_get(v___x_6629_, 1);
lean_inc(v_a_6631_);
lean_dec_ref(v___x_6629_);
if (v_isShared_6628_ == 0)
{
lean_ctor_set(v___x_6627_, 0, v_a_6630_);
v___x_6633_ = v___x_6627_;
goto v_reusejp_6632_;
}
else
{
lean_object* v_reuseFailAlloc_6634_; 
v_reuseFailAlloc_6634_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_6634_, 0, v_a_6630_);
v___x_6633_ = v_reuseFailAlloc_6634_;
goto v_reusejp_6632_;
}
v_reusejp_6632_:
{
v_r_6525_ = v___x_6633_;
v___y_6526_ = v_a_6631_;
goto v___jp_6524_;
}
}
else
{
lean_object* v_a_6635_; lean_object* v_a_6636_; lean_object* v_log_6637_; uint8_t v_action_6638_; uint8_t v_wantsRebuild_6639_; lean_object* v_trace_6640_; lean_object* v_buildTime_6641_; lean_object* v___x_6643_; uint8_t v_isShared_6644_; uint8_t v_isSharedCheck_6665_; 
v_a_6635_ = lean_ctor_get(v___x_6629_, 1);
lean_inc(v_a_6635_);
v_a_6636_ = lean_ctor_get(v___x_6629_, 0);
lean_inc(v_a_6636_);
lean_dec_ref(v___x_6629_);
v_log_6637_ = lean_ctor_get(v_a_6635_, 0);
v_action_6638_ = lean_ctor_get_uint8(v_a_6635_, sizeof(void*)*3);
v_wantsRebuild_6639_ = lean_ctor_get_uint8(v_a_6635_, sizeof(void*)*3 + 1);
v_trace_6640_ = lean_ctor_get(v_a_6635_, 1);
v_buildTime_6641_ = lean_ctor_get(v_a_6635_, 2);
v_isSharedCheck_6665_ = !lean_is_exclusive(v_a_6635_);
if (v_isSharedCheck_6665_ == 0)
{
v___x_6643_ = v_a_6635_;
v_isShared_6644_ = v_isSharedCheck_6665_;
goto v_resetjp_6642_;
}
else
{
lean_inc(v_buildTime_6641_);
lean_inc(v_trace_6640_);
lean_inc(v_log_6637_);
lean_dec(v_a_6635_);
v___x_6643_ = lean_box(0);
v_isShared_6644_ = v_isSharedCheck_6665_;
goto v_resetjp_6642_;
}
v_resetjp_6642_:
{
lean_object* v___x_6645_; lean_object* v___x_6647_; 
v___x_6645_ = l_Array_shrink___redArg(v_log_6637_, v_a_6636_);
lean_dec(v_a_6636_);
if (v_isShared_6644_ == 0)
{
lean_ctor_set(v___x_6643_, 0, v___x_6645_);
v___x_6647_ = v___x_6643_;
goto v_reusejp_6646_;
}
else
{
lean_object* v_reuseFailAlloc_6664_; 
v_reuseFailAlloc_6664_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_6664_, 0, v___x_6645_);
lean_ctor_set(v_reuseFailAlloc_6664_, 1, v_trace_6640_);
lean_ctor_set(v_reuseFailAlloc_6664_, 2, v_buildTime_6641_);
lean_ctor_set_uint8(v_reuseFailAlloc_6664_, sizeof(void*)*3, v_action_6638_);
lean_ctor_set_uint8(v_reuseFailAlloc_6664_, sizeof(void*)*3 + 1, v_wantsRebuild_6639_);
v___x_6647_ = v_reuseFailAlloc_6664_;
goto v_reusejp_6646_;
}
v_reusejp_6646_:
{
uint8_t v___x_6648_; lean_object* v___x_6649_; 
v___x_6648_ = 0;
v___x_6649_ = l_Lake_resolveArtifact___redArg(v_val_6625_, v_service_x3f_6589_, v_scope_x3f_6590_, v___x_6648_, v_a_6521_, v___x_6647_);
if (lean_obj_tag(v___x_6649_) == 0)
{
lean_object* v_a_6650_; lean_object* v_a_6651_; lean_object* v___x_6653_; 
v_a_6650_ = lean_ctor_get(v___x_6649_, 0);
lean_inc(v_a_6650_);
v_a_6651_ = lean_ctor_get(v___x_6649_, 1);
lean_inc(v_a_6651_);
lean_dec_ref(v___x_6649_);
if (v_isShared_6628_ == 0)
{
lean_ctor_set_tag(v___x_6627_, 0);
lean_ctor_set(v___x_6627_, 0, v_a_6650_);
v___x_6653_ = v___x_6627_;
goto v_reusejp_6652_;
}
else
{
lean_object* v_reuseFailAlloc_6654_; 
v_reuseFailAlloc_6654_ = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(v_reuseFailAlloc_6654_, 0, v_a_6650_);
v___x_6653_ = v_reuseFailAlloc_6654_;
goto v_reusejp_6652_;
}
v_reusejp_6652_:
{
v_r_6525_ = v___x_6653_;
v___y_6526_ = v_a_6651_;
goto v___jp_6524_;
}
}
else
{
lean_object* v_a_6655_; lean_object* v_a_6656_; lean_object* v___x_6658_; uint8_t v_isShared_6659_; uint8_t v_isSharedCheck_6663_; 
lean_del_object(v___x_6627_);
v_a_6655_ = lean_ctor_get(v___x_6649_, 0);
v_a_6656_ = lean_ctor_get(v___x_6649_, 1);
v_isSharedCheck_6663_ = !lean_is_exclusive(v___x_6649_);
if (v_isSharedCheck_6663_ == 0)
{
v___x_6658_ = v___x_6649_;
v_isShared_6659_ = v_isSharedCheck_6663_;
goto v_resetjp_6657_;
}
else
{
lean_inc(v_a_6656_);
lean_inc(v_a_6655_);
lean_dec(v___x_6649_);
v___x_6658_ = lean_box(0);
v_isShared_6659_ = v_isSharedCheck_6663_;
goto v_resetjp_6657_;
}
v_resetjp_6657_:
{
lean_object* v___x_6661_; 
if (v_isShared_6659_ == 0)
{
v___x_6661_ = v___x_6658_;
goto v_reusejp_6660_;
}
else
{
lean_object* v_reuseFailAlloc_6662_; 
v_reuseFailAlloc_6662_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_6662_, 0, v_a_6655_);
lean_ctor_set(v_reuseFailAlloc_6662_, 1, v_a_6656_);
v___x_6661_ = v_reuseFailAlloc_6662_;
goto v_reusejp_6660_;
}
v_reusejp_6660_:
{
return v___x_6661_;
}
}
}
}
}
}
}
}
else
{
lean_object* v___x_6667_; 
lean_dec(v_ltar_x3f_6624_);
v___x_6667_ = l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve___redArg(v_a_6620_, v_service_x3f_6589_, v_scope_x3f_6590_, v_a_6521_, v_a_6522_);
if (lean_obj_tag(v___x_6667_) == 0)
{
lean_object* v_a_6668_; lean_object* v_a_6669_; lean_object* v___x_6671_; uint8_t v_isShared_6672_; uint8_t v_isSharedCheck_6679_; 
v_a_6668_ = lean_ctor_get(v___x_6667_, 0);
v_a_6669_ = lean_ctor_get(v___x_6667_, 1);
v_isSharedCheck_6679_ = !lean_is_exclusive(v___x_6667_);
if (v_isSharedCheck_6679_ == 0)
{
v___x_6671_ = v___x_6667_;
v_isShared_6672_ = v_isSharedCheck_6679_;
goto v_resetjp_6670_;
}
else
{
lean_inc(v_a_6669_);
lean_inc(v_a_6668_);
lean_dec(v___x_6667_);
v___x_6671_ = lean_box(0);
v_isShared_6672_ = v_isSharedCheck_6679_;
goto v_resetjp_6670_;
}
v_resetjp_6670_:
{
lean_object* v___x_6674_; 
if (v_isShared_6623_ == 0)
{
lean_ctor_set(v___x_6622_, 0, v_a_6668_);
v___x_6674_ = v___x_6622_;
goto v_reusejp_6673_;
}
else
{
lean_object* v_reuseFailAlloc_6678_; 
v_reuseFailAlloc_6678_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_6678_, 0, v_a_6668_);
v___x_6674_ = v_reuseFailAlloc_6678_;
goto v_reusejp_6673_;
}
v_reusejp_6673_:
{
lean_object* v___x_6676_; 
if (v_isShared_6672_ == 0)
{
lean_ctor_set(v___x_6671_, 0, v___x_6674_);
v___x_6676_ = v___x_6671_;
goto v_reusejp_6675_;
}
else
{
lean_object* v_reuseFailAlloc_6677_; 
v_reuseFailAlloc_6677_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_6677_, 0, v___x_6674_);
lean_ctor_set(v_reuseFailAlloc_6677_, 1, v_a_6669_);
v___x_6676_ = v_reuseFailAlloc_6677_;
goto v_reusejp_6675_;
}
v_reusejp_6675_:
{
return v___x_6676_;
}
}
}
}
else
{
lean_object* v_a_6680_; lean_object* v_a_6681_; lean_object* v___x_6683_; uint8_t v_isShared_6684_; uint8_t v_isSharedCheck_6688_; 
lean_del_object(v___x_6622_);
v_a_6680_ = lean_ctor_get(v___x_6667_, 0);
v_a_6681_ = lean_ctor_get(v___x_6667_, 1);
v_isSharedCheck_6688_ = !lean_is_exclusive(v___x_6667_);
if (v_isSharedCheck_6688_ == 0)
{
v___x_6683_ = v___x_6667_;
v_isShared_6684_ = v_isSharedCheck_6688_;
goto v_resetjp_6682_;
}
else
{
lean_inc(v_a_6681_);
lean_inc(v_a_6680_);
lean_dec(v___x_6667_);
v___x_6683_ = lean_box(0);
v_isShared_6684_ = v_isSharedCheck_6688_;
goto v_resetjp_6682_;
}
v_resetjp_6682_:
{
lean_object* v___x_6686_; 
if (v_isShared_6684_ == 0)
{
v___x_6686_ = v___x_6683_;
goto v_reusejp_6685_;
}
else
{
lean_object* v_reuseFailAlloc_6687_; 
v_reuseFailAlloc_6687_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_6687_, 0, v_a_6680_);
lean_ctor_set(v_reuseFailAlloc_6687_, 1, v_a_6681_);
v___x_6686_ = v_reuseFailAlloc_6687_;
goto v_reusejp_6685_;
}
v_reusejp_6685_:
{
return v___x_6686_;
}
}
}
}
}
}
}
v___jp_6524_:
{
lean_object* v___x_6527_; 
v___x_6527_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_6527_, 0, v_r_6525_);
lean_ctor_set(v___x_6527_, 1, v___y_6526_);
return v___x_6527_;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_resolveModuleOutputs___redArg___boxed(lean_object* v_out_6690_, lean_object* v_a_6691_, lean_object* v_a_6692_, lean_object* v_a_6693_){
_start:
{
lean_object* v_res_6694_; 
v_res_6694_ = l___private_Lake_Build_Module_0__Lake_resolveModuleOutputs___redArg(v_out_6690_, v_a_6691_, v_a_6692_);
return v_res_6694_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_resolveModuleOutputs(lean_object* v_out_6695_, lean_object* v_a_6696_, lean_object* v_a_6697_, lean_object* v_a_6698_, lean_object* v_a_6699_, lean_object* v_a_6700_, lean_object* v_a_6701_){
_start:
{
lean_object* v___x_6703_; 
v___x_6703_ = l___private_Lake_Build_Module_0__Lake_resolveModuleOutputs___redArg(v_out_6695_, v_a_6700_, v_a_6701_);
return v___x_6703_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_resolveModuleOutputs___boxed(lean_object* v_out_6704_, lean_object* v_a_6705_, lean_object* v_a_6706_, lean_object* v_a_6707_, lean_object* v_a_6708_, lean_object* v_a_6709_, lean_object* v_a_6710_, lean_object* v_a_6711_){
_start:
{
lean_object* v_res_6712_; 
v_res_6712_ = l___private_Lake_Build_Module_0__Lake_resolveModuleOutputs(v_out_6704_, v_a_6705_, v_a_6706_, v_a_6707_, v_a_6708_, v_a_6709_, v_a_6710_);
lean_dec(v_a_6708_);
lean_dec(v_a_6707_);
lean_dec(v_a_6706_);
lean_dec_ref(v_a_6705_);
return v_res_6712_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cache___redArg(uint8_t v_useLocalFile_6715_, lean_object* v_file_6716_, lean_object* v_ext_6717_, lean_object* v_a_6718_, lean_object* v_a_6719_){
_start:
{
lean_object* v_toContext_6721_; lean_object* v_log_6722_; uint8_t v_action_6723_; uint8_t v_wantsRebuild_6724_; lean_object* v_trace_6725_; lean_object* v_buildTime_6726_; lean_object* v_lakeCache_6727_; uint8_t v___x_6728_; lean_object* v___x_6729_; 
v_toContext_6721_ = lean_ctor_get(v_a_6718_, 1);
lean_inc(v_toContext_6721_);
lean_dec_ref(v_a_6718_);
v_log_6722_ = lean_ctor_get(v_a_6719_, 0);
v_action_6723_ = lean_ctor_get_uint8(v_a_6719_, sizeof(void*)*3);
v_wantsRebuild_6724_ = lean_ctor_get_uint8(v_a_6719_, sizeof(void*)*3 + 1);
v_trace_6725_ = lean_ctor_get(v_a_6719_, 1);
v_buildTime_6726_ = lean_ctor_get(v_a_6719_, 2);
v_lakeCache_6727_ = lean_ctor_get(v_toContext_6721_, 3);
lean_inc_ref(v_lakeCache_6727_);
lean_dec(v_toContext_6721_);
v___x_6728_ = 0;
v___x_6729_ = l_Lake_Cache_saveArtifact(v_lakeCache_6727_, v_file_6716_, v_ext_6717_, v___x_6728_, v___x_6728_, v_useLocalFile_6715_);
if (lean_obj_tag(v___x_6729_) == 0)
{
lean_object* v_a_6730_; lean_object* v___x_6731_; 
v_a_6730_ = lean_ctor_get(v___x_6729_, 0);
lean_inc(v_a_6730_);
lean_dec_ref(v___x_6729_);
v___x_6731_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_6731_, 0, v_a_6730_);
lean_ctor_set(v___x_6731_, 1, v_a_6719_);
return v___x_6731_;
}
else
{
lean_object* v___x_6733_; uint8_t v_isShared_6734_; uint8_t v_isSharedCheck_6745_; 
lean_inc(v_buildTime_6726_);
lean_inc_ref(v_trace_6725_);
lean_inc_ref(v_log_6722_);
v_isSharedCheck_6745_ = !lean_is_exclusive(v_a_6719_);
if (v_isSharedCheck_6745_ == 0)
{
lean_object* v_unused_6746_; lean_object* v_unused_6747_; lean_object* v_unused_6748_; 
v_unused_6746_ = lean_ctor_get(v_a_6719_, 2);
lean_dec(v_unused_6746_);
v_unused_6747_ = lean_ctor_get(v_a_6719_, 1);
lean_dec(v_unused_6747_);
v_unused_6748_ = lean_ctor_get(v_a_6719_, 0);
lean_dec(v_unused_6748_);
v___x_6733_ = v_a_6719_;
v_isShared_6734_ = v_isSharedCheck_6745_;
goto v_resetjp_6732_;
}
else
{
lean_dec(v_a_6719_);
v___x_6733_ = lean_box(0);
v_isShared_6734_ = v_isSharedCheck_6745_;
goto v_resetjp_6732_;
}
v_resetjp_6732_:
{
lean_object* v_a_6735_; lean_object* v___x_6736_; uint8_t v___x_6737_; lean_object* v___x_6738_; lean_object* v___x_6739_; lean_object* v___x_6740_; lean_object* v___x_6742_; 
v_a_6735_ = lean_ctor_get(v___x_6729_, 0);
lean_inc(v_a_6735_);
lean_dec_ref(v___x_6729_);
v___x_6736_ = lean_io_error_to_string(v_a_6735_);
v___x_6737_ = 3;
v___x_6738_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_6738_, 0, v___x_6736_);
lean_ctor_set_uint8(v___x_6738_, sizeof(void*)*1, v___x_6737_);
v___x_6739_ = lean_array_get_size(v_log_6722_);
v___x_6740_ = lean_array_push(v_log_6722_, v___x_6738_);
if (v_isShared_6734_ == 0)
{
lean_ctor_set(v___x_6733_, 0, v___x_6740_);
v___x_6742_ = v___x_6733_;
goto v_reusejp_6741_;
}
else
{
lean_object* v_reuseFailAlloc_6744_; 
v_reuseFailAlloc_6744_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_6744_, 0, v___x_6740_);
lean_ctor_set(v_reuseFailAlloc_6744_, 1, v_trace_6725_);
lean_ctor_set(v_reuseFailAlloc_6744_, 2, v_buildTime_6726_);
lean_ctor_set_uint8(v_reuseFailAlloc_6744_, sizeof(void*)*3, v_action_6723_);
lean_ctor_set_uint8(v_reuseFailAlloc_6744_, sizeof(void*)*3 + 1, v_wantsRebuild_6724_);
v___x_6742_ = v_reuseFailAlloc_6744_;
goto v_reusejp_6741_;
}
v_reusejp_6741_:
{
lean_object* v___x_6743_; 
v___x_6743_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_6743_, 0, v___x_6739_);
lean_ctor_set(v___x_6743_, 1, v___x_6742_);
return v___x_6743_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cache___redArg___boxed(lean_object* v_useLocalFile_6749_, lean_object* v_file_6750_, lean_object* v_ext_6751_, lean_object* v_a_6752_, lean_object* v_a_6753_, lean_object* v_a_6754_){
_start:
{
uint8_t v_useLocalFile_boxed_6755_; lean_object* v_res_6756_; 
v_useLocalFile_boxed_6755_ = lean_unbox(v_useLocalFile_6749_);
v_res_6756_ = l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cache___redArg(v_useLocalFile_boxed_6755_, v_file_6750_, v_ext_6751_, v_a_6752_, v_a_6753_);
return v_res_6756_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cache(uint8_t v_useLocalFile_6757_, lean_object* v_file_6758_, lean_object* v_ext_6759_, lean_object* v_a_6760_, lean_object* v_a_6761_, lean_object* v_a_6762_, lean_object* v_a_6763_, lean_object* v_a_6764_, lean_object* v_a_6765_){
_start:
{
lean_object* v_toContext_6767_; lean_object* v_log_6768_; uint8_t v_action_6769_; uint8_t v_wantsRebuild_6770_; lean_object* v_trace_6771_; lean_object* v_buildTime_6772_; lean_object* v_lakeCache_6773_; uint8_t v___x_6774_; lean_object* v___x_6775_; 
v_toContext_6767_ = lean_ctor_get(v_a_6764_, 1);
lean_inc(v_toContext_6767_);
lean_dec_ref(v_a_6764_);
v_log_6768_ = lean_ctor_get(v_a_6765_, 0);
v_action_6769_ = lean_ctor_get_uint8(v_a_6765_, sizeof(void*)*3);
v_wantsRebuild_6770_ = lean_ctor_get_uint8(v_a_6765_, sizeof(void*)*3 + 1);
v_trace_6771_ = lean_ctor_get(v_a_6765_, 1);
v_buildTime_6772_ = lean_ctor_get(v_a_6765_, 2);
v_lakeCache_6773_ = lean_ctor_get(v_toContext_6767_, 3);
lean_inc_ref(v_lakeCache_6773_);
lean_dec(v_toContext_6767_);
v___x_6774_ = 0;
v___x_6775_ = l_Lake_Cache_saveArtifact(v_lakeCache_6773_, v_file_6758_, v_ext_6759_, v___x_6774_, v___x_6774_, v_useLocalFile_6757_);
if (lean_obj_tag(v___x_6775_) == 0)
{
lean_object* v_a_6776_; lean_object* v___x_6777_; 
v_a_6776_ = lean_ctor_get(v___x_6775_, 0);
lean_inc(v_a_6776_);
lean_dec_ref(v___x_6775_);
v___x_6777_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_6777_, 0, v_a_6776_);
lean_ctor_set(v___x_6777_, 1, v_a_6765_);
return v___x_6777_;
}
else
{
lean_object* v___x_6779_; uint8_t v_isShared_6780_; uint8_t v_isSharedCheck_6791_; 
lean_inc(v_buildTime_6772_);
lean_inc_ref(v_trace_6771_);
lean_inc_ref(v_log_6768_);
v_isSharedCheck_6791_ = !lean_is_exclusive(v_a_6765_);
if (v_isSharedCheck_6791_ == 0)
{
lean_object* v_unused_6792_; lean_object* v_unused_6793_; lean_object* v_unused_6794_; 
v_unused_6792_ = lean_ctor_get(v_a_6765_, 2);
lean_dec(v_unused_6792_);
v_unused_6793_ = lean_ctor_get(v_a_6765_, 1);
lean_dec(v_unused_6793_);
v_unused_6794_ = lean_ctor_get(v_a_6765_, 0);
lean_dec(v_unused_6794_);
v___x_6779_ = v_a_6765_;
v_isShared_6780_ = v_isSharedCheck_6791_;
goto v_resetjp_6778_;
}
else
{
lean_dec(v_a_6765_);
v___x_6779_ = lean_box(0);
v_isShared_6780_ = v_isSharedCheck_6791_;
goto v_resetjp_6778_;
}
v_resetjp_6778_:
{
lean_object* v_a_6781_; lean_object* v___x_6782_; uint8_t v___x_6783_; lean_object* v___x_6784_; lean_object* v___x_6785_; lean_object* v___x_6786_; lean_object* v___x_6788_; 
v_a_6781_ = lean_ctor_get(v___x_6775_, 0);
lean_inc(v_a_6781_);
lean_dec_ref(v___x_6775_);
v___x_6782_ = lean_io_error_to_string(v_a_6781_);
v___x_6783_ = 3;
v___x_6784_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_6784_, 0, v___x_6782_);
lean_ctor_set_uint8(v___x_6784_, sizeof(void*)*1, v___x_6783_);
v___x_6785_ = lean_array_get_size(v_log_6768_);
v___x_6786_ = lean_array_push(v_log_6768_, v___x_6784_);
if (v_isShared_6780_ == 0)
{
lean_ctor_set(v___x_6779_, 0, v___x_6786_);
v___x_6788_ = v___x_6779_;
goto v_reusejp_6787_;
}
else
{
lean_object* v_reuseFailAlloc_6790_; 
v_reuseFailAlloc_6790_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_6790_, 0, v___x_6786_);
lean_ctor_set(v_reuseFailAlloc_6790_, 1, v_trace_6771_);
lean_ctor_set(v_reuseFailAlloc_6790_, 2, v_buildTime_6772_);
lean_ctor_set_uint8(v_reuseFailAlloc_6790_, sizeof(void*)*3, v_action_6769_);
lean_ctor_set_uint8(v_reuseFailAlloc_6790_, sizeof(void*)*3 + 1, v_wantsRebuild_6770_);
v___x_6788_ = v_reuseFailAlloc_6790_;
goto v_reusejp_6787_;
}
v_reusejp_6787_:
{
lean_object* v___x_6789_; 
v___x_6789_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_6789_, 0, v___x_6785_);
lean_ctor_set(v___x_6789_, 1, v___x_6788_);
return v___x_6789_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cache___boxed(lean_object* v_useLocalFile_6795_, lean_object* v_file_6796_, lean_object* v_ext_6797_, lean_object* v_a_6798_, lean_object* v_a_6799_, lean_object* v_a_6800_, lean_object* v_a_6801_, lean_object* v_a_6802_, lean_object* v_a_6803_, lean_object* v_a_6804_){
_start:
{
uint8_t v_useLocalFile_boxed_6805_; lean_object* v_res_6806_; 
v_useLocalFile_boxed_6805_ = lean_unbox(v_useLocalFile_6795_);
v_res_6806_ = l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cache(v_useLocalFile_boxed_6805_, v_file_6796_, v_ext_6797_, v_a_6798_, v_a_6799_, v_a_6800_, v_a_6801_, v_a_6802_, v_a_6803_);
lean_dec(v_a_6801_);
lean_dec(v_a_6800_);
lean_dec(v_a_6799_);
lean_dec_ref(v_a_6798_);
return v_res_6806_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f___redArg(uint8_t v_useLocalFile_6807_, uint8_t v_c_6808_, lean_object* v_art_6809_, lean_object* v_ext_6810_, lean_object* v_a_6811_, lean_object* v_a_6812_){
_start:
{
if (v_c_6808_ == 0)
{
lean_object* v___x_6814_; lean_object* v___x_6815_; 
lean_dec_ref(v_a_6811_);
lean_dec_ref(v_ext_6810_);
lean_dec_ref(v_art_6809_);
v___x_6814_ = lean_box(0);
v___x_6815_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_6815_, 0, v___x_6814_);
lean_ctor_set(v___x_6815_, 1, v_a_6812_);
return v___x_6815_;
}
else
{
lean_object* v_toContext_6816_; lean_object* v_log_6817_; uint8_t v_action_6818_; uint8_t v_wantsRebuild_6819_; lean_object* v_trace_6820_; lean_object* v_buildTime_6821_; lean_object* v_lakeCache_6822_; uint8_t v___x_6823_; lean_object* v___x_6824_; 
v_toContext_6816_ = lean_ctor_get(v_a_6811_, 1);
lean_inc(v_toContext_6816_);
lean_dec_ref(v_a_6811_);
v_log_6817_ = lean_ctor_get(v_a_6812_, 0);
v_action_6818_ = lean_ctor_get_uint8(v_a_6812_, sizeof(void*)*3);
v_wantsRebuild_6819_ = lean_ctor_get_uint8(v_a_6812_, sizeof(void*)*3 + 1);
v_trace_6820_ = lean_ctor_get(v_a_6812_, 1);
v_buildTime_6821_ = lean_ctor_get(v_a_6812_, 2);
v_lakeCache_6822_ = lean_ctor_get(v_toContext_6816_, 3);
lean_inc_ref(v_lakeCache_6822_);
lean_dec(v_toContext_6816_);
v___x_6823_ = 0;
v___x_6824_ = l_Lake_Cache_saveArtifact(v_lakeCache_6822_, v_art_6809_, v_ext_6810_, v___x_6823_, v___x_6823_, v_useLocalFile_6807_);
if (lean_obj_tag(v___x_6824_) == 0)
{
lean_object* v_a_6825_; lean_object* v___x_6827_; uint8_t v_isShared_6828_; uint8_t v_isSharedCheck_6833_; 
v_a_6825_ = lean_ctor_get(v___x_6824_, 0);
v_isSharedCheck_6833_ = !lean_is_exclusive(v___x_6824_);
if (v_isSharedCheck_6833_ == 0)
{
v___x_6827_ = v___x_6824_;
v_isShared_6828_ = v_isSharedCheck_6833_;
goto v_resetjp_6826_;
}
else
{
lean_inc(v_a_6825_);
lean_dec(v___x_6824_);
v___x_6827_ = lean_box(0);
v_isShared_6828_ = v_isSharedCheck_6833_;
goto v_resetjp_6826_;
}
v_resetjp_6826_:
{
lean_object* v___x_6830_; 
if (v_isShared_6828_ == 0)
{
lean_ctor_set_tag(v___x_6827_, 1);
v___x_6830_ = v___x_6827_;
goto v_reusejp_6829_;
}
else
{
lean_object* v_reuseFailAlloc_6832_; 
v_reuseFailAlloc_6832_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_6832_, 0, v_a_6825_);
v___x_6830_ = v_reuseFailAlloc_6832_;
goto v_reusejp_6829_;
}
v_reusejp_6829_:
{
lean_object* v___x_6831_; 
v___x_6831_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_6831_, 0, v___x_6830_);
lean_ctor_set(v___x_6831_, 1, v_a_6812_);
return v___x_6831_;
}
}
}
else
{
lean_object* v___x_6835_; uint8_t v_isShared_6836_; uint8_t v_isSharedCheck_6847_; 
lean_inc(v_buildTime_6821_);
lean_inc_ref(v_trace_6820_);
lean_inc_ref(v_log_6817_);
v_isSharedCheck_6847_ = !lean_is_exclusive(v_a_6812_);
if (v_isSharedCheck_6847_ == 0)
{
lean_object* v_unused_6848_; lean_object* v_unused_6849_; lean_object* v_unused_6850_; 
v_unused_6848_ = lean_ctor_get(v_a_6812_, 2);
lean_dec(v_unused_6848_);
v_unused_6849_ = lean_ctor_get(v_a_6812_, 1);
lean_dec(v_unused_6849_);
v_unused_6850_ = lean_ctor_get(v_a_6812_, 0);
lean_dec(v_unused_6850_);
v___x_6835_ = v_a_6812_;
v_isShared_6836_ = v_isSharedCheck_6847_;
goto v_resetjp_6834_;
}
else
{
lean_dec(v_a_6812_);
v___x_6835_ = lean_box(0);
v_isShared_6836_ = v_isSharedCheck_6847_;
goto v_resetjp_6834_;
}
v_resetjp_6834_:
{
lean_object* v_a_6837_; lean_object* v___x_6838_; uint8_t v___x_6839_; lean_object* v___x_6840_; lean_object* v___x_6841_; lean_object* v___x_6842_; lean_object* v___x_6844_; 
v_a_6837_ = lean_ctor_get(v___x_6824_, 0);
lean_inc(v_a_6837_);
lean_dec_ref(v___x_6824_);
v___x_6838_ = lean_io_error_to_string(v_a_6837_);
v___x_6839_ = 3;
v___x_6840_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_6840_, 0, v___x_6838_);
lean_ctor_set_uint8(v___x_6840_, sizeof(void*)*1, v___x_6839_);
v___x_6841_ = lean_array_get_size(v_log_6817_);
v___x_6842_ = lean_array_push(v_log_6817_, v___x_6840_);
if (v_isShared_6836_ == 0)
{
lean_ctor_set(v___x_6835_, 0, v___x_6842_);
v___x_6844_ = v___x_6835_;
goto v_reusejp_6843_;
}
else
{
lean_object* v_reuseFailAlloc_6846_; 
v_reuseFailAlloc_6846_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_6846_, 0, v___x_6842_);
lean_ctor_set(v_reuseFailAlloc_6846_, 1, v_trace_6820_);
lean_ctor_set(v_reuseFailAlloc_6846_, 2, v_buildTime_6821_);
lean_ctor_set_uint8(v_reuseFailAlloc_6846_, sizeof(void*)*3, v_action_6818_);
lean_ctor_set_uint8(v_reuseFailAlloc_6846_, sizeof(void*)*3 + 1, v_wantsRebuild_6819_);
v___x_6844_ = v_reuseFailAlloc_6846_;
goto v_reusejp_6843_;
}
v_reusejp_6843_:
{
lean_object* v___x_6845_; 
v___x_6845_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_6845_, 0, v___x_6841_);
lean_ctor_set(v___x_6845_, 1, v___x_6844_);
return v___x_6845_;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f___redArg___boxed(lean_object* v_useLocalFile_6851_, lean_object* v_c_6852_, lean_object* v_art_6853_, lean_object* v_ext_6854_, lean_object* v_a_6855_, lean_object* v_a_6856_, lean_object* v_a_6857_){
_start:
{
uint8_t v_useLocalFile_boxed_6858_; uint8_t v_c_boxed_6859_; lean_object* v_res_6860_; 
v_useLocalFile_boxed_6858_ = lean_unbox(v_useLocalFile_6851_);
v_c_boxed_6859_ = lean_unbox(v_c_6852_);
v_res_6860_ = l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f___redArg(v_useLocalFile_boxed_6858_, v_c_boxed_6859_, v_art_6853_, v_ext_6854_, v_a_6855_, v_a_6856_);
return v_res_6860_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f(uint8_t v_useLocalFile_6861_, uint8_t v_c_6862_, lean_object* v_art_6863_, lean_object* v_ext_6864_, lean_object* v_a_6865_, lean_object* v_a_6866_, lean_object* v_a_6867_, lean_object* v_a_6868_, lean_object* v_a_6869_, lean_object* v_a_6870_){
_start:
{
if (v_c_6862_ == 0)
{
lean_object* v___x_6872_; lean_object* v___x_6873_; 
lean_dec_ref(v_a_6869_);
lean_dec_ref(v_ext_6864_);
lean_dec_ref(v_art_6863_);
v___x_6872_ = lean_box(0);
v___x_6873_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_6873_, 0, v___x_6872_);
lean_ctor_set(v___x_6873_, 1, v_a_6870_);
return v___x_6873_;
}
else
{
lean_object* v_toContext_6874_; lean_object* v_log_6875_; uint8_t v_action_6876_; uint8_t v_wantsRebuild_6877_; lean_object* v_trace_6878_; lean_object* v_buildTime_6879_; lean_object* v_lakeCache_6880_; uint8_t v___x_6881_; lean_object* v___x_6882_; 
v_toContext_6874_ = lean_ctor_get(v_a_6869_, 1);
lean_inc(v_toContext_6874_);
lean_dec_ref(v_a_6869_);
v_log_6875_ = lean_ctor_get(v_a_6870_, 0);
v_action_6876_ = lean_ctor_get_uint8(v_a_6870_, sizeof(void*)*3);
v_wantsRebuild_6877_ = lean_ctor_get_uint8(v_a_6870_, sizeof(void*)*3 + 1);
v_trace_6878_ = lean_ctor_get(v_a_6870_, 1);
v_buildTime_6879_ = lean_ctor_get(v_a_6870_, 2);
v_lakeCache_6880_ = lean_ctor_get(v_toContext_6874_, 3);
lean_inc_ref(v_lakeCache_6880_);
lean_dec(v_toContext_6874_);
v___x_6881_ = 0;
v___x_6882_ = l_Lake_Cache_saveArtifact(v_lakeCache_6880_, v_art_6863_, v_ext_6864_, v___x_6881_, v___x_6881_, v_useLocalFile_6861_);
if (lean_obj_tag(v___x_6882_) == 0)
{
lean_object* v_a_6883_; lean_object* v___x_6885_; uint8_t v_isShared_6886_; uint8_t v_isSharedCheck_6891_; 
v_a_6883_ = lean_ctor_get(v___x_6882_, 0);
v_isSharedCheck_6891_ = !lean_is_exclusive(v___x_6882_);
if (v_isSharedCheck_6891_ == 0)
{
v___x_6885_ = v___x_6882_;
v_isShared_6886_ = v_isSharedCheck_6891_;
goto v_resetjp_6884_;
}
else
{
lean_inc(v_a_6883_);
lean_dec(v___x_6882_);
v___x_6885_ = lean_box(0);
v_isShared_6886_ = v_isSharedCheck_6891_;
goto v_resetjp_6884_;
}
v_resetjp_6884_:
{
lean_object* v___x_6888_; 
if (v_isShared_6886_ == 0)
{
lean_ctor_set_tag(v___x_6885_, 1);
v___x_6888_ = v___x_6885_;
goto v_reusejp_6887_;
}
else
{
lean_object* v_reuseFailAlloc_6890_; 
v_reuseFailAlloc_6890_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_6890_, 0, v_a_6883_);
v___x_6888_ = v_reuseFailAlloc_6890_;
goto v_reusejp_6887_;
}
v_reusejp_6887_:
{
lean_object* v___x_6889_; 
v___x_6889_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_6889_, 0, v___x_6888_);
lean_ctor_set(v___x_6889_, 1, v_a_6870_);
return v___x_6889_;
}
}
}
else
{
lean_object* v___x_6893_; uint8_t v_isShared_6894_; uint8_t v_isSharedCheck_6905_; 
lean_inc(v_buildTime_6879_);
lean_inc_ref(v_trace_6878_);
lean_inc_ref(v_log_6875_);
v_isSharedCheck_6905_ = !lean_is_exclusive(v_a_6870_);
if (v_isSharedCheck_6905_ == 0)
{
lean_object* v_unused_6906_; lean_object* v_unused_6907_; lean_object* v_unused_6908_; 
v_unused_6906_ = lean_ctor_get(v_a_6870_, 2);
lean_dec(v_unused_6906_);
v_unused_6907_ = lean_ctor_get(v_a_6870_, 1);
lean_dec(v_unused_6907_);
v_unused_6908_ = lean_ctor_get(v_a_6870_, 0);
lean_dec(v_unused_6908_);
v___x_6893_ = v_a_6870_;
v_isShared_6894_ = v_isSharedCheck_6905_;
goto v_resetjp_6892_;
}
else
{
lean_dec(v_a_6870_);
v___x_6893_ = lean_box(0);
v_isShared_6894_ = v_isSharedCheck_6905_;
goto v_resetjp_6892_;
}
v_resetjp_6892_:
{
lean_object* v_a_6895_; lean_object* v___x_6896_; uint8_t v___x_6897_; lean_object* v___x_6898_; lean_object* v___x_6899_; lean_object* v___x_6900_; lean_object* v___x_6902_; 
v_a_6895_ = lean_ctor_get(v___x_6882_, 0);
lean_inc(v_a_6895_);
lean_dec_ref(v___x_6882_);
v___x_6896_ = lean_io_error_to_string(v_a_6895_);
v___x_6897_ = 3;
v___x_6898_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_6898_, 0, v___x_6896_);
lean_ctor_set_uint8(v___x_6898_, sizeof(void*)*1, v___x_6897_);
v___x_6899_ = lean_array_get_size(v_log_6875_);
v___x_6900_ = lean_array_push(v_log_6875_, v___x_6898_);
if (v_isShared_6894_ == 0)
{
lean_ctor_set(v___x_6893_, 0, v___x_6900_);
v___x_6902_ = v___x_6893_;
goto v_reusejp_6901_;
}
else
{
lean_object* v_reuseFailAlloc_6904_; 
v_reuseFailAlloc_6904_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_6904_, 0, v___x_6900_);
lean_ctor_set(v_reuseFailAlloc_6904_, 1, v_trace_6878_);
lean_ctor_set(v_reuseFailAlloc_6904_, 2, v_buildTime_6879_);
lean_ctor_set_uint8(v_reuseFailAlloc_6904_, sizeof(void*)*3, v_action_6876_);
lean_ctor_set_uint8(v_reuseFailAlloc_6904_, sizeof(void*)*3 + 1, v_wantsRebuild_6877_);
v___x_6902_ = v_reuseFailAlloc_6904_;
goto v_reusejp_6901_;
}
v_reusejp_6901_:
{
lean_object* v___x_6903_; 
v___x_6903_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_6903_, 0, v___x_6899_);
lean_ctor_set(v___x_6903_, 1, v___x_6902_);
return v___x_6903_;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f___boxed(lean_object* v_useLocalFile_6909_, lean_object* v_c_6910_, lean_object* v_art_6911_, lean_object* v_ext_6912_, lean_object* v_a_6913_, lean_object* v_a_6914_, lean_object* v_a_6915_, lean_object* v_a_6916_, lean_object* v_a_6917_, lean_object* v_a_6918_, lean_object* v_a_6919_){
_start:
{
uint8_t v_useLocalFile_boxed_6920_; uint8_t v_c_boxed_6921_; lean_object* v_res_6922_; 
v_useLocalFile_boxed_6920_ = lean_unbox(v_useLocalFile_6909_);
v_c_boxed_6921_ = lean_unbox(v_c_6910_);
v_res_6922_ = l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f(v_useLocalFile_boxed_6920_, v_c_boxed_6921_, v_art_6911_, v_ext_6912_, v_a_6913_, v_a_6914_, v_a_6915_, v_a_6916_, v_a_6917_, v_a_6918_);
lean_dec(v_a_6916_);
lean_dec(v_a_6915_);
lean_dec(v_a_6914_);
lean_dec_ref(v_a_6913_);
return v_res_6922_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts___redArg(lean_object* v_mod_6923_, uint8_t v_isModule_6924_, uint8_t v_useLocalFile_6925_, lean_object* v_a_6926_, lean_object* v_a_6927_){
_start:
{
lean_object* v_lib_6929_; lean_object* v_pkg_6930_; lean_object* v_config_6931_; lean_object* v_toContext_6932_; lean_object* v_name_6933_; lean_object* v___x_6935_; uint8_t v_isShared_6936_; uint8_t v_isSharedCheck_7198_; 
v_lib_6929_ = lean_ctor_get(v_mod_6923_, 0);
v_pkg_6930_ = lean_ctor_get(v_lib_6929_, 0);
lean_inc_ref(v_pkg_6930_);
v_config_6931_ = lean_ctor_get(v_pkg_6930_, 6);
lean_inc_ref(v_config_6931_);
v_toContext_6932_ = lean_ctor_get(v_a_6926_, 1);
lean_inc(v_toContext_6932_);
lean_dec_ref(v_a_6926_);
v_name_6933_ = lean_ctor_get(v_mod_6923_, 1);
v_isSharedCheck_7198_ = !lean_is_exclusive(v_mod_6923_);
if (v_isSharedCheck_7198_ == 0)
{
lean_object* v_unused_7199_; 
v_unused_7199_ = lean_ctor_get(v_mod_6923_, 0);
lean_dec(v_unused_7199_);
v___x_6935_ = v_mod_6923_;
v_isShared_6936_ = v_isSharedCheck_7198_;
goto v_resetjp_6934_;
}
else
{
lean_inc(v_name_6933_);
lean_dec(v_mod_6923_);
v___x_6935_ = lean_box(0);
v_isShared_6936_ = v_isSharedCheck_7198_;
goto v_resetjp_6934_;
}
v_resetjp_6934_:
{
lean_object* v_dir_6937_; lean_object* v_buildDir_6938_; lean_object* v_leanLibDir_6939_; lean_object* v_irDir_6940_; lean_object* v_log_6941_; uint8_t v_action_6942_; uint8_t v_wantsRebuild_6943_; lean_object* v_trace_6944_; lean_object* v_buildTime_6945_; lean_object* v_lakeCache_6946_; lean_object* v___x_6947_; lean_object* v___x_6948_; lean_object* v___x_6949_; lean_object* v___x_6950_; lean_object* v___x_6951_; lean_object* v___x_6952_; uint8_t v___x_6953_; lean_object* v___x_6954_; 
v_dir_6937_ = lean_ctor_get(v_pkg_6930_, 4);
lean_inc_ref(v_dir_6937_);
lean_dec_ref(v_pkg_6930_);
v_buildDir_6938_ = lean_ctor_get(v_config_6931_, 6);
lean_inc_ref(v_buildDir_6938_);
v_leanLibDir_6939_ = lean_ctor_get(v_config_6931_, 7);
lean_inc_ref(v_leanLibDir_6939_);
v_irDir_6940_ = lean_ctor_get(v_config_6931_, 10);
lean_inc_ref(v_irDir_6940_);
lean_dec_ref(v_config_6931_);
v_log_6941_ = lean_ctor_get(v_a_6927_, 0);
v_action_6942_ = lean_ctor_get_uint8(v_a_6927_, sizeof(void*)*3);
v_wantsRebuild_6943_ = lean_ctor_get_uint8(v_a_6927_, sizeof(void*)*3 + 1);
v_trace_6944_ = lean_ctor_get(v_a_6927_, 1);
v_buildTime_6945_ = lean_ctor_get(v_a_6927_, 2);
v_lakeCache_6946_ = lean_ctor_get(v_toContext_6932_, 3);
lean_inc_ref(v_lakeCache_6946_);
lean_dec(v_toContext_6932_);
v___x_6947_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__2));
v___x_6948_ = l_System_FilePath_normalize(v_buildDir_6938_);
v___x_6949_ = l_Lake_joinRelative(v_dir_6937_, v___x_6948_);
v___x_6950_ = l_System_FilePath_normalize(v_leanLibDir_6939_);
lean_inc_ref(v___x_6949_);
v___x_6951_ = l_Lake_joinRelative(v___x_6949_, v___x_6950_);
lean_inc(v_name_6933_);
v___x_6952_ = l_Lean_modToFilePath(v___x_6951_, v_name_6933_, v___x_6947_);
v___x_6953_ = 0;
lean_inc_ref(v_lakeCache_6946_);
v___x_6954_ = l_Lake_Cache_saveArtifact(v_lakeCache_6946_, v___x_6952_, v___x_6947_, v___x_6953_, v___x_6953_, v_useLocalFile_6925_);
if (lean_obj_tag(v___x_6954_) == 0)
{
lean_object* v_a_6955_; lean_object* v___y_6957_; lean_object* v___y_6958_; lean_object* v___y_6959_; lean_object* v___y_6960_; lean_object* v___y_6961_; lean_object* v___y_6962_; lean_object* v_a_6963_; lean_object* v_a_6964_; lean_object* v___y_6970_; lean_object* v___y_6971_; lean_object* v___y_6972_; lean_object* v___y_6973_; lean_object* v___y_6974_; lean_object* v___y_6975_; lean_object* v_a_6976_; lean_object* v_a_6977_; lean_object* v___y_7014_; lean_object* v___y_7015_; lean_object* v_a_7016_; lean_object* v_a_7017_; lean_object* v_log_7018_; uint8_t v_action_7019_; uint8_t v_wantsRebuild_7020_; lean_object* v_trace_7021_; lean_object* v_buildTime_7022_; lean_object* v___y_7071_; lean_object* v_a_7072_; lean_object* v_a_7073_; lean_object* v_a_7114_; lean_object* v_a_7115_; 
v_a_6955_ = lean_ctor_get(v___x_6954_, 0);
lean_inc(v_a_6955_);
lean_dec_ref(v___x_6954_);
if (v_isModule_6924_ == 0)
{
lean_object* v___x_7150_; 
v___x_7150_ = lean_box(0);
v_a_7114_ = v___x_7150_;
v_a_7115_ = v_a_6927_;
goto v___jp_7113_;
}
else
{
lean_object* v___x_7151_; lean_object* v___x_7152_; lean_object* v___x_7153_; 
v___x_7151_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__3));
lean_inc(v_name_6933_);
v___x_7152_ = l_Lean_modToFilePath(v___x_6951_, v_name_6933_, v___x_7151_);
lean_inc_ref(v_lakeCache_6946_);
v___x_7153_ = l_Lake_Cache_saveArtifact(v_lakeCache_6946_, v___x_7152_, v___x_7151_, v___x_6953_, v___x_6953_, v_useLocalFile_6925_);
if (lean_obj_tag(v___x_7153_) == 0)
{
lean_object* v_a_7154_; lean_object* v___x_7156_; uint8_t v_isShared_7157_; uint8_t v_isSharedCheck_7161_; 
v_a_7154_ = lean_ctor_get(v___x_7153_, 0);
v_isSharedCheck_7161_ = !lean_is_exclusive(v___x_7153_);
if (v_isSharedCheck_7161_ == 0)
{
v___x_7156_ = v___x_7153_;
v_isShared_7157_ = v_isSharedCheck_7161_;
goto v_resetjp_7155_;
}
else
{
lean_inc(v_a_7154_);
lean_dec(v___x_7153_);
v___x_7156_ = lean_box(0);
v_isShared_7157_ = v_isSharedCheck_7161_;
goto v_resetjp_7155_;
}
v_resetjp_7155_:
{
lean_object* v___x_7159_; 
if (v_isShared_7157_ == 0)
{
lean_ctor_set_tag(v___x_7156_, 1);
v___x_7159_ = v___x_7156_;
goto v_reusejp_7158_;
}
else
{
lean_object* v_reuseFailAlloc_7160_; 
v_reuseFailAlloc_7160_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_7160_, 0, v_a_7154_);
v___x_7159_ = v_reuseFailAlloc_7160_;
goto v_reusejp_7158_;
}
v_reusejp_7158_:
{
v_a_7114_ = v___x_7159_;
v_a_7115_ = v_a_6927_;
goto v___jp_7113_;
}
}
}
else
{
lean_object* v___x_7163_; uint8_t v_isShared_7164_; uint8_t v_isSharedCheck_7175_; 
lean_inc(v_buildTime_6945_);
lean_inc_ref(v_trace_6944_);
lean_inc_ref(v_log_6941_);
lean_dec(v_a_6955_);
lean_dec_ref(v___x_6951_);
lean_dec_ref(v___x_6949_);
lean_dec_ref(v_lakeCache_6946_);
lean_dec_ref(v_irDir_6940_);
lean_del_object(v___x_6935_);
lean_dec(v_name_6933_);
v_isSharedCheck_7175_ = !lean_is_exclusive(v_a_6927_);
if (v_isSharedCheck_7175_ == 0)
{
lean_object* v_unused_7176_; lean_object* v_unused_7177_; lean_object* v_unused_7178_; 
v_unused_7176_ = lean_ctor_get(v_a_6927_, 2);
lean_dec(v_unused_7176_);
v_unused_7177_ = lean_ctor_get(v_a_6927_, 1);
lean_dec(v_unused_7177_);
v_unused_7178_ = lean_ctor_get(v_a_6927_, 0);
lean_dec(v_unused_7178_);
v___x_7163_ = v_a_6927_;
v_isShared_7164_ = v_isSharedCheck_7175_;
goto v_resetjp_7162_;
}
else
{
lean_dec(v_a_6927_);
v___x_7163_ = lean_box(0);
v_isShared_7164_ = v_isSharedCheck_7175_;
goto v_resetjp_7162_;
}
v_resetjp_7162_:
{
lean_object* v_a_7165_; lean_object* v___x_7166_; uint8_t v___x_7167_; lean_object* v___x_7168_; lean_object* v___x_7169_; lean_object* v___x_7170_; lean_object* v___x_7172_; 
v_a_7165_ = lean_ctor_get(v___x_7153_, 0);
lean_inc(v_a_7165_);
lean_dec_ref(v___x_7153_);
v___x_7166_ = lean_io_error_to_string(v_a_7165_);
v___x_7167_ = 3;
v___x_7168_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_7168_, 0, v___x_7166_);
lean_ctor_set_uint8(v___x_7168_, sizeof(void*)*1, v___x_7167_);
v___x_7169_ = lean_array_get_size(v_log_6941_);
v___x_7170_ = lean_array_push(v_log_6941_, v___x_7168_);
if (v_isShared_7164_ == 0)
{
lean_ctor_set(v___x_7163_, 0, v___x_7170_);
v___x_7172_ = v___x_7163_;
goto v_reusejp_7171_;
}
else
{
lean_object* v_reuseFailAlloc_7174_; 
v_reuseFailAlloc_7174_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_7174_, 0, v___x_7170_);
lean_ctor_set(v_reuseFailAlloc_7174_, 1, v_trace_6944_);
lean_ctor_set(v_reuseFailAlloc_7174_, 2, v_buildTime_6945_);
lean_ctor_set_uint8(v_reuseFailAlloc_7174_, sizeof(void*)*3, v_action_6942_);
lean_ctor_set_uint8(v_reuseFailAlloc_7174_, sizeof(void*)*3 + 1, v_wantsRebuild_6943_);
v___x_7172_ = v_reuseFailAlloc_7174_;
goto v_reusejp_7171_;
}
v_reusejp_7171_:
{
lean_object* v___x_7173_; 
v___x_7173_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_7173_, 0, v___x_7169_);
lean_ctor_set(v___x_7173_, 1, v___x_7172_);
return v___x_7173_;
}
}
}
}
v___jp_6956_:
{
lean_object* v___x_6965_; lean_object* v___x_6967_; 
v___x_6965_ = lean_alloc_ctor(0, 8, 1);
lean_ctor_set(v___x_6965_, 0, v_a_6955_);
lean_ctor_set(v___x_6965_, 1, v___y_6962_);
lean_ctor_set(v___x_6965_, 2, v___y_6958_);
lean_ctor_set(v___x_6965_, 3, v___y_6957_);
lean_ctor_set(v___x_6965_, 4, v___y_6959_);
lean_ctor_set(v___x_6965_, 5, v___y_6961_);
lean_ctor_set(v___x_6965_, 6, v___y_6960_);
lean_ctor_set(v___x_6965_, 7, v_a_6963_);
lean_ctor_set_uint8(v___x_6965_, sizeof(void*)*8, v_isModule_6924_);
if (v_isShared_6936_ == 0)
{
lean_ctor_set(v___x_6935_, 1, v_a_6964_);
lean_ctor_set(v___x_6935_, 0, v___x_6965_);
v___x_6967_ = v___x_6935_;
goto v_reusejp_6966_;
}
else
{
lean_object* v_reuseFailAlloc_6968_; 
v_reuseFailAlloc_6968_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_6968_, 0, v___x_6965_);
lean_ctor_set(v_reuseFailAlloc_6968_, 1, v_a_6964_);
v___x_6967_ = v_reuseFailAlloc_6968_;
goto v_reusejp_6966_;
}
v_reusejp_6966_:
{
return v___x_6967_;
}
}
v___jp_6969_:
{
lean_object* v___x_6978_; lean_object* v___x_6979_; uint8_t v___x_6980_; 
v___x_6978_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__1));
v___x_6979_ = l_Lean_modToFilePath(v___y_6973_, v_name_6933_, v___x_6978_);
lean_dec_ref(v___y_6973_);
v___x_6980_ = l_System_FilePath_pathExists(v___x_6979_);
if (v___x_6980_ == 0)
{
lean_object* v___x_6981_; 
lean_dec_ref(v___x_6979_);
lean_dec_ref(v_lakeCache_6946_);
v___x_6981_ = lean_box(0);
v___y_6957_ = v___y_6970_;
v___y_6958_ = v___y_6971_;
v___y_6959_ = v___y_6972_;
v___y_6960_ = v_a_6976_;
v___y_6961_ = v___y_6975_;
v___y_6962_ = v___y_6974_;
v_a_6963_ = v___x_6981_;
v_a_6964_ = v_a_6977_;
goto v___jp_6956_;
}
else
{
lean_object* v_log_6982_; uint8_t v_action_6983_; uint8_t v_wantsRebuild_6984_; lean_object* v_trace_6985_; lean_object* v_buildTime_6986_; lean_object* v___x_6987_; 
v_log_6982_ = lean_ctor_get(v_a_6977_, 0);
v_action_6983_ = lean_ctor_get_uint8(v_a_6977_, sizeof(void*)*3);
v_wantsRebuild_6984_ = lean_ctor_get_uint8(v_a_6977_, sizeof(void*)*3 + 1);
v_trace_6985_ = lean_ctor_get(v_a_6977_, 1);
v_buildTime_6986_ = lean_ctor_get(v_a_6977_, 2);
v___x_6987_ = l_Lake_Cache_saveArtifact(v_lakeCache_6946_, v___x_6979_, v___x_6978_, v___x_6953_, v___x_6953_, v_useLocalFile_6925_);
if (lean_obj_tag(v___x_6987_) == 0)
{
lean_object* v_a_6988_; lean_object* v___x_6990_; uint8_t v_isShared_6991_; uint8_t v_isSharedCheck_6995_; 
v_a_6988_ = lean_ctor_get(v___x_6987_, 0);
v_isSharedCheck_6995_ = !lean_is_exclusive(v___x_6987_);
if (v_isSharedCheck_6995_ == 0)
{
v___x_6990_ = v___x_6987_;
v_isShared_6991_ = v_isSharedCheck_6995_;
goto v_resetjp_6989_;
}
else
{
lean_inc(v_a_6988_);
lean_dec(v___x_6987_);
v___x_6990_ = lean_box(0);
v_isShared_6991_ = v_isSharedCheck_6995_;
goto v_resetjp_6989_;
}
v_resetjp_6989_:
{
lean_object* v___x_6993_; 
if (v_isShared_6991_ == 0)
{
lean_ctor_set_tag(v___x_6990_, 1);
v___x_6993_ = v___x_6990_;
goto v_reusejp_6992_;
}
else
{
lean_object* v_reuseFailAlloc_6994_; 
v_reuseFailAlloc_6994_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_6994_, 0, v_a_6988_);
v___x_6993_ = v_reuseFailAlloc_6994_;
goto v_reusejp_6992_;
}
v_reusejp_6992_:
{
v___y_6957_ = v___y_6970_;
v___y_6958_ = v___y_6971_;
v___y_6959_ = v___y_6972_;
v___y_6960_ = v_a_6976_;
v___y_6961_ = v___y_6975_;
v___y_6962_ = v___y_6974_;
v_a_6963_ = v___x_6993_;
v_a_6964_ = v_a_6977_;
goto v___jp_6956_;
}
}
}
else
{
lean_object* v___x_6997_; uint8_t v_isShared_6998_; uint8_t v_isSharedCheck_7009_; 
lean_inc(v_buildTime_6986_);
lean_inc_ref(v_trace_6985_);
lean_inc_ref(v_log_6982_);
lean_dec(v_a_6976_);
lean_dec_ref(v___y_6975_);
lean_dec(v___y_6974_);
lean_dec(v___y_6972_);
lean_dec(v___y_6971_);
lean_dec_ref(v___y_6970_);
lean_dec(v_a_6955_);
lean_del_object(v___x_6935_);
v_isSharedCheck_7009_ = !lean_is_exclusive(v_a_6977_);
if (v_isSharedCheck_7009_ == 0)
{
lean_object* v_unused_7010_; lean_object* v_unused_7011_; lean_object* v_unused_7012_; 
v_unused_7010_ = lean_ctor_get(v_a_6977_, 2);
lean_dec(v_unused_7010_);
v_unused_7011_ = lean_ctor_get(v_a_6977_, 1);
lean_dec(v_unused_7011_);
v_unused_7012_ = lean_ctor_get(v_a_6977_, 0);
lean_dec(v_unused_7012_);
v___x_6997_ = v_a_6977_;
v_isShared_6998_ = v_isSharedCheck_7009_;
goto v_resetjp_6996_;
}
else
{
lean_dec(v_a_6977_);
v___x_6997_ = lean_box(0);
v_isShared_6998_ = v_isSharedCheck_7009_;
goto v_resetjp_6996_;
}
v_resetjp_6996_:
{
lean_object* v_a_6999_; lean_object* v___x_7000_; uint8_t v___x_7001_; lean_object* v___x_7002_; lean_object* v___x_7003_; lean_object* v___x_7004_; lean_object* v___x_7006_; 
v_a_6999_ = lean_ctor_get(v___x_6987_, 0);
lean_inc(v_a_6999_);
lean_dec_ref(v___x_6987_);
v___x_7000_ = lean_io_error_to_string(v_a_6999_);
v___x_7001_ = 3;
v___x_7002_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_7002_, 0, v___x_7000_);
lean_ctor_set_uint8(v___x_7002_, sizeof(void*)*1, v___x_7001_);
v___x_7003_ = lean_array_get_size(v_log_6982_);
v___x_7004_ = lean_array_push(v_log_6982_, v___x_7002_);
if (v_isShared_6998_ == 0)
{
lean_ctor_set(v___x_6997_, 0, v___x_7004_);
v___x_7006_ = v___x_6997_;
goto v_reusejp_7005_;
}
else
{
lean_object* v_reuseFailAlloc_7008_; 
v_reuseFailAlloc_7008_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_7008_, 0, v___x_7004_);
lean_ctor_set(v_reuseFailAlloc_7008_, 1, v_trace_6985_);
lean_ctor_set(v_reuseFailAlloc_7008_, 2, v_buildTime_6986_);
lean_ctor_set_uint8(v_reuseFailAlloc_7008_, sizeof(void*)*3, v_action_6983_);
lean_ctor_set_uint8(v_reuseFailAlloc_7008_, sizeof(void*)*3 + 1, v_wantsRebuild_6984_);
v___x_7006_ = v_reuseFailAlloc_7008_;
goto v_reusejp_7005_;
}
v_reusejp_7005_:
{
lean_object* v___x_7007_; 
v___x_7007_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_7007_, 0, v___x_7003_);
lean_ctor_set(v___x_7007_, 1, v___x_7006_);
return v___x_7007_;
}
}
}
}
}
v___jp_7013_:
{
lean_object* v___x_7023_; lean_object* v___x_7024_; lean_object* v___x_7025_; 
v___x_7023_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__5));
lean_inc(v_name_6933_);
v___x_7024_ = l_Lean_modToFilePath(v___x_6951_, v_name_6933_, v___x_7023_);
lean_dec_ref(v___x_6951_);
lean_inc_ref(v_lakeCache_6946_);
v___x_7025_ = l_Lake_Cache_saveArtifact(v_lakeCache_6946_, v___x_7024_, v___x_7023_, v___x_6953_, v___x_6953_, v_useLocalFile_6925_);
if (lean_obj_tag(v___x_7025_) == 0)
{
lean_object* v_a_7026_; lean_object* v___x_7027_; lean_object* v___x_7028_; lean_object* v___x_7029_; lean_object* v___x_7030_; lean_object* v___x_7031_; 
v_a_7026_ = lean_ctor_get(v___x_7025_, 0);
lean_inc(v_a_7026_);
lean_dec_ref(v___x_7025_);
v___x_7027_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__7));
v___x_7028_ = l_System_FilePath_normalize(v_irDir_6940_);
v___x_7029_ = l_Lake_joinRelative(v___x_6949_, v___x_7028_);
lean_inc(v_name_6933_);
v___x_7030_ = l_Lean_modToFilePath(v___x_7029_, v_name_6933_, v___x_7027_);
lean_inc_ref(v_lakeCache_6946_);
v___x_7031_ = l_Lake_Cache_saveArtifact(v_lakeCache_6946_, v___x_7030_, v___x_7027_, v___x_6953_, v___x_6953_, v_useLocalFile_6925_);
if (lean_obj_tag(v___x_7031_) == 0)
{
lean_object* v_a_7032_; uint8_t v___x_7033_; 
v_a_7032_ = lean_ctor_get(v___x_7031_, 0);
lean_inc(v_a_7032_);
lean_dec_ref(v___x_7031_);
v___x_7033_ = lean_uint8_once(&l_Lake_Module_cacheOutputHashes___closed__0, &l_Lake_Module_cacheOutputHashes___closed__0_once, _init_l_Lake_Module_cacheOutputHashes___closed__0);
if (v___x_7033_ == 0)
{
lean_object* v___x_7034_; 
lean_dec(v_buildTime_7022_);
lean_dec_ref(v_trace_7021_);
lean_dec_ref(v_log_7018_);
v___x_7034_ = lean_box(0);
v___y_6970_ = v_a_7026_;
v___y_6971_ = v___y_7014_;
v___y_6972_ = v_a_7016_;
v___y_6973_ = v___x_7029_;
v___y_6974_ = v___y_7015_;
v___y_6975_ = v_a_7032_;
v_a_6976_ = v___x_7034_;
v_a_6977_ = v_a_7017_;
goto v___jp_6969_;
}
else
{
lean_object* v___x_7035_; lean_object* v___x_7036_; lean_object* v___x_7037_; 
v___x_7035_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__8));
lean_inc(v_name_6933_);
v___x_7036_ = l_Lean_modToFilePath(v___x_7029_, v_name_6933_, v___x_7035_);
lean_inc_ref(v_lakeCache_6946_);
v___x_7037_ = l_Lake_Cache_saveArtifact(v_lakeCache_6946_, v___x_7036_, v___x_7035_, v___x_6953_, v___x_6953_, v_useLocalFile_6925_);
if (lean_obj_tag(v___x_7037_) == 0)
{
lean_object* v_a_7038_; lean_object* v___x_7040_; uint8_t v_isShared_7041_; uint8_t v_isSharedCheck_7045_; 
lean_dec(v_buildTime_7022_);
lean_dec_ref(v_trace_7021_);
lean_dec_ref(v_log_7018_);
v_a_7038_ = lean_ctor_get(v___x_7037_, 0);
v_isSharedCheck_7045_ = !lean_is_exclusive(v___x_7037_);
if (v_isSharedCheck_7045_ == 0)
{
v___x_7040_ = v___x_7037_;
v_isShared_7041_ = v_isSharedCheck_7045_;
goto v_resetjp_7039_;
}
else
{
lean_inc(v_a_7038_);
lean_dec(v___x_7037_);
v___x_7040_ = lean_box(0);
v_isShared_7041_ = v_isSharedCheck_7045_;
goto v_resetjp_7039_;
}
v_resetjp_7039_:
{
lean_object* v___x_7043_; 
if (v_isShared_7041_ == 0)
{
lean_ctor_set_tag(v___x_7040_, 1);
v___x_7043_ = v___x_7040_;
goto v_reusejp_7042_;
}
else
{
lean_object* v_reuseFailAlloc_7044_; 
v_reuseFailAlloc_7044_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_7044_, 0, v_a_7038_);
v___x_7043_ = v_reuseFailAlloc_7044_;
goto v_reusejp_7042_;
}
v_reusejp_7042_:
{
v___y_6970_ = v_a_7026_;
v___y_6971_ = v___y_7014_;
v___y_6972_ = v_a_7016_;
v___y_6973_ = v___x_7029_;
v___y_6974_ = v___y_7015_;
v___y_6975_ = v_a_7032_;
v_a_6976_ = v___x_7043_;
v_a_6977_ = v_a_7017_;
goto v___jp_6969_;
}
}
}
else
{
lean_object* v_a_7046_; lean_object* v___x_7047_; uint8_t v___x_7048_; lean_object* v___x_7049_; lean_object* v___x_7050_; lean_object* v___x_7051_; lean_object* v___x_7052_; lean_object* v___x_7053_; 
lean_dec(v_a_7032_);
lean_dec_ref(v___x_7029_);
lean_dec(v_a_7026_);
lean_dec_ref(v_a_7017_);
lean_dec(v_a_7016_);
lean_dec(v___y_7015_);
lean_dec(v___y_7014_);
lean_dec(v_a_6955_);
lean_dec_ref(v_lakeCache_6946_);
lean_del_object(v___x_6935_);
lean_dec(v_name_6933_);
v_a_7046_ = lean_ctor_get(v___x_7037_, 0);
lean_inc(v_a_7046_);
lean_dec_ref(v___x_7037_);
v___x_7047_ = lean_io_error_to_string(v_a_7046_);
v___x_7048_ = 3;
v___x_7049_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_7049_, 0, v___x_7047_);
lean_ctor_set_uint8(v___x_7049_, sizeof(void*)*1, v___x_7048_);
v___x_7050_ = lean_array_get_size(v_log_7018_);
v___x_7051_ = lean_array_push(v_log_7018_, v___x_7049_);
v___x_7052_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v___x_7052_, 0, v___x_7051_);
lean_ctor_set(v___x_7052_, 1, v_trace_7021_);
lean_ctor_set(v___x_7052_, 2, v_buildTime_7022_);
lean_ctor_set_uint8(v___x_7052_, sizeof(void*)*3, v_action_7019_);
lean_ctor_set_uint8(v___x_7052_, sizeof(void*)*3 + 1, v_wantsRebuild_7020_);
v___x_7053_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_7053_, 0, v___x_7050_);
lean_ctor_set(v___x_7053_, 1, v___x_7052_);
return v___x_7053_;
}
}
}
else
{
lean_object* v_a_7054_; lean_object* v___x_7055_; uint8_t v___x_7056_; lean_object* v___x_7057_; lean_object* v___x_7058_; lean_object* v___x_7059_; lean_object* v___x_7060_; lean_object* v___x_7061_; 
lean_dec_ref(v___x_7029_);
lean_dec(v_a_7026_);
lean_dec_ref(v_a_7017_);
lean_dec(v_a_7016_);
lean_dec(v___y_7015_);
lean_dec(v___y_7014_);
lean_dec(v_a_6955_);
lean_dec_ref(v_lakeCache_6946_);
lean_del_object(v___x_6935_);
lean_dec(v_name_6933_);
v_a_7054_ = lean_ctor_get(v___x_7031_, 0);
lean_inc(v_a_7054_);
lean_dec_ref(v___x_7031_);
v___x_7055_ = lean_io_error_to_string(v_a_7054_);
v___x_7056_ = 3;
v___x_7057_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_7057_, 0, v___x_7055_);
lean_ctor_set_uint8(v___x_7057_, sizeof(void*)*1, v___x_7056_);
v___x_7058_ = lean_array_get_size(v_log_7018_);
v___x_7059_ = lean_array_push(v_log_7018_, v___x_7057_);
v___x_7060_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v___x_7060_, 0, v___x_7059_);
lean_ctor_set(v___x_7060_, 1, v_trace_7021_);
lean_ctor_set(v___x_7060_, 2, v_buildTime_7022_);
lean_ctor_set_uint8(v___x_7060_, sizeof(void*)*3, v_action_7019_);
lean_ctor_set_uint8(v___x_7060_, sizeof(void*)*3 + 1, v_wantsRebuild_7020_);
v___x_7061_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_7061_, 0, v___x_7058_);
lean_ctor_set(v___x_7061_, 1, v___x_7060_);
return v___x_7061_;
}
}
else
{
lean_object* v_a_7062_; lean_object* v___x_7063_; uint8_t v___x_7064_; lean_object* v___x_7065_; lean_object* v___x_7066_; lean_object* v___x_7067_; lean_object* v___x_7068_; lean_object* v___x_7069_; 
lean_dec_ref(v_a_7017_);
lean_dec(v_a_7016_);
lean_dec(v___y_7015_);
lean_dec(v___y_7014_);
lean_dec(v_a_6955_);
lean_dec_ref(v___x_6949_);
lean_dec_ref(v_lakeCache_6946_);
lean_dec_ref(v_irDir_6940_);
lean_del_object(v___x_6935_);
lean_dec(v_name_6933_);
v_a_7062_ = lean_ctor_get(v___x_7025_, 0);
lean_inc(v_a_7062_);
lean_dec_ref(v___x_7025_);
v___x_7063_ = lean_io_error_to_string(v_a_7062_);
v___x_7064_ = 3;
v___x_7065_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_7065_, 0, v___x_7063_);
lean_ctor_set_uint8(v___x_7065_, sizeof(void*)*1, v___x_7064_);
v___x_7066_ = lean_array_get_size(v_log_7018_);
v___x_7067_ = lean_array_push(v_log_7018_, v___x_7065_);
v___x_7068_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v___x_7068_, 0, v___x_7067_);
lean_ctor_set(v___x_7068_, 1, v_trace_7021_);
lean_ctor_set(v___x_7068_, 2, v_buildTime_7022_);
lean_ctor_set_uint8(v___x_7068_, sizeof(void*)*3, v_action_7019_);
lean_ctor_set_uint8(v___x_7068_, sizeof(void*)*3 + 1, v_wantsRebuild_7020_);
v___x_7069_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_7069_, 0, v___x_7066_);
lean_ctor_set(v___x_7069_, 1, v___x_7068_);
return v___x_7069_;
}
}
v___jp_7070_:
{
if (v_isModule_6924_ == 0)
{
lean_object* v_log_7074_; uint8_t v_action_7075_; uint8_t v_wantsRebuild_7076_; lean_object* v_trace_7077_; lean_object* v_buildTime_7078_; lean_object* v___x_7079_; 
v_log_7074_ = lean_ctor_get(v_a_7073_, 0);
lean_inc_ref(v_log_7074_);
v_action_7075_ = lean_ctor_get_uint8(v_a_7073_, sizeof(void*)*3);
v_wantsRebuild_7076_ = lean_ctor_get_uint8(v_a_7073_, sizeof(void*)*3 + 1);
v_trace_7077_ = lean_ctor_get(v_a_7073_, 1);
lean_inc_ref(v_trace_7077_);
v_buildTime_7078_ = lean_ctor_get(v_a_7073_, 2);
lean_inc(v_buildTime_7078_);
v___x_7079_ = lean_box(0);
v___y_7014_ = v_a_7072_;
v___y_7015_ = v___y_7071_;
v_a_7016_ = v___x_7079_;
v_a_7017_ = v_a_7073_;
v_log_7018_ = v_log_7074_;
v_action_7019_ = v_action_7075_;
v_wantsRebuild_7020_ = v_wantsRebuild_7076_;
v_trace_7021_ = v_trace_7077_;
v_buildTime_7022_ = v_buildTime_7078_;
goto v___jp_7013_;
}
else
{
lean_object* v_log_7080_; uint8_t v_action_7081_; uint8_t v_wantsRebuild_7082_; lean_object* v_trace_7083_; lean_object* v_buildTime_7084_; lean_object* v___x_7085_; lean_object* v___x_7086_; lean_object* v___x_7087_; 
v_log_7080_ = lean_ctor_get(v_a_7073_, 0);
lean_inc_ref(v_log_7080_);
v_action_7081_ = lean_ctor_get_uint8(v_a_7073_, sizeof(void*)*3);
v_wantsRebuild_7082_ = lean_ctor_get_uint8(v_a_7073_, sizeof(void*)*3 + 1);
v_trace_7083_ = lean_ctor_get(v_a_7073_, 1);
lean_inc_ref(v_trace_7083_);
v_buildTime_7084_ = lean_ctor_get(v_a_7073_, 2);
lean_inc(v_buildTime_7084_);
v___x_7085_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__6));
lean_inc(v_name_6933_);
v___x_7086_ = l_Lean_modToFilePath(v___x_6951_, v_name_6933_, v___x_7085_);
lean_inc_ref(v_lakeCache_6946_);
v___x_7087_ = l_Lake_Cache_saveArtifact(v_lakeCache_6946_, v___x_7086_, v___x_7085_, v___x_6953_, v___x_6953_, v_useLocalFile_6925_);
if (lean_obj_tag(v___x_7087_) == 0)
{
lean_object* v_a_7088_; lean_object* v___x_7090_; uint8_t v_isShared_7091_; uint8_t v_isSharedCheck_7095_; 
v_a_7088_ = lean_ctor_get(v___x_7087_, 0);
v_isSharedCheck_7095_ = !lean_is_exclusive(v___x_7087_);
if (v_isSharedCheck_7095_ == 0)
{
v___x_7090_ = v___x_7087_;
v_isShared_7091_ = v_isSharedCheck_7095_;
goto v_resetjp_7089_;
}
else
{
lean_inc(v_a_7088_);
lean_dec(v___x_7087_);
v___x_7090_ = lean_box(0);
v_isShared_7091_ = v_isSharedCheck_7095_;
goto v_resetjp_7089_;
}
v_resetjp_7089_:
{
lean_object* v___x_7093_; 
if (v_isShared_7091_ == 0)
{
lean_ctor_set_tag(v___x_7090_, 1);
v___x_7093_ = v___x_7090_;
goto v_reusejp_7092_;
}
else
{
lean_object* v_reuseFailAlloc_7094_; 
v_reuseFailAlloc_7094_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_7094_, 0, v_a_7088_);
v___x_7093_ = v_reuseFailAlloc_7094_;
goto v_reusejp_7092_;
}
v_reusejp_7092_:
{
v___y_7014_ = v_a_7072_;
v___y_7015_ = v___y_7071_;
v_a_7016_ = v___x_7093_;
v_a_7017_ = v_a_7073_;
v_log_7018_ = v_log_7080_;
v_action_7019_ = v_action_7081_;
v_wantsRebuild_7020_ = v_wantsRebuild_7082_;
v_trace_7021_ = v_trace_7083_;
v_buildTime_7022_ = v_buildTime_7084_;
goto v___jp_7013_;
}
}
}
else
{
lean_object* v___x_7097_; uint8_t v_isShared_7098_; uint8_t v_isSharedCheck_7109_; 
lean_dec(v_a_7072_);
lean_dec(v___y_7071_);
lean_dec(v_a_6955_);
lean_dec_ref(v___x_6951_);
lean_dec_ref(v___x_6949_);
lean_dec_ref(v_lakeCache_6946_);
lean_dec_ref(v_irDir_6940_);
lean_del_object(v___x_6935_);
lean_dec(v_name_6933_);
v_isSharedCheck_7109_ = !lean_is_exclusive(v_a_7073_);
if (v_isSharedCheck_7109_ == 0)
{
lean_object* v_unused_7110_; lean_object* v_unused_7111_; lean_object* v_unused_7112_; 
v_unused_7110_ = lean_ctor_get(v_a_7073_, 2);
lean_dec(v_unused_7110_);
v_unused_7111_ = lean_ctor_get(v_a_7073_, 1);
lean_dec(v_unused_7111_);
v_unused_7112_ = lean_ctor_get(v_a_7073_, 0);
lean_dec(v_unused_7112_);
v___x_7097_ = v_a_7073_;
v_isShared_7098_ = v_isSharedCheck_7109_;
goto v_resetjp_7096_;
}
else
{
lean_dec(v_a_7073_);
v___x_7097_ = lean_box(0);
v_isShared_7098_ = v_isSharedCheck_7109_;
goto v_resetjp_7096_;
}
v_resetjp_7096_:
{
lean_object* v_a_7099_; lean_object* v___x_7100_; uint8_t v___x_7101_; lean_object* v___x_7102_; lean_object* v___x_7103_; lean_object* v___x_7104_; lean_object* v___x_7106_; 
v_a_7099_ = lean_ctor_get(v___x_7087_, 0);
lean_inc(v_a_7099_);
lean_dec_ref(v___x_7087_);
v___x_7100_ = lean_io_error_to_string(v_a_7099_);
v___x_7101_ = 3;
v___x_7102_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_7102_, 0, v___x_7100_);
lean_ctor_set_uint8(v___x_7102_, sizeof(void*)*1, v___x_7101_);
v___x_7103_ = lean_array_get_size(v_log_7080_);
v___x_7104_ = lean_array_push(v_log_7080_, v___x_7102_);
if (v_isShared_7098_ == 0)
{
lean_ctor_set(v___x_7097_, 0, v___x_7104_);
v___x_7106_ = v___x_7097_;
goto v_reusejp_7105_;
}
else
{
lean_object* v_reuseFailAlloc_7108_; 
v_reuseFailAlloc_7108_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_7108_, 0, v___x_7104_);
lean_ctor_set(v_reuseFailAlloc_7108_, 1, v_trace_7083_);
lean_ctor_set(v_reuseFailAlloc_7108_, 2, v_buildTime_7084_);
lean_ctor_set_uint8(v_reuseFailAlloc_7108_, sizeof(void*)*3, v_action_7081_);
lean_ctor_set_uint8(v_reuseFailAlloc_7108_, sizeof(void*)*3 + 1, v_wantsRebuild_7082_);
v___x_7106_ = v_reuseFailAlloc_7108_;
goto v_reusejp_7105_;
}
v_reusejp_7105_:
{
lean_object* v___x_7107_; 
v___x_7107_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_7107_, 0, v___x_7103_);
lean_ctor_set(v___x_7107_, 1, v___x_7106_);
return v___x_7107_;
}
}
}
}
}
v___jp_7113_:
{
if (v_isModule_6924_ == 0)
{
lean_object* v___x_7116_; 
v___x_7116_ = lean_box(0);
v___y_7071_ = v_a_7114_;
v_a_7072_ = v___x_7116_;
v_a_7073_ = v_a_7115_;
goto v___jp_7070_;
}
else
{
lean_object* v_log_7117_; uint8_t v_action_7118_; uint8_t v_wantsRebuild_7119_; lean_object* v_trace_7120_; lean_object* v_buildTime_7121_; lean_object* v___x_7122_; lean_object* v___x_7123_; lean_object* v___x_7124_; 
v_log_7117_ = lean_ctor_get(v_a_7115_, 0);
v_action_7118_ = lean_ctor_get_uint8(v_a_7115_, sizeof(void*)*3);
v_wantsRebuild_7119_ = lean_ctor_get_uint8(v_a_7115_, sizeof(void*)*3 + 1);
v_trace_7120_ = lean_ctor_get(v_a_7115_, 1);
v_buildTime_7121_ = lean_ctor_get(v_a_7115_, 2);
v___x_7122_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__4));
lean_inc(v_name_6933_);
v___x_7123_ = l_Lean_modToFilePath(v___x_6951_, v_name_6933_, v___x_7122_);
lean_inc_ref(v_lakeCache_6946_);
v___x_7124_ = l_Lake_Cache_saveArtifact(v_lakeCache_6946_, v___x_7123_, v___x_7122_, v___x_6953_, v___x_6953_, v_useLocalFile_6925_);
if (lean_obj_tag(v___x_7124_) == 0)
{
lean_object* v_a_7125_; lean_object* v___x_7127_; uint8_t v_isShared_7128_; uint8_t v_isSharedCheck_7132_; 
v_a_7125_ = lean_ctor_get(v___x_7124_, 0);
v_isSharedCheck_7132_ = !lean_is_exclusive(v___x_7124_);
if (v_isSharedCheck_7132_ == 0)
{
v___x_7127_ = v___x_7124_;
v_isShared_7128_ = v_isSharedCheck_7132_;
goto v_resetjp_7126_;
}
else
{
lean_inc(v_a_7125_);
lean_dec(v___x_7124_);
v___x_7127_ = lean_box(0);
v_isShared_7128_ = v_isSharedCheck_7132_;
goto v_resetjp_7126_;
}
v_resetjp_7126_:
{
lean_object* v___x_7130_; 
if (v_isShared_7128_ == 0)
{
lean_ctor_set_tag(v___x_7127_, 1);
v___x_7130_ = v___x_7127_;
goto v_reusejp_7129_;
}
else
{
lean_object* v_reuseFailAlloc_7131_; 
v_reuseFailAlloc_7131_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_7131_, 0, v_a_7125_);
v___x_7130_ = v_reuseFailAlloc_7131_;
goto v_reusejp_7129_;
}
v_reusejp_7129_:
{
v___y_7071_ = v_a_7114_;
v_a_7072_ = v___x_7130_;
v_a_7073_ = v_a_7115_;
goto v___jp_7070_;
}
}
}
else
{
lean_object* v___x_7134_; uint8_t v_isShared_7135_; uint8_t v_isSharedCheck_7146_; 
lean_inc(v_buildTime_7121_);
lean_inc_ref(v_trace_7120_);
lean_inc_ref(v_log_7117_);
lean_dec(v_a_7114_);
lean_dec(v_a_6955_);
lean_dec_ref(v___x_6951_);
lean_dec_ref(v___x_6949_);
lean_dec_ref(v_lakeCache_6946_);
lean_dec_ref(v_irDir_6940_);
lean_del_object(v___x_6935_);
lean_dec(v_name_6933_);
v_isSharedCheck_7146_ = !lean_is_exclusive(v_a_7115_);
if (v_isSharedCheck_7146_ == 0)
{
lean_object* v_unused_7147_; lean_object* v_unused_7148_; lean_object* v_unused_7149_; 
v_unused_7147_ = lean_ctor_get(v_a_7115_, 2);
lean_dec(v_unused_7147_);
v_unused_7148_ = lean_ctor_get(v_a_7115_, 1);
lean_dec(v_unused_7148_);
v_unused_7149_ = lean_ctor_get(v_a_7115_, 0);
lean_dec(v_unused_7149_);
v___x_7134_ = v_a_7115_;
v_isShared_7135_ = v_isSharedCheck_7146_;
goto v_resetjp_7133_;
}
else
{
lean_dec(v_a_7115_);
v___x_7134_ = lean_box(0);
v_isShared_7135_ = v_isSharedCheck_7146_;
goto v_resetjp_7133_;
}
v_resetjp_7133_:
{
lean_object* v_a_7136_; lean_object* v___x_7137_; uint8_t v___x_7138_; lean_object* v___x_7139_; lean_object* v___x_7140_; lean_object* v___x_7141_; lean_object* v___x_7143_; 
v_a_7136_ = lean_ctor_get(v___x_7124_, 0);
lean_inc(v_a_7136_);
lean_dec_ref(v___x_7124_);
v___x_7137_ = lean_io_error_to_string(v_a_7136_);
v___x_7138_ = 3;
v___x_7139_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_7139_, 0, v___x_7137_);
lean_ctor_set_uint8(v___x_7139_, sizeof(void*)*1, v___x_7138_);
v___x_7140_ = lean_array_get_size(v_log_7117_);
v___x_7141_ = lean_array_push(v_log_7117_, v___x_7139_);
if (v_isShared_7135_ == 0)
{
lean_ctor_set(v___x_7134_, 0, v___x_7141_);
v___x_7143_ = v___x_7134_;
goto v_reusejp_7142_;
}
else
{
lean_object* v_reuseFailAlloc_7145_; 
v_reuseFailAlloc_7145_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_7145_, 0, v___x_7141_);
lean_ctor_set(v_reuseFailAlloc_7145_, 1, v_trace_7120_);
lean_ctor_set(v_reuseFailAlloc_7145_, 2, v_buildTime_7121_);
lean_ctor_set_uint8(v_reuseFailAlloc_7145_, sizeof(void*)*3, v_action_7118_);
lean_ctor_set_uint8(v_reuseFailAlloc_7145_, sizeof(void*)*3 + 1, v_wantsRebuild_7119_);
v___x_7143_ = v_reuseFailAlloc_7145_;
goto v_reusejp_7142_;
}
v_reusejp_7142_:
{
lean_object* v___x_7144_; 
v___x_7144_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_7144_, 0, v___x_7140_);
lean_ctor_set(v___x_7144_, 1, v___x_7143_);
return v___x_7144_;
}
}
}
}
}
}
else
{
lean_object* v___x_7180_; uint8_t v_isShared_7181_; uint8_t v_isSharedCheck_7194_; 
lean_inc(v_buildTime_6945_);
lean_inc_ref(v_trace_6944_);
lean_inc_ref(v_log_6941_);
lean_dec_ref(v___x_6951_);
lean_dec_ref(v___x_6949_);
lean_dec_ref(v_lakeCache_6946_);
lean_dec_ref(v_irDir_6940_);
lean_dec(v_name_6933_);
v_isSharedCheck_7194_ = !lean_is_exclusive(v_a_6927_);
if (v_isSharedCheck_7194_ == 0)
{
lean_object* v_unused_7195_; lean_object* v_unused_7196_; lean_object* v_unused_7197_; 
v_unused_7195_ = lean_ctor_get(v_a_6927_, 2);
lean_dec(v_unused_7195_);
v_unused_7196_ = lean_ctor_get(v_a_6927_, 1);
lean_dec(v_unused_7196_);
v_unused_7197_ = lean_ctor_get(v_a_6927_, 0);
lean_dec(v_unused_7197_);
v___x_7180_ = v_a_6927_;
v_isShared_7181_ = v_isSharedCheck_7194_;
goto v_resetjp_7179_;
}
else
{
lean_dec(v_a_6927_);
v___x_7180_ = lean_box(0);
v_isShared_7181_ = v_isSharedCheck_7194_;
goto v_resetjp_7179_;
}
v_resetjp_7179_:
{
lean_object* v_a_7182_; lean_object* v___x_7183_; uint8_t v___x_7184_; lean_object* v___x_7185_; lean_object* v___x_7186_; lean_object* v___x_7187_; lean_object* v___x_7189_; 
v_a_7182_ = lean_ctor_get(v___x_6954_, 0);
lean_inc(v_a_7182_);
lean_dec_ref(v___x_6954_);
v___x_7183_ = lean_io_error_to_string(v_a_7182_);
v___x_7184_ = 3;
v___x_7185_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_7185_, 0, v___x_7183_);
lean_ctor_set_uint8(v___x_7185_, sizeof(void*)*1, v___x_7184_);
v___x_7186_ = lean_array_get_size(v_log_6941_);
v___x_7187_ = lean_array_push(v_log_6941_, v___x_7185_);
if (v_isShared_7181_ == 0)
{
lean_ctor_set(v___x_7180_, 0, v___x_7187_);
v___x_7189_ = v___x_7180_;
goto v_reusejp_7188_;
}
else
{
lean_object* v_reuseFailAlloc_7193_; 
v_reuseFailAlloc_7193_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_7193_, 0, v___x_7187_);
lean_ctor_set(v_reuseFailAlloc_7193_, 1, v_trace_6944_);
lean_ctor_set(v_reuseFailAlloc_7193_, 2, v_buildTime_6945_);
lean_ctor_set_uint8(v_reuseFailAlloc_7193_, sizeof(void*)*3, v_action_6942_);
lean_ctor_set_uint8(v_reuseFailAlloc_7193_, sizeof(void*)*3 + 1, v_wantsRebuild_6943_);
v___x_7189_ = v_reuseFailAlloc_7193_;
goto v_reusejp_7188_;
}
v_reusejp_7188_:
{
lean_object* v___x_7191_; 
if (v_isShared_6936_ == 0)
{
lean_ctor_set_tag(v___x_6935_, 1);
lean_ctor_set(v___x_6935_, 1, v___x_7189_);
lean_ctor_set(v___x_6935_, 0, v___x_7186_);
v___x_7191_ = v___x_6935_;
goto v_reusejp_7190_;
}
else
{
lean_object* v_reuseFailAlloc_7192_; 
v_reuseFailAlloc_7192_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_7192_, 0, v___x_7186_);
lean_ctor_set(v_reuseFailAlloc_7192_, 1, v___x_7189_);
v___x_7191_ = v_reuseFailAlloc_7192_;
goto v_reusejp_7190_;
}
v_reusejp_7190_:
{
return v___x_7191_;
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts___redArg___boxed(lean_object* v_mod_7200_, lean_object* v_isModule_7201_, lean_object* v_useLocalFile_7202_, lean_object* v_a_7203_, lean_object* v_a_7204_, lean_object* v_a_7205_){
_start:
{
uint8_t v_isModule_boxed_7206_; uint8_t v_useLocalFile_boxed_7207_; lean_object* v_res_7208_; 
v_isModule_boxed_7206_ = lean_unbox(v_isModule_7201_);
v_useLocalFile_boxed_7207_ = lean_unbox(v_useLocalFile_7202_);
v_res_7208_ = l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts___redArg(v_mod_7200_, v_isModule_boxed_7206_, v_useLocalFile_boxed_7207_, v_a_7203_, v_a_7204_);
return v_res_7208_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts(lean_object* v_mod_7209_, uint8_t v_isModule_7210_, uint8_t v_useLocalFile_7211_, lean_object* v_a_7212_, lean_object* v_a_7213_, lean_object* v_a_7214_, lean_object* v_a_7215_, lean_object* v_a_7216_, lean_object* v_a_7217_){
_start:
{
lean_object* v___x_7219_; 
v___x_7219_ = l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts___redArg(v_mod_7209_, v_isModule_7210_, v_useLocalFile_7211_, v_a_7216_, v_a_7217_);
return v___x_7219_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts___boxed(lean_object* v_mod_7220_, lean_object* v_isModule_7221_, lean_object* v_useLocalFile_7222_, lean_object* v_a_7223_, lean_object* v_a_7224_, lean_object* v_a_7225_, lean_object* v_a_7226_, lean_object* v_a_7227_, lean_object* v_a_7228_, lean_object* v_a_7229_){
_start:
{
uint8_t v_isModule_boxed_7230_; uint8_t v_useLocalFile_boxed_7231_; lean_object* v_res_7232_; 
v_isModule_boxed_7230_ = lean_unbox(v_isModule_7221_);
v_useLocalFile_boxed_7231_ = lean_unbox(v_useLocalFile_7222_);
v_res_7232_ = l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts(v_mod_7220_, v_isModule_boxed_7230_, v_useLocalFile_boxed_7231_, v_a_7223_, v_a_7224_, v_a_7225_, v_a_7226_, v_a_7227_, v_a_7228_);
lean_dec(v_a_7226_);
lean_dec(v_a_7225_);
lean_dec(v_a_7224_);
lean_dec_ref(v_a_7223_);
return v_res_7232_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreNeededArtifacts___redArg(lean_object* v_mod_7233_, lean_object* v_cached_7234_, lean_object* v_a_7235_){
_start:
{
lean_object* v_lib_7237_; lean_object* v_pkg_7238_; lean_object* v_config_7239_; lean_object* v_name_7240_; lean_object* v_dir_7241_; lean_object* v_buildDir_7242_; lean_object* v_leanLibDir_7243_; uint8_t v_isModule_7244_; lean_object* v_olean_7245_; lean_object* v_oleanServer_x3f_7246_; lean_object* v_oleanPrivate_x3f_7247_; lean_object* v_ilean_7248_; lean_object* v_ir_x3f_7249_; lean_object* v_c_7250_; lean_object* v_bc_x3f_7251_; lean_object* v_ltar_x3f_7252_; lean_object* v___x_7254_; uint8_t v_isShared_7255_; uint8_t v_isSharedCheck_7300_; 
v_lib_7237_ = lean_ctor_get(v_mod_7233_, 0);
v_pkg_7238_ = lean_ctor_get(v_lib_7237_, 0);
lean_inc_ref(v_pkg_7238_);
v_config_7239_ = lean_ctor_get(v_pkg_7238_, 6);
lean_inc_ref(v_config_7239_);
v_name_7240_ = lean_ctor_get(v_mod_7233_, 1);
lean_inc(v_name_7240_);
lean_dec_ref(v_mod_7233_);
v_dir_7241_ = lean_ctor_get(v_pkg_7238_, 4);
lean_inc_ref(v_dir_7241_);
lean_dec_ref(v_pkg_7238_);
v_buildDir_7242_ = lean_ctor_get(v_config_7239_, 6);
lean_inc_ref(v_buildDir_7242_);
v_leanLibDir_7243_ = lean_ctor_get(v_config_7239_, 7);
lean_inc_ref(v_leanLibDir_7243_);
lean_dec_ref(v_config_7239_);
v_isModule_7244_ = lean_ctor_get_uint8(v_cached_7234_, sizeof(void*)*8);
v_olean_7245_ = lean_ctor_get(v_cached_7234_, 0);
v_oleanServer_x3f_7246_ = lean_ctor_get(v_cached_7234_, 1);
v_oleanPrivate_x3f_7247_ = lean_ctor_get(v_cached_7234_, 2);
v_ilean_7248_ = lean_ctor_get(v_cached_7234_, 3);
v_ir_x3f_7249_ = lean_ctor_get(v_cached_7234_, 4);
v_c_7250_ = lean_ctor_get(v_cached_7234_, 5);
v_bc_x3f_7251_ = lean_ctor_get(v_cached_7234_, 6);
v_ltar_x3f_7252_ = lean_ctor_get(v_cached_7234_, 7);
v_isSharedCheck_7300_ = !lean_is_exclusive(v_cached_7234_);
if (v_isSharedCheck_7300_ == 0)
{
v___x_7254_ = v_cached_7234_;
v_isShared_7255_ = v_isSharedCheck_7300_;
goto v_resetjp_7253_;
}
else
{
lean_inc(v_ltar_x3f_7252_);
lean_inc(v_bc_x3f_7251_);
lean_inc(v_c_7250_);
lean_inc(v_ir_x3f_7249_);
lean_inc(v_ilean_7248_);
lean_inc(v_oleanPrivate_x3f_7247_);
lean_inc(v_oleanServer_x3f_7246_);
lean_inc(v_olean_7245_);
lean_dec(v_cached_7234_);
v___x_7254_ = lean_box(0);
v_isShared_7255_ = v_isSharedCheck_7300_;
goto v_resetjp_7253_;
}
v_resetjp_7253_:
{
lean_object* v_log_7256_; uint8_t v_action_7257_; uint8_t v_wantsRebuild_7258_; lean_object* v_trace_7259_; lean_object* v_buildTime_7260_; lean_object* v___x_7262_; uint8_t v_isShared_7263_; uint8_t v_isSharedCheck_7299_; 
v_log_7256_ = lean_ctor_get(v_a_7235_, 0);
v_action_7257_ = lean_ctor_get_uint8(v_a_7235_, sizeof(void*)*3);
v_wantsRebuild_7258_ = lean_ctor_get_uint8(v_a_7235_, sizeof(void*)*3 + 1);
v_trace_7259_ = lean_ctor_get(v_a_7235_, 1);
v_buildTime_7260_ = lean_ctor_get(v_a_7235_, 2);
v_isSharedCheck_7299_ = !lean_is_exclusive(v_a_7235_);
if (v_isSharedCheck_7299_ == 0)
{
v___x_7262_ = v_a_7235_;
v_isShared_7263_ = v_isSharedCheck_7299_;
goto v_resetjp_7261_;
}
else
{
lean_inc(v_buildTime_7260_);
lean_inc(v_trace_7259_);
lean_inc(v_log_7256_);
lean_dec(v_a_7235_);
v___x_7262_ = lean_box(0);
v_isShared_7263_ = v_isSharedCheck_7299_;
goto v_resetjp_7261_;
}
v_resetjp_7261_:
{
lean_object* v___x_7264_; lean_object* v___x_7265_; lean_object* v___x_7266_; lean_object* v___x_7267_; lean_object* v___x_7268_; lean_object* v___x_7269_; uint8_t v___x_7270_; lean_object* v___x_7271_; 
v___x_7264_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__5));
v___x_7265_ = l_System_FilePath_normalize(v_buildDir_7242_);
v___x_7266_ = l_Lake_joinRelative(v_dir_7241_, v___x_7265_);
v___x_7267_ = l_System_FilePath_normalize(v_leanLibDir_7243_);
v___x_7268_ = l_Lake_joinRelative(v___x_7266_, v___x_7267_);
v___x_7269_ = l_Lean_modToFilePath(v___x_7268_, v_name_7240_, v___x_7264_);
lean_dec_ref(v___x_7268_);
v___x_7270_ = 0;
v___x_7271_ = l_Lake_restoreArtifact(v___x_7269_, v_ilean_7248_, v___x_7270_, v_log_7256_);
if (lean_obj_tag(v___x_7271_) == 0)
{
lean_object* v_a_7272_; lean_object* v_a_7273_; lean_object* v___x_7275_; uint8_t v_isShared_7276_; uint8_t v_isSharedCheck_7286_; 
v_a_7272_ = lean_ctor_get(v___x_7271_, 0);
v_a_7273_ = lean_ctor_get(v___x_7271_, 1);
v_isSharedCheck_7286_ = !lean_is_exclusive(v___x_7271_);
if (v_isSharedCheck_7286_ == 0)
{
v___x_7275_ = v___x_7271_;
v_isShared_7276_ = v_isSharedCheck_7286_;
goto v_resetjp_7274_;
}
else
{
lean_inc(v_a_7273_);
lean_inc(v_a_7272_);
lean_dec(v___x_7271_);
v___x_7275_ = lean_box(0);
v_isShared_7276_ = v_isSharedCheck_7286_;
goto v_resetjp_7274_;
}
v_resetjp_7274_:
{
lean_object* v___x_7278_; 
if (v_isShared_7263_ == 0)
{
lean_ctor_set(v___x_7262_, 0, v_a_7273_);
v___x_7278_ = v___x_7262_;
goto v_reusejp_7277_;
}
else
{
lean_object* v_reuseFailAlloc_7285_; 
v_reuseFailAlloc_7285_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_7285_, 0, v_a_7273_);
lean_ctor_set(v_reuseFailAlloc_7285_, 1, v_trace_7259_);
lean_ctor_set(v_reuseFailAlloc_7285_, 2, v_buildTime_7260_);
lean_ctor_set_uint8(v_reuseFailAlloc_7285_, sizeof(void*)*3, v_action_7257_);
lean_ctor_set_uint8(v_reuseFailAlloc_7285_, sizeof(void*)*3 + 1, v_wantsRebuild_7258_);
v___x_7278_ = v_reuseFailAlloc_7285_;
goto v_reusejp_7277_;
}
v_reusejp_7277_:
{
lean_object* v___x_7280_; 
if (v_isShared_7255_ == 0)
{
lean_ctor_set(v___x_7254_, 3, v_a_7272_);
v___x_7280_ = v___x_7254_;
goto v_reusejp_7279_;
}
else
{
lean_object* v_reuseFailAlloc_7284_; 
v_reuseFailAlloc_7284_ = lean_alloc_ctor(0, 8, 1);
lean_ctor_set(v_reuseFailAlloc_7284_, 0, v_olean_7245_);
lean_ctor_set(v_reuseFailAlloc_7284_, 1, v_oleanServer_x3f_7246_);
lean_ctor_set(v_reuseFailAlloc_7284_, 2, v_oleanPrivate_x3f_7247_);
lean_ctor_set(v_reuseFailAlloc_7284_, 3, v_a_7272_);
lean_ctor_set(v_reuseFailAlloc_7284_, 4, v_ir_x3f_7249_);
lean_ctor_set(v_reuseFailAlloc_7284_, 5, v_c_7250_);
lean_ctor_set(v_reuseFailAlloc_7284_, 6, v_bc_x3f_7251_);
lean_ctor_set(v_reuseFailAlloc_7284_, 7, v_ltar_x3f_7252_);
lean_ctor_set_uint8(v_reuseFailAlloc_7284_, sizeof(void*)*8, v_isModule_7244_);
v___x_7280_ = v_reuseFailAlloc_7284_;
goto v_reusejp_7279_;
}
v_reusejp_7279_:
{
lean_object* v___x_7282_; 
if (v_isShared_7276_ == 0)
{
lean_ctor_set(v___x_7275_, 1, v___x_7278_);
lean_ctor_set(v___x_7275_, 0, v___x_7280_);
v___x_7282_ = v___x_7275_;
goto v_reusejp_7281_;
}
else
{
lean_object* v_reuseFailAlloc_7283_; 
v_reuseFailAlloc_7283_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_7283_, 0, v___x_7280_);
lean_ctor_set(v_reuseFailAlloc_7283_, 1, v___x_7278_);
v___x_7282_ = v_reuseFailAlloc_7283_;
goto v_reusejp_7281_;
}
v_reusejp_7281_:
{
return v___x_7282_;
}
}
}
}
}
else
{
lean_object* v_a_7287_; lean_object* v_a_7288_; lean_object* v___x_7290_; uint8_t v_isShared_7291_; uint8_t v_isSharedCheck_7298_; 
lean_del_object(v___x_7254_);
lean_dec(v_ltar_x3f_7252_);
lean_dec(v_bc_x3f_7251_);
lean_dec_ref(v_c_7250_);
lean_dec(v_ir_x3f_7249_);
lean_dec(v_oleanPrivate_x3f_7247_);
lean_dec(v_oleanServer_x3f_7246_);
lean_dec_ref(v_olean_7245_);
v_a_7287_ = lean_ctor_get(v___x_7271_, 0);
v_a_7288_ = lean_ctor_get(v___x_7271_, 1);
v_isSharedCheck_7298_ = !lean_is_exclusive(v___x_7271_);
if (v_isSharedCheck_7298_ == 0)
{
v___x_7290_ = v___x_7271_;
v_isShared_7291_ = v_isSharedCheck_7298_;
goto v_resetjp_7289_;
}
else
{
lean_inc(v_a_7288_);
lean_inc(v_a_7287_);
lean_dec(v___x_7271_);
v___x_7290_ = lean_box(0);
v_isShared_7291_ = v_isSharedCheck_7298_;
goto v_resetjp_7289_;
}
v_resetjp_7289_:
{
lean_object* v___x_7293_; 
if (v_isShared_7263_ == 0)
{
lean_ctor_set(v___x_7262_, 0, v_a_7288_);
v___x_7293_ = v___x_7262_;
goto v_reusejp_7292_;
}
else
{
lean_object* v_reuseFailAlloc_7297_; 
v_reuseFailAlloc_7297_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_7297_, 0, v_a_7288_);
lean_ctor_set(v_reuseFailAlloc_7297_, 1, v_trace_7259_);
lean_ctor_set(v_reuseFailAlloc_7297_, 2, v_buildTime_7260_);
lean_ctor_set_uint8(v_reuseFailAlloc_7297_, sizeof(void*)*3, v_action_7257_);
lean_ctor_set_uint8(v_reuseFailAlloc_7297_, sizeof(void*)*3 + 1, v_wantsRebuild_7258_);
v___x_7293_ = v_reuseFailAlloc_7297_;
goto v_reusejp_7292_;
}
v_reusejp_7292_:
{
lean_object* v___x_7295_; 
if (v_isShared_7291_ == 0)
{
lean_ctor_set(v___x_7290_, 1, v___x_7293_);
v___x_7295_ = v___x_7290_;
goto v_reusejp_7294_;
}
else
{
lean_object* v_reuseFailAlloc_7296_; 
v_reuseFailAlloc_7296_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_7296_, 0, v_a_7287_);
lean_ctor_set(v_reuseFailAlloc_7296_, 1, v___x_7293_);
v___x_7295_ = v_reuseFailAlloc_7296_;
goto v_reusejp_7294_;
}
v_reusejp_7294_:
{
return v___x_7295_;
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreNeededArtifacts___redArg___boxed(lean_object* v_mod_7301_, lean_object* v_cached_7302_, lean_object* v_a_7303_, lean_object* v_a_7304_){
_start:
{
lean_object* v_res_7305_; 
v_res_7305_ = l___private_Lake_Build_Module_0__Lake_Module_restoreNeededArtifacts___redArg(v_mod_7301_, v_cached_7302_, v_a_7303_);
return v_res_7305_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreNeededArtifacts(lean_object* v_mod_7306_, lean_object* v_cached_7307_, lean_object* v_a_7308_, lean_object* v_a_7309_, lean_object* v_a_7310_, lean_object* v_a_7311_, lean_object* v_a_7312_, lean_object* v_a_7313_){
_start:
{
lean_object* v___x_7315_; 
v___x_7315_ = l___private_Lake_Build_Module_0__Lake_Module_restoreNeededArtifacts___redArg(v_mod_7306_, v_cached_7307_, v_a_7313_);
return v___x_7315_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreNeededArtifacts___boxed(lean_object* v_mod_7316_, lean_object* v_cached_7317_, lean_object* v_a_7318_, lean_object* v_a_7319_, lean_object* v_a_7320_, lean_object* v_a_7321_, lean_object* v_a_7322_, lean_object* v_a_7323_, lean_object* v_a_7324_){
_start:
{
lean_object* v_res_7325_; 
v_res_7325_ = l___private_Lake_Build_Module_0__Lake_Module_restoreNeededArtifacts(v_mod_7316_, v_cached_7317_, v_a_7318_, v_a_7319_, v_a_7320_, v_a_7321_, v_a_7322_, v_a_7323_);
lean_dec_ref(v_a_7322_);
lean_dec(v_a_7321_);
lean_dec(v_a_7320_);
lean_dec(v_a_7319_);
lean_dec_ref(v_a_7318_);
return v_res_7325_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts_restoreSome___redArg(lean_object* v_file_7326_, lean_object* v_art_x3f_7327_, lean_object* v_a_7328_){
_start:
{
if (lean_obj_tag(v_art_x3f_7327_) == 0)
{
lean_object* v___x_7330_; 
lean_dec_ref(v_file_7326_);
v___x_7330_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_7330_, 0, v_art_x3f_7327_);
lean_ctor_set(v___x_7330_, 1, v_a_7328_);
return v___x_7330_;
}
else
{
lean_object* v_val_7331_; lean_object* v___x_7333_; uint8_t v_isShared_7334_; uint8_t v_isSharedCheck_7373_; 
v_val_7331_ = lean_ctor_get(v_art_x3f_7327_, 0);
v_isSharedCheck_7373_ = !lean_is_exclusive(v_art_x3f_7327_);
if (v_isSharedCheck_7373_ == 0)
{
v___x_7333_ = v_art_x3f_7327_;
v_isShared_7334_ = v_isSharedCheck_7373_;
goto v_resetjp_7332_;
}
else
{
lean_inc(v_val_7331_);
lean_dec(v_art_x3f_7327_);
v___x_7333_ = lean_box(0);
v_isShared_7334_ = v_isSharedCheck_7373_;
goto v_resetjp_7332_;
}
v_resetjp_7332_:
{
lean_object* v_log_7335_; uint8_t v_action_7336_; uint8_t v_wantsRebuild_7337_; lean_object* v_trace_7338_; lean_object* v_buildTime_7339_; lean_object* v___x_7341_; uint8_t v_isShared_7342_; uint8_t v_isSharedCheck_7372_; 
v_log_7335_ = lean_ctor_get(v_a_7328_, 0);
v_action_7336_ = lean_ctor_get_uint8(v_a_7328_, sizeof(void*)*3);
v_wantsRebuild_7337_ = lean_ctor_get_uint8(v_a_7328_, sizeof(void*)*3 + 1);
v_trace_7338_ = lean_ctor_get(v_a_7328_, 1);
v_buildTime_7339_ = lean_ctor_get(v_a_7328_, 2);
v_isSharedCheck_7372_ = !lean_is_exclusive(v_a_7328_);
if (v_isSharedCheck_7372_ == 0)
{
v___x_7341_ = v_a_7328_;
v_isShared_7342_ = v_isSharedCheck_7372_;
goto v_resetjp_7340_;
}
else
{
lean_inc(v_buildTime_7339_);
lean_inc(v_trace_7338_);
lean_inc(v_log_7335_);
lean_dec(v_a_7328_);
v___x_7341_ = lean_box(0);
v_isShared_7342_ = v_isSharedCheck_7372_;
goto v_resetjp_7340_;
}
v_resetjp_7340_:
{
uint8_t v___x_7343_; lean_object* v___x_7344_; 
v___x_7343_ = 0;
v___x_7344_ = l_Lake_restoreArtifact(v_file_7326_, v_val_7331_, v___x_7343_, v_log_7335_);
if (lean_obj_tag(v___x_7344_) == 0)
{
lean_object* v_a_7345_; lean_object* v_a_7346_; lean_object* v___x_7348_; uint8_t v_isShared_7349_; uint8_t v_isSharedCheck_7359_; 
v_a_7345_ = lean_ctor_get(v___x_7344_, 0);
v_a_7346_ = lean_ctor_get(v___x_7344_, 1);
v_isSharedCheck_7359_ = !lean_is_exclusive(v___x_7344_);
if (v_isSharedCheck_7359_ == 0)
{
v___x_7348_ = v___x_7344_;
v_isShared_7349_ = v_isSharedCheck_7359_;
goto v_resetjp_7347_;
}
else
{
lean_inc(v_a_7346_);
lean_inc(v_a_7345_);
lean_dec(v___x_7344_);
v___x_7348_ = lean_box(0);
v_isShared_7349_ = v_isSharedCheck_7359_;
goto v_resetjp_7347_;
}
v_resetjp_7347_:
{
lean_object* v___x_7351_; 
if (v_isShared_7342_ == 0)
{
lean_ctor_set(v___x_7341_, 0, v_a_7346_);
v___x_7351_ = v___x_7341_;
goto v_reusejp_7350_;
}
else
{
lean_object* v_reuseFailAlloc_7358_; 
v_reuseFailAlloc_7358_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_7358_, 0, v_a_7346_);
lean_ctor_set(v_reuseFailAlloc_7358_, 1, v_trace_7338_);
lean_ctor_set(v_reuseFailAlloc_7358_, 2, v_buildTime_7339_);
lean_ctor_set_uint8(v_reuseFailAlloc_7358_, sizeof(void*)*3, v_action_7336_);
lean_ctor_set_uint8(v_reuseFailAlloc_7358_, sizeof(void*)*3 + 1, v_wantsRebuild_7337_);
v___x_7351_ = v_reuseFailAlloc_7358_;
goto v_reusejp_7350_;
}
v_reusejp_7350_:
{
lean_object* v___x_7353_; 
if (v_isShared_7334_ == 0)
{
lean_ctor_set(v___x_7333_, 0, v_a_7345_);
v___x_7353_ = v___x_7333_;
goto v_reusejp_7352_;
}
else
{
lean_object* v_reuseFailAlloc_7357_; 
v_reuseFailAlloc_7357_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_7357_, 0, v_a_7345_);
v___x_7353_ = v_reuseFailAlloc_7357_;
goto v_reusejp_7352_;
}
v_reusejp_7352_:
{
lean_object* v___x_7355_; 
if (v_isShared_7349_ == 0)
{
lean_ctor_set(v___x_7348_, 1, v___x_7351_);
lean_ctor_set(v___x_7348_, 0, v___x_7353_);
v___x_7355_ = v___x_7348_;
goto v_reusejp_7354_;
}
else
{
lean_object* v_reuseFailAlloc_7356_; 
v_reuseFailAlloc_7356_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_7356_, 0, v___x_7353_);
lean_ctor_set(v_reuseFailAlloc_7356_, 1, v___x_7351_);
v___x_7355_ = v_reuseFailAlloc_7356_;
goto v_reusejp_7354_;
}
v_reusejp_7354_:
{
return v___x_7355_;
}
}
}
}
}
else
{
lean_object* v_a_7360_; lean_object* v_a_7361_; lean_object* v___x_7363_; uint8_t v_isShared_7364_; uint8_t v_isSharedCheck_7371_; 
lean_del_object(v___x_7333_);
v_a_7360_ = lean_ctor_get(v___x_7344_, 0);
v_a_7361_ = lean_ctor_get(v___x_7344_, 1);
v_isSharedCheck_7371_ = !lean_is_exclusive(v___x_7344_);
if (v_isSharedCheck_7371_ == 0)
{
v___x_7363_ = v___x_7344_;
v_isShared_7364_ = v_isSharedCheck_7371_;
goto v_resetjp_7362_;
}
else
{
lean_inc(v_a_7361_);
lean_inc(v_a_7360_);
lean_dec(v___x_7344_);
v___x_7363_ = lean_box(0);
v_isShared_7364_ = v_isSharedCheck_7371_;
goto v_resetjp_7362_;
}
v_resetjp_7362_:
{
lean_object* v___x_7366_; 
if (v_isShared_7342_ == 0)
{
lean_ctor_set(v___x_7341_, 0, v_a_7361_);
v___x_7366_ = v___x_7341_;
goto v_reusejp_7365_;
}
else
{
lean_object* v_reuseFailAlloc_7370_; 
v_reuseFailAlloc_7370_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_7370_, 0, v_a_7361_);
lean_ctor_set(v_reuseFailAlloc_7370_, 1, v_trace_7338_);
lean_ctor_set(v_reuseFailAlloc_7370_, 2, v_buildTime_7339_);
lean_ctor_set_uint8(v_reuseFailAlloc_7370_, sizeof(void*)*3, v_action_7336_);
lean_ctor_set_uint8(v_reuseFailAlloc_7370_, sizeof(void*)*3 + 1, v_wantsRebuild_7337_);
v___x_7366_ = v_reuseFailAlloc_7370_;
goto v_reusejp_7365_;
}
v_reusejp_7365_:
{
lean_object* v___x_7368_; 
if (v_isShared_7364_ == 0)
{
lean_ctor_set(v___x_7363_, 1, v___x_7366_);
v___x_7368_ = v___x_7363_;
goto v_reusejp_7367_;
}
else
{
lean_object* v_reuseFailAlloc_7369_; 
v_reuseFailAlloc_7369_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_7369_, 0, v_a_7360_);
lean_ctor_set(v_reuseFailAlloc_7369_, 1, v___x_7366_);
v___x_7368_ = v_reuseFailAlloc_7369_;
goto v_reusejp_7367_;
}
v_reusejp_7367_:
{
return v___x_7368_;
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts_restoreSome___redArg___boxed(lean_object* v_file_7374_, lean_object* v_art_x3f_7375_, lean_object* v_a_7376_, lean_object* v_a_7377_){
_start:
{
lean_object* v_res_7378_; 
v_res_7378_ = l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts_restoreSome___redArg(v_file_7374_, v_art_x3f_7375_, v_a_7376_);
return v_res_7378_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts_restoreSome(lean_object* v_file_7379_, lean_object* v_art_x3f_7380_, lean_object* v_a_7381_, lean_object* v_a_7382_, lean_object* v_a_7383_, lean_object* v_a_7384_, lean_object* v_a_7385_, lean_object* v_a_7386_){
_start:
{
if (lean_obj_tag(v_art_x3f_7380_) == 0)
{
lean_object* v___x_7388_; 
lean_dec_ref(v_file_7379_);
v___x_7388_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_7388_, 0, v_art_x3f_7380_);
lean_ctor_set(v___x_7388_, 1, v_a_7386_);
return v___x_7388_;
}
else
{
lean_object* v_val_7389_; lean_object* v___x_7391_; uint8_t v_isShared_7392_; uint8_t v_isSharedCheck_7431_; 
v_val_7389_ = lean_ctor_get(v_art_x3f_7380_, 0);
v_isSharedCheck_7431_ = !lean_is_exclusive(v_art_x3f_7380_);
if (v_isSharedCheck_7431_ == 0)
{
v___x_7391_ = v_art_x3f_7380_;
v_isShared_7392_ = v_isSharedCheck_7431_;
goto v_resetjp_7390_;
}
else
{
lean_inc(v_val_7389_);
lean_dec(v_art_x3f_7380_);
v___x_7391_ = lean_box(0);
v_isShared_7392_ = v_isSharedCheck_7431_;
goto v_resetjp_7390_;
}
v_resetjp_7390_:
{
lean_object* v_log_7393_; uint8_t v_action_7394_; uint8_t v_wantsRebuild_7395_; lean_object* v_trace_7396_; lean_object* v_buildTime_7397_; lean_object* v___x_7399_; uint8_t v_isShared_7400_; uint8_t v_isSharedCheck_7430_; 
v_log_7393_ = lean_ctor_get(v_a_7386_, 0);
v_action_7394_ = lean_ctor_get_uint8(v_a_7386_, sizeof(void*)*3);
v_wantsRebuild_7395_ = lean_ctor_get_uint8(v_a_7386_, sizeof(void*)*3 + 1);
v_trace_7396_ = lean_ctor_get(v_a_7386_, 1);
v_buildTime_7397_ = lean_ctor_get(v_a_7386_, 2);
v_isSharedCheck_7430_ = !lean_is_exclusive(v_a_7386_);
if (v_isSharedCheck_7430_ == 0)
{
v___x_7399_ = v_a_7386_;
v_isShared_7400_ = v_isSharedCheck_7430_;
goto v_resetjp_7398_;
}
else
{
lean_inc(v_buildTime_7397_);
lean_inc(v_trace_7396_);
lean_inc(v_log_7393_);
lean_dec(v_a_7386_);
v___x_7399_ = lean_box(0);
v_isShared_7400_ = v_isSharedCheck_7430_;
goto v_resetjp_7398_;
}
v_resetjp_7398_:
{
uint8_t v___x_7401_; lean_object* v___x_7402_; 
v___x_7401_ = 0;
v___x_7402_ = l_Lake_restoreArtifact(v_file_7379_, v_val_7389_, v___x_7401_, v_log_7393_);
if (lean_obj_tag(v___x_7402_) == 0)
{
lean_object* v_a_7403_; lean_object* v_a_7404_; lean_object* v___x_7406_; uint8_t v_isShared_7407_; uint8_t v_isSharedCheck_7417_; 
v_a_7403_ = lean_ctor_get(v___x_7402_, 0);
v_a_7404_ = lean_ctor_get(v___x_7402_, 1);
v_isSharedCheck_7417_ = !lean_is_exclusive(v___x_7402_);
if (v_isSharedCheck_7417_ == 0)
{
v___x_7406_ = v___x_7402_;
v_isShared_7407_ = v_isSharedCheck_7417_;
goto v_resetjp_7405_;
}
else
{
lean_inc(v_a_7404_);
lean_inc(v_a_7403_);
lean_dec(v___x_7402_);
v___x_7406_ = lean_box(0);
v_isShared_7407_ = v_isSharedCheck_7417_;
goto v_resetjp_7405_;
}
v_resetjp_7405_:
{
lean_object* v___x_7409_; 
if (v_isShared_7400_ == 0)
{
lean_ctor_set(v___x_7399_, 0, v_a_7404_);
v___x_7409_ = v___x_7399_;
goto v_reusejp_7408_;
}
else
{
lean_object* v_reuseFailAlloc_7416_; 
v_reuseFailAlloc_7416_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_7416_, 0, v_a_7404_);
lean_ctor_set(v_reuseFailAlloc_7416_, 1, v_trace_7396_);
lean_ctor_set(v_reuseFailAlloc_7416_, 2, v_buildTime_7397_);
lean_ctor_set_uint8(v_reuseFailAlloc_7416_, sizeof(void*)*3, v_action_7394_);
lean_ctor_set_uint8(v_reuseFailAlloc_7416_, sizeof(void*)*3 + 1, v_wantsRebuild_7395_);
v___x_7409_ = v_reuseFailAlloc_7416_;
goto v_reusejp_7408_;
}
v_reusejp_7408_:
{
lean_object* v___x_7411_; 
if (v_isShared_7392_ == 0)
{
lean_ctor_set(v___x_7391_, 0, v_a_7403_);
v___x_7411_ = v___x_7391_;
goto v_reusejp_7410_;
}
else
{
lean_object* v_reuseFailAlloc_7415_; 
v_reuseFailAlloc_7415_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_7415_, 0, v_a_7403_);
v___x_7411_ = v_reuseFailAlloc_7415_;
goto v_reusejp_7410_;
}
v_reusejp_7410_:
{
lean_object* v___x_7413_; 
if (v_isShared_7407_ == 0)
{
lean_ctor_set(v___x_7406_, 1, v___x_7409_);
lean_ctor_set(v___x_7406_, 0, v___x_7411_);
v___x_7413_ = v___x_7406_;
goto v_reusejp_7412_;
}
else
{
lean_object* v_reuseFailAlloc_7414_; 
v_reuseFailAlloc_7414_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_7414_, 0, v___x_7411_);
lean_ctor_set(v_reuseFailAlloc_7414_, 1, v___x_7409_);
v___x_7413_ = v_reuseFailAlloc_7414_;
goto v_reusejp_7412_;
}
v_reusejp_7412_:
{
return v___x_7413_;
}
}
}
}
}
else
{
lean_object* v_a_7418_; lean_object* v_a_7419_; lean_object* v___x_7421_; uint8_t v_isShared_7422_; uint8_t v_isSharedCheck_7429_; 
lean_del_object(v___x_7391_);
v_a_7418_ = lean_ctor_get(v___x_7402_, 0);
v_a_7419_ = lean_ctor_get(v___x_7402_, 1);
v_isSharedCheck_7429_ = !lean_is_exclusive(v___x_7402_);
if (v_isSharedCheck_7429_ == 0)
{
v___x_7421_ = v___x_7402_;
v_isShared_7422_ = v_isSharedCheck_7429_;
goto v_resetjp_7420_;
}
else
{
lean_inc(v_a_7419_);
lean_inc(v_a_7418_);
lean_dec(v___x_7402_);
v___x_7421_ = lean_box(0);
v_isShared_7422_ = v_isSharedCheck_7429_;
goto v_resetjp_7420_;
}
v_resetjp_7420_:
{
lean_object* v___x_7424_; 
if (v_isShared_7400_ == 0)
{
lean_ctor_set(v___x_7399_, 0, v_a_7419_);
v___x_7424_ = v___x_7399_;
goto v_reusejp_7423_;
}
else
{
lean_object* v_reuseFailAlloc_7428_; 
v_reuseFailAlloc_7428_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_7428_, 0, v_a_7419_);
lean_ctor_set(v_reuseFailAlloc_7428_, 1, v_trace_7396_);
lean_ctor_set(v_reuseFailAlloc_7428_, 2, v_buildTime_7397_);
lean_ctor_set_uint8(v_reuseFailAlloc_7428_, sizeof(void*)*3, v_action_7394_);
lean_ctor_set_uint8(v_reuseFailAlloc_7428_, sizeof(void*)*3 + 1, v_wantsRebuild_7395_);
v___x_7424_ = v_reuseFailAlloc_7428_;
goto v_reusejp_7423_;
}
v_reusejp_7423_:
{
lean_object* v___x_7426_; 
if (v_isShared_7422_ == 0)
{
lean_ctor_set(v___x_7421_, 1, v___x_7424_);
v___x_7426_ = v___x_7421_;
goto v_reusejp_7425_;
}
else
{
lean_object* v_reuseFailAlloc_7427_; 
v_reuseFailAlloc_7427_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_7427_, 0, v_a_7418_);
lean_ctor_set(v_reuseFailAlloc_7427_, 1, v___x_7424_);
v___x_7426_ = v_reuseFailAlloc_7427_;
goto v_reusejp_7425_;
}
v_reusejp_7425_:
{
return v___x_7426_;
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts_restoreSome___boxed(lean_object* v_file_7432_, lean_object* v_art_x3f_7433_, lean_object* v_a_7434_, lean_object* v_a_7435_, lean_object* v_a_7436_, lean_object* v_a_7437_, lean_object* v_a_7438_, lean_object* v_a_7439_, lean_object* v_a_7440_){
_start:
{
lean_object* v_res_7441_; 
v_res_7441_ = l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts_restoreSome(v_file_7432_, v_art_x3f_7433_, v_a_7434_, v_a_7435_, v_a_7436_, v_a_7437_, v_a_7438_, v_a_7439_);
lean_dec_ref(v_a_7438_);
lean_dec(v_a_7437_);
lean_dec(v_a_7436_);
lean_dec(v_a_7435_);
lean_dec_ref(v_a_7434_);
return v_res_7441_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts___redArg(lean_object* v_mod_7442_, lean_object* v_cached_7443_, lean_object* v_a_7444_){
_start:
{
lean_object* v_lib_7446_; lean_object* v_pkg_7447_; lean_object* v_config_7448_; lean_object* v_name_7449_; lean_object* v_dir_7450_; lean_object* v_buildDir_7451_; lean_object* v_leanLibDir_7452_; lean_object* v_irDir_7453_; uint8_t v_isModule_7454_; lean_object* v_olean_7455_; lean_object* v_oleanServer_x3f_7456_; lean_object* v_oleanPrivate_x3f_7457_; lean_object* v_ilean_7458_; lean_object* v_ir_x3f_7459_; lean_object* v_c_7460_; lean_object* v_bc_x3f_7461_; lean_object* v_ltar_x3f_7462_; lean_object* v___x_7464_; uint8_t v_isShared_7465_; uint8_t v_isSharedCheck_7739_; 
v_lib_7446_ = lean_ctor_get(v_mod_7442_, 0);
v_pkg_7447_ = lean_ctor_get(v_lib_7446_, 0);
lean_inc_ref(v_pkg_7447_);
v_config_7448_ = lean_ctor_get(v_pkg_7447_, 6);
lean_inc_ref(v_config_7448_);
v_name_7449_ = lean_ctor_get(v_mod_7442_, 1);
lean_inc(v_name_7449_);
lean_dec_ref(v_mod_7442_);
v_dir_7450_ = lean_ctor_get(v_pkg_7447_, 4);
lean_inc_ref(v_dir_7450_);
lean_dec_ref(v_pkg_7447_);
v_buildDir_7451_ = lean_ctor_get(v_config_7448_, 6);
lean_inc_ref(v_buildDir_7451_);
v_leanLibDir_7452_ = lean_ctor_get(v_config_7448_, 7);
lean_inc_ref(v_leanLibDir_7452_);
v_irDir_7453_ = lean_ctor_get(v_config_7448_, 10);
lean_inc_ref(v_irDir_7453_);
lean_dec_ref(v_config_7448_);
v_isModule_7454_ = lean_ctor_get_uint8(v_cached_7443_, sizeof(void*)*8);
v_olean_7455_ = lean_ctor_get(v_cached_7443_, 0);
v_oleanServer_x3f_7456_ = lean_ctor_get(v_cached_7443_, 1);
v_oleanPrivate_x3f_7457_ = lean_ctor_get(v_cached_7443_, 2);
v_ilean_7458_ = lean_ctor_get(v_cached_7443_, 3);
v_ir_x3f_7459_ = lean_ctor_get(v_cached_7443_, 4);
v_c_7460_ = lean_ctor_get(v_cached_7443_, 5);
v_bc_x3f_7461_ = lean_ctor_get(v_cached_7443_, 6);
v_ltar_x3f_7462_ = lean_ctor_get(v_cached_7443_, 7);
v_isSharedCheck_7739_ = !lean_is_exclusive(v_cached_7443_);
if (v_isSharedCheck_7739_ == 0)
{
v___x_7464_ = v_cached_7443_;
v_isShared_7465_ = v_isSharedCheck_7739_;
goto v_resetjp_7463_;
}
else
{
lean_inc(v_ltar_x3f_7462_);
lean_inc(v_bc_x3f_7461_);
lean_inc(v_c_7460_);
lean_inc(v_ir_x3f_7459_);
lean_inc(v_ilean_7458_);
lean_inc(v_oleanPrivate_x3f_7457_);
lean_inc(v_oleanServer_x3f_7456_);
lean_inc(v_olean_7455_);
lean_dec(v_cached_7443_);
v___x_7464_ = lean_box(0);
v_isShared_7465_ = v_isSharedCheck_7739_;
goto v_resetjp_7463_;
}
v_resetjp_7463_:
{
lean_object* v_log_7466_; uint8_t v_action_7467_; uint8_t v_wantsRebuild_7468_; lean_object* v_trace_7469_; lean_object* v_buildTime_7470_; lean_object* v___x_7472_; uint8_t v_isShared_7473_; uint8_t v_isSharedCheck_7738_; 
v_log_7466_ = lean_ctor_get(v_a_7444_, 0);
v_action_7467_ = lean_ctor_get_uint8(v_a_7444_, sizeof(void*)*3);
v_wantsRebuild_7468_ = lean_ctor_get_uint8(v_a_7444_, sizeof(void*)*3 + 1);
v_trace_7469_ = lean_ctor_get(v_a_7444_, 1);
v_buildTime_7470_ = lean_ctor_get(v_a_7444_, 2);
v_isSharedCheck_7738_ = !lean_is_exclusive(v_a_7444_);
if (v_isSharedCheck_7738_ == 0)
{
v___x_7472_ = v_a_7444_;
v_isShared_7473_ = v_isSharedCheck_7738_;
goto v_resetjp_7471_;
}
else
{
lean_inc(v_buildTime_7470_);
lean_inc(v_trace_7469_);
lean_inc(v_log_7466_);
lean_dec(v_a_7444_);
v___x_7472_ = lean_box(0);
v_isShared_7473_ = v_isSharedCheck_7738_;
goto v_resetjp_7471_;
}
v_resetjp_7471_:
{
lean_object* v___x_7474_; lean_object* v___x_7475_; lean_object* v___x_7476_; lean_object* v___x_7477_; lean_object* v___x_7478_; lean_object* v___x_7479_; uint8_t v___x_7480_; lean_object* v___x_7481_; 
v___x_7474_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__2));
v___x_7475_ = l_System_FilePath_normalize(v_buildDir_7451_);
v___x_7476_ = l_Lake_joinRelative(v_dir_7450_, v___x_7475_);
v___x_7477_ = l_System_FilePath_normalize(v_leanLibDir_7452_);
lean_inc_ref(v___x_7476_);
v___x_7478_ = l_Lake_joinRelative(v___x_7476_, v___x_7477_);
lean_inc(v_name_7449_);
v___x_7479_ = l_Lean_modToFilePath(v___x_7478_, v_name_7449_, v___x_7474_);
v___x_7480_ = 0;
v___x_7481_ = l_Lake_restoreArtifact(v___x_7479_, v_olean_7455_, v___x_7480_, v_log_7466_);
if (lean_obj_tag(v___x_7481_) == 0)
{
lean_object* v_a_7482_; lean_object* v_a_7483_; lean_object* v___x_7485_; uint8_t v_isShared_7486_; uint8_t v_isSharedCheck_7725_; 
v_a_7482_ = lean_ctor_get(v___x_7481_, 0);
v_a_7483_ = lean_ctor_get(v___x_7481_, 1);
v_isSharedCheck_7725_ = !lean_is_exclusive(v___x_7481_);
if (v_isSharedCheck_7725_ == 0)
{
v___x_7485_ = v___x_7481_;
v_isShared_7486_ = v_isSharedCheck_7725_;
goto v_resetjp_7484_;
}
else
{
lean_inc(v_a_7483_);
lean_inc(v_a_7482_);
lean_dec(v___x_7481_);
v___x_7485_ = lean_box(0);
v_isShared_7486_ = v_isSharedCheck_7725_;
goto v_resetjp_7484_;
}
v_resetjp_7484_:
{
lean_object* v___y_7488_; lean_object* v___y_7489_; lean_object* v___y_7490_; lean_object* v___y_7491_; lean_object* v___y_7492_; lean_object* v___y_7493_; lean_object* v_a_7494_; lean_object* v_a_7495_; lean_object* v___y_7503_; lean_object* v___y_7504_; lean_object* v___y_7505_; lean_object* v___y_7506_; lean_object* v___y_7507_; lean_object* v___y_7508_; lean_object* v_a_7509_; lean_object* v_a_7510_; lean_object* v___y_7549_; lean_object* v___y_7550_; lean_object* v___y_7551_; lean_object* v_a_7552_; lean_object* v_log_7553_; uint8_t v_action_7554_; uint8_t v_wantsRebuild_7555_; lean_object* v_trace_7556_; lean_object* v_buildTime_7557_; lean_object* v___y_7611_; lean_object* v_a_7612_; lean_object* v_log_7613_; uint8_t v_action_7614_; uint8_t v_wantsRebuild_7615_; lean_object* v_trace_7616_; lean_object* v_buildTime_7617_; lean_object* v_a_7659_; lean_object* v_a_7660_; 
if (lean_obj_tag(v_oleanServer_x3f_7456_) == 0)
{
lean_object* v___x_7700_; 
v___x_7700_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v___x_7700_, 0, v_a_7483_);
lean_ctor_set(v___x_7700_, 1, v_trace_7469_);
lean_ctor_set(v___x_7700_, 2, v_buildTime_7470_);
lean_ctor_set_uint8(v___x_7700_, sizeof(void*)*3, v_action_7467_);
lean_ctor_set_uint8(v___x_7700_, sizeof(void*)*3 + 1, v_wantsRebuild_7468_);
v_a_7659_ = v_oleanServer_x3f_7456_;
v_a_7660_ = v___x_7700_;
goto v___jp_7658_;
}
else
{
lean_object* v_val_7701_; lean_object* v___x_7703_; uint8_t v_isShared_7704_; uint8_t v_isSharedCheck_7724_; 
v_val_7701_ = lean_ctor_get(v_oleanServer_x3f_7456_, 0);
v_isSharedCheck_7724_ = !lean_is_exclusive(v_oleanServer_x3f_7456_);
if (v_isSharedCheck_7724_ == 0)
{
v___x_7703_ = v_oleanServer_x3f_7456_;
v_isShared_7704_ = v_isSharedCheck_7724_;
goto v_resetjp_7702_;
}
else
{
lean_inc(v_val_7701_);
lean_dec(v_oleanServer_x3f_7456_);
v___x_7703_ = lean_box(0);
v_isShared_7704_ = v_isSharedCheck_7724_;
goto v_resetjp_7702_;
}
v_resetjp_7702_:
{
lean_object* v___x_7705_; lean_object* v___x_7706_; lean_object* v___x_7707_; 
v___x_7705_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__3));
lean_inc(v_name_7449_);
v___x_7706_ = l_Lean_modToFilePath(v___x_7478_, v_name_7449_, v___x_7705_);
v___x_7707_ = l_Lake_restoreArtifact(v___x_7706_, v_val_7701_, v___x_7480_, v_a_7483_);
if (lean_obj_tag(v___x_7707_) == 0)
{
lean_object* v_a_7708_; lean_object* v_a_7709_; lean_object* v___x_7710_; lean_object* v___x_7712_; 
v_a_7708_ = lean_ctor_get(v___x_7707_, 0);
lean_inc(v_a_7708_);
v_a_7709_ = lean_ctor_get(v___x_7707_, 1);
lean_inc(v_a_7709_);
lean_dec_ref(v___x_7707_);
v___x_7710_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v___x_7710_, 0, v_a_7709_);
lean_ctor_set(v___x_7710_, 1, v_trace_7469_);
lean_ctor_set(v___x_7710_, 2, v_buildTime_7470_);
lean_ctor_set_uint8(v___x_7710_, sizeof(void*)*3, v_action_7467_);
lean_ctor_set_uint8(v___x_7710_, sizeof(void*)*3 + 1, v_wantsRebuild_7468_);
if (v_isShared_7704_ == 0)
{
lean_ctor_set(v___x_7703_, 0, v_a_7708_);
v___x_7712_ = v___x_7703_;
goto v_reusejp_7711_;
}
else
{
lean_object* v_reuseFailAlloc_7713_; 
v_reuseFailAlloc_7713_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_7713_, 0, v_a_7708_);
v___x_7712_ = v_reuseFailAlloc_7713_;
goto v_reusejp_7711_;
}
v_reusejp_7711_:
{
v_a_7659_ = v___x_7712_;
v_a_7660_ = v___x_7710_;
goto v___jp_7658_;
}
}
else
{
lean_object* v_a_7714_; lean_object* v_a_7715_; lean_object* v___x_7717_; uint8_t v_isShared_7718_; uint8_t v_isSharedCheck_7723_; 
lean_del_object(v___x_7703_);
lean_del_object(v___x_7485_);
lean_dec(v_a_7482_);
lean_dec_ref(v___x_7478_);
lean_dec_ref(v___x_7476_);
lean_del_object(v___x_7472_);
lean_del_object(v___x_7464_);
lean_dec(v_ltar_x3f_7462_);
lean_dec(v_bc_x3f_7461_);
lean_dec_ref(v_c_7460_);
lean_dec(v_ir_x3f_7459_);
lean_dec_ref(v_ilean_7458_);
lean_dec(v_oleanPrivate_x3f_7457_);
lean_dec_ref(v_irDir_7453_);
lean_dec(v_name_7449_);
v_a_7714_ = lean_ctor_get(v___x_7707_, 0);
v_a_7715_ = lean_ctor_get(v___x_7707_, 1);
v_isSharedCheck_7723_ = !lean_is_exclusive(v___x_7707_);
if (v_isSharedCheck_7723_ == 0)
{
v___x_7717_ = v___x_7707_;
v_isShared_7718_ = v_isSharedCheck_7723_;
goto v_resetjp_7716_;
}
else
{
lean_inc(v_a_7715_);
lean_inc(v_a_7714_);
lean_dec(v___x_7707_);
v___x_7717_ = lean_box(0);
v_isShared_7718_ = v_isSharedCheck_7723_;
goto v_resetjp_7716_;
}
v_resetjp_7716_:
{
lean_object* v___x_7719_; lean_object* v___x_7721_; 
v___x_7719_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v___x_7719_, 0, v_a_7715_);
lean_ctor_set(v___x_7719_, 1, v_trace_7469_);
lean_ctor_set(v___x_7719_, 2, v_buildTime_7470_);
lean_ctor_set_uint8(v___x_7719_, sizeof(void*)*3, v_action_7467_);
lean_ctor_set_uint8(v___x_7719_, sizeof(void*)*3 + 1, v_wantsRebuild_7468_);
if (v_isShared_7718_ == 0)
{
lean_ctor_set(v___x_7717_, 1, v___x_7719_);
v___x_7721_ = v___x_7717_;
goto v_reusejp_7720_;
}
else
{
lean_object* v_reuseFailAlloc_7722_; 
v_reuseFailAlloc_7722_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_7722_, 0, v_a_7714_);
lean_ctor_set(v_reuseFailAlloc_7722_, 1, v___x_7719_);
v___x_7721_ = v_reuseFailAlloc_7722_;
goto v_reusejp_7720_;
}
v_reusejp_7720_:
{
return v___x_7721_;
}
}
}
}
}
v___jp_7487_:
{
lean_object* v___x_7497_; 
if (v_isShared_7465_ == 0)
{
lean_ctor_set(v___x_7464_, 7, v_a_7494_);
lean_ctor_set(v___x_7464_, 6, v___y_7492_);
lean_ctor_set(v___x_7464_, 5, v___y_7491_);
lean_ctor_set(v___x_7464_, 4, v___y_7493_);
lean_ctor_set(v___x_7464_, 3, v___y_7488_);
lean_ctor_set(v___x_7464_, 2, v___y_7490_);
lean_ctor_set(v___x_7464_, 1, v___y_7489_);
lean_ctor_set(v___x_7464_, 0, v_a_7482_);
v___x_7497_ = v___x_7464_;
goto v_reusejp_7496_;
}
else
{
lean_object* v_reuseFailAlloc_7501_; 
v_reuseFailAlloc_7501_ = lean_alloc_ctor(0, 8, 1);
lean_ctor_set(v_reuseFailAlloc_7501_, 0, v_a_7482_);
lean_ctor_set(v_reuseFailAlloc_7501_, 1, v___y_7489_);
lean_ctor_set(v_reuseFailAlloc_7501_, 2, v___y_7490_);
lean_ctor_set(v_reuseFailAlloc_7501_, 3, v___y_7488_);
lean_ctor_set(v_reuseFailAlloc_7501_, 4, v___y_7493_);
lean_ctor_set(v_reuseFailAlloc_7501_, 5, v___y_7491_);
lean_ctor_set(v_reuseFailAlloc_7501_, 6, v___y_7492_);
lean_ctor_set(v_reuseFailAlloc_7501_, 7, v_a_7494_);
lean_ctor_set_uint8(v_reuseFailAlloc_7501_, sizeof(void*)*8, v_isModule_7454_);
v___x_7497_ = v_reuseFailAlloc_7501_;
goto v_reusejp_7496_;
}
v_reusejp_7496_:
{
lean_object* v___x_7499_; 
if (v_isShared_7486_ == 0)
{
lean_ctor_set(v___x_7485_, 1, v_a_7495_);
lean_ctor_set(v___x_7485_, 0, v___x_7497_);
v___x_7499_ = v___x_7485_;
goto v_reusejp_7498_;
}
else
{
lean_object* v_reuseFailAlloc_7500_; 
v_reuseFailAlloc_7500_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_7500_, 0, v___x_7497_);
lean_ctor_set(v_reuseFailAlloc_7500_, 1, v_a_7495_);
v___x_7499_ = v_reuseFailAlloc_7500_;
goto v_reusejp_7498_;
}
v_reusejp_7498_:
{
return v___x_7499_;
}
}
}
v___jp_7502_:
{
if (lean_obj_tag(v_ltar_x3f_7462_) == 0)
{
lean_dec_ref(v___y_7505_);
lean_dec(v_name_7449_);
v___y_7488_ = v___y_7503_;
v___y_7489_ = v___y_7504_;
v___y_7490_ = v___y_7506_;
v___y_7491_ = v___y_7507_;
v___y_7492_ = v_a_7509_;
v___y_7493_ = v___y_7508_;
v_a_7494_ = v_ltar_x3f_7462_;
v_a_7495_ = v_a_7510_;
goto v___jp_7487_;
}
else
{
lean_object* v_val_7511_; lean_object* v___x_7513_; uint8_t v_isShared_7514_; uint8_t v_isSharedCheck_7547_; 
v_val_7511_ = lean_ctor_get(v_ltar_x3f_7462_, 0);
v_isSharedCheck_7547_ = !lean_is_exclusive(v_ltar_x3f_7462_);
if (v_isSharedCheck_7547_ == 0)
{
v___x_7513_ = v_ltar_x3f_7462_;
v_isShared_7514_ = v_isSharedCheck_7547_;
goto v_resetjp_7512_;
}
else
{
lean_inc(v_val_7511_);
lean_dec(v_ltar_x3f_7462_);
v___x_7513_ = lean_box(0);
v_isShared_7514_ = v_isSharedCheck_7547_;
goto v_resetjp_7512_;
}
v_resetjp_7512_:
{
lean_object* v_log_7515_; uint8_t v_action_7516_; uint8_t v_wantsRebuild_7517_; lean_object* v_trace_7518_; lean_object* v_buildTime_7519_; lean_object* v___x_7521_; uint8_t v_isShared_7522_; uint8_t v_isSharedCheck_7546_; 
v_log_7515_ = lean_ctor_get(v_a_7510_, 0);
v_action_7516_ = lean_ctor_get_uint8(v_a_7510_, sizeof(void*)*3);
v_wantsRebuild_7517_ = lean_ctor_get_uint8(v_a_7510_, sizeof(void*)*3 + 1);
v_trace_7518_ = lean_ctor_get(v_a_7510_, 1);
v_buildTime_7519_ = lean_ctor_get(v_a_7510_, 2);
v_isSharedCheck_7546_ = !lean_is_exclusive(v_a_7510_);
if (v_isSharedCheck_7546_ == 0)
{
v___x_7521_ = v_a_7510_;
v_isShared_7522_ = v_isSharedCheck_7546_;
goto v_resetjp_7520_;
}
else
{
lean_inc(v_buildTime_7519_);
lean_inc(v_trace_7518_);
lean_inc(v_log_7515_);
lean_dec(v_a_7510_);
v___x_7521_ = lean_box(0);
v_isShared_7522_ = v_isSharedCheck_7546_;
goto v_resetjp_7520_;
}
v_resetjp_7520_:
{
lean_object* v___x_7523_; lean_object* v___x_7524_; lean_object* v___x_7525_; 
v___x_7523_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__1));
v___x_7524_ = l_Lean_modToFilePath(v___y_7505_, v_name_7449_, v___x_7523_);
lean_dec_ref(v___y_7505_);
v___x_7525_ = l_Lake_restoreArtifact(v___x_7524_, v_val_7511_, v___x_7480_, v_log_7515_);
if (lean_obj_tag(v___x_7525_) == 0)
{
lean_object* v_a_7526_; lean_object* v_a_7527_; lean_object* v___x_7529_; 
v_a_7526_ = lean_ctor_get(v___x_7525_, 0);
lean_inc(v_a_7526_);
v_a_7527_ = lean_ctor_get(v___x_7525_, 1);
lean_inc(v_a_7527_);
lean_dec_ref(v___x_7525_);
if (v_isShared_7522_ == 0)
{
lean_ctor_set(v___x_7521_, 0, v_a_7527_);
v___x_7529_ = v___x_7521_;
goto v_reusejp_7528_;
}
else
{
lean_object* v_reuseFailAlloc_7533_; 
v_reuseFailAlloc_7533_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_7533_, 0, v_a_7527_);
lean_ctor_set(v_reuseFailAlloc_7533_, 1, v_trace_7518_);
lean_ctor_set(v_reuseFailAlloc_7533_, 2, v_buildTime_7519_);
lean_ctor_set_uint8(v_reuseFailAlloc_7533_, sizeof(void*)*3, v_action_7516_);
lean_ctor_set_uint8(v_reuseFailAlloc_7533_, sizeof(void*)*3 + 1, v_wantsRebuild_7517_);
v___x_7529_ = v_reuseFailAlloc_7533_;
goto v_reusejp_7528_;
}
v_reusejp_7528_:
{
lean_object* v___x_7531_; 
if (v_isShared_7514_ == 0)
{
lean_ctor_set(v___x_7513_, 0, v_a_7526_);
v___x_7531_ = v___x_7513_;
goto v_reusejp_7530_;
}
else
{
lean_object* v_reuseFailAlloc_7532_; 
v_reuseFailAlloc_7532_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_7532_, 0, v_a_7526_);
v___x_7531_ = v_reuseFailAlloc_7532_;
goto v_reusejp_7530_;
}
v_reusejp_7530_:
{
v___y_7488_ = v___y_7503_;
v___y_7489_ = v___y_7504_;
v___y_7490_ = v___y_7506_;
v___y_7491_ = v___y_7507_;
v___y_7492_ = v_a_7509_;
v___y_7493_ = v___y_7508_;
v_a_7494_ = v___x_7531_;
v_a_7495_ = v___x_7529_;
goto v___jp_7487_;
}
}
}
else
{
lean_object* v_a_7534_; lean_object* v_a_7535_; lean_object* v___x_7537_; uint8_t v_isShared_7538_; uint8_t v_isSharedCheck_7545_; 
lean_del_object(v___x_7513_);
lean_dec(v_a_7509_);
lean_dec(v___y_7508_);
lean_dec_ref(v___y_7507_);
lean_dec(v___y_7506_);
lean_dec(v___y_7504_);
lean_dec_ref(v___y_7503_);
lean_del_object(v___x_7485_);
lean_dec(v_a_7482_);
lean_del_object(v___x_7464_);
v_a_7534_ = lean_ctor_get(v___x_7525_, 0);
v_a_7535_ = lean_ctor_get(v___x_7525_, 1);
v_isSharedCheck_7545_ = !lean_is_exclusive(v___x_7525_);
if (v_isSharedCheck_7545_ == 0)
{
v___x_7537_ = v___x_7525_;
v_isShared_7538_ = v_isSharedCheck_7545_;
goto v_resetjp_7536_;
}
else
{
lean_inc(v_a_7535_);
lean_inc(v_a_7534_);
lean_dec(v___x_7525_);
v___x_7537_ = lean_box(0);
v_isShared_7538_ = v_isSharedCheck_7545_;
goto v_resetjp_7536_;
}
v_resetjp_7536_:
{
lean_object* v___x_7540_; 
if (v_isShared_7522_ == 0)
{
lean_ctor_set(v___x_7521_, 0, v_a_7535_);
v___x_7540_ = v___x_7521_;
goto v_reusejp_7539_;
}
else
{
lean_object* v_reuseFailAlloc_7544_; 
v_reuseFailAlloc_7544_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_7544_, 0, v_a_7535_);
lean_ctor_set(v_reuseFailAlloc_7544_, 1, v_trace_7518_);
lean_ctor_set(v_reuseFailAlloc_7544_, 2, v_buildTime_7519_);
lean_ctor_set_uint8(v_reuseFailAlloc_7544_, sizeof(void*)*3, v_action_7516_);
lean_ctor_set_uint8(v_reuseFailAlloc_7544_, sizeof(void*)*3 + 1, v_wantsRebuild_7517_);
v___x_7540_ = v_reuseFailAlloc_7544_;
goto v_reusejp_7539_;
}
v_reusejp_7539_:
{
lean_object* v___x_7542_; 
if (v_isShared_7538_ == 0)
{
lean_ctor_set(v___x_7537_, 1, v___x_7540_);
v___x_7542_ = v___x_7537_;
goto v_reusejp_7541_;
}
else
{
lean_object* v_reuseFailAlloc_7543_; 
v_reuseFailAlloc_7543_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_7543_, 0, v_a_7534_);
lean_ctor_set(v_reuseFailAlloc_7543_, 1, v___x_7540_);
v___x_7542_ = v_reuseFailAlloc_7543_;
goto v_reusejp_7541_;
}
v_reusejp_7541_:
{
return v___x_7542_;
}
}
}
}
}
}
}
}
v___jp_7548_:
{
lean_object* v___x_7558_; lean_object* v___x_7559_; lean_object* v___x_7560_; lean_object* v___x_7561_; lean_object* v___x_7562_; 
v___x_7558_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__7));
v___x_7559_ = l_System_FilePath_normalize(v_irDir_7453_);
v___x_7560_ = l_Lake_joinRelative(v___x_7476_, v___x_7559_);
lean_inc(v_name_7449_);
v___x_7561_ = l_Lean_modToFilePath(v___x_7560_, v_name_7449_, v___x_7558_);
v___x_7562_ = l_Lake_restoreArtifact(v___x_7561_, v_c_7460_, v___x_7480_, v_log_7553_);
if (lean_obj_tag(v___x_7562_) == 0)
{
if (lean_obj_tag(v_bc_x3f_7461_) == 0)
{
lean_object* v_a_7563_; lean_object* v_a_7564_; lean_object* v___x_7566_; 
v_a_7563_ = lean_ctor_get(v___x_7562_, 0);
lean_inc(v_a_7563_);
v_a_7564_ = lean_ctor_get(v___x_7562_, 1);
lean_inc(v_a_7564_);
lean_dec_ref(v___x_7562_);
if (v_isShared_7473_ == 0)
{
lean_ctor_set(v___x_7472_, 2, v_buildTime_7557_);
lean_ctor_set(v___x_7472_, 1, v_trace_7556_);
lean_ctor_set(v___x_7472_, 0, v_a_7564_);
v___x_7566_ = v___x_7472_;
goto v_reusejp_7565_;
}
else
{
lean_object* v_reuseFailAlloc_7567_; 
v_reuseFailAlloc_7567_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_7567_, 0, v_a_7564_);
lean_ctor_set(v_reuseFailAlloc_7567_, 1, v_trace_7556_);
lean_ctor_set(v_reuseFailAlloc_7567_, 2, v_buildTime_7557_);
v___x_7566_ = v_reuseFailAlloc_7567_;
goto v_reusejp_7565_;
}
v_reusejp_7565_:
{
lean_ctor_set_uint8(v___x_7566_, sizeof(void*)*3, v_action_7554_);
lean_ctor_set_uint8(v___x_7566_, sizeof(void*)*3 + 1, v_wantsRebuild_7555_);
v___y_7503_ = v___y_7549_;
v___y_7504_ = v___y_7550_;
v___y_7505_ = v___x_7560_;
v___y_7506_ = v___y_7551_;
v___y_7507_ = v_a_7563_;
v___y_7508_ = v_a_7552_;
v_a_7509_ = v_bc_x3f_7461_;
v_a_7510_ = v___x_7566_;
goto v___jp_7502_;
}
}
else
{
lean_object* v_a_7568_; lean_object* v_a_7569_; lean_object* v_val_7570_; lean_object* v___x_7572_; uint8_t v_isShared_7573_; uint8_t v_isSharedCheck_7597_; 
v_a_7568_ = lean_ctor_get(v___x_7562_, 0);
lean_inc(v_a_7568_);
v_a_7569_ = lean_ctor_get(v___x_7562_, 1);
lean_inc(v_a_7569_);
lean_dec_ref(v___x_7562_);
v_val_7570_ = lean_ctor_get(v_bc_x3f_7461_, 0);
v_isSharedCheck_7597_ = !lean_is_exclusive(v_bc_x3f_7461_);
if (v_isSharedCheck_7597_ == 0)
{
v___x_7572_ = v_bc_x3f_7461_;
v_isShared_7573_ = v_isSharedCheck_7597_;
goto v_resetjp_7571_;
}
else
{
lean_inc(v_val_7570_);
lean_dec(v_bc_x3f_7461_);
v___x_7572_ = lean_box(0);
v_isShared_7573_ = v_isSharedCheck_7597_;
goto v_resetjp_7571_;
}
v_resetjp_7571_:
{
lean_object* v___x_7574_; lean_object* v___x_7575_; lean_object* v___x_7576_; 
v___x_7574_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__8));
lean_inc(v_name_7449_);
v___x_7575_ = l_Lean_modToFilePath(v___x_7560_, v_name_7449_, v___x_7574_);
v___x_7576_ = l_Lake_restoreArtifact(v___x_7575_, v_val_7570_, v___x_7480_, v_a_7569_);
if (lean_obj_tag(v___x_7576_) == 0)
{
lean_object* v_a_7577_; lean_object* v_a_7578_; lean_object* v___x_7580_; 
v_a_7577_ = lean_ctor_get(v___x_7576_, 0);
lean_inc(v_a_7577_);
v_a_7578_ = lean_ctor_get(v___x_7576_, 1);
lean_inc(v_a_7578_);
lean_dec_ref(v___x_7576_);
if (v_isShared_7473_ == 0)
{
lean_ctor_set(v___x_7472_, 2, v_buildTime_7557_);
lean_ctor_set(v___x_7472_, 1, v_trace_7556_);
lean_ctor_set(v___x_7472_, 0, v_a_7578_);
v___x_7580_ = v___x_7472_;
goto v_reusejp_7579_;
}
else
{
lean_object* v_reuseFailAlloc_7584_; 
v_reuseFailAlloc_7584_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_7584_, 0, v_a_7578_);
lean_ctor_set(v_reuseFailAlloc_7584_, 1, v_trace_7556_);
lean_ctor_set(v_reuseFailAlloc_7584_, 2, v_buildTime_7557_);
v___x_7580_ = v_reuseFailAlloc_7584_;
goto v_reusejp_7579_;
}
v_reusejp_7579_:
{
lean_object* v___x_7582_; 
lean_ctor_set_uint8(v___x_7580_, sizeof(void*)*3, v_action_7554_);
lean_ctor_set_uint8(v___x_7580_, sizeof(void*)*3 + 1, v_wantsRebuild_7555_);
if (v_isShared_7573_ == 0)
{
lean_ctor_set(v___x_7572_, 0, v_a_7577_);
v___x_7582_ = v___x_7572_;
goto v_reusejp_7581_;
}
else
{
lean_object* v_reuseFailAlloc_7583_; 
v_reuseFailAlloc_7583_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_7583_, 0, v_a_7577_);
v___x_7582_ = v_reuseFailAlloc_7583_;
goto v_reusejp_7581_;
}
v_reusejp_7581_:
{
v___y_7503_ = v___y_7549_;
v___y_7504_ = v___y_7550_;
v___y_7505_ = v___x_7560_;
v___y_7506_ = v___y_7551_;
v___y_7507_ = v_a_7568_;
v___y_7508_ = v_a_7552_;
v_a_7509_ = v___x_7582_;
v_a_7510_ = v___x_7580_;
goto v___jp_7502_;
}
}
}
else
{
lean_object* v_a_7585_; lean_object* v_a_7586_; lean_object* v___x_7588_; uint8_t v_isShared_7589_; uint8_t v_isSharedCheck_7596_; 
lean_del_object(v___x_7572_);
lean_dec(v_a_7568_);
lean_dec_ref(v___x_7560_);
lean_dec(v_a_7552_);
lean_dec(v___y_7551_);
lean_dec(v___y_7550_);
lean_dec_ref(v___y_7549_);
lean_del_object(v___x_7485_);
lean_dec(v_a_7482_);
lean_del_object(v___x_7464_);
lean_dec(v_ltar_x3f_7462_);
lean_dec(v_name_7449_);
v_a_7585_ = lean_ctor_get(v___x_7576_, 0);
v_a_7586_ = lean_ctor_get(v___x_7576_, 1);
v_isSharedCheck_7596_ = !lean_is_exclusive(v___x_7576_);
if (v_isSharedCheck_7596_ == 0)
{
v___x_7588_ = v___x_7576_;
v_isShared_7589_ = v_isSharedCheck_7596_;
goto v_resetjp_7587_;
}
else
{
lean_inc(v_a_7586_);
lean_inc(v_a_7585_);
lean_dec(v___x_7576_);
v___x_7588_ = lean_box(0);
v_isShared_7589_ = v_isSharedCheck_7596_;
goto v_resetjp_7587_;
}
v_resetjp_7587_:
{
lean_object* v___x_7591_; 
if (v_isShared_7473_ == 0)
{
lean_ctor_set(v___x_7472_, 2, v_buildTime_7557_);
lean_ctor_set(v___x_7472_, 1, v_trace_7556_);
lean_ctor_set(v___x_7472_, 0, v_a_7586_);
v___x_7591_ = v___x_7472_;
goto v_reusejp_7590_;
}
else
{
lean_object* v_reuseFailAlloc_7595_; 
v_reuseFailAlloc_7595_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_7595_, 0, v_a_7586_);
lean_ctor_set(v_reuseFailAlloc_7595_, 1, v_trace_7556_);
lean_ctor_set(v_reuseFailAlloc_7595_, 2, v_buildTime_7557_);
v___x_7591_ = v_reuseFailAlloc_7595_;
goto v_reusejp_7590_;
}
v_reusejp_7590_:
{
lean_object* v___x_7593_; 
lean_ctor_set_uint8(v___x_7591_, sizeof(void*)*3, v_action_7554_);
lean_ctor_set_uint8(v___x_7591_, sizeof(void*)*3 + 1, v_wantsRebuild_7555_);
if (v_isShared_7589_ == 0)
{
lean_ctor_set(v___x_7588_, 1, v___x_7591_);
v___x_7593_ = v___x_7588_;
goto v_reusejp_7592_;
}
else
{
lean_object* v_reuseFailAlloc_7594_; 
v_reuseFailAlloc_7594_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_7594_, 0, v_a_7585_);
lean_ctor_set(v_reuseFailAlloc_7594_, 1, v___x_7591_);
v___x_7593_ = v_reuseFailAlloc_7594_;
goto v_reusejp_7592_;
}
v_reusejp_7592_:
{
return v___x_7593_;
}
}
}
}
}
}
}
else
{
lean_object* v_a_7598_; lean_object* v_a_7599_; lean_object* v___x_7601_; uint8_t v_isShared_7602_; uint8_t v_isSharedCheck_7609_; 
lean_dec_ref(v___x_7560_);
lean_dec(v_a_7552_);
lean_dec(v___y_7551_);
lean_dec(v___y_7550_);
lean_dec_ref(v___y_7549_);
lean_del_object(v___x_7485_);
lean_dec(v_a_7482_);
lean_del_object(v___x_7464_);
lean_dec(v_ltar_x3f_7462_);
lean_dec(v_bc_x3f_7461_);
lean_dec(v_name_7449_);
v_a_7598_ = lean_ctor_get(v___x_7562_, 0);
v_a_7599_ = lean_ctor_get(v___x_7562_, 1);
v_isSharedCheck_7609_ = !lean_is_exclusive(v___x_7562_);
if (v_isSharedCheck_7609_ == 0)
{
v___x_7601_ = v___x_7562_;
v_isShared_7602_ = v_isSharedCheck_7609_;
goto v_resetjp_7600_;
}
else
{
lean_inc(v_a_7599_);
lean_inc(v_a_7598_);
lean_dec(v___x_7562_);
v___x_7601_ = lean_box(0);
v_isShared_7602_ = v_isSharedCheck_7609_;
goto v_resetjp_7600_;
}
v_resetjp_7600_:
{
lean_object* v___x_7604_; 
if (v_isShared_7473_ == 0)
{
lean_ctor_set(v___x_7472_, 2, v_buildTime_7557_);
lean_ctor_set(v___x_7472_, 1, v_trace_7556_);
lean_ctor_set(v___x_7472_, 0, v_a_7599_);
v___x_7604_ = v___x_7472_;
goto v_reusejp_7603_;
}
else
{
lean_object* v_reuseFailAlloc_7608_; 
v_reuseFailAlloc_7608_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_7608_, 0, v_a_7599_);
lean_ctor_set(v_reuseFailAlloc_7608_, 1, v_trace_7556_);
lean_ctor_set(v_reuseFailAlloc_7608_, 2, v_buildTime_7557_);
v___x_7604_ = v_reuseFailAlloc_7608_;
goto v_reusejp_7603_;
}
v_reusejp_7603_:
{
lean_object* v___x_7606_; 
lean_ctor_set_uint8(v___x_7604_, sizeof(void*)*3, v_action_7554_);
lean_ctor_set_uint8(v___x_7604_, sizeof(void*)*3 + 1, v_wantsRebuild_7555_);
if (v_isShared_7602_ == 0)
{
lean_ctor_set(v___x_7601_, 1, v___x_7604_);
v___x_7606_ = v___x_7601_;
goto v_reusejp_7605_;
}
else
{
lean_object* v_reuseFailAlloc_7607_; 
v_reuseFailAlloc_7607_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_7607_, 0, v_a_7598_);
lean_ctor_set(v_reuseFailAlloc_7607_, 1, v___x_7604_);
v___x_7606_ = v_reuseFailAlloc_7607_;
goto v_reusejp_7605_;
}
v_reusejp_7605_:
{
return v___x_7606_;
}
}
}
}
}
v___jp_7610_:
{
lean_object* v___x_7618_; lean_object* v___x_7619_; lean_object* v___x_7620_; 
v___x_7618_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__5));
lean_inc(v_name_7449_);
v___x_7619_ = l_Lean_modToFilePath(v___x_7478_, v_name_7449_, v___x_7618_);
v___x_7620_ = l_Lake_restoreArtifact(v___x_7619_, v_ilean_7458_, v___x_7480_, v_log_7613_);
if (lean_obj_tag(v___x_7620_) == 0)
{
if (lean_obj_tag(v_ir_x3f_7459_) == 0)
{
lean_object* v_a_7621_; lean_object* v_a_7622_; 
lean_dec_ref(v___x_7478_);
v_a_7621_ = lean_ctor_get(v___x_7620_, 0);
lean_inc(v_a_7621_);
v_a_7622_ = lean_ctor_get(v___x_7620_, 1);
lean_inc(v_a_7622_);
lean_dec_ref(v___x_7620_);
v___y_7549_ = v_a_7621_;
v___y_7550_ = v___y_7611_;
v___y_7551_ = v_a_7612_;
v_a_7552_ = v_ir_x3f_7459_;
v_log_7553_ = v_a_7622_;
v_action_7554_ = v_action_7614_;
v_wantsRebuild_7555_ = v_wantsRebuild_7615_;
v_trace_7556_ = v_trace_7616_;
v_buildTime_7557_ = v_buildTime_7617_;
goto v___jp_7548_;
}
else
{
lean_object* v_a_7623_; lean_object* v_a_7624_; lean_object* v_val_7625_; lean_object* v___x_7627_; uint8_t v_isShared_7628_; uint8_t v_isSharedCheck_7647_; 
v_a_7623_ = lean_ctor_get(v___x_7620_, 0);
lean_inc(v_a_7623_);
v_a_7624_ = lean_ctor_get(v___x_7620_, 1);
lean_inc(v_a_7624_);
lean_dec_ref(v___x_7620_);
v_val_7625_ = lean_ctor_get(v_ir_x3f_7459_, 0);
v_isSharedCheck_7647_ = !lean_is_exclusive(v_ir_x3f_7459_);
if (v_isSharedCheck_7647_ == 0)
{
v___x_7627_ = v_ir_x3f_7459_;
v_isShared_7628_ = v_isSharedCheck_7647_;
goto v_resetjp_7626_;
}
else
{
lean_inc(v_val_7625_);
lean_dec(v_ir_x3f_7459_);
v___x_7627_ = lean_box(0);
v_isShared_7628_ = v_isSharedCheck_7647_;
goto v_resetjp_7626_;
}
v_resetjp_7626_:
{
lean_object* v___x_7629_; lean_object* v___x_7630_; lean_object* v___x_7631_; 
v___x_7629_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__6));
lean_inc(v_name_7449_);
v___x_7630_ = l_Lean_modToFilePath(v___x_7478_, v_name_7449_, v___x_7629_);
lean_dec_ref(v___x_7478_);
v___x_7631_ = l_Lake_restoreArtifact(v___x_7630_, v_val_7625_, v___x_7480_, v_a_7624_);
if (lean_obj_tag(v___x_7631_) == 0)
{
lean_object* v_a_7632_; lean_object* v_a_7633_; lean_object* v___x_7635_; 
v_a_7632_ = lean_ctor_get(v___x_7631_, 0);
lean_inc(v_a_7632_);
v_a_7633_ = lean_ctor_get(v___x_7631_, 1);
lean_inc(v_a_7633_);
lean_dec_ref(v___x_7631_);
if (v_isShared_7628_ == 0)
{
lean_ctor_set(v___x_7627_, 0, v_a_7632_);
v___x_7635_ = v___x_7627_;
goto v_reusejp_7634_;
}
else
{
lean_object* v_reuseFailAlloc_7636_; 
v_reuseFailAlloc_7636_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_7636_, 0, v_a_7632_);
v___x_7635_ = v_reuseFailAlloc_7636_;
goto v_reusejp_7634_;
}
v_reusejp_7634_:
{
v___y_7549_ = v_a_7623_;
v___y_7550_ = v___y_7611_;
v___y_7551_ = v_a_7612_;
v_a_7552_ = v___x_7635_;
v_log_7553_ = v_a_7633_;
v_action_7554_ = v_action_7614_;
v_wantsRebuild_7555_ = v_wantsRebuild_7615_;
v_trace_7556_ = v_trace_7616_;
v_buildTime_7557_ = v_buildTime_7617_;
goto v___jp_7548_;
}
}
else
{
lean_object* v_a_7637_; lean_object* v_a_7638_; lean_object* v___x_7640_; uint8_t v_isShared_7641_; uint8_t v_isSharedCheck_7646_; 
lean_del_object(v___x_7627_);
lean_dec(v_a_7623_);
lean_dec(v_a_7612_);
lean_dec(v___y_7611_);
lean_del_object(v___x_7485_);
lean_dec(v_a_7482_);
lean_dec_ref(v___x_7476_);
lean_del_object(v___x_7472_);
lean_del_object(v___x_7464_);
lean_dec(v_ltar_x3f_7462_);
lean_dec(v_bc_x3f_7461_);
lean_dec_ref(v_c_7460_);
lean_dec_ref(v_irDir_7453_);
lean_dec(v_name_7449_);
v_a_7637_ = lean_ctor_get(v___x_7631_, 0);
v_a_7638_ = lean_ctor_get(v___x_7631_, 1);
v_isSharedCheck_7646_ = !lean_is_exclusive(v___x_7631_);
if (v_isSharedCheck_7646_ == 0)
{
v___x_7640_ = v___x_7631_;
v_isShared_7641_ = v_isSharedCheck_7646_;
goto v_resetjp_7639_;
}
else
{
lean_inc(v_a_7638_);
lean_inc(v_a_7637_);
lean_dec(v___x_7631_);
v___x_7640_ = lean_box(0);
v_isShared_7641_ = v_isSharedCheck_7646_;
goto v_resetjp_7639_;
}
v_resetjp_7639_:
{
lean_object* v___x_7642_; lean_object* v___x_7644_; 
v___x_7642_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v___x_7642_, 0, v_a_7638_);
lean_ctor_set(v___x_7642_, 1, v_trace_7616_);
lean_ctor_set(v___x_7642_, 2, v_buildTime_7617_);
lean_ctor_set_uint8(v___x_7642_, sizeof(void*)*3, v_action_7614_);
lean_ctor_set_uint8(v___x_7642_, sizeof(void*)*3 + 1, v_wantsRebuild_7615_);
if (v_isShared_7641_ == 0)
{
lean_ctor_set(v___x_7640_, 1, v___x_7642_);
v___x_7644_ = v___x_7640_;
goto v_reusejp_7643_;
}
else
{
lean_object* v_reuseFailAlloc_7645_; 
v_reuseFailAlloc_7645_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_7645_, 0, v_a_7637_);
lean_ctor_set(v_reuseFailAlloc_7645_, 1, v___x_7642_);
v___x_7644_ = v_reuseFailAlloc_7645_;
goto v_reusejp_7643_;
}
v_reusejp_7643_:
{
return v___x_7644_;
}
}
}
}
}
}
else
{
lean_object* v_a_7648_; lean_object* v_a_7649_; lean_object* v___x_7651_; uint8_t v_isShared_7652_; uint8_t v_isSharedCheck_7657_; 
lean_dec(v_a_7612_);
lean_dec(v___y_7611_);
lean_del_object(v___x_7485_);
lean_dec(v_a_7482_);
lean_dec_ref(v___x_7478_);
lean_dec_ref(v___x_7476_);
lean_del_object(v___x_7472_);
lean_del_object(v___x_7464_);
lean_dec(v_ltar_x3f_7462_);
lean_dec(v_bc_x3f_7461_);
lean_dec_ref(v_c_7460_);
lean_dec(v_ir_x3f_7459_);
lean_dec_ref(v_irDir_7453_);
lean_dec(v_name_7449_);
v_a_7648_ = lean_ctor_get(v___x_7620_, 0);
v_a_7649_ = lean_ctor_get(v___x_7620_, 1);
v_isSharedCheck_7657_ = !lean_is_exclusive(v___x_7620_);
if (v_isSharedCheck_7657_ == 0)
{
v___x_7651_ = v___x_7620_;
v_isShared_7652_ = v_isSharedCheck_7657_;
goto v_resetjp_7650_;
}
else
{
lean_inc(v_a_7649_);
lean_inc(v_a_7648_);
lean_dec(v___x_7620_);
v___x_7651_ = lean_box(0);
v_isShared_7652_ = v_isSharedCheck_7657_;
goto v_resetjp_7650_;
}
v_resetjp_7650_:
{
lean_object* v___x_7653_; lean_object* v___x_7655_; 
v___x_7653_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v___x_7653_, 0, v_a_7649_);
lean_ctor_set(v___x_7653_, 1, v_trace_7616_);
lean_ctor_set(v___x_7653_, 2, v_buildTime_7617_);
lean_ctor_set_uint8(v___x_7653_, sizeof(void*)*3, v_action_7614_);
lean_ctor_set_uint8(v___x_7653_, sizeof(void*)*3 + 1, v_wantsRebuild_7615_);
if (v_isShared_7652_ == 0)
{
lean_ctor_set(v___x_7651_, 1, v___x_7653_);
v___x_7655_ = v___x_7651_;
goto v_reusejp_7654_;
}
else
{
lean_object* v_reuseFailAlloc_7656_; 
v_reuseFailAlloc_7656_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_7656_, 0, v_a_7648_);
lean_ctor_set(v_reuseFailAlloc_7656_, 1, v___x_7653_);
v___x_7655_ = v_reuseFailAlloc_7656_;
goto v_reusejp_7654_;
}
v_reusejp_7654_:
{
return v___x_7655_;
}
}
}
}
v___jp_7658_:
{
if (lean_obj_tag(v_oleanPrivate_x3f_7457_) == 0)
{
lean_object* v_log_7661_; uint8_t v_action_7662_; uint8_t v_wantsRebuild_7663_; lean_object* v_trace_7664_; lean_object* v_buildTime_7665_; 
v_log_7661_ = lean_ctor_get(v_a_7660_, 0);
lean_inc_ref(v_log_7661_);
v_action_7662_ = lean_ctor_get_uint8(v_a_7660_, sizeof(void*)*3);
v_wantsRebuild_7663_ = lean_ctor_get_uint8(v_a_7660_, sizeof(void*)*3 + 1);
v_trace_7664_ = lean_ctor_get(v_a_7660_, 1);
lean_inc_ref(v_trace_7664_);
v_buildTime_7665_ = lean_ctor_get(v_a_7660_, 2);
lean_inc(v_buildTime_7665_);
lean_dec_ref(v_a_7660_);
v___y_7611_ = v_a_7659_;
v_a_7612_ = v_oleanPrivate_x3f_7457_;
v_log_7613_ = v_log_7661_;
v_action_7614_ = v_action_7662_;
v_wantsRebuild_7615_ = v_wantsRebuild_7663_;
v_trace_7616_ = v_trace_7664_;
v_buildTime_7617_ = v_buildTime_7665_;
goto v___jp_7610_;
}
else
{
lean_object* v_val_7666_; lean_object* v___x_7668_; uint8_t v_isShared_7669_; uint8_t v_isSharedCheck_7699_; 
v_val_7666_ = lean_ctor_get(v_oleanPrivate_x3f_7457_, 0);
v_isSharedCheck_7699_ = !lean_is_exclusive(v_oleanPrivate_x3f_7457_);
if (v_isSharedCheck_7699_ == 0)
{
v___x_7668_ = v_oleanPrivate_x3f_7457_;
v_isShared_7669_ = v_isSharedCheck_7699_;
goto v_resetjp_7667_;
}
else
{
lean_inc(v_val_7666_);
lean_dec(v_oleanPrivate_x3f_7457_);
v___x_7668_ = lean_box(0);
v_isShared_7669_ = v_isSharedCheck_7699_;
goto v_resetjp_7667_;
}
v_resetjp_7667_:
{
lean_object* v_log_7670_; uint8_t v_action_7671_; uint8_t v_wantsRebuild_7672_; lean_object* v_trace_7673_; lean_object* v_buildTime_7674_; lean_object* v___x_7676_; uint8_t v_isShared_7677_; uint8_t v_isSharedCheck_7698_; 
v_log_7670_ = lean_ctor_get(v_a_7660_, 0);
v_action_7671_ = lean_ctor_get_uint8(v_a_7660_, sizeof(void*)*3);
v_wantsRebuild_7672_ = lean_ctor_get_uint8(v_a_7660_, sizeof(void*)*3 + 1);
v_trace_7673_ = lean_ctor_get(v_a_7660_, 1);
v_buildTime_7674_ = lean_ctor_get(v_a_7660_, 2);
v_isSharedCheck_7698_ = !lean_is_exclusive(v_a_7660_);
if (v_isSharedCheck_7698_ == 0)
{
v___x_7676_ = v_a_7660_;
v_isShared_7677_ = v_isSharedCheck_7698_;
goto v_resetjp_7675_;
}
else
{
lean_inc(v_buildTime_7674_);
lean_inc(v_trace_7673_);
lean_inc(v_log_7670_);
lean_dec(v_a_7660_);
v___x_7676_ = lean_box(0);
v_isShared_7677_ = v_isSharedCheck_7698_;
goto v_resetjp_7675_;
}
v_resetjp_7675_:
{
lean_object* v___x_7678_; lean_object* v___x_7679_; lean_object* v___x_7680_; 
v___x_7678_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__4));
lean_inc(v_name_7449_);
v___x_7679_ = l_Lean_modToFilePath(v___x_7478_, v_name_7449_, v___x_7678_);
v___x_7680_ = l_Lake_restoreArtifact(v___x_7679_, v_val_7666_, v___x_7480_, v_log_7670_);
if (lean_obj_tag(v___x_7680_) == 0)
{
lean_object* v_a_7681_; lean_object* v_a_7682_; lean_object* v___x_7684_; 
lean_del_object(v___x_7676_);
v_a_7681_ = lean_ctor_get(v___x_7680_, 0);
lean_inc(v_a_7681_);
v_a_7682_ = lean_ctor_get(v___x_7680_, 1);
lean_inc(v_a_7682_);
lean_dec_ref(v___x_7680_);
if (v_isShared_7669_ == 0)
{
lean_ctor_set(v___x_7668_, 0, v_a_7681_);
v___x_7684_ = v___x_7668_;
goto v_reusejp_7683_;
}
else
{
lean_object* v_reuseFailAlloc_7685_; 
v_reuseFailAlloc_7685_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_7685_, 0, v_a_7681_);
v___x_7684_ = v_reuseFailAlloc_7685_;
goto v_reusejp_7683_;
}
v_reusejp_7683_:
{
v___y_7611_ = v_a_7659_;
v_a_7612_ = v___x_7684_;
v_log_7613_ = v_a_7682_;
v_action_7614_ = v_action_7671_;
v_wantsRebuild_7615_ = v_wantsRebuild_7672_;
v_trace_7616_ = v_trace_7673_;
v_buildTime_7617_ = v_buildTime_7674_;
goto v___jp_7610_;
}
}
else
{
lean_object* v_a_7686_; lean_object* v_a_7687_; lean_object* v___x_7689_; uint8_t v_isShared_7690_; uint8_t v_isSharedCheck_7697_; 
lean_del_object(v___x_7668_);
lean_dec(v_a_7659_);
lean_del_object(v___x_7485_);
lean_dec(v_a_7482_);
lean_dec_ref(v___x_7478_);
lean_dec_ref(v___x_7476_);
lean_del_object(v___x_7472_);
lean_del_object(v___x_7464_);
lean_dec(v_ltar_x3f_7462_);
lean_dec(v_bc_x3f_7461_);
lean_dec_ref(v_c_7460_);
lean_dec(v_ir_x3f_7459_);
lean_dec_ref(v_ilean_7458_);
lean_dec_ref(v_irDir_7453_);
lean_dec(v_name_7449_);
v_a_7686_ = lean_ctor_get(v___x_7680_, 0);
v_a_7687_ = lean_ctor_get(v___x_7680_, 1);
v_isSharedCheck_7697_ = !lean_is_exclusive(v___x_7680_);
if (v_isSharedCheck_7697_ == 0)
{
v___x_7689_ = v___x_7680_;
v_isShared_7690_ = v_isSharedCheck_7697_;
goto v_resetjp_7688_;
}
else
{
lean_inc(v_a_7687_);
lean_inc(v_a_7686_);
lean_dec(v___x_7680_);
v___x_7689_ = lean_box(0);
v_isShared_7690_ = v_isSharedCheck_7697_;
goto v_resetjp_7688_;
}
v_resetjp_7688_:
{
lean_object* v___x_7692_; 
if (v_isShared_7677_ == 0)
{
lean_ctor_set(v___x_7676_, 0, v_a_7687_);
v___x_7692_ = v___x_7676_;
goto v_reusejp_7691_;
}
else
{
lean_object* v_reuseFailAlloc_7696_; 
v_reuseFailAlloc_7696_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_7696_, 0, v_a_7687_);
lean_ctor_set(v_reuseFailAlloc_7696_, 1, v_trace_7673_);
lean_ctor_set(v_reuseFailAlloc_7696_, 2, v_buildTime_7674_);
lean_ctor_set_uint8(v_reuseFailAlloc_7696_, sizeof(void*)*3, v_action_7671_);
lean_ctor_set_uint8(v_reuseFailAlloc_7696_, sizeof(void*)*3 + 1, v_wantsRebuild_7672_);
v___x_7692_ = v_reuseFailAlloc_7696_;
goto v_reusejp_7691_;
}
v_reusejp_7691_:
{
lean_object* v___x_7694_; 
if (v_isShared_7690_ == 0)
{
lean_ctor_set(v___x_7689_, 1, v___x_7692_);
v___x_7694_ = v___x_7689_;
goto v_reusejp_7693_;
}
else
{
lean_object* v_reuseFailAlloc_7695_; 
v_reuseFailAlloc_7695_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_7695_, 0, v_a_7686_);
lean_ctor_set(v_reuseFailAlloc_7695_, 1, v___x_7692_);
v___x_7694_ = v_reuseFailAlloc_7695_;
goto v_reusejp_7693_;
}
v_reusejp_7693_:
{
return v___x_7694_;
}
}
}
}
}
}
}
}
}
}
else
{
lean_object* v_a_7726_; lean_object* v_a_7727_; lean_object* v___x_7729_; uint8_t v_isShared_7730_; uint8_t v_isSharedCheck_7737_; 
lean_dec_ref(v___x_7478_);
lean_dec_ref(v___x_7476_);
lean_del_object(v___x_7464_);
lean_dec(v_ltar_x3f_7462_);
lean_dec(v_bc_x3f_7461_);
lean_dec_ref(v_c_7460_);
lean_dec(v_ir_x3f_7459_);
lean_dec_ref(v_ilean_7458_);
lean_dec(v_oleanPrivate_x3f_7457_);
lean_dec(v_oleanServer_x3f_7456_);
lean_dec_ref(v_irDir_7453_);
lean_dec(v_name_7449_);
v_a_7726_ = lean_ctor_get(v___x_7481_, 0);
v_a_7727_ = lean_ctor_get(v___x_7481_, 1);
v_isSharedCheck_7737_ = !lean_is_exclusive(v___x_7481_);
if (v_isSharedCheck_7737_ == 0)
{
v___x_7729_ = v___x_7481_;
v_isShared_7730_ = v_isSharedCheck_7737_;
goto v_resetjp_7728_;
}
else
{
lean_inc(v_a_7727_);
lean_inc(v_a_7726_);
lean_dec(v___x_7481_);
v___x_7729_ = lean_box(0);
v_isShared_7730_ = v_isSharedCheck_7737_;
goto v_resetjp_7728_;
}
v_resetjp_7728_:
{
lean_object* v___x_7732_; 
if (v_isShared_7473_ == 0)
{
lean_ctor_set(v___x_7472_, 0, v_a_7727_);
v___x_7732_ = v___x_7472_;
goto v_reusejp_7731_;
}
else
{
lean_object* v_reuseFailAlloc_7736_; 
v_reuseFailAlloc_7736_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_7736_, 0, v_a_7727_);
lean_ctor_set(v_reuseFailAlloc_7736_, 1, v_trace_7469_);
lean_ctor_set(v_reuseFailAlloc_7736_, 2, v_buildTime_7470_);
lean_ctor_set_uint8(v_reuseFailAlloc_7736_, sizeof(void*)*3, v_action_7467_);
lean_ctor_set_uint8(v_reuseFailAlloc_7736_, sizeof(void*)*3 + 1, v_wantsRebuild_7468_);
v___x_7732_ = v_reuseFailAlloc_7736_;
goto v_reusejp_7731_;
}
v_reusejp_7731_:
{
lean_object* v___x_7734_; 
if (v_isShared_7730_ == 0)
{
lean_ctor_set(v___x_7729_, 1, v___x_7732_);
v___x_7734_ = v___x_7729_;
goto v_reusejp_7733_;
}
else
{
lean_object* v_reuseFailAlloc_7735_; 
v_reuseFailAlloc_7735_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_7735_, 0, v_a_7726_);
lean_ctor_set(v_reuseFailAlloc_7735_, 1, v___x_7732_);
v___x_7734_ = v_reuseFailAlloc_7735_;
goto v_reusejp_7733_;
}
v_reusejp_7733_:
{
return v___x_7734_;
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts___redArg___boxed(lean_object* v_mod_7740_, lean_object* v_cached_7741_, lean_object* v_a_7742_, lean_object* v_a_7743_){
_start:
{
lean_object* v_res_7744_; 
v_res_7744_ = l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts___redArg(v_mod_7740_, v_cached_7741_, v_a_7742_);
return v_res_7744_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts(lean_object* v_mod_7745_, lean_object* v_cached_7746_, lean_object* v_a_7747_, lean_object* v_a_7748_, lean_object* v_a_7749_, lean_object* v_a_7750_, lean_object* v_a_7751_, lean_object* v_a_7752_){
_start:
{
lean_object* v___x_7754_; 
v___x_7754_ = l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts___redArg(v_mod_7745_, v_cached_7746_, v_a_7752_);
return v___x_7754_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts___boxed(lean_object* v_mod_7755_, lean_object* v_cached_7756_, lean_object* v_a_7757_, lean_object* v_a_7758_, lean_object* v_a_7759_, lean_object* v_a_7760_, lean_object* v_a_7761_, lean_object* v_a_7762_, lean_object* v_a_7763_){
_start:
{
lean_object* v_res_7764_; 
v_res_7764_ = l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts(v_mod_7755_, v_cached_7756_, v_a_7757_, v_a_7758_, v_a_7759_, v_a_7760_, v_a_7761_, v_a_7762_);
lean_dec_ref(v_a_7761_);
lean_dec(v_a_7760_);
lean_dec(v_a_7759_);
lean_dec(v_a_7758_);
lean_dec_ref(v_a_7757_);
return v_res_7764_;
}
}
LEAN_EXPORT uint8_t l_Lake_Module_checkArtifactsExsist(lean_object* v_self_7765_, uint8_t v_isModule_7766_){
_start:
{
lean_object* v_lib_7768_; lean_object* v_pkg_7769_; lean_object* v_config_7770_; lean_object* v_name_7771_; lean_object* v_dir_7772_; lean_object* v_buildDir_7773_; lean_object* v_leanLibDir_7774_; lean_object* v_irDir_7775_; lean_object* v___x_7776_; lean_object* v___x_7777_; lean_object* v___x_7778_; lean_object* v___x_7779_; lean_object* v___x_7780_; lean_object* v___x_7781_; uint8_t v___x_7782_; 
v_lib_7768_ = lean_ctor_get(v_self_7765_, 0);
v_pkg_7769_ = lean_ctor_get(v_lib_7768_, 0);
lean_inc_ref(v_pkg_7769_);
v_config_7770_ = lean_ctor_get(v_pkg_7769_, 6);
lean_inc_ref(v_config_7770_);
v_name_7771_ = lean_ctor_get(v_self_7765_, 1);
lean_inc(v_name_7771_);
lean_dec_ref(v_self_7765_);
v_dir_7772_ = lean_ctor_get(v_pkg_7769_, 4);
lean_inc_ref(v_dir_7772_);
lean_dec_ref(v_pkg_7769_);
v_buildDir_7773_ = lean_ctor_get(v_config_7770_, 6);
lean_inc_ref(v_buildDir_7773_);
v_leanLibDir_7774_ = lean_ctor_get(v_config_7770_, 7);
lean_inc_ref(v_leanLibDir_7774_);
v_irDir_7775_ = lean_ctor_get(v_config_7770_, 10);
lean_inc_ref(v_irDir_7775_);
lean_dec_ref(v_config_7770_);
v___x_7776_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__2));
v___x_7777_ = l_System_FilePath_normalize(v_buildDir_7773_);
v___x_7778_ = l_Lake_joinRelative(v_dir_7772_, v___x_7777_);
v___x_7779_ = l_System_FilePath_normalize(v_leanLibDir_7774_);
lean_inc_ref(v___x_7778_);
v___x_7780_ = l_Lake_joinRelative(v___x_7778_, v___x_7779_);
lean_inc(v_name_7771_);
v___x_7781_ = l_Lean_modToFilePath(v___x_7780_, v_name_7771_, v___x_7776_);
v___x_7782_ = l_System_FilePath_pathExists(v___x_7781_);
lean_dec_ref(v___x_7781_);
if (v___x_7782_ == 0)
{
lean_dec_ref(v___x_7780_);
lean_dec_ref(v___x_7778_);
lean_dec_ref(v_irDir_7775_);
lean_dec(v_name_7771_);
return v___x_7782_;
}
else
{
lean_object* v___x_7783_; lean_object* v___x_7784_; uint8_t v___x_7785_; 
v___x_7783_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__5));
lean_inc(v_name_7771_);
v___x_7784_ = l_Lean_modToFilePath(v___x_7780_, v_name_7771_, v___x_7783_);
v___x_7785_ = l_System_FilePath_pathExists(v___x_7784_);
lean_dec_ref(v___x_7784_);
if (v___x_7785_ == 0)
{
lean_dec_ref(v___x_7780_);
lean_dec_ref(v___x_7778_);
lean_dec_ref(v_irDir_7775_);
lean_dec(v_name_7771_);
return v___x_7785_;
}
else
{
lean_object* v___x_7786_; lean_object* v___x_7787_; lean_object* v___x_7788_; lean_object* v___x_7789_; uint8_t v___x_7790_; 
v___x_7786_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__7));
v___x_7787_ = l_System_FilePath_normalize(v_irDir_7775_);
v___x_7788_ = l_Lake_joinRelative(v___x_7778_, v___x_7787_);
lean_inc(v_name_7771_);
v___x_7789_ = l_Lean_modToFilePath(v___x_7788_, v_name_7771_, v___x_7786_);
v___x_7790_ = l_System_FilePath_pathExists(v___x_7789_);
lean_dec_ref(v___x_7789_);
if (v___x_7790_ == 0)
{
lean_dec_ref(v___x_7788_);
lean_dec_ref(v___x_7780_);
lean_dec(v_name_7771_);
return v___x_7790_;
}
else
{
uint8_t v___x_7801_; 
v___x_7801_ = lean_uint8_once(&l_Lake_Module_cacheOutputHashes___closed__0, &l_Lake_Module_cacheOutputHashes___closed__0_once, _init_l_Lake_Module_cacheOutputHashes___closed__0);
if (v___x_7801_ == 0)
{
lean_dec_ref(v___x_7788_);
goto v___jp_7791_;
}
else
{
lean_object* v___x_7802_; lean_object* v___x_7803_; uint8_t v___x_7804_; 
v___x_7802_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__8));
lean_inc(v_name_7771_);
v___x_7803_ = l_Lean_modToFilePath(v___x_7788_, v_name_7771_, v___x_7802_);
lean_dec_ref(v___x_7788_);
v___x_7804_ = l_System_FilePath_pathExists(v___x_7803_);
lean_dec_ref(v___x_7803_);
if (v___x_7804_ == 0)
{
lean_dec_ref(v___x_7780_);
lean_dec(v_name_7771_);
return v___x_7804_;
}
else
{
goto v___jp_7791_;
}
}
}
v___jp_7791_:
{
if (v_isModule_7766_ == 0)
{
lean_dec_ref(v___x_7780_);
lean_dec(v_name_7771_);
return v___x_7790_;
}
else
{
lean_object* v___x_7792_; lean_object* v___x_7793_; uint8_t v___x_7794_; 
v___x_7792_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__3));
lean_inc(v_name_7771_);
v___x_7793_ = l_Lean_modToFilePath(v___x_7780_, v_name_7771_, v___x_7792_);
v___x_7794_ = l_System_FilePath_pathExists(v___x_7793_);
lean_dec_ref(v___x_7793_);
if (v___x_7794_ == 0)
{
lean_dec_ref(v___x_7780_);
lean_dec(v_name_7771_);
return v___x_7794_;
}
else
{
lean_object* v___x_7795_; lean_object* v___x_7796_; uint8_t v___x_7797_; 
v___x_7795_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__4));
lean_inc(v_name_7771_);
v___x_7796_ = l_Lean_modToFilePath(v___x_7780_, v_name_7771_, v___x_7795_);
v___x_7797_ = l_System_FilePath_pathExists(v___x_7796_);
lean_dec_ref(v___x_7796_);
if (v___x_7797_ == 0)
{
lean_dec_ref(v___x_7780_);
lean_dec(v_name_7771_);
return v___x_7797_;
}
else
{
lean_object* v___x_7798_; lean_object* v___x_7799_; uint8_t v___x_7800_; 
v___x_7798_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__6));
v___x_7799_ = l_Lean_modToFilePath(v___x_7780_, v_name_7771_, v___x_7798_);
lean_dec_ref(v___x_7780_);
v___x_7800_ = l_System_FilePath_pathExists(v___x_7799_);
lean_dec_ref(v___x_7799_);
if (v___x_7800_ == 0)
{
return v___x_7800_;
}
else
{
return v___x_7790_;
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_checkArtifactsExsist___boxed(lean_object* v_self_7805_, lean_object* v_isModule_7806_, lean_object* v_a_7807_){
_start:
{
uint8_t v_isModule_boxed_7808_; uint8_t v_res_7809_; lean_object* v_r_7810_; 
v_isModule_boxed_7808_ = lean_unbox(v_isModule_7806_);
v_res_7809_ = l_Lake_Module_checkArtifactsExsist(v_self_7805_, v_isModule_boxed_7808_);
v_r_7810_ = lean_box(v_res_7809_);
return v_r_7810_;
}
}
LEAN_EXPORT uint8_t l_Lake_Module_checkExists(lean_object* v_self_7811_, uint8_t v_isModule_7812_){
_start:
{
lean_object* v_lib_7814_; lean_object* v_pkg_7815_; lean_object* v_config_7816_; lean_object* v_name_7817_; lean_object* v_dir_7818_; lean_object* v_buildDir_7819_; lean_object* v_irDir_7820_; lean_object* v___x_7821_; lean_object* v___x_7822_; lean_object* v___x_7823_; lean_object* v___x_7824_; lean_object* v___x_7825_; lean_object* v___x_7826_; uint8_t v___x_7827_; 
v_lib_7814_ = lean_ctor_get(v_self_7811_, 0);
v_pkg_7815_ = lean_ctor_get(v_lib_7814_, 0);
v_config_7816_ = lean_ctor_get(v_pkg_7815_, 6);
v_name_7817_ = lean_ctor_get(v_self_7811_, 1);
v_dir_7818_ = lean_ctor_get(v_pkg_7815_, 4);
v_buildDir_7819_ = lean_ctor_get(v_config_7816_, 6);
v_irDir_7820_ = lean_ctor_get(v_config_7816_, 10);
v___x_7821_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__1));
lean_inc_ref(v_buildDir_7819_);
v___x_7822_ = l_System_FilePath_normalize(v_buildDir_7819_);
lean_inc_ref(v_dir_7818_);
v___x_7823_ = l_Lake_joinRelative(v_dir_7818_, v___x_7822_);
lean_inc_ref(v_irDir_7820_);
v___x_7824_ = l_System_FilePath_normalize(v_irDir_7820_);
v___x_7825_ = l_Lake_joinRelative(v___x_7823_, v___x_7824_);
lean_inc(v_name_7817_);
v___x_7826_ = l_Lean_modToFilePath(v___x_7825_, v_name_7817_, v___x_7821_);
lean_dec_ref(v___x_7825_);
v___x_7827_ = l_System_FilePath_pathExists(v___x_7826_);
lean_dec_ref(v___x_7826_);
if (v___x_7827_ == 0)
{
uint8_t v___x_7828_; 
v___x_7828_ = l_Lake_Module_checkArtifactsExsist(v_self_7811_, v_isModule_7812_);
return v___x_7828_;
}
else
{
lean_dec_ref(v_self_7811_);
return v___x_7827_;
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_checkExists___boxed(lean_object* v_self_7829_, lean_object* v_isModule_7830_, lean_object* v_a_7831_){
_start:
{
uint8_t v_isModule_boxed_7832_; uint8_t v_res_7833_; lean_object* v_r_7834_; 
v_isModule_boxed_7832_ = lean_unbox(v_isModule_7830_);
v_res_7833_ = l_Lake_Module_checkExists(v_self_7829_, v_isModule_boxed_7832_);
v_r_7834_ = lean_box(v_res_7833_);
return v_r_7834_;
}
}
LEAN_EXPORT uint8_t l_Lake_instCheckExistsModule___lam__0(lean_object* v_self_7835_){
_start:
{
uint8_t v___x_7837_; uint8_t v___x_7838_; 
v___x_7837_ = 0;
v___x_7838_ = l_Lake_Module_checkExists(v_self_7835_, v___x_7837_);
return v___x_7838_;
}
}
LEAN_EXPORT lean_object* l_Lake_instCheckExistsModule___lam__0___boxed(lean_object* v_self_7839_, lean_object* v___y_7840_){
_start:
{
uint8_t v_res_7841_; lean_object* v_r_7842_; 
v_res_7841_ = l_Lake_instCheckExistsModule___lam__0(v_self_7839_);
v_r_7842_ = lean_box(v_res_7841_);
return v_r_7842_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_getMTime___lam__0(uint8_t v_isModule_7845_, lean_object* v___x_7846_, lean_object* v_name_7847_, lean_object* v_____r_7848_, lean_object* v_mtime_7849_){
_start:
{
lean_object* v_mtime_7852_; 
if (v_isModule_7845_ == 0)
{
lean_dec(v_name_7847_);
v_mtime_7852_ = v_mtime_7849_;
goto v___jp_7851_;
}
else
{
lean_object* v___x_7855_; lean_object* v___x_7856_; lean_object* v___x_7857_; 
v___x_7855_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__3));
lean_inc(v_name_7847_);
v___x_7856_ = l_Lean_modToFilePath(v___x_7846_, v_name_7847_, v___x_7855_);
v___x_7857_ = lean_io_metadata(v___x_7856_);
lean_dec_ref(v___x_7856_);
if (lean_obj_tag(v___x_7857_) == 0)
{
lean_object* v_a_7858_; lean_object* v___x_7859_; lean_object* v___x_7860_; lean_object* v___x_7861_; 
v_a_7858_ = lean_ctor_get(v___x_7857_, 0);
lean_inc(v_a_7858_);
lean_dec_ref(v___x_7857_);
v___x_7859_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__4));
lean_inc(v_name_7847_);
v___x_7860_ = l_Lean_modToFilePath(v___x_7846_, v_name_7847_, v___x_7859_);
v___x_7861_ = lean_io_metadata(v___x_7860_);
lean_dec_ref(v___x_7860_);
if (lean_obj_tag(v___x_7861_) == 0)
{
lean_object* v_a_7862_; lean_object* v___x_7863_; lean_object* v___x_7864_; lean_object* v___x_7865_; 
v_a_7862_ = lean_ctor_get(v___x_7861_, 0);
lean_inc(v_a_7862_);
lean_dec_ref(v___x_7861_);
v___x_7863_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__6));
v___x_7864_ = l_Lean_modToFilePath(v___x_7846_, v_name_7847_, v___x_7863_);
v___x_7865_ = lean_io_metadata(v___x_7864_);
lean_dec_ref(v___x_7864_);
if (lean_obj_tag(v___x_7865_) == 0)
{
lean_object* v_a_7866_; lean_object* v_modified_7867_; lean_object* v_modified_7868_; lean_object* v_modified_7869_; lean_object* v___y_7871_; lean_object* v___y_7874_; uint8_t v___x_7876_; 
v_a_7866_ = lean_ctor_get(v___x_7865_, 0);
lean_inc(v_a_7866_);
lean_dec_ref(v___x_7865_);
v_modified_7867_ = lean_ctor_get(v_a_7858_, 1);
lean_inc_ref(v_modified_7867_);
lean_dec(v_a_7858_);
v_modified_7868_ = lean_ctor_get(v_a_7862_, 1);
lean_inc_ref(v_modified_7868_);
lean_dec(v_a_7862_);
v_modified_7869_ = lean_ctor_get(v_a_7866_, 1);
lean_inc_ref(v_modified_7869_);
lean_dec(v_a_7866_);
v___x_7876_ = l_IO_FS_instOrdSystemTime_ord(v_modified_7867_, v_mtime_7849_);
if (v___x_7876_ == 2)
{
lean_dec_ref(v_mtime_7849_);
v___y_7874_ = v_modified_7867_;
goto v___jp_7873_;
}
else
{
lean_dec_ref(v_modified_7867_);
v___y_7874_ = v_mtime_7849_;
goto v___jp_7873_;
}
v___jp_7870_:
{
uint8_t v___x_7872_; 
v___x_7872_ = l_IO_FS_instOrdSystemTime_ord(v_modified_7869_, v___y_7871_);
if (v___x_7872_ == 2)
{
lean_dec_ref(v___y_7871_);
v_mtime_7852_ = v_modified_7869_;
goto v___jp_7851_;
}
else
{
lean_dec_ref(v_modified_7869_);
v_mtime_7852_ = v___y_7871_;
goto v___jp_7851_;
}
}
v___jp_7873_:
{
uint8_t v___x_7875_; 
v___x_7875_ = l_IO_FS_instOrdSystemTime_ord(v_modified_7868_, v___y_7874_);
if (v___x_7875_ == 2)
{
lean_dec_ref(v___y_7874_);
v___y_7871_ = v_modified_7868_;
goto v___jp_7870_;
}
else
{
lean_dec_ref(v_modified_7868_);
v___y_7871_ = v___y_7874_;
goto v___jp_7870_;
}
}
}
else
{
lean_object* v_a_7877_; lean_object* v___x_7879_; uint8_t v_isShared_7880_; uint8_t v_isSharedCheck_7884_; 
lean_dec(v_a_7862_);
lean_dec(v_a_7858_);
lean_dec_ref(v_mtime_7849_);
v_a_7877_ = lean_ctor_get(v___x_7865_, 0);
v_isSharedCheck_7884_ = !lean_is_exclusive(v___x_7865_);
if (v_isSharedCheck_7884_ == 0)
{
v___x_7879_ = v___x_7865_;
v_isShared_7880_ = v_isSharedCheck_7884_;
goto v_resetjp_7878_;
}
else
{
lean_inc(v_a_7877_);
lean_dec(v___x_7865_);
v___x_7879_ = lean_box(0);
v_isShared_7880_ = v_isSharedCheck_7884_;
goto v_resetjp_7878_;
}
v_resetjp_7878_:
{
lean_object* v___x_7882_; 
if (v_isShared_7880_ == 0)
{
v___x_7882_ = v___x_7879_;
goto v_reusejp_7881_;
}
else
{
lean_object* v_reuseFailAlloc_7883_; 
v_reuseFailAlloc_7883_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_7883_, 0, v_a_7877_);
v___x_7882_ = v_reuseFailAlloc_7883_;
goto v_reusejp_7881_;
}
v_reusejp_7881_:
{
return v___x_7882_;
}
}
}
}
else
{
lean_object* v_a_7885_; lean_object* v___x_7887_; uint8_t v_isShared_7888_; uint8_t v_isSharedCheck_7892_; 
lean_dec(v_a_7858_);
lean_dec_ref(v_mtime_7849_);
lean_dec(v_name_7847_);
v_a_7885_ = lean_ctor_get(v___x_7861_, 0);
v_isSharedCheck_7892_ = !lean_is_exclusive(v___x_7861_);
if (v_isSharedCheck_7892_ == 0)
{
v___x_7887_ = v___x_7861_;
v_isShared_7888_ = v_isSharedCheck_7892_;
goto v_resetjp_7886_;
}
else
{
lean_inc(v_a_7885_);
lean_dec(v___x_7861_);
v___x_7887_ = lean_box(0);
v_isShared_7888_ = v_isSharedCheck_7892_;
goto v_resetjp_7886_;
}
v_resetjp_7886_:
{
lean_object* v___x_7890_; 
if (v_isShared_7888_ == 0)
{
v___x_7890_ = v___x_7887_;
goto v_reusejp_7889_;
}
else
{
lean_object* v_reuseFailAlloc_7891_; 
v_reuseFailAlloc_7891_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_7891_, 0, v_a_7885_);
v___x_7890_ = v_reuseFailAlloc_7891_;
goto v_reusejp_7889_;
}
v_reusejp_7889_:
{
return v___x_7890_;
}
}
}
}
else
{
lean_object* v_a_7893_; lean_object* v___x_7895_; uint8_t v_isShared_7896_; uint8_t v_isSharedCheck_7900_; 
lean_dec_ref(v_mtime_7849_);
lean_dec(v_name_7847_);
v_a_7893_ = lean_ctor_get(v___x_7857_, 0);
v_isSharedCheck_7900_ = !lean_is_exclusive(v___x_7857_);
if (v_isSharedCheck_7900_ == 0)
{
v___x_7895_ = v___x_7857_;
v_isShared_7896_ = v_isSharedCheck_7900_;
goto v_resetjp_7894_;
}
else
{
lean_inc(v_a_7893_);
lean_dec(v___x_7857_);
v___x_7895_ = lean_box(0);
v_isShared_7896_ = v_isSharedCheck_7900_;
goto v_resetjp_7894_;
}
v_resetjp_7894_:
{
lean_object* v___x_7898_; 
if (v_isShared_7896_ == 0)
{
v___x_7898_ = v___x_7895_;
goto v_reusejp_7897_;
}
else
{
lean_object* v_reuseFailAlloc_7899_; 
v_reuseFailAlloc_7899_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_7899_, 0, v_a_7893_);
v___x_7898_ = v_reuseFailAlloc_7899_;
goto v_reusejp_7897_;
}
v_reusejp_7897_:
{
return v___x_7898_;
}
}
}
}
v___jp_7851_:
{
lean_object* v___x_7853_; lean_object* v___x_7854_; 
v___x_7853_ = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(v___x_7853_, 0, v_mtime_7852_);
v___x_7854_ = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(v___x_7854_, 0, v___x_7853_);
return v___x_7854_;
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_getMTime___lam__0___boxed(lean_object* v_isModule_7901_, lean_object* v___x_7902_, lean_object* v_name_7903_, lean_object* v_____r_7904_, lean_object* v_mtime_7905_, lean_object* v___y_7906_){
_start:
{
uint8_t v_isModule_boxed_7907_; lean_object* v_res_7908_; 
v_isModule_boxed_7907_ = lean_unbox(v_isModule_7901_);
v_res_7908_ = l_Lake_Module_getMTime___lam__0(v_isModule_boxed_7907_, v___x_7902_, v_name_7903_, v_____r_7904_, v_mtime_7905_);
lean_dec_ref(v___x_7902_);
return v_res_7908_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_getMTime(lean_object* v_self_7909_, uint8_t v_isModule_7910_){
_start:
{
lean_object* v_lib_7912_; lean_object* v_pkg_7913_; lean_object* v_config_7914_; lean_object* v_name_7915_; lean_object* v_dir_7916_; lean_object* v_buildDir_7917_; lean_object* v_leanLibDir_7918_; lean_object* v_irDir_7919_; lean_object* v_a_7921_; lean_object* v___y_7950_; lean_object* v___x_7961_; lean_object* v___x_7962_; lean_object* v___x_7963_; lean_object* v___x_7964_; lean_object* v___x_7965_; lean_object* v___x_7966_; lean_object* v___x_7967_; 
v_lib_7912_ = lean_ctor_get(v_self_7909_, 0);
v_pkg_7913_ = lean_ctor_get(v_lib_7912_, 0);
lean_inc_ref(v_pkg_7913_);
v_config_7914_ = lean_ctor_get(v_pkg_7913_, 6);
lean_inc_ref(v_config_7914_);
v_name_7915_ = lean_ctor_get(v_self_7909_, 1);
lean_inc(v_name_7915_);
lean_dec_ref(v_self_7909_);
v_dir_7916_ = lean_ctor_get(v_pkg_7913_, 4);
lean_inc_ref(v_dir_7916_);
lean_dec_ref(v_pkg_7913_);
v_buildDir_7917_ = lean_ctor_get(v_config_7914_, 6);
lean_inc_ref(v_buildDir_7917_);
v_leanLibDir_7918_ = lean_ctor_get(v_config_7914_, 7);
lean_inc_ref(v_leanLibDir_7918_);
v_irDir_7919_ = lean_ctor_get(v_config_7914_, 10);
lean_inc_ref(v_irDir_7919_);
lean_dec_ref(v_config_7914_);
v___x_7961_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__2));
lean_inc_ref(v_buildDir_7917_);
v___x_7962_ = l_System_FilePath_normalize(v_buildDir_7917_);
lean_inc_ref(v_dir_7916_);
v___x_7963_ = l_Lake_joinRelative(v_dir_7916_, v___x_7962_);
v___x_7964_ = l_System_FilePath_normalize(v_leanLibDir_7918_);
lean_inc_ref(v___x_7963_);
v___x_7965_ = l_Lake_joinRelative(v___x_7963_, v___x_7964_);
lean_inc(v_name_7915_);
v___x_7966_ = l_Lean_modToFilePath(v___x_7965_, v_name_7915_, v___x_7961_);
v___x_7967_ = lean_io_metadata(v___x_7966_);
lean_dec_ref(v___x_7966_);
if (lean_obj_tag(v___x_7967_) == 0)
{
lean_object* v_a_7968_; lean_object* v___x_7969_; lean_object* v___x_7970_; lean_object* v___x_7971_; 
v_a_7968_ = lean_ctor_get(v___x_7967_, 0);
lean_inc(v_a_7968_);
lean_dec_ref(v___x_7967_);
v___x_7969_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__5));
lean_inc(v_name_7915_);
v___x_7970_ = l_Lean_modToFilePath(v___x_7965_, v_name_7915_, v___x_7969_);
v___x_7971_ = lean_io_metadata(v___x_7970_);
lean_dec_ref(v___x_7970_);
if (lean_obj_tag(v___x_7971_) == 0)
{
lean_object* v_a_7972_; lean_object* v___x_7973_; lean_object* v___x_7974_; lean_object* v___x_7975_; lean_object* v___x_7976_; lean_object* v___x_7977_; 
v_a_7972_ = lean_ctor_get(v___x_7971_, 0);
lean_inc(v_a_7972_);
lean_dec_ref(v___x_7971_);
v___x_7973_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__7));
lean_inc_ref(v_irDir_7919_);
v___x_7974_ = l_System_FilePath_normalize(v_irDir_7919_);
v___x_7975_ = l_Lake_joinRelative(v___x_7963_, v___x_7974_);
lean_inc(v_name_7915_);
v___x_7976_ = l_Lean_modToFilePath(v___x_7975_, v_name_7915_, v___x_7973_);
v___x_7977_ = lean_io_metadata(v___x_7976_);
lean_dec_ref(v___x_7976_);
if (lean_obj_tag(v___x_7977_) == 0)
{
lean_object* v_a_7978_; lean_object* v_modified_7979_; lean_object* v_modified_7980_; lean_object* v_modified_7981_; lean_object* v___y_7983_; lean_object* v___y_7984_; lean_object* v___y_7987_; lean_object* v___y_8000_; uint8_t v___x_8002_; 
v_a_7978_ = lean_ctor_get(v___x_7977_, 0);
lean_inc(v_a_7978_);
lean_dec_ref(v___x_7977_);
v_modified_7979_ = lean_ctor_get(v_a_7968_, 1);
lean_inc_ref(v_modified_7979_);
lean_dec(v_a_7968_);
v_modified_7980_ = lean_ctor_get(v_a_7972_, 1);
lean_inc_ref(v_modified_7980_);
lean_dec(v_a_7972_);
v_modified_7981_ = lean_ctor_get(v_a_7978_, 1);
lean_inc_ref(v_modified_7981_);
lean_dec(v_a_7978_);
v___x_8002_ = l_IO_FS_instOrdSystemTime_ord(v_modified_7980_, v_modified_7979_);
if (v___x_8002_ == 2)
{
lean_dec_ref(v_modified_7979_);
v___y_8000_ = v_modified_7980_;
goto v___jp_7999_;
}
else
{
lean_dec_ref(v_modified_7980_);
v___y_8000_ = v_modified_7979_;
goto v___jp_7999_;
}
v___jp_7982_:
{
lean_object* v___x_7985_; 
lean_inc(v_name_7915_);
v___x_7985_ = l_Lake_Module_getMTime___lam__0(v_isModule_7910_, v___x_7965_, v_name_7915_, v___y_7984_, v___y_7983_);
lean_dec_ref(v___x_7965_);
v___y_7950_ = v___x_7985_;
goto v___jp_7949_;
}
v___jp_7986_:
{
lean_object* v___x_7988_; uint8_t v___x_7989_; 
v___x_7988_ = lean_box(0);
v___x_7989_ = lean_uint8_once(&l_Lake_Module_cacheOutputHashes___closed__0, &l_Lake_Module_cacheOutputHashes___closed__0_once, _init_l_Lake_Module_cacheOutputHashes___closed__0);
if (v___x_7989_ == 0)
{
lean_object* v___x_7990_; 
lean_dec_ref(v___x_7975_);
lean_inc(v_name_7915_);
v___x_7990_ = l_Lake_Module_getMTime___lam__0(v_isModule_7910_, v___x_7965_, v_name_7915_, v___x_7988_, v___y_7987_);
lean_dec_ref(v___x_7965_);
v___y_7950_ = v___x_7990_;
goto v___jp_7949_;
}
else
{
lean_object* v___x_7991_; lean_object* v___x_7992_; lean_object* v___x_7993_; 
v___x_7991_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__8));
lean_inc(v_name_7915_);
v___x_7992_ = l_Lean_modToFilePath(v___x_7975_, v_name_7915_, v___x_7991_);
lean_dec_ref(v___x_7975_);
v___x_7993_ = lean_io_metadata(v___x_7992_);
lean_dec_ref(v___x_7992_);
if (lean_obj_tag(v___x_7993_) == 0)
{
lean_object* v_a_7994_; lean_object* v_modified_7995_; uint8_t v___x_7996_; 
v_a_7994_ = lean_ctor_get(v___x_7993_, 0);
lean_inc(v_a_7994_);
lean_dec_ref(v___x_7993_);
v_modified_7995_ = lean_ctor_get(v_a_7994_, 1);
lean_inc_ref(v_modified_7995_);
lean_dec(v_a_7994_);
v___x_7996_ = l_IO_FS_instOrdSystemTime_ord(v___y_7987_, v_modified_7995_);
if (v___x_7996_ == 2)
{
lean_dec_ref(v_modified_7995_);
v___y_7983_ = v___y_7987_;
v___y_7984_ = v___x_7988_;
goto v___jp_7982_;
}
else
{
if (v___x_7989_ == 0)
{
lean_dec_ref(v_modified_7995_);
v___y_7983_ = v___y_7987_;
v___y_7984_ = v___x_7988_;
goto v___jp_7982_;
}
else
{
lean_object* v___x_7997_; 
lean_dec_ref(v___y_7987_);
lean_inc(v_name_7915_);
v___x_7997_ = l_Lake_Module_getMTime___lam__0(v_isModule_7910_, v___x_7965_, v_name_7915_, v___x_7988_, v_modified_7995_);
lean_dec_ref(v___x_7965_);
v___y_7950_ = v___x_7997_;
goto v___jp_7949_;
}
}
}
else
{
lean_object* v_a_7998_; 
lean_dec_ref(v___y_7987_);
lean_dec_ref(v___x_7965_);
v_a_7998_ = lean_ctor_get(v___x_7993_, 0);
lean_inc(v_a_7998_);
lean_dec_ref(v___x_7993_);
v_a_7921_ = v_a_7998_;
goto v___jp_7920_;
}
}
}
v___jp_7999_:
{
uint8_t v___x_8001_; 
v___x_8001_ = l_IO_FS_instOrdSystemTime_ord(v_modified_7981_, v___y_8000_);
if (v___x_8001_ == 2)
{
lean_dec_ref(v___y_8000_);
v___y_7987_ = v_modified_7981_;
goto v___jp_7986_;
}
else
{
lean_dec_ref(v_modified_7981_);
v___y_7987_ = v___y_8000_;
goto v___jp_7986_;
}
}
}
else
{
lean_object* v_a_8003_; 
lean_dec_ref(v___x_7975_);
lean_dec(v_a_7972_);
lean_dec(v_a_7968_);
lean_dec_ref(v___x_7965_);
v_a_8003_ = lean_ctor_get(v___x_7977_, 0);
lean_inc(v_a_8003_);
lean_dec_ref(v___x_7977_);
v_a_7921_ = v_a_8003_;
goto v___jp_7920_;
}
}
else
{
lean_object* v_a_8004_; 
lean_dec(v_a_7968_);
lean_dec_ref(v___x_7965_);
lean_dec_ref(v___x_7963_);
v_a_8004_ = lean_ctor_get(v___x_7971_, 0);
lean_inc(v_a_8004_);
lean_dec_ref(v___x_7971_);
v_a_7921_ = v_a_8004_;
goto v___jp_7920_;
}
}
else
{
lean_object* v_a_8005_; 
lean_dec_ref(v___x_7965_);
lean_dec_ref(v___x_7963_);
v_a_8005_ = lean_ctor_get(v___x_7967_, 0);
lean_inc(v_a_8005_);
lean_dec_ref(v___x_7967_);
v_a_7921_ = v_a_8005_;
goto v___jp_7920_;
}
v___jp_7920_:
{
lean_object* v___x_7922_; lean_object* v___x_7923_; lean_object* v___x_7924_; lean_object* v___x_7925_; lean_object* v___x_7926_; lean_object* v___x_7927_; lean_object* v___x_7928_; 
v___x_7922_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__1));
v___x_7923_ = l_System_FilePath_normalize(v_buildDir_7917_);
v___x_7924_ = l_Lake_joinRelative(v_dir_7916_, v___x_7923_);
v___x_7925_ = l_System_FilePath_normalize(v_irDir_7919_);
v___x_7926_ = l_Lake_joinRelative(v___x_7924_, v___x_7925_);
v___x_7927_ = l_Lean_modToFilePath(v___x_7926_, v_name_7915_, v___x_7922_);
lean_dec_ref(v___x_7926_);
v___x_7928_ = lean_io_metadata(v___x_7927_);
lean_dec_ref(v___x_7927_);
if (lean_obj_tag(v___x_7928_) == 0)
{
lean_object* v_a_7929_; lean_object* v___x_7931_; uint8_t v_isShared_7932_; uint8_t v_isSharedCheck_7937_; 
lean_dec(v_a_7921_);
v_a_7929_ = lean_ctor_get(v___x_7928_, 0);
v_isSharedCheck_7937_ = !lean_is_exclusive(v___x_7928_);
if (v_isSharedCheck_7937_ == 0)
{
v___x_7931_ = v___x_7928_;
v_isShared_7932_ = v_isSharedCheck_7937_;
goto v_resetjp_7930_;
}
else
{
lean_inc(v_a_7929_);
lean_dec(v___x_7928_);
v___x_7931_ = lean_box(0);
v_isShared_7932_ = v_isSharedCheck_7937_;
goto v_resetjp_7930_;
}
v_resetjp_7930_:
{
lean_object* v_modified_7933_; lean_object* v___x_7935_; 
v_modified_7933_ = lean_ctor_get(v_a_7929_, 1);
lean_inc_ref(v_modified_7933_);
lean_dec(v_a_7929_);
if (v_isShared_7932_ == 0)
{
lean_ctor_set(v___x_7931_, 0, v_modified_7933_);
v___x_7935_ = v___x_7931_;
goto v_reusejp_7934_;
}
else
{
lean_object* v_reuseFailAlloc_7936_; 
v_reuseFailAlloc_7936_ = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(v_reuseFailAlloc_7936_, 0, v_modified_7933_);
v___x_7935_ = v_reuseFailAlloc_7936_;
goto v_reusejp_7934_;
}
v_reusejp_7934_:
{
return v___x_7935_;
}
}
}
else
{
lean_object* v_a_7938_; lean_object* v___x_7940_; uint8_t v_isShared_7941_; uint8_t v_isSharedCheck_7948_; 
v_a_7938_ = lean_ctor_get(v___x_7928_, 0);
v_isSharedCheck_7948_ = !lean_is_exclusive(v___x_7928_);
if (v_isSharedCheck_7948_ == 0)
{
v___x_7940_ = v___x_7928_;
v_isShared_7941_ = v_isSharedCheck_7948_;
goto v_resetjp_7939_;
}
else
{
lean_inc(v_a_7938_);
lean_dec(v___x_7928_);
v___x_7940_ = lean_box(0);
v_isShared_7941_ = v_isSharedCheck_7948_;
goto v_resetjp_7939_;
}
v_resetjp_7939_:
{
if (lean_obj_tag(v_a_7938_) == 11)
{
lean_object* v___x_7943_; 
lean_dec_ref(v_a_7938_);
if (v_isShared_7941_ == 0)
{
lean_ctor_set(v___x_7940_, 0, v_a_7921_);
v___x_7943_ = v___x_7940_;
goto v_reusejp_7942_;
}
else
{
lean_object* v_reuseFailAlloc_7944_; 
v_reuseFailAlloc_7944_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_7944_, 0, v_a_7921_);
v___x_7943_ = v_reuseFailAlloc_7944_;
goto v_reusejp_7942_;
}
v_reusejp_7942_:
{
return v___x_7943_;
}
}
else
{
lean_object* v___x_7946_; 
lean_dec(v_a_7921_);
if (v_isShared_7941_ == 0)
{
v___x_7946_ = v___x_7940_;
goto v_reusejp_7945_;
}
else
{
lean_object* v_reuseFailAlloc_7947_; 
v_reuseFailAlloc_7947_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_7947_, 0, v_a_7938_);
v___x_7946_ = v_reuseFailAlloc_7947_;
goto v_reusejp_7945_;
}
v_reusejp_7945_:
{
return v___x_7946_;
}
}
}
}
}
v___jp_7949_:
{
if (lean_obj_tag(v___y_7950_) == 0)
{
lean_object* v_a_7951_; lean_object* v___x_7953_; uint8_t v_isShared_7954_; uint8_t v_isSharedCheck_7959_; 
lean_dec_ref(v_irDir_7919_);
lean_dec_ref(v_buildDir_7917_);
lean_dec_ref(v_dir_7916_);
lean_dec(v_name_7915_);
v_a_7951_ = lean_ctor_get(v___y_7950_, 0);
v_isSharedCheck_7959_ = !lean_is_exclusive(v___y_7950_);
if (v_isSharedCheck_7959_ == 0)
{
v___x_7953_ = v___y_7950_;
v_isShared_7954_ = v_isSharedCheck_7959_;
goto v_resetjp_7952_;
}
else
{
lean_inc(v_a_7951_);
lean_dec(v___y_7950_);
v___x_7953_ = lean_box(0);
v_isShared_7954_ = v_isSharedCheck_7959_;
goto v_resetjp_7952_;
}
v_resetjp_7952_:
{
lean_object* v_a_7955_; lean_object* v___x_7957_; 
v_a_7955_ = lean_ctor_get(v_a_7951_, 0);
lean_inc(v_a_7955_);
lean_dec(v_a_7951_);
if (v_isShared_7954_ == 0)
{
lean_ctor_set(v___x_7953_, 0, v_a_7955_);
v___x_7957_ = v___x_7953_;
goto v_reusejp_7956_;
}
else
{
lean_object* v_reuseFailAlloc_7958_; 
v_reuseFailAlloc_7958_ = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(v_reuseFailAlloc_7958_, 0, v_a_7955_);
v___x_7957_ = v_reuseFailAlloc_7958_;
goto v_reusejp_7956_;
}
v_reusejp_7956_:
{
return v___x_7957_;
}
}
}
else
{
lean_object* v_a_7960_; 
v_a_7960_ = lean_ctor_get(v___y_7950_, 0);
lean_inc(v_a_7960_);
lean_dec_ref(v___y_7950_);
v_a_7921_ = v_a_7960_;
goto v___jp_7920_;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_getMTime___boxed(lean_object* v_self_8006_, lean_object* v_isModule_8007_, lean_object* v_a_8008_){
_start:
{
uint8_t v_isModule_boxed_8009_; lean_object* v_res_8010_; 
v_isModule_boxed_8009_ = lean_unbox(v_isModule_8007_);
v_res_8010_ = l_Lake_Module_getMTime(v_self_8006_, v_isModule_boxed_8009_);
return v_res_8010_;
}
}
LEAN_EXPORT lean_object* l_Lake_instGetMTimeModule___lam__0(lean_object* v_self_8011_){
_start:
{
uint8_t v___x_8013_; lean_object* v___x_8014_; 
v___x_8013_ = 0;
v___x_8014_ = l_Lake_Module_getMTime(v_self_8011_, v___x_8013_);
return v___x_8014_;
}
}
LEAN_EXPORT lean_object* l_Lake_instGetMTimeModule___lam__0___boxed(lean_object* v_self_8015_, lean_object* v___y_8016_){
_start:
{
lean_object* v_res_8017_; 
v_res_8017_ = l_Lake_instGetMTimeModule___lam__0(v_self_8015_);
return v_res_8017_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputArtifacts_setMTime___lam__0(lean_object* v_mtime_8020_, lean_object* v_x_8021_){
_start:
{
lean_object* v_descr_8022_; lean_object* v_path_8023_; lean_object* v_name_8024_; lean_object* v___x_8026_; uint8_t v_isShared_8027_; uint8_t v_isSharedCheck_8031_; 
v_descr_8022_ = lean_ctor_get(v_x_8021_, 0);
v_path_8023_ = lean_ctor_get(v_x_8021_, 1);
v_name_8024_ = lean_ctor_get(v_x_8021_, 2);
v_isSharedCheck_8031_ = !lean_is_exclusive(v_x_8021_);
if (v_isSharedCheck_8031_ == 0)
{
lean_object* v_unused_8032_; 
v_unused_8032_ = lean_ctor_get(v_x_8021_, 3);
lean_dec(v_unused_8032_);
v___x_8026_ = v_x_8021_;
v_isShared_8027_ = v_isSharedCheck_8031_;
goto v_resetjp_8025_;
}
else
{
lean_inc(v_name_8024_);
lean_inc(v_path_8023_);
lean_inc(v_descr_8022_);
lean_dec(v_x_8021_);
v___x_8026_ = lean_box(0);
v_isShared_8027_ = v_isSharedCheck_8031_;
goto v_resetjp_8025_;
}
v_resetjp_8025_:
{
lean_object* v___x_8029_; 
if (v_isShared_8027_ == 0)
{
lean_ctor_set(v___x_8026_, 3, v_mtime_8020_);
v___x_8029_ = v___x_8026_;
goto v_reusejp_8028_;
}
else
{
lean_object* v_reuseFailAlloc_8030_; 
v_reuseFailAlloc_8030_ = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(v_reuseFailAlloc_8030_, 0, v_descr_8022_);
lean_ctor_set(v_reuseFailAlloc_8030_, 1, v_path_8023_);
lean_ctor_set(v_reuseFailAlloc_8030_, 2, v_name_8024_);
lean_ctor_set(v_reuseFailAlloc_8030_, 3, v_mtime_8020_);
v___x_8029_ = v_reuseFailAlloc_8030_;
goto v_reusejp_8028_;
}
v_reusejp_8028_:
{
return v___x_8029_;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleOutputArtifacts_setMTime(lean_object* v_self_8033_, lean_object* v_mtime_8034_){
_start:
{
lean_object* v_olean_8035_; uint8_t v_isModule_8036_; lean_object* v_oleanServer_x3f_8037_; lean_object* v_oleanPrivate_x3f_8038_; lean_object* v_ilean_8039_; lean_object* v_ir_x3f_8040_; lean_object* v_c_8041_; lean_object* v_bc_x3f_8042_; lean_object* v_ltar_x3f_8043_; lean_object* v___x_8045_; uint8_t v_isShared_8046_; uint8_t v_isSharedCheck_8132_; 
v_olean_8035_ = lean_ctor_get(v_self_8033_, 0);
v_isModule_8036_ = lean_ctor_get_uint8(v_self_8033_, sizeof(void*)*8);
v_oleanServer_x3f_8037_ = lean_ctor_get(v_self_8033_, 1);
v_oleanPrivate_x3f_8038_ = lean_ctor_get(v_self_8033_, 2);
v_ilean_8039_ = lean_ctor_get(v_self_8033_, 3);
v_ir_x3f_8040_ = lean_ctor_get(v_self_8033_, 4);
v_c_8041_ = lean_ctor_get(v_self_8033_, 5);
v_bc_x3f_8042_ = lean_ctor_get(v_self_8033_, 6);
v_ltar_x3f_8043_ = lean_ctor_get(v_self_8033_, 7);
v_isSharedCheck_8132_ = !lean_is_exclusive(v_self_8033_);
if (v_isSharedCheck_8132_ == 0)
{
v___x_8045_ = v_self_8033_;
v_isShared_8046_ = v_isSharedCheck_8132_;
goto v_resetjp_8044_;
}
else
{
lean_inc(v_ltar_x3f_8043_);
lean_inc(v_bc_x3f_8042_);
lean_inc(v_c_8041_);
lean_inc(v_ir_x3f_8040_);
lean_inc(v_ilean_8039_);
lean_inc(v_oleanPrivate_x3f_8038_);
lean_inc(v_oleanServer_x3f_8037_);
lean_inc(v_olean_8035_);
lean_dec(v_self_8033_);
v___x_8045_ = lean_box(0);
v_isShared_8046_ = v_isSharedCheck_8132_;
goto v_resetjp_8044_;
}
v_resetjp_8044_:
{
lean_object* v_descr_8047_; lean_object* v_path_8048_; lean_object* v_name_8049_; lean_object* v___x_8051_; uint8_t v_isShared_8052_; uint8_t v_isSharedCheck_8130_; 
v_descr_8047_ = lean_ctor_get(v_olean_8035_, 0);
v_path_8048_ = lean_ctor_get(v_olean_8035_, 1);
v_name_8049_ = lean_ctor_get(v_olean_8035_, 2);
v_isSharedCheck_8130_ = !lean_is_exclusive(v_olean_8035_);
if (v_isSharedCheck_8130_ == 0)
{
lean_object* v_unused_8131_; 
v_unused_8131_ = lean_ctor_get(v_olean_8035_, 3);
lean_dec(v_unused_8131_);
v___x_8051_ = v_olean_8035_;
v_isShared_8052_ = v_isSharedCheck_8130_;
goto v_resetjp_8050_;
}
else
{
lean_inc(v_name_8049_);
lean_inc(v_path_8048_);
lean_inc(v_descr_8047_);
lean_dec(v_olean_8035_);
v___x_8051_ = lean_box(0);
v_isShared_8052_ = v_isSharedCheck_8130_;
goto v_resetjp_8050_;
}
v_resetjp_8050_:
{
lean_object* v___x_8054_; 
lean_inc_ref(v_mtime_8034_);
if (v_isShared_8052_ == 0)
{
lean_ctor_set(v___x_8051_, 3, v_mtime_8034_);
v___x_8054_ = v___x_8051_;
goto v_reusejp_8053_;
}
else
{
lean_object* v_reuseFailAlloc_8129_; 
v_reuseFailAlloc_8129_ = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(v_reuseFailAlloc_8129_, 0, v_descr_8047_);
lean_ctor_set(v_reuseFailAlloc_8129_, 1, v_path_8048_);
lean_ctor_set(v_reuseFailAlloc_8129_, 2, v_name_8049_);
lean_ctor_set(v_reuseFailAlloc_8129_, 3, v_mtime_8034_);
v___x_8054_ = v_reuseFailAlloc_8129_;
goto v_reusejp_8053_;
}
v_reusejp_8053_:
{
lean_object* v___y_8056_; lean_object* v___y_8057_; lean_object* v___y_8058_; lean_object* v___y_8059_; lean_object* v___y_8087_; lean_object* v___y_8088_; lean_object* v___y_8110_; 
if (lean_obj_tag(v_oleanServer_x3f_8037_) == 0)
{
v___y_8110_ = v_oleanServer_x3f_8037_;
goto v___jp_8109_;
}
else
{
lean_object* v_val_8120_; lean_object* v___x_8122_; uint8_t v_isShared_8123_; uint8_t v_isSharedCheck_8128_; 
v_val_8120_ = lean_ctor_get(v_oleanServer_x3f_8037_, 0);
v_isSharedCheck_8128_ = !lean_is_exclusive(v_oleanServer_x3f_8037_);
if (v_isSharedCheck_8128_ == 0)
{
v___x_8122_ = v_oleanServer_x3f_8037_;
v_isShared_8123_ = v_isSharedCheck_8128_;
goto v_resetjp_8121_;
}
else
{
lean_inc(v_val_8120_);
lean_dec(v_oleanServer_x3f_8037_);
v___x_8122_ = lean_box(0);
v_isShared_8123_ = v_isSharedCheck_8128_;
goto v_resetjp_8121_;
}
v_resetjp_8121_:
{
lean_object* v___x_8124_; lean_object* v___x_8126_; 
lean_inc_ref(v_mtime_8034_);
v___x_8124_ = l___private_Lake_Build_Module_0__Lake_ModuleOutputArtifacts_setMTime___lam__0(v_mtime_8034_, v_val_8120_);
if (v_isShared_8123_ == 0)
{
lean_ctor_set(v___x_8122_, 0, v___x_8124_);
v___x_8126_ = v___x_8122_;
goto v_reusejp_8125_;
}
else
{
lean_object* v_reuseFailAlloc_8127_; 
v_reuseFailAlloc_8127_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_8127_, 0, v___x_8124_);
v___x_8126_ = v_reuseFailAlloc_8127_;
goto v_reusejp_8125_;
}
v_reusejp_8125_:
{
v___y_8110_ = v___x_8126_;
goto v___jp_8109_;
}
}
}
v___jp_8055_:
{
lean_object* v_descr_8060_; lean_object* v_path_8061_; lean_object* v_name_8062_; lean_object* v___x_8064_; uint8_t v_isShared_8065_; uint8_t v_isSharedCheck_8084_; 
v_descr_8060_ = lean_ctor_get(v_c_8041_, 0);
v_path_8061_ = lean_ctor_get(v_c_8041_, 1);
v_name_8062_ = lean_ctor_get(v_c_8041_, 2);
v_isSharedCheck_8084_ = !lean_is_exclusive(v_c_8041_);
if (v_isSharedCheck_8084_ == 0)
{
lean_object* v_unused_8085_; 
v_unused_8085_ = lean_ctor_get(v_c_8041_, 3);
lean_dec(v_unused_8085_);
v___x_8064_ = v_c_8041_;
v_isShared_8065_ = v_isSharedCheck_8084_;
goto v_resetjp_8063_;
}
else
{
lean_inc(v_name_8062_);
lean_inc(v_path_8061_);
lean_inc(v_descr_8060_);
lean_dec(v_c_8041_);
v___x_8064_ = lean_box(0);
v_isShared_8065_ = v_isSharedCheck_8084_;
goto v_resetjp_8063_;
}
v_resetjp_8063_:
{
lean_object* v___x_8067_; 
lean_inc_ref(v_mtime_8034_);
if (v_isShared_8065_ == 0)
{
lean_ctor_set(v___x_8064_, 3, v_mtime_8034_);
v___x_8067_ = v___x_8064_;
goto v_reusejp_8066_;
}
else
{
lean_object* v_reuseFailAlloc_8083_; 
v_reuseFailAlloc_8083_ = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(v_reuseFailAlloc_8083_, 0, v_descr_8060_);
lean_ctor_set(v_reuseFailAlloc_8083_, 1, v_path_8061_);
lean_ctor_set(v_reuseFailAlloc_8083_, 2, v_name_8062_);
lean_ctor_set(v_reuseFailAlloc_8083_, 3, v_mtime_8034_);
v___x_8067_ = v_reuseFailAlloc_8083_;
goto v_reusejp_8066_;
}
v_reusejp_8066_:
{
if (lean_obj_tag(v_bc_x3f_8042_) == 0)
{
lean_object* v___x_8069_; 
lean_dec_ref(v_mtime_8034_);
if (v_isShared_8046_ == 0)
{
lean_ctor_set(v___x_8045_, 5, v___x_8067_);
lean_ctor_set(v___x_8045_, 4, v___y_8059_);
lean_ctor_set(v___x_8045_, 3, v___y_8056_);
lean_ctor_set(v___x_8045_, 2, v___y_8058_);
lean_ctor_set(v___x_8045_, 1, v___y_8057_);
lean_ctor_set(v___x_8045_, 0, v___x_8054_);
v___x_8069_ = v___x_8045_;
goto v_reusejp_8068_;
}
else
{
lean_object* v_reuseFailAlloc_8070_; 
v_reuseFailAlloc_8070_ = lean_alloc_ctor(0, 8, 1);
lean_ctor_set(v_reuseFailAlloc_8070_, 0, v___x_8054_);
lean_ctor_set(v_reuseFailAlloc_8070_, 1, v___y_8057_);
lean_ctor_set(v_reuseFailAlloc_8070_, 2, v___y_8058_);
lean_ctor_set(v_reuseFailAlloc_8070_, 3, v___y_8056_);
lean_ctor_set(v_reuseFailAlloc_8070_, 4, v___y_8059_);
lean_ctor_set(v_reuseFailAlloc_8070_, 5, v___x_8067_);
lean_ctor_set(v_reuseFailAlloc_8070_, 6, v_bc_x3f_8042_);
lean_ctor_set(v_reuseFailAlloc_8070_, 7, v_ltar_x3f_8043_);
lean_ctor_set_uint8(v_reuseFailAlloc_8070_, sizeof(void*)*8, v_isModule_8036_);
v___x_8069_ = v_reuseFailAlloc_8070_;
goto v_reusejp_8068_;
}
v_reusejp_8068_:
{
return v___x_8069_;
}
}
else
{
lean_object* v_val_8071_; lean_object* v___x_8073_; uint8_t v_isShared_8074_; uint8_t v_isSharedCheck_8082_; 
v_val_8071_ = lean_ctor_get(v_bc_x3f_8042_, 0);
v_isSharedCheck_8082_ = !lean_is_exclusive(v_bc_x3f_8042_);
if (v_isSharedCheck_8082_ == 0)
{
v___x_8073_ = v_bc_x3f_8042_;
v_isShared_8074_ = v_isSharedCheck_8082_;
goto v_resetjp_8072_;
}
else
{
lean_inc(v_val_8071_);
lean_dec(v_bc_x3f_8042_);
v___x_8073_ = lean_box(0);
v_isShared_8074_ = v_isSharedCheck_8082_;
goto v_resetjp_8072_;
}
v_resetjp_8072_:
{
lean_object* v___x_8075_; lean_object* v___x_8077_; 
v___x_8075_ = l___private_Lake_Build_Module_0__Lake_ModuleOutputArtifacts_setMTime___lam__0(v_mtime_8034_, v_val_8071_);
if (v_isShared_8074_ == 0)
{
lean_ctor_set(v___x_8073_, 0, v___x_8075_);
v___x_8077_ = v___x_8073_;
goto v_reusejp_8076_;
}
else
{
lean_object* v_reuseFailAlloc_8081_; 
v_reuseFailAlloc_8081_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_8081_, 0, v___x_8075_);
v___x_8077_ = v_reuseFailAlloc_8081_;
goto v_reusejp_8076_;
}
v_reusejp_8076_:
{
lean_object* v___x_8079_; 
if (v_isShared_8046_ == 0)
{
lean_ctor_set(v___x_8045_, 6, v___x_8077_);
lean_ctor_set(v___x_8045_, 5, v___x_8067_);
lean_ctor_set(v___x_8045_, 4, v___y_8059_);
lean_ctor_set(v___x_8045_, 3, v___y_8056_);
lean_ctor_set(v___x_8045_, 2, v___y_8058_);
lean_ctor_set(v___x_8045_, 1, v___y_8057_);
lean_ctor_set(v___x_8045_, 0, v___x_8054_);
v___x_8079_ = v___x_8045_;
goto v_reusejp_8078_;
}
else
{
lean_object* v_reuseFailAlloc_8080_; 
v_reuseFailAlloc_8080_ = lean_alloc_ctor(0, 8, 1);
lean_ctor_set(v_reuseFailAlloc_8080_, 0, v___x_8054_);
lean_ctor_set(v_reuseFailAlloc_8080_, 1, v___y_8057_);
lean_ctor_set(v_reuseFailAlloc_8080_, 2, v___y_8058_);
lean_ctor_set(v_reuseFailAlloc_8080_, 3, v___y_8056_);
lean_ctor_set(v_reuseFailAlloc_8080_, 4, v___y_8059_);
lean_ctor_set(v_reuseFailAlloc_8080_, 5, v___x_8067_);
lean_ctor_set(v_reuseFailAlloc_8080_, 6, v___x_8077_);
lean_ctor_set(v_reuseFailAlloc_8080_, 7, v_ltar_x3f_8043_);
lean_ctor_set_uint8(v_reuseFailAlloc_8080_, sizeof(void*)*8, v_isModule_8036_);
v___x_8079_ = v_reuseFailAlloc_8080_;
goto v_reusejp_8078_;
}
v_reusejp_8078_:
{
return v___x_8079_;
}
}
}
}
}
}
}
v___jp_8086_:
{
lean_object* v_descr_8089_; lean_object* v_path_8090_; lean_object* v_name_8091_; lean_object* v___x_8093_; uint8_t v_isShared_8094_; uint8_t v_isSharedCheck_8107_; 
v_descr_8089_ = lean_ctor_get(v_ilean_8039_, 0);
v_path_8090_ = lean_ctor_get(v_ilean_8039_, 1);
v_name_8091_ = lean_ctor_get(v_ilean_8039_, 2);
v_isSharedCheck_8107_ = !lean_is_exclusive(v_ilean_8039_);
if (v_isSharedCheck_8107_ == 0)
{
lean_object* v_unused_8108_; 
v_unused_8108_ = lean_ctor_get(v_ilean_8039_, 3);
lean_dec(v_unused_8108_);
v___x_8093_ = v_ilean_8039_;
v_isShared_8094_ = v_isSharedCheck_8107_;
goto v_resetjp_8092_;
}
else
{
lean_inc(v_name_8091_);
lean_inc(v_path_8090_);
lean_inc(v_descr_8089_);
lean_dec(v_ilean_8039_);
v___x_8093_ = lean_box(0);
v_isShared_8094_ = v_isSharedCheck_8107_;
goto v_resetjp_8092_;
}
v_resetjp_8092_:
{
lean_object* v___x_8096_; 
lean_inc_ref(v_mtime_8034_);
if (v_isShared_8094_ == 0)
{
lean_ctor_set(v___x_8093_, 3, v_mtime_8034_);
v___x_8096_ = v___x_8093_;
goto v_reusejp_8095_;
}
else
{
lean_object* v_reuseFailAlloc_8106_; 
v_reuseFailAlloc_8106_ = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(v_reuseFailAlloc_8106_, 0, v_descr_8089_);
lean_ctor_set(v_reuseFailAlloc_8106_, 1, v_path_8090_);
lean_ctor_set(v_reuseFailAlloc_8106_, 2, v_name_8091_);
lean_ctor_set(v_reuseFailAlloc_8106_, 3, v_mtime_8034_);
v___x_8096_ = v_reuseFailAlloc_8106_;
goto v_reusejp_8095_;
}
v_reusejp_8095_:
{
if (lean_obj_tag(v_ir_x3f_8040_) == 0)
{
v___y_8056_ = v___x_8096_;
v___y_8057_ = v___y_8087_;
v___y_8058_ = v___y_8088_;
v___y_8059_ = v_ir_x3f_8040_;
goto v___jp_8055_;
}
else
{
lean_object* v_val_8097_; lean_object* v___x_8099_; uint8_t v_isShared_8100_; uint8_t v_isSharedCheck_8105_; 
v_val_8097_ = lean_ctor_get(v_ir_x3f_8040_, 0);
v_isSharedCheck_8105_ = !lean_is_exclusive(v_ir_x3f_8040_);
if (v_isSharedCheck_8105_ == 0)
{
v___x_8099_ = v_ir_x3f_8040_;
v_isShared_8100_ = v_isSharedCheck_8105_;
goto v_resetjp_8098_;
}
else
{
lean_inc(v_val_8097_);
lean_dec(v_ir_x3f_8040_);
v___x_8099_ = lean_box(0);
v_isShared_8100_ = v_isSharedCheck_8105_;
goto v_resetjp_8098_;
}
v_resetjp_8098_:
{
lean_object* v___x_8101_; lean_object* v___x_8103_; 
lean_inc_ref(v_mtime_8034_);
v___x_8101_ = l___private_Lake_Build_Module_0__Lake_ModuleOutputArtifacts_setMTime___lam__0(v_mtime_8034_, v_val_8097_);
if (v_isShared_8100_ == 0)
{
lean_ctor_set(v___x_8099_, 0, v___x_8101_);
v___x_8103_ = v___x_8099_;
goto v_reusejp_8102_;
}
else
{
lean_object* v_reuseFailAlloc_8104_; 
v_reuseFailAlloc_8104_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_8104_, 0, v___x_8101_);
v___x_8103_ = v_reuseFailAlloc_8104_;
goto v_reusejp_8102_;
}
v_reusejp_8102_:
{
v___y_8056_ = v___x_8096_;
v___y_8057_ = v___y_8087_;
v___y_8058_ = v___y_8088_;
v___y_8059_ = v___x_8103_;
goto v___jp_8055_;
}
}
}
}
}
}
v___jp_8109_:
{
if (lean_obj_tag(v_oleanPrivate_x3f_8038_) == 0)
{
v___y_8087_ = v___y_8110_;
v___y_8088_ = v_oleanPrivate_x3f_8038_;
goto v___jp_8086_;
}
else
{
lean_object* v_val_8111_; lean_object* v___x_8113_; uint8_t v_isShared_8114_; uint8_t v_isSharedCheck_8119_; 
v_val_8111_ = lean_ctor_get(v_oleanPrivate_x3f_8038_, 0);
v_isSharedCheck_8119_ = !lean_is_exclusive(v_oleanPrivate_x3f_8038_);
if (v_isSharedCheck_8119_ == 0)
{
v___x_8113_ = v_oleanPrivate_x3f_8038_;
v_isShared_8114_ = v_isSharedCheck_8119_;
goto v_resetjp_8112_;
}
else
{
lean_inc(v_val_8111_);
lean_dec(v_oleanPrivate_x3f_8038_);
v___x_8113_ = lean_box(0);
v_isShared_8114_ = v_isSharedCheck_8119_;
goto v_resetjp_8112_;
}
v_resetjp_8112_:
{
lean_object* v___x_8115_; lean_object* v___x_8117_; 
lean_inc_ref(v_mtime_8034_);
v___x_8115_ = l___private_Lake_Build_Module_0__Lake_ModuleOutputArtifacts_setMTime___lam__0(v_mtime_8034_, v_val_8111_);
if (v_isShared_8114_ == 0)
{
lean_ctor_set(v___x_8113_, 0, v___x_8115_);
v___x_8117_ = v___x_8113_;
goto v_reusejp_8116_;
}
else
{
lean_object* v_reuseFailAlloc_8118_; 
v_reuseFailAlloc_8118_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_8118_, 0, v___x_8115_);
v___x_8117_ = v_reuseFailAlloc_8118_;
goto v_reusejp_8116_;
}
v_reusejp_8116_:
{
v___y_8087_ = v___y_8110_;
v___y_8088_ = v___x_8117_;
goto v___jp_8086_;
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_mkArtifacts(lean_object* v_mod_8133_, lean_object* v_srcFile_8134_, uint8_t v_isModule_8135_){
_start:
{
lean_object* v_lib_8136_; lean_object* v_pkg_8137_; lean_object* v_config_8138_; lean_object* v_name_8139_; lean_object* v_dir_8140_; lean_object* v_buildDir_8141_; lean_object* v_leanLibDir_8142_; lean_object* v_irDir_8143_; lean_object* v___x_8144_; lean_object* v___x_8145_; lean_object* v___x_8146_; lean_object* v___x_8147_; lean_object* v___x_8148_; lean_object* v___x_8149_; lean_object* v___x_8150_; lean_object* v___x_8151_; lean_object* v___y_8153_; lean_object* v___y_8154_; lean_object* v___y_8155_; lean_object* v___y_8156_; lean_object* v___y_8170_; lean_object* v___y_8171_; lean_object* v___y_8180_; 
v_lib_8136_ = lean_ctor_get(v_mod_8133_, 0);
v_pkg_8137_ = lean_ctor_get(v_lib_8136_, 0);
lean_inc_ref(v_pkg_8137_);
v_config_8138_ = lean_ctor_get(v_pkg_8137_, 6);
lean_inc_ref(v_config_8138_);
v_name_8139_ = lean_ctor_get(v_mod_8133_, 1);
lean_inc(v_name_8139_);
lean_dec_ref(v_mod_8133_);
v_dir_8140_ = lean_ctor_get(v_pkg_8137_, 4);
lean_inc_ref(v_dir_8140_);
lean_dec_ref(v_pkg_8137_);
v_buildDir_8141_ = lean_ctor_get(v_config_8138_, 6);
lean_inc_ref(v_buildDir_8141_);
v_leanLibDir_8142_ = lean_ctor_get(v_config_8138_, 7);
lean_inc_ref(v_leanLibDir_8142_);
v_irDir_8143_ = lean_ctor_get(v_config_8138_, 10);
lean_inc_ref(v_irDir_8143_);
lean_dec_ref(v_config_8138_);
v___x_8144_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_8144_, 0, v_srcFile_8134_);
v___x_8145_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__2));
v___x_8146_ = l_System_FilePath_normalize(v_buildDir_8141_);
v___x_8147_ = l_Lake_joinRelative(v_dir_8140_, v___x_8146_);
v___x_8148_ = l_System_FilePath_normalize(v_leanLibDir_8142_);
lean_inc_ref(v___x_8147_);
v___x_8149_ = l_Lake_joinRelative(v___x_8147_, v___x_8148_);
lean_inc(v_name_8139_);
v___x_8150_ = l_Lean_modToFilePath(v___x_8149_, v_name_8139_, v___x_8145_);
v___x_8151_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_8151_, 0, v___x_8150_);
if (v_isModule_8135_ == 0)
{
lean_object* v___x_8185_; 
v___x_8185_ = lean_box(0);
v___y_8180_ = v___x_8185_;
goto v___jp_8179_;
}
else
{
lean_object* v___x_8186_; lean_object* v___x_8187_; lean_object* v___x_8188_; 
v___x_8186_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__3));
lean_inc(v_name_8139_);
v___x_8187_ = l_Lean_modToFilePath(v___x_8149_, v_name_8139_, v___x_8186_);
v___x_8188_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_8188_, 0, v___x_8187_);
v___y_8180_ = v___x_8188_;
goto v___jp_8179_;
}
v___jp_8152_:
{
lean_object* v___x_8157_; lean_object* v___x_8158_; lean_object* v___x_8159_; lean_object* v___x_8160_; lean_object* v___x_8161_; uint8_t v___x_8162_; 
v___x_8157_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__7));
v___x_8158_ = l_System_FilePath_normalize(v_irDir_8143_);
v___x_8159_ = l_Lake_joinRelative(v___x_8147_, v___x_8158_);
lean_inc(v_name_8139_);
v___x_8160_ = l_Lean_modToFilePath(v___x_8159_, v_name_8139_, v___x_8157_);
v___x_8161_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_8161_, 0, v___x_8160_);
v___x_8162_ = lean_uint8_once(&l_Lake_Module_cacheOutputHashes___closed__0, &l_Lake_Module_cacheOutputHashes___closed__0_once, _init_l_Lake_Module_cacheOutputHashes___closed__0);
if (v___x_8162_ == 0)
{
lean_object* v___x_8163_; lean_object* v___x_8164_; 
lean_dec_ref(v___x_8159_);
lean_dec(v_name_8139_);
v___x_8163_ = lean_box(0);
v___x_8164_ = lean_alloc_ctor(0, 8, 0);
lean_ctor_set(v___x_8164_, 0, v___x_8144_);
lean_ctor_set(v___x_8164_, 1, v___x_8151_);
lean_ctor_set(v___x_8164_, 2, v___y_8155_);
lean_ctor_set(v___x_8164_, 3, v___y_8154_);
lean_ctor_set(v___x_8164_, 4, v___y_8153_);
lean_ctor_set(v___x_8164_, 5, v___y_8156_);
lean_ctor_set(v___x_8164_, 6, v___x_8161_);
lean_ctor_set(v___x_8164_, 7, v___x_8163_);
return v___x_8164_;
}
else
{
lean_object* v___x_8165_; lean_object* v___x_8166_; lean_object* v___x_8167_; lean_object* v___x_8168_; 
v___x_8165_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__8));
v___x_8166_ = l_Lean_modToFilePath(v___x_8159_, v_name_8139_, v___x_8165_);
lean_dec_ref(v___x_8159_);
v___x_8167_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_8167_, 0, v___x_8166_);
v___x_8168_ = lean_alloc_ctor(0, 8, 0);
lean_ctor_set(v___x_8168_, 0, v___x_8144_);
lean_ctor_set(v___x_8168_, 1, v___x_8151_);
lean_ctor_set(v___x_8168_, 2, v___y_8155_);
lean_ctor_set(v___x_8168_, 3, v___y_8154_);
lean_ctor_set(v___x_8168_, 4, v___y_8153_);
lean_ctor_set(v___x_8168_, 5, v___y_8156_);
lean_ctor_set(v___x_8168_, 6, v___x_8161_);
lean_ctor_set(v___x_8168_, 7, v___x_8167_);
return v___x_8168_;
}
}
v___jp_8169_:
{
lean_object* v___x_8172_; lean_object* v___x_8173_; lean_object* v___x_8174_; 
v___x_8172_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__5));
lean_inc(v_name_8139_);
v___x_8173_ = l_Lean_modToFilePath(v___x_8149_, v_name_8139_, v___x_8172_);
v___x_8174_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_8174_, 0, v___x_8173_);
if (v_isModule_8135_ == 0)
{
lean_object* v___x_8175_; 
lean_dec_ref(v___x_8149_);
v___x_8175_ = lean_box(0);
v___y_8153_ = v___x_8174_;
v___y_8154_ = v___y_8171_;
v___y_8155_ = v___y_8170_;
v___y_8156_ = v___x_8175_;
goto v___jp_8152_;
}
else
{
lean_object* v___x_8176_; lean_object* v___x_8177_; lean_object* v___x_8178_; 
v___x_8176_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__6));
lean_inc(v_name_8139_);
v___x_8177_ = l_Lean_modToFilePath(v___x_8149_, v_name_8139_, v___x_8176_);
lean_dec_ref(v___x_8149_);
v___x_8178_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_8178_, 0, v___x_8177_);
v___y_8153_ = v___x_8174_;
v___y_8154_ = v___y_8171_;
v___y_8155_ = v___y_8170_;
v___y_8156_ = v___x_8178_;
goto v___jp_8152_;
}
}
v___jp_8179_:
{
if (v_isModule_8135_ == 0)
{
lean_object* v___x_8181_; 
v___x_8181_ = lean_box(0);
v___y_8170_ = v___y_8180_;
v___y_8171_ = v___x_8181_;
goto v___jp_8169_;
}
else
{
lean_object* v___x_8182_; lean_object* v___x_8183_; lean_object* v___x_8184_; 
v___x_8182_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__4));
lean_inc(v_name_8139_);
v___x_8183_ = l_Lean_modToFilePath(v___x_8149_, v_name_8139_, v___x_8182_);
v___x_8184_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_8184_, 0, v___x_8183_);
v___y_8170_ = v___y_8180_;
v___y_8171_ = v___x_8184_;
goto v___jp_8169_;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_mkArtifacts___boxed(lean_object* v_mod_8189_, lean_object* v_srcFile_8190_, lean_object* v_isModule_8191_){
_start:
{
uint8_t v_isModule_boxed_8192_; lean_object* v_res_8193_; 
v_isModule_boxed_8192_ = lean_unbox(v_isModule_8191_);
v_res_8193_ = l___private_Lake_Build_Module_0__Lake_Module_mkArtifacts(v_mod_8189_, v_srcFile_8190_, v_isModule_boxed_8192_);
return v_res_8193_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_compute___redArg(lean_object* v_file_8194_, lean_object* v_ext_8195_, lean_object* v_a_8196_, lean_object* v_a_8197_){
_start:
{
uint8_t v___x_8199_; uint8_t v___x_8200_; lean_object* v___x_8201_; lean_object* v___x_8202_; lean_object* v___x_8203_; lean_object* v___x_8204_; 
v___x_8199_ = 0;
v___x_8200_ = 0;
v___x_8201_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_8202_ = lean_unsigned_to_nat(0u);
v___x_8203_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v___x_8203_, 0, v_a_8197_);
lean_ctor_set(v___x_8203_, 1, v___x_8201_);
lean_ctor_set(v___x_8203_, 2, v___x_8202_);
lean_ctor_set_uint8(v___x_8203_, sizeof(void*)*3, v___x_8200_);
lean_ctor_set_uint8(v___x_8203_, sizeof(void*)*3 + 1, v___x_8199_);
v___x_8204_ = l_Lake_computeArtifact___redArg(v_file_8194_, v_ext_8195_, v___x_8199_, v_a_8196_, v___x_8203_);
if (lean_obj_tag(v___x_8204_) == 0)
{
lean_object* v_a_8205_; lean_object* v_a_8206_; lean_object* v___x_8208_; uint8_t v_isShared_8209_; uint8_t v_isSharedCheck_8214_; 
v_a_8205_ = lean_ctor_get(v___x_8204_, 1);
v_a_8206_ = lean_ctor_get(v___x_8204_, 0);
v_isSharedCheck_8214_ = !lean_is_exclusive(v___x_8204_);
if (v_isSharedCheck_8214_ == 0)
{
v___x_8208_ = v___x_8204_;
v_isShared_8209_ = v_isSharedCheck_8214_;
goto v_resetjp_8207_;
}
else
{
lean_inc(v_a_8205_);
lean_inc(v_a_8206_);
lean_dec(v___x_8204_);
v___x_8208_ = lean_box(0);
v_isShared_8209_ = v_isSharedCheck_8214_;
goto v_resetjp_8207_;
}
v_resetjp_8207_:
{
lean_object* v_log_8210_; lean_object* v___x_8212_; 
v_log_8210_ = lean_ctor_get(v_a_8205_, 0);
lean_inc_ref(v_log_8210_);
lean_dec(v_a_8205_);
if (v_isShared_8209_ == 0)
{
lean_ctor_set(v___x_8208_, 1, v_log_8210_);
v___x_8212_ = v___x_8208_;
goto v_reusejp_8211_;
}
else
{
lean_object* v_reuseFailAlloc_8213_; 
v_reuseFailAlloc_8213_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_8213_, 0, v_a_8206_);
lean_ctor_set(v_reuseFailAlloc_8213_, 1, v_log_8210_);
v___x_8212_ = v_reuseFailAlloc_8213_;
goto v_reusejp_8211_;
}
v_reusejp_8211_:
{
return v___x_8212_;
}
}
}
else
{
lean_object* v_a_8215_; lean_object* v_a_8216_; lean_object* v___x_8218_; uint8_t v_isShared_8219_; uint8_t v_isSharedCheck_8224_; 
v_a_8215_ = lean_ctor_get(v___x_8204_, 1);
v_a_8216_ = lean_ctor_get(v___x_8204_, 0);
v_isSharedCheck_8224_ = !lean_is_exclusive(v___x_8204_);
if (v_isSharedCheck_8224_ == 0)
{
v___x_8218_ = v___x_8204_;
v_isShared_8219_ = v_isSharedCheck_8224_;
goto v_resetjp_8217_;
}
else
{
lean_inc(v_a_8215_);
lean_inc(v_a_8216_);
lean_dec(v___x_8204_);
v___x_8218_ = lean_box(0);
v_isShared_8219_ = v_isSharedCheck_8224_;
goto v_resetjp_8217_;
}
v_resetjp_8217_:
{
lean_object* v_log_8220_; lean_object* v___x_8222_; 
v_log_8220_ = lean_ctor_get(v_a_8215_, 0);
lean_inc_ref(v_log_8220_);
lean_dec(v_a_8215_);
if (v_isShared_8219_ == 0)
{
lean_ctor_set(v___x_8218_, 1, v_log_8220_);
v___x_8222_ = v___x_8218_;
goto v_reusejp_8221_;
}
else
{
lean_object* v_reuseFailAlloc_8223_; 
v_reuseFailAlloc_8223_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_8223_, 0, v_a_8216_);
lean_ctor_set(v_reuseFailAlloc_8223_, 1, v_log_8220_);
v___x_8222_ = v_reuseFailAlloc_8223_;
goto v_reusejp_8221_;
}
v_reusejp_8221_:
{
return v___x_8222_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_compute___redArg___boxed(lean_object* v_file_8225_, lean_object* v_ext_8226_, lean_object* v_a_8227_, lean_object* v_a_8228_, lean_object* v_a_8229_){
_start:
{
lean_object* v_res_8230_; 
v_res_8230_ = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_compute___redArg(v_file_8225_, v_ext_8226_, v_a_8227_, v_a_8228_);
lean_dec_ref(v_a_8227_);
return v_res_8230_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_compute(lean_object* v_file_8231_, lean_object* v_ext_8232_, lean_object* v_a_8233_, lean_object* v_a_8234_, lean_object* v_a_8235_, lean_object* v_a_8236_, lean_object* v_a_8237_, lean_object* v_a_8238_){
_start:
{
uint8_t v___x_8240_; uint8_t v___x_8241_; lean_object* v___x_8242_; lean_object* v___x_8243_; lean_object* v___x_8244_; lean_object* v___x_8245_; 
v___x_8240_ = 0;
v___x_8241_ = 0;
v___x_8242_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_8243_ = lean_unsigned_to_nat(0u);
v___x_8244_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v___x_8244_, 0, v_a_8238_);
lean_ctor_set(v___x_8244_, 1, v___x_8242_);
lean_ctor_set(v___x_8244_, 2, v___x_8243_);
lean_ctor_set_uint8(v___x_8244_, sizeof(void*)*3, v___x_8241_);
lean_ctor_set_uint8(v___x_8244_, sizeof(void*)*3 + 1, v___x_8240_);
v___x_8245_ = l_Lake_computeArtifact___redArg(v_file_8231_, v_ext_8232_, v___x_8240_, v_a_8237_, v___x_8244_);
if (lean_obj_tag(v___x_8245_) == 0)
{
lean_object* v_a_8246_; lean_object* v_a_8247_; lean_object* v___x_8249_; uint8_t v_isShared_8250_; uint8_t v_isSharedCheck_8255_; 
v_a_8246_ = lean_ctor_get(v___x_8245_, 1);
v_a_8247_ = lean_ctor_get(v___x_8245_, 0);
v_isSharedCheck_8255_ = !lean_is_exclusive(v___x_8245_);
if (v_isSharedCheck_8255_ == 0)
{
v___x_8249_ = v___x_8245_;
v_isShared_8250_ = v_isSharedCheck_8255_;
goto v_resetjp_8248_;
}
else
{
lean_inc(v_a_8246_);
lean_inc(v_a_8247_);
lean_dec(v___x_8245_);
v___x_8249_ = lean_box(0);
v_isShared_8250_ = v_isSharedCheck_8255_;
goto v_resetjp_8248_;
}
v_resetjp_8248_:
{
lean_object* v_log_8251_; lean_object* v___x_8253_; 
v_log_8251_ = lean_ctor_get(v_a_8246_, 0);
lean_inc_ref(v_log_8251_);
lean_dec(v_a_8246_);
if (v_isShared_8250_ == 0)
{
lean_ctor_set(v___x_8249_, 1, v_log_8251_);
v___x_8253_ = v___x_8249_;
goto v_reusejp_8252_;
}
else
{
lean_object* v_reuseFailAlloc_8254_; 
v_reuseFailAlloc_8254_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_8254_, 0, v_a_8247_);
lean_ctor_set(v_reuseFailAlloc_8254_, 1, v_log_8251_);
v___x_8253_ = v_reuseFailAlloc_8254_;
goto v_reusejp_8252_;
}
v_reusejp_8252_:
{
return v___x_8253_;
}
}
}
else
{
lean_object* v_a_8256_; lean_object* v_a_8257_; lean_object* v___x_8259_; uint8_t v_isShared_8260_; uint8_t v_isSharedCheck_8265_; 
v_a_8256_ = lean_ctor_get(v___x_8245_, 1);
v_a_8257_ = lean_ctor_get(v___x_8245_, 0);
v_isSharedCheck_8265_ = !lean_is_exclusive(v___x_8245_);
if (v_isSharedCheck_8265_ == 0)
{
v___x_8259_ = v___x_8245_;
v_isShared_8260_ = v_isSharedCheck_8265_;
goto v_resetjp_8258_;
}
else
{
lean_inc(v_a_8256_);
lean_inc(v_a_8257_);
lean_dec(v___x_8245_);
v___x_8259_ = lean_box(0);
v_isShared_8260_ = v_isSharedCheck_8265_;
goto v_resetjp_8258_;
}
v_resetjp_8258_:
{
lean_object* v_log_8261_; lean_object* v___x_8263_; 
v_log_8261_ = lean_ctor_get(v_a_8256_, 0);
lean_inc_ref(v_log_8261_);
lean_dec(v_a_8256_);
if (v_isShared_8260_ == 0)
{
lean_ctor_set(v___x_8259_, 1, v_log_8261_);
v___x_8263_ = v___x_8259_;
goto v_reusejp_8262_;
}
else
{
lean_object* v_reuseFailAlloc_8264_; 
v_reuseFailAlloc_8264_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_8264_, 0, v_a_8257_);
lean_ctor_set(v_reuseFailAlloc_8264_, 1, v_log_8261_);
v___x_8263_ = v_reuseFailAlloc_8264_;
goto v_reusejp_8262_;
}
v_reusejp_8262_:
{
return v___x_8263_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_compute___boxed(lean_object* v_file_8266_, lean_object* v_ext_8267_, lean_object* v_a_8268_, lean_object* v_a_8269_, lean_object* v_a_8270_, lean_object* v_a_8271_, lean_object* v_a_8272_, lean_object* v_a_8273_, lean_object* v_a_8274_){
_start:
{
lean_object* v_res_8275_; 
v_res_8275_ = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_compute(v_file_8266_, v_ext_8267_, v_a_8268_, v_a_8269_, v_a_8270_, v_a_8271_, v_a_8272_, v_a_8273_);
lean_dec_ref(v_a_8272_);
lean_dec(v_a_8271_);
lean_dec(v_a_8270_);
lean_dec(v_a_8269_);
lean_dec_ref(v_a_8268_);
return v_res_8275_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_computeIf___redArg(uint8_t v_c_8276_, lean_object* v_file_8277_, lean_object* v_ext_8278_, lean_object* v_a_8279_, lean_object* v_a_8280_){
_start:
{
if (v_c_8276_ == 0)
{
lean_object* v___x_8282_; lean_object* v___x_8283_; 
lean_dec_ref(v_ext_8278_);
lean_dec_ref(v_file_8277_);
v___x_8282_ = lean_box(0);
v___x_8283_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_8283_, 0, v___x_8282_);
lean_ctor_set(v___x_8283_, 1, v_a_8280_);
return v___x_8283_;
}
else
{
uint8_t v___x_8284_; uint8_t v___x_8285_; lean_object* v___x_8286_; lean_object* v___x_8287_; lean_object* v___x_8288_; lean_object* v___x_8289_; 
v___x_8284_ = 0;
v___x_8285_ = 0;
v___x_8286_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_8287_ = lean_unsigned_to_nat(0u);
v___x_8288_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v___x_8288_, 0, v_a_8280_);
lean_ctor_set(v___x_8288_, 1, v___x_8286_);
lean_ctor_set(v___x_8288_, 2, v___x_8287_);
lean_ctor_set_uint8(v___x_8288_, sizeof(void*)*3, v___x_8285_);
lean_ctor_set_uint8(v___x_8288_, sizeof(void*)*3 + 1, v___x_8284_);
v___x_8289_ = l_Lake_computeArtifact___redArg(v_file_8277_, v_ext_8278_, v___x_8284_, v_a_8279_, v___x_8288_);
if (lean_obj_tag(v___x_8289_) == 0)
{
lean_object* v_a_8290_; lean_object* v_a_8291_; lean_object* v___x_8293_; uint8_t v_isShared_8294_; uint8_t v_isSharedCheck_8300_; 
v_a_8290_ = lean_ctor_get(v___x_8289_, 1);
v_a_8291_ = lean_ctor_get(v___x_8289_, 0);
v_isSharedCheck_8300_ = !lean_is_exclusive(v___x_8289_);
if (v_isSharedCheck_8300_ == 0)
{
v___x_8293_ = v___x_8289_;
v_isShared_8294_ = v_isSharedCheck_8300_;
goto v_resetjp_8292_;
}
else
{
lean_inc(v_a_8290_);
lean_inc(v_a_8291_);
lean_dec(v___x_8289_);
v___x_8293_ = lean_box(0);
v_isShared_8294_ = v_isSharedCheck_8300_;
goto v_resetjp_8292_;
}
v_resetjp_8292_:
{
lean_object* v_log_8295_; lean_object* v___x_8296_; lean_object* v___x_8298_; 
v_log_8295_ = lean_ctor_get(v_a_8290_, 0);
lean_inc_ref(v_log_8295_);
lean_dec(v_a_8290_);
v___x_8296_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_8296_, 0, v_a_8291_);
if (v_isShared_8294_ == 0)
{
lean_ctor_set(v___x_8293_, 1, v_log_8295_);
lean_ctor_set(v___x_8293_, 0, v___x_8296_);
v___x_8298_ = v___x_8293_;
goto v_reusejp_8297_;
}
else
{
lean_object* v_reuseFailAlloc_8299_; 
v_reuseFailAlloc_8299_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_8299_, 0, v___x_8296_);
lean_ctor_set(v_reuseFailAlloc_8299_, 1, v_log_8295_);
v___x_8298_ = v_reuseFailAlloc_8299_;
goto v_reusejp_8297_;
}
v_reusejp_8297_:
{
return v___x_8298_;
}
}
}
else
{
lean_object* v_a_8301_; lean_object* v_a_8302_; lean_object* v___x_8304_; uint8_t v_isShared_8305_; uint8_t v_isSharedCheck_8310_; 
v_a_8301_ = lean_ctor_get(v___x_8289_, 1);
v_a_8302_ = lean_ctor_get(v___x_8289_, 0);
v_isSharedCheck_8310_ = !lean_is_exclusive(v___x_8289_);
if (v_isSharedCheck_8310_ == 0)
{
v___x_8304_ = v___x_8289_;
v_isShared_8305_ = v_isSharedCheck_8310_;
goto v_resetjp_8303_;
}
else
{
lean_inc(v_a_8301_);
lean_inc(v_a_8302_);
lean_dec(v___x_8289_);
v___x_8304_ = lean_box(0);
v_isShared_8305_ = v_isSharedCheck_8310_;
goto v_resetjp_8303_;
}
v_resetjp_8303_:
{
lean_object* v_log_8306_; lean_object* v___x_8308_; 
v_log_8306_ = lean_ctor_get(v_a_8301_, 0);
lean_inc_ref(v_log_8306_);
lean_dec(v_a_8301_);
if (v_isShared_8305_ == 0)
{
lean_ctor_set(v___x_8304_, 1, v_log_8306_);
v___x_8308_ = v___x_8304_;
goto v_reusejp_8307_;
}
else
{
lean_object* v_reuseFailAlloc_8309_; 
v_reuseFailAlloc_8309_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_8309_, 0, v_a_8302_);
lean_ctor_set(v_reuseFailAlloc_8309_, 1, v_log_8306_);
v___x_8308_ = v_reuseFailAlloc_8309_;
goto v_reusejp_8307_;
}
v_reusejp_8307_:
{
return v___x_8308_;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_computeIf___redArg___boxed(lean_object* v_c_8311_, lean_object* v_file_8312_, lean_object* v_ext_8313_, lean_object* v_a_8314_, lean_object* v_a_8315_, lean_object* v_a_8316_){
_start:
{
uint8_t v_c_boxed_8317_; lean_object* v_res_8318_; 
v_c_boxed_8317_ = lean_unbox(v_c_8311_);
v_res_8318_ = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_computeIf___redArg(v_c_boxed_8317_, v_file_8312_, v_ext_8313_, v_a_8314_, v_a_8315_);
lean_dec_ref(v_a_8314_);
return v_res_8318_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_computeIf(uint8_t v_c_8319_, lean_object* v_file_8320_, lean_object* v_ext_8321_, lean_object* v_a_8322_, lean_object* v_a_8323_, lean_object* v_a_8324_, lean_object* v_a_8325_, lean_object* v_a_8326_, lean_object* v_a_8327_){
_start:
{
lean_object* v___x_8329_; 
v___x_8329_ = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_computeIf___redArg(v_c_8319_, v_file_8320_, v_ext_8321_, v_a_8326_, v_a_8327_);
return v___x_8329_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_computeIf___boxed(lean_object* v_c_8330_, lean_object* v_file_8331_, lean_object* v_ext_8332_, lean_object* v_a_8333_, lean_object* v_a_8334_, lean_object* v_a_8335_, lean_object* v_a_8336_, lean_object* v_a_8337_, lean_object* v_a_8338_, lean_object* v_a_8339_){
_start:
{
uint8_t v_c_boxed_8340_; lean_object* v_res_8341_; 
v_c_boxed_8340_ = lean_unbox(v_c_8330_);
v_res_8341_ = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_computeIf(v_c_boxed_8340_, v_file_8331_, v_ext_8332_, v_a_8333_, v_a_8334_, v_a_8335_, v_a_8336_, v_a_8337_, v_a_8338_);
lean_dec_ref(v_a_8337_);
lean_dec(v_a_8336_);
lean_dec(v_a_8335_);
lean_dec(v_a_8334_);
lean_dec_ref(v_a_8333_);
return v_res_8341_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___redArg(lean_object* v_mod_8342_, uint8_t v_isModule_8343_, lean_object* v_a_8344_, lean_object* v_a_8345_){
_start:
{
lean_object* v_lib_8347_; lean_object* v_pkg_8348_; lean_object* v_config_8349_; lean_object* v_name_8350_; lean_object* v_dir_8351_; lean_object* v_buildDir_8352_; lean_object* v_leanLibDir_8353_; lean_object* v_irDir_8354_; lean_object* v___x_8355_; lean_object* v___x_8356_; lean_object* v___x_8357_; lean_object* v___x_8358_; lean_object* v___x_8359_; lean_object* v___x_8360_; uint8_t v___x_8361_; uint8_t v___x_8362_; lean_object* v___x_8363_; lean_object* v___x_8364_; lean_object* v___x_8365_; lean_object* v___x_8366_; 
v_lib_8347_ = lean_ctor_get(v_mod_8342_, 0);
v_pkg_8348_ = lean_ctor_get(v_lib_8347_, 0);
lean_inc_ref(v_pkg_8348_);
v_config_8349_ = lean_ctor_get(v_pkg_8348_, 6);
lean_inc_ref(v_config_8349_);
v_name_8350_ = lean_ctor_get(v_mod_8342_, 1);
lean_inc(v_name_8350_);
lean_dec_ref(v_mod_8342_);
v_dir_8351_ = lean_ctor_get(v_pkg_8348_, 4);
lean_inc_ref(v_dir_8351_);
lean_dec_ref(v_pkg_8348_);
v_buildDir_8352_ = lean_ctor_get(v_config_8349_, 6);
lean_inc_ref(v_buildDir_8352_);
v_leanLibDir_8353_ = lean_ctor_get(v_config_8349_, 7);
lean_inc_ref(v_leanLibDir_8353_);
v_irDir_8354_ = lean_ctor_get(v_config_8349_, 10);
lean_inc_ref(v_irDir_8354_);
lean_dec_ref(v_config_8349_);
v___x_8355_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__2));
v___x_8356_ = l_System_FilePath_normalize(v_buildDir_8352_);
v___x_8357_ = l_Lake_joinRelative(v_dir_8351_, v___x_8356_);
v___x_8358_ = l_System_FilePath_normalize(v_leanLibDir_8353_);
lean_inc_ref(v___x_8357_);
v___x_8359_ = l_Lake_joinRelative(v___x_8357_, v___x_8358_);
lean_inc(v_name_8350_);
v___x_8360_ = l_Lean_modToFilePath(v___x_8359_, v_name_8350_, v___x_8355_);
v___x_8361_ = 0;
v___x_8362_ = 0;
v___x_8363_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_8364_ = lean_unsigned_to_nat(0u);
v___x_8365_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v___x_8365_, 0, v_a_8345_);
lean_ctor_set(v___x_8365_, 1, v___x_8363_);
lean_ctor_set(v___x_8365_, 2, v___x_8364_);
lean_ctor_set_uint8(v___x_8365_, sizeof(void*)*3, v___x_8362_);
lean_ctor_set_uint8(v___x_8365_, sizeof(void*)*3 + 1, v___x_8361_);
v___x_8366_ = l_Lake_computeArtifact___redArg(v___x_8360_, v___x_8355_, v___x_8361_, v_a_8344_, v___x_8365_);
if (lean_obj_tag(v___x_8366_) == 0)
{
lean_object* v_a_8367_; lean_object* v_a_8368_; lean_object* v_log_8369_; lean_object* v___x_8371_; uint8_t v_isShared_8372_; uint8_t v_isSharedCheck_8485_; 
v_a_8367_ = lean_ctor_get(v___x_8366_, 1);
lean_inc(v_a_8367_);
v_a_8368_ = lean_ctor_get(v___x_8366_, 0);
lean_inc(v_a_8368_);
lean_dec_ref(v___x_8366_);
v_log_8369_ = lean_ctor_get(v_a_8367_, 0);
v_isSharedCheck_8485_ = !lean_is_exclusive(v_a_8367_);
if (v_isSharedCheck_8485_ == 0)
{
lean_object* v_unused_8486_; lean_object* v_unused_8487_; 
v_unused_8486_ = lean_ctor_get(v_a_8367_, 2);
lean_dec(v_unused_8486_);
v_unused_8487_ = lean_ctor_get(v_a_8367_, 1);
lean_dec(v_unused_8487_);
v___x_8371_ = v_a_8367_;
v_isShared_8372_ = v_isSharedCheck_8485_;
goto v_resetjp_8370_;
}
else
{
lean_inc(v_log_8369_);
lean_dec(v_a_8367_);
v___x_8371_ = lean_box(0);
v_isShared_8372_ = v_isSharedCheck_8485_;
goto v_resetjp_8370_;
}
v_resetjp_8370_:
{
lean_object* v___x_8373_; lean_object* v___x_8374_; lean_object* v___x_8375_; 
v___x_8373_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__3));
lean_inc(v_name_8350_);
v___x_8374_ = l_Lean_modToFilePath(v___x_8359_, v_name_8350_, v___x_8373_);
v___x_8375_ = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_computeIf___redArg(v_isModule_8343_, v___x_8374_, v___x_8373_, v_a_8344_, v_log_8369_);
if (lean_obj_tag(v___x_8375_) == 0)
{
lean_object* v_a_8376_; lean_object* v_a_8377_; lean_object* v___x_8378_; lean_object* v___x_8379_; lean_object* v___x_8380_; 
v_a_8376_ = lean_ctor_get(v___x_8375_, 0);
lean_inc(v_a_8376_);
v_a_8377_ = lean_ctor_get(v___x_8375_, 1);
lean_inc(v_a_8377_);
lean_dec_ref(v___x_8375_);
v___x_8378_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__4));
lean_inc(v_name_8350_);
v___x_8379_ = l_Lean_modToFilePath(v___x_8359_, v_name_8350_, v___x_8378_);
v___x_8380_ = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_computeIf___redArg(v_isModule_8343_, v___x_8379_, v___x_8378_, v_a_8344_, v_a_8377_);
if (lean_obj_tag(v___x_8380_) == 0)
{
lean_object* v_a_8381_; lean_object* v_a_8382_; lean_object* v___x_8383_; lean_object* v___x_8384_; lean_object* v___x_8386_; 
v_a_8381_ = lean_ctor_get(v___x_8380_, 0);
lean_inc(v_a_8381_);
v_a_8382_ = lean_ctor_get(v___x_8380_, 1);
lean_inc(v_a_8382_);
lean_dec_ref(v___x_8380_);
v___x_8383_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__5));
lean_inc(v_name_8350_);
v___x_8384_ = l_Lean_modToFilePath(v___x_8359_, v_name_8350_, v___x_8383_);
if (v_isShared_8372_ == 0)
{
lean_ctor_set(v___x_8371_, 2, v___x_8364_);
lean_ctor_set(v___x_8371_, 1, v___x_8363_);
lean_ctor_set(v___x_8371_, 0, v_a_8382_);
v___x_8386_ = v___x_8371_;
goto v_reusejp_8385_;
}
else
{
lean_object* v_reuseFailAlloc_8466_; 
v_reuseFailAlloc_8466_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_8466_, 0, v_a_8382_);
lean_ctor_set(v_reuseFailAlloc_8466_, 1, v___x_8363_);
lean_ctor_set(v_reuseFailAlloc_8466_, 2, v___x_8364_);
v___x_8386_ = v_reuseFailAlloc_8466_;
goto v_reusejp_8385_;
}
v_reusejp_8385_:
{
lean_object* v___x_8387_; 
lean_ctor_set_uint8(v___x_8386_, sizeof(void*)*3, v___x_8362_);
lean_ctor_set_uint8(v___x_8386_, sizeof(void*)*3 + 1, v___x_8361_);
v___x_8387_ = l_Lake_computeArtifact___redArg(v___x_8384_, v___x_8383_, v___x_8361_, v_a_8344_, v___x_8386_);
if (lean_obj_tag(v___x_8387_) == 0)
{
lean_object* v_a_8388_; lean_object* v_a_8389_; lean_object* v_log_8390_; lean_object* v___x_8392_; uint8_t v_isShared_8393_; uint8_t v_isSharedCheck_8453_; 
v_a_8388_ = lean_ctor_get(v___x_8387_, 1);
lean_inc(v_a_8388_);
v_a_8389_ = lean_ctor_get(v___x_8387_, 0);
lean_inc(v_a_8389_);
lean_dec_ref(v___x_8387_);
v_log_8390_ = lean_ctor_get(v_a_8388_, 0);
v_isSharedCheck_8453_ = !lean_is_exclusive(v_a_8388_);
if (v_isSharedCheck_8453_ == 0)
{
lean_object* v_unused_8454_; lean_object* v_unused_8455_; 
v_unused_8454_ = lean_ctor_get(v_a_8388_, 2);
lean_dec(v_unused_8454_);
v_unused_8455_ = lean_ctor_get(v_a_8388_, 1);
lean_dec(v_unused_8455_);
v___x_8392_ = v_a_8388_;
v_isShared_8393_ = v_isSharedCheck_8453_;
goto v_resetjp_8391_;
}
else
{
lean_inc(v_log_8390_);
lean_dec(v_a_8388_);
v___x_8392_ = lean_box(0);
v_isShared_8393_ = v_isSharedCheck_8453_;
goto v_resetjp_8391_;
}
v_resetjp_8391_:
{
lean_object* v___x_8394_; lean_object* v___x_8395_; lean_object* v___x_8396_; 
v___x_8394_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__6));
lean_inc(v_name_8350_);
v___x_8395_ = l_Lean_modToFilePath(v___x_8359_, v_name_8350_, v___x_8394_);
lean_dec_ref(v___x_8359_);
v___x_8396_ = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_computeIf___redArg(v_isModule_8343_, v___x_8395_, v___x_8394_, v_a_8344_, v_log_8390_);
if (lean_obj_tag(v___x_8396_) == 0)
{
lean_object* v_a_8397_; lean_object* v_a_8398_; lean_object* v___x_8399_; lean_object* v___x_8400_; lean_object* v___x_8401_; lean_object* v___x_8402_; lean_object* v___x_8404_; 
v_a_8397_ = lean_ctor_get(v___x_8396_, 0);
lean_inc(v_a_8397_);
v_a_8398_ = lean_ctor_get(v___x_8396_, 1);
lean_inc(v_a_8398_);
lean_dec_ref(v___x_8396_);
v___x_8399_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__7));
v___x_8400_ = l_System_FilePath_normalize(v_irDir_8354_);
v___x_8401_ = l_Lake_joinRelative(v___x_8357_, v___x_8400_);
lean_inc(v_name_8350_);
v___x_8402_ = l_Lean_modToFilePath(v___x_8401_, v_name_8350_, v___x_8399_);
if (v_isShared_8393_ == 0)
{
lean_ctor_set(v___x_8392_, 2, v___x_8364_);
lean_ctor_set(v___x_8392_, 1, v___x_8363_);
lean_ctor_set(v___x_8392_, 0, v_a_8398_);
v___x_8404_ = v___x_8392_;
goto v_reusejp_8403_;
}
else
{
lean_object* v_reuseFailAlloc_8443_; 
v_reuseFailAlloc_8443_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_8443_, 0, v_a_8398_);
lean_ctor_set(v_reuseFailAlloc_8443_, 1, v___x_8363_);
lean_ctor_set(v_reuseFailAlloc_8443_, 2, v___x_8364_);
v___x_8404_ = v_reuseFailAlloc_8443_;
goto v_reusejp_8403_;
}
v_reusejp_8403_:
{
lean_object* v___x_8405_; 
lean_ctor_set_uint8(v___x_8404_, sizeof(void*)*3, v___x_8362_);
lean_ctor_set_uint8(v___x_8404_, sizeof(void*)*3 + 1, v___x_8361_);
v___x_8405_ = l_Lake_computeArtifact___redArg(v___x_8402_, v___x_8399_, v___x_8361_, v_a_8344_, v___x_8404_);
if (lean_obj_tag(v___x_8405_) == 0)
{
lean_object* v_a_8406_; lean_object* v_a_8407_; lean_object* v_log_8408_; uint8_t v___x_8409_; lean_object* v___x_8410_; lean_object* v___x_8411_; lean_object* v___x_8412_; 
v_a_8406_ = lean_ctor_get(v___x_8405_, 1);
lean_inc(v_a_8406_);
v_a_8407_ = lean_ctor_get(v___x_8405_, 0);
lean_inc(v_a_8407_);
lean_dec_ref(v___x_8405_);
v_log_8408_ = lean_ctor_get(v_a_8406_, 0);
lean_inc_ref(v_log_8408_);
lean_dec(v_a_8406_);
v___x_8409_ = lean_uint8_once(&l_Lake_Module_cacheOutputHashes___closed__0, &l_Lake_Module_cacheOutputHashes___closed__0_once, _init_l_Lake_Module_cacheOutputHashes___closed__0);
v___x_8410_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__8));
v___x_8411_ = l_Lean_modToFilePath(v___x_8401_, v_name_8350_, v___x_8410_);
lean_dec_ref(v___x_8401_);
v___x_8412_ = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts_computeIf___redArg(v___x_8409_, v___x_8411_, v___x_8410_, v_a_8344_, v_log_8408_);
if (lean_obj_tag(v___x_8412_) == 0)
{
lean_object* v_a_8413_; lean_object* v_a_8414_; lean_object* v___x_8416_; uint8_t v_isShared_8417_; uint8_t v_isSharedCheck_8423_; 
v_a_8413_ = lean_ctor_get(v___x_8412_, 0);
v_a_8414_ = lean_ctor_get(v___x_8412_, 1);
v_isSharedCheck_8423_ = !lean_is_exclusive(v___x_8412_);
if (v_isSharedCheck_8423_ == 0)
{
v___x_8416_ = v___x_8412_;
v_isShared_8417_ = v_isSharedCheck_8423_;
goto v_resetjp_8415_;
}
else
{
lean_inc(v_a_8414_);
lean_inc(v_a_8413_);
lean_dec(v___x_8412_);
v___x_8416_ = lean_box(0);
v_isShared_8417_ = v_isSharedCheck_8423_;
goto v_resetjp_8415_;
}
v_resetjp_8415_:
{
lean_object* v___x_8418_; lean_object* v___x_8419_; lean_object* v___x_8421_; 
v___x_8418_ = lean_box(0);
v___x_8419_ = lean_alloc_ctor(0, 8, 1);
lean_ctor_set(v___x_8419_, 0, v_a_8368_);
lean_ctor_set(v___x_8419_, 1, v_a_8376_);
lean_ctor_set(v___x_8419_, 2, v_a_8381_);
lean_ctor_set(v___x_8419_, 3, v_a_8389_);
lean_ctor_set(v___x_8419_, 4, v_a_8397_);
lean_ctor_set(v___x_8419_, 5, v_a_8407_);
lean_ctor_set(v___x_8419_, 6, v_a_8413_);
lean_ctor_set(v___x_8419_, 7, v___x_8418_);
lean_ctor_set_uint8(v___x_8419_, sizeof(void*)*8, v_isModule_8343_);
if (v_isShared_8417_ == 0)
{
lean_ctor_set(v___x_8416_, 0, v___x_8419_);
v___x_8421_ = v___x_8416_;
goto v_reusejp_8420_;
}
else
{
lean_object* v_reuseFailAlloc_8422_; 
v_reuseFailAlloc_8422_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_8422_, 0, v___x_8419_);
lean_ctor_set(v_reuseFailAlloc_8422_, 1, v_a_8414_);
v___x_8421_ = v_reuseFailAlloc_8422_;
goto v_reusejp_8420_;
}
v_reusejp_8420_:
{
return v___x_8421_;
}
}
}
else
{
lean_object* v_a_8424_; lean_object* v_a_8425_; lean_object* v___x_8427_; uint8_t v_isShared_8428_; uint8_t v_isSharedCheck_8432_; 
lean_dec(v_a_8407_);
lean_dec(v_a_8397_);
lean_dec(v_a_8389_);
lean_dec(v_a_8381_);
lean_dec(v_a_8376_);
lean_dec(v_a_8368_);
v_a_8424_ = lean_ctor_get(v___x_8412_, 0);
v_a_8425_ = lean_ctor_get(v___x_8412_, 1);
v_isSharedCheck_8432_ = !lean_is_exclusive(v___x_8412_);
if (v_isSharedCheck_8432_ == 0)
{
v___x_8427_ = v___x_8412_;
v_isShared_8428_ = v_isSharedCheck_8432_;
goto v_resetjp_8426_;
}
else
{
lean_inc(v_a_8425_);
lean_inc(v_a_8424_);
lean_dec(v___x_8412_);
v___x_8427_ = lean_box(0);
v_isShared_8428_ = v_isSharedCheck_8432_;
goto v_resetjp_8426_;
}
v_resetjp_8426_:
{
lean_object* v___x_8430_; 
if (v_isShared_8428_ == 0)
{
v___x_8430_ = v___x_8427_;
goto v_reusejp_8429_;
}
else
{
lean_object* v_reuseFailAlloc_8431_; 
v_reuseFailAlloc_8431_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_8431_, 0, v_a_8424_);
lean_ctor_set(v_reuseFailAlloc_8431_, 1, v_a_8425_);
v___x_8430_ = v_reuseFailAlloc_8431_;
goto v_reusejp_8429_;
}
v_reusejp_8429_:
{
return v___x_8430_;
}
}
}
}
else
{
lean_object* v_a_8433_; lean_object* v_a_8434_; lean_object* v___x_8436_; uint8_t v_isShared_8437_; uint8_t v_isSharedCheck_8442_; 
lean_dec_ref(v___x_8401_);
lean_dec(v_a_8397_);
lean_dec(v_a_8389_);
lean_dec(v_a_8381_);
lean_dec(v_a_8376_);
lean_dec(v_a_8368_);
lean_dec(v_name_8350_);
v_a_8433_ = lean_ctor_get(v___x_8405_, 1);
v_a_8434_ = lean_ctor_get(v___x_8405_, 0);
v_isSharedCheck_8442_ = !lean_is_exclusive(v___x_8405_);
if (v_isSharedCheck_8442_ == 0)
{
v___x_8436_ = v___x_8405_;
v_isShared_8437_ = v_isSharedCheck_8442_;
goto v_resetjp_8435_;
}
else
{
lean_inc(v_a_8433_);
lean_inc(v_a_8434_);
lean_dec(v___x_8405_);
v___x_8436_ = lean_box(0);
v_isShared_8437_ = v_isSharedCheck_8442_;
goto v_resetjp_8435_;
}
v_resetjp_8435_:
{
lean_object* v_log_8438_; lean_object* v___x_8440_; 
v_log_8438_ = lean_ctor_get(v_a_8433_, 0);
lean_inc_ref(v_log_8438_);
lean_dec(v_a_8433_);
if (v_isShared_8437_ == 0)
{
lean_ctor_set(v___x_8436_, 1, v_log_8438_);
v___x_8440_ = v___x_8436_;
goto v_reusejp_8439_;
}
else
{
lean_object* v_reuseFailAlloc_8441_; 
v_reuseFailAlloc_8441_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_8441_, 0, v_a_8434_);
lean_ctor_set(v_reuseFailAlloc_8441_, 1, v_log_8438_);
v___x_8440_ = v_reuseFailAlloc_8441_;
goto v_reusejp_8439_;
}
v_reusejp_8439_:
{
return v___x_8440_;
}
}
}
}
}
else
{
lean_object* v_a_8444_; lean_object* v_a_8445_; lean_object* v___x_8447_; uint8_t v_isShared_8448_; uint8_t v_isSharedCheck_8452_; 
lean_del_object(v___x_8392_);
lean_dec(v_a_8389_);
lean_dec(v_a_8381_);
lean_dec(v_a_8376_);
lean_dec(v_a_8368_);
lean_dec_ref(v___x_8357_);
lean_dec_ref(v_irDir_8354_);
lean_dec(v_name_8350_);
v_a_8444_ = lean_ctor_get(v___x_8396_, 0);
v_a_8445_ = lean_ctor_get(v___x_8396_, 1);
v_isSharedCheck_8452_ = !lean_is_exclusive(v___x_8396_);
if (v_isSharedCheck_8452_ == 0)
{
v___x_8447_ = v___x_8396_;
v_isShared_8448_ = v_isSharedCheck_8452_;
goto v_resetjp_8446_;
}
else
{
lean_inc(v_a_8445_);
lean_inc(v_a_8444_);
lean_dec(v___x_8396_);
v___x_8447_ = lean_box(0);
v_isShared_8448_ = v_isSharedCheck_8452_;
goto v_resetjp_8446_;
}
v_resetjp_8446_:
{
lean_object* v___x_8450_; 
if (v_isShared_8448_ == 0)
{
v___x_8450_ = v___x_8447_;
goto v_reusejp_8449_;
}
else
{
lean_object* v_reuseFailAlloc_8451_; 
v_reuseFailAlloc_8451_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_8451_, 0, v_a_8444_);
lean_ctor_set(v_reuseFailAlloc_8451_, 1, v_a_8445_);
v___x_8450_ = v_reuseFailAlloc_8451_;
goto v_reusejp_8449_;
}
v_reusejp_8449_:
{
return v___x_8450_;
}
}
}
}
}
else
{
lean_object* v_a_8456_; lean_object* v_a_8457_; lean_object* v___x_8459_; uint8_t v_isShared_8460_; uint8_t v_isSharedCheck_8465_; 
lean_dec(v_a_8381_);
lean_dec(v_a_8376_);
lean_dec(v_a_8368_);
lean_dec_ref(v___x_8359_);
lean_dec_ref(v___x_8357_);
lean_dec_ref(v_irDir_8354_);
lean_dec(v_name_8350_);
v_a_8456_ = lean_ctor_get(v___x_8387_, 1);
v_a_8457_ = lean_ctor_get(v___x_8387_, 0);
v_isSharedCheck_8465_ = !lean_is_exclusive(v___x_8387_);
if (v_isSharedCheck_8465_ == 0)
{
v___x_8459_ = v___x_8387_;
v_isShared_8460_ = v_isSharedCheck_8465_;
goto v_resetjp_8458_;
}
else
{
lean_inc(v_a_8456_);
lean_inc(v_a_8457_);
lean_dec(v___x_8387_);
v___x_8459_ = lean_box(0);
v_isShared_8460_ = v_isSharedCheck_8465_;
goto v_resetjp_8458_;
}
v_resetjp_8458_:
{
lean_object* v_log_8461_; lean_object* v___x_8463_; 
v_log_8461_ = lean_ctor_get(v_a_8456_, 0);
lean_inc_ref(v_log_8461_);
lean_dec(v_a_8456_);
if (v_isShared_8460_ == 0)
{
lean_ctor_set(v___x_8459_, 1, v_log_8461_);
v___x_8463_ = v___x_8459_;
goto v_reusejp_8462_;
}
else
{
lean_object* v_reuseFailAlloc_8464_; 
v_reuseFailAlloc_8464_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_8464_, 0, v_a_8457_);
lean_ctor_set(v_reuseFailAlloc_8464_, 1, v_log_8461_);
v___x_8463_ = v_reuseFailAlloc_8464_;
goto v_reusejp_8462_;
}
v_reusejp_8462_:
{
return v___x_8463_;
}
}
}
}
}
else
{
lean_object* v_a_8467_; lean_object* v_a_8468_; lean_object* v___x_8470_; uint8_t v_isShared_8471_; uint8_t v_isSharedCheck_8475_; 
lean_dec(v_a_8376_);
lean_del_object(v___x_8371_);
lean_dec(v_a_8368_);
lean_dec_ref(v___x_8359_);
lean_dec_ref(v___x_8357_);
lean_dec_ref(v_irDir_8354_);
lean_dec(v_name_8350_);
v_a_8467_ = lean_ctor_get(v___x_8380_, 0);
v_a_8468_ = lean_ctor_get(v___x_8380_, 1);
v_isSharedCheck_8475_ = !lean_is_exclusive(v___x_8380_);
if (v_isSharedCheck_8475_ == 0)
{
v___x_8470_ = v___x_8380_;
v_isShared_8471_ = v_isSharedCheck_8475_;
goto v_resetjp_8469_;
}
else
{
lean_inc(v_a_8468_);
lean_inc(v_a_8467_);
lean_dec(v___x_8380_);
v___x_8470_ = lean_box(0);
v_isShared_8471_ = v_isSharedCheck_8475_;
goto v_resetjp_8469_;
}
v_resetjp_8469_:
{
lean_object* v___x_8473_; 
if (v_isShared_8471_ == 0)
{
v___x_8473_ = v___x_8470_;
goto v_reusejp_8472_;
}
else
{
lean_object* v_reuseFailAlloc_8474_; 
v_reuseFailAlloc_8474_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_8474_, 0, v_a_8467_);
lean_ctor_set(v_reuseFailAlloc_8474_, 1, v_a_8468_);
v___x_8473_ = v_reuseFailAlloc_8474_;
goto v_reusejp_8472_;
}
v_reusejp_8472_:
{
return v___x_8473_;
}
}
}
}
else
{
lean_object* v_a_8476_; lean_object* v_a_8477_; lean_object* v___x_8479_; uint8_t v_isShared_8480_; uint8_t v_isSharedCheck_8484_; 
lean_del_object(v___x_8371_);
lean_dec(v_a_8368_);
lean_dec_ref(v___x_8359_);
lean_dec_ref(v___x_8357_);
lean_dec_ref(v_irDir_8354_);
lean_dec(v_name_8350_);
v_a_8476_ = lean_ctor_get(v___x_8375_, 0);
v_a_8477_ = lean_ctor_get(v___x_8375_, 1);
v_isSharedCheck_8484_ = !lean_is_exclusive(v___x_8375_);
if (v_isSharedCheck_8484_ == 0)
{
v___x_8479_ = v___x_8375_;
v_isShared_8480_ = v_isSharedCheck_8484_;
goto v_resetjp_8478_;
}
else
{
lean_inc(v_a_8477_);
lean_inc(v_a_8476_);
lean_dec(v___x_8375_);
v___x_8479_ = lean_box(0);
v_isShared_8480_ = v_isSharedCheck_8484_;
goto v_resetjp_8478_;
}
v_resetjp_8478_:
{
lean_object* v___x_8482_; 
if (v_isShared_8480_ == 0)
{
v___x_8482_ = v___x_8479_;
goto v_reusejp_8481_;
}
else
{
lean_object* v_reuseFailAlloc_8483_; 
v_reuseFailAlloc_8483_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_8483_, 0, v_a_8476_);
lean_ctor_set(v_reuseFailAlloc_8483_, 1, v_a_8477_);
v___x_8482_ = v_reuseFailAlloc_8483_;
goto v_reusejp_8481_;
}
v_reusejp_8481_:
{
return v___x_8482_;
}
}
}
}
}
else
{
lean_object* v_a_8488_; lean_object* v_a_8489_; lean_object* v___x_8491_; uint8_t v_isShared_8492_; uint8_t v_isSharedCheck_8497_; 
lean_dec_ref(v___x_8359_);
lean_dec_ref(v___x_8357_);
lean_dec_ref(v_irDir_8354_);
lean_dec(v_name_8350_);
v_a_8488_ = lean_ctor_get(v___x_8366_, 1);
v_a_8489_ = lean_ctor_get(v___x_8366_, 0);
v_isSharedCheck_8497_ = !lean_is_exclusive(v___x_8366_);
if (v_isSharedCheck_8497_ == 0)
{
v___x_8491_ = v___x_8366_;
v_isShared_8492_ = v_isSharedCheck_8497_;
goto v_resetjp_8490_;
}
else
{
lean_inc(v_a_8488_);
lean_inc(v_a_8489_);
lean_dec(v___x_8366_);
v___x_8491_ = lean_box(0);
v_isShared_8492_ = v_isSharedCheck_8497_;
goto v_resetjp_8490_;
}
v_resetjp_8490_:
{
lean_object* v_log_8493_; lean_object* v___x_8495_; 
v_log_8493_ = lean_ctor_get(v_a_8488_, 0);
lean_inc_ref(v_log_8493_);
lean_dec(v_a_8488_);
if (v_isShared_8492_ == 0)
{
lean_ctor_set(v___x_8491_, 1, v_log_8493_);
v___x_8495_ = v___x_8491_;
goto v_reusejp_8494_;
}
else
{
lean_object* v_reuseFailAlloc_8496_; 
v_reuseFailAlloc_8496_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_8496_, 0, v_a_8489_);
lean_ctor_set(v_reuseFailAlloc_8496_, 1, v_log_8493_);
v___x_8495_ = v_reuseFailAlloc_8496_;
goto v_reusejp_8494_;
}
v_reusejp_8494_:
{
return v___x_8495_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___redArg___boxed(lean_object* v_mod_8498_, lean_object* v_isModule_8499_, lean_object* v_a_8500_, lean_object* v_a_8501_, lean_object* v_a_8502_){
_start:
{
uint8_t v_isModule_boxed_8503_; lean_object* v_res_8504_; 
v_isModule_boxed_8503_ = lean_unbox(v_isModule_8499_);
v_res_8504_ = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___redArg(v_mod_8498_, v_isModule_boxed_8503_, v_a_8500_, v_a_8501_);
lean_dec_ref(v_a_8500_);
return v_res_8504_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts(lean_object* v_mod_8505_, uint8_t v_isModule_8506_, lean_object* v_a_8507_, lean_object* v_a_8508_, lean_object* v_a_8509_, lean_object* v_a_8510_, lean_object* v_a_8511_, lean_object* v_a_8512_){
_start:
{
lean_object* v___x_8514_; 
v___x_8514_ = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___redArg(v_mod_8505_, v_isModule_8506_, v_a_8511_, v_a_8512_);
return v___x_8514_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___boxed(lean_object* v_mod_8515_, lean_object* v_isModule_8516_, lean_object* v_a_8517_, lean_object* v_a_8518_, lean_object* v_a_8519_, lean_object* v_a_8520_, lean_object* v_a_8521_, lean_object* v_a_8522_, lean_object* v_a_8523_){
_start:
{
uint8_t v_isModule_boxed_8524_; lean_object* v_res_8525_; 
v_isModule_boxed_8524_ = lean_unbox(v_isModule_8516_);
v_res_8525_ = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts(v_mod_8515_, v_isModule_boxed_8524_, v_a_8517_, v_a_8518_, v_a_8519_, v_a_8520_, v_a_8521_, v_a_8522_);
lean_dec_ref(v_a_8521_);
lean_dec(v_a_8520_);
lean_dec(v_a_8519_);
lean_dec(v_a_8518_);
lean_dec_ref(v_a_8517_);
return v_res_8525_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_instToOutputJsonModuleOutputArtifacts___lam__0(lean_object* v_x_8526_){
_start:
{
lean_object* v___x_8527_; lean_object* v___x_8528_; 
v___x_8527_ = l_Lake_ModuleOutputArtifacts_descrs(v_x_8526_);
v___x_8528_ = l_Lake_ModuleOutputDescrs_toJson(v___x_8527_);
return v___x_8528_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_packLtar___lam__0(lean_object* v_self_8532_, lean_object* v_args_8533_, lean_object* v_idx_8534_, lean_object* v_art_8535_){
_start:
{
lean_object* v_descr_8536_; lean_object* v_ext_8537_; lean_object* v_name_8538_; lean_object* v___x_8539_; lean_object* v___x_8540_; lean_object* v___x_8541_; lean_object* v___x_8542_; lean_object* v___x_8543_; lean_object* v___x_8544_; 
v_descr_8536_ = lean_ctor_get(v_art_8535_, 0);
v_ext_8537_ = lean_ctor_get(v_descr_8536_, 0);
v_name_8538_ = lean_ctor_get(v_self_8532_, 1);
v___x_8539_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_packLtar___lam__0___closed__0));
v___x_8540_ = lean_array_push(v_args_8533_, v___x_8539_);
v___x_8541_ = lean_array_push(v___x_8540_, v_idx_8534_);
v___x_8542_ = l_Lean_Name_getString_x21(v_name_8538_);
v___x_8543_ = l_System_FilePath_addExtension(v___x_8542_, v_ext_8537_);
v___x_8544_ = lean_array_push(v___x_8541_, v___x_8543_);
return v___x_8544_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_packLtar___lam__0___boxed(lean_object* v_self_8545_, lean_object* v_args_8546_, lean_object* v_idx_8547_, lean_object* v_art_8548_){
_start:
{
lean_object* v_res_8549_; 
v_res_8549_ = l___private_Lake_Build_Module_0__Lake_Module_packLtar___lam__0(v_self_8545_, v_args_8546_, v_idx_8547_, v_art_8548_);
lean_dec_ref(v_art_8548_);
lean_dec_ref(v_self_8545_);
return v_res_8549_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_packLtar___lam__1(lean_object* v___f_8551_, lean_object* v_c_8552_, lean_object* v_bc_x3f_8553_, lean_object* v___x_8554_, lean_object* v_ilean_8555_, lean_object* v_ir_x3f_8556_, lean_object* v_oleanPrivate_x3f_8557_, lean_object* v_____r_8558_, lean_object* v_args_8559_, lean_object* v___y_8560_, lean_object* v___y_8561_, lean_object* v___y_8562_, lean_object* v___y_8563_, lean_object* v___y_8564_, lean_object* v___y_8565_){
_start:
{
lean_object* v_args_8568_; lean_object* v___y_8569_; lean_object* v_args_8572_; lean_object* v___y_8573_; lean_object* v_args_8596_; lean_object* v___y_8597_; 
if (lean_obj_tag(v_oleanPrivate_x3f_8557_) == 1)
{
lean_object* v_val_8601_; lean_object* v___x_8602_; 
v_val_8601_ = lean_ctor_get(v_oleanPrivate_x3f_8557_, 0);
lean_inc(v_val_8601_);
lean_dec_ref(v_oleanPrivate_x3f_8557_);
lean_inc_ref(v___f_8551_);
lean_inc_ref(v___x_8554_);
v___x_8602_ = lean_apply_3(v___f_8551_, v_args_8559_, v___x_8554_, v_val_8601_);
v_args_8596_ = v___x_8602_;
v___y_8597_ = v___y_8565_;
goto v___jp_8595_;
}
else
{
lean_dec(v_oleanPrivate_x3f_8557_);
v_args_8596_ = v_args_8559_;
v___y_8597_ = v___y_8565_;
goto v___jp_8595_;
}
v___jp_8567_:
{
lean_object* v___x_8570_; 
v___x_8570_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_8570_, 0, v_args_8568_);
lean_ctor_set(v___x_8570_, 1, v___y_8569_);
return v___x_8570_;
}
v___jp_8571_:
{
lean_object* v___x_8574_; lean_object* v___x_8575_; uint8_t v___x_8576_; 
v___x_8574_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_packLtar___lam__1___closed__0));
lean_inc_ref(v___f_8551_);
v___x_8575_ = lean_apply_3(v___f_8551_, v_args_8572_, v___x_8574_, v_c_8552_);
v___x_8576_ = lean_uint8_once(&l_Lake_Module_cacheOutputHashes___closed__0, &l_Lake_Module_cacheOutputHashes___closed__0_once, _init_l_Lake_Module_cacheOutputHashes___closed__0);
if (v___x_8576_ == 0)
{
lean_dec(v_bc_x3f_8553_);
lean_dec_ref(v___f_8551_);
v_args_8568_ = v___x_8575_;
v___y_8569_ = v___y_8573_;
goto v___jp_8567_;
}
else
{
if (lean_obj_tag(v_bc_x3f_8553_) == 1)
{
lean_object* v_val_8577_; lean_object* v___x_8578_; 
v_val_8577_ = lean_ctor_get(v_bc_x3f_8553_, 0);
lean_inc(v_val_8577_);
lean_dec_ref(v_bc_x3f_8553_);
v___x_8578_ = lean_apply_3(v___f_8551_, v___x_8575_, v___x_8574_, v_val_8577_);
v_args_8568_ = v___x_8578_;
v___y_8569_ = v___y_8573_;
goto v___jp_8567_;
}
else
{
lean_object* v_log_8579_; uint8_t v_action_8580_; uint8_t v_wantsRebuild_8581_; lean_object* v_trace_8582_; lean_object* v_buildTime_8583_; lean_object* v___x_8585_; uint8_t v_isShared_8586_; uint8_t v_isSharedCheck_8594_; 
lean_dec_ref(v___x_8575_);
lean_dec(v_bc_x3f_8553_);
lean_dec_ref(v___f_8551_);
v_log_8579_ = lean_ctor_get(v___y_8573_, 0);
v_action_8580_ = lean_ctor_get_uint8(v___y_8573_, sizeof(void*)*3);
v_wantsRebuild_8581_ = lean_ctor_get_uint8(v___y_8573_, sizeof(void*)*3 + 1);
v_trace_8582_ = lean_ctor_get(v___y_8573_, 1);
v_buildTime_8583_ = lean_ctor_get(v___y_8573_, 2);
v_isSharedCheck_8594_ = !lean_is_exclusive(v___y_8573_);
if (v_isSharedCheck_8594_ == 0)
{
v___x_8585_ = v___y_8573_;
v_isShared_8586_ = v_isSharedCheck_8594_;
goto v_resetjp_8584_;
}
else
{
lean_inc(v_buildTime_8583_);
lean_inc(v_trace_8582_);
lean_inc(v_log_8579_);
lean_dec(v___y_8573_);
v___x_8585_ = lean_box(0);
v_isShared_8586_ = v_isSharedCheck_8594_;
goto v_resetjp_8584_;
}
v_resetjp_8584_:
{
lean_object* v___x_8587_; lean_object* v___x_8588_; lean_object* v___x_8589_; lean_object* v___x_8591_; 
v___x_8587_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_ModuleOutputDescrs_resolve___redArg___closed__1));
v___x_8588_ = lean_array_get_size(v_log_8579_);
v___x_8589_ = lean_array_push(v_log_8579_, v___x_8587_);
if (v_isShared_8586_ == 0)
{
lean_ctor_set(v___x_8585_, 0, v___x_8589_);
v___x_8591_ = v___x_8585_;
goto v_reusejp_8590_;
}
else
{
lean_object* v_reuseFailAlloc_8593_; 
v_reuseFailAlloc_8593_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_8593_, 0, v___x_8589_);
lean_ctor_set(v_reuseFailAlloc_8593_, 1, v_trace_8582_);
lean_ctor_set(v_reuseFailAlloc_8593_, 2, v_buildTime_8583_);
lean_ctor_set_uint8(v_reuseFailAlloc_8593_, sizeof(void*)*3, v_action_8580_);
lean_ctor_set_uint8(v_reuseFailAlloc_8593_, sizeof(void*)*3 + 1, v_wantsRebuild_8581_);
v___x_8591_ = v_reuseFailAlloc_8593_;
goto v_reusejp_8590_;
}
v_reusejp_8590_:
{
lean_object* v___x_8592_; 
v___x_8592_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_8592_, 0, v___x_8588_);
lean_ctor_set(v___x_8592_, 1, v___x_8591_);
return v___x_8592_;
}
}
}
}
}
v___jp_8595_:
{
lean_object* v___x_8598_; 
lean_inc_ref(v___f_8551_);
lean_inc_ref(v___x_8554_);
v___x_8598_ = lean_apply_3(v___f_8551_, v_args_8596_, v___x_8554_, v_ilean_8555_);
if (lean_obj_tag(v_ir_x3f_8556_) == 1)
{
lean_object* v_val_8599_; lean_object* v___x_8600_; 
v_val_8599_ = lean_ctor_get(v_ir_x3f_8556_, 0);
lean_inc(v_val_8599_);
lean_dec_ref(v_ir_x3f_8556_);
lean_inc_ref(v___f_8551_);
v___x_8600_ = lean_apply_3(v___f_8551_, v___x_8598_, v___x_8554_, v_val_8599_);
v_args_8572_ = v___x_8600_;
v___y_8573_ = v___y_8597_;
goto v___jp_8571_;
}
else
{
lean_dec(v_ir_x3f_8556_);
lean_dec_ref(v___x_8554_);
v_args_8572_ = v___x_8598_;
v___y_8573_ = v___y_8597_;
goto v___jp_8571_;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_packLtar___lam__1___boxed(lean_object* v___f_8603_, lean_object* v_c_8604_, lean_object* v_bc_x3f_8605_, lean_object* v___x_8606_, lean_object* v_ilean_8607_, lean_object* v_ir_x3f_8608_, lean_object* v_oleanPrivate_x3f_8609_, lean_object* v_____r_8610_, lean_object* v_args_8611_, lean_object* v___y_8612_, lean_object* v___y_8613_, lean_object* v___y_8614_, lean_object* v___y_8615_, lean_object* v___y_8616_, lean_object* v___y_8617_, lean_object* v___y_8618_){
_start:
{
lean_object* v_res_8619_; 
v_res_8619_ = l___private_Lake_Build_Module_0__Lake_Module_packLtar___lam__1(v___f_8603_, v_c_8604_, v_bc_x3f_8605_, v___x_8606_, v_ilean_8607_, v_ir_x3f_8608_, v_oleanPrivate_x3f_8609_, v_____r_8610_, v_args_8611_, v___y_8612_, v___y_8613_, v___y_8614_, v___y_8615_, v___y_8616_, v___y_8617_);
lean_dec_ref(v___y_8616_);
lean_dec(v___y_8615_);
lean_dec(v___y_8614_);
lean_dec(v___y_8613_);
lean_dec_ref(v___y_8612_);
return v_res_8619_;
}
}
static lean_object* _init_l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__3(void){
_start:
{
lean_object* v___x_8625_; lean_object* v___x_8626_; lean_object* v___x_8627_; lean_object* v___x_8628_; 
v___x_8625_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__2));
v___x_8626_ = lean_unsigned_to_nat(6u);
v___x_8627_ = lean_mk_empty_array_with_capacity(v___x_8626_);
v___x_8628_ = lean_array_push(v___x_8627_, v___x_8625_);
return v___x_8628_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_packLtar(lean_object* v_self_8631_, lean_object* v_arts_8632_, lean_object* v_a_8633_, lean_object* v_a_8634_, lean_object* v_a_8635_, lean_object* v_a_8636_, lean_object* v_a_8637_, lean_object* v_a_8638_){
_start:
{
lean_object* v___y_8641_; lean_object* v___y_8642_; lean_object* v___y_8643_; uint8_t v___y_8644_; uint8_t v_a_8645_; lean_object* v_a_8646_; lean_object* v___y_8673_; lean_object* v___y_8674_; lean_object* v___y_8675_; lean_object* v___y_8676_; uint8_t v___y_8677_; lean_object* v___y_8678_; uint8_t v_a_8679_; lean_object* v_a_8680_; lean_object* v___y_8689_; lean_object* v___y_8690_; lean_object* v___y_8691_; lean_object* v___y_8692_; lean_object* v___y_8693_; uint8_t v_isModule_8753_; uint8_t v___x_8754_; lean_object* v___f_8755_; lean_object* v_a_8757_; lean_object* v_a_8758_; 
v_isModule_8753_ = lean_ctor_get_uint8(v_arts_8632_, sizeof(void*)*8);
lean_inc_ref(v_self_8631_);
v___x_8754_ = l_Lake_Module_checkArtifactsExsist(v_self_8631_, v_isModule_8753_);
lean_inc_ref(v_self_8631_);
v___f_8755_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_packLtar___lam__0___boxed), 4, 1);
lean_closure_set(v___f_8755_, 0, v_self_8631_);
if (v___x_8754_ == 0)
{
lean_object* v___x_8806_; 
lean_inc_ref(v_self_8631_);
v___x_8806_ = l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts___redArg(v_self_8631_, v_arts_8632_, v_a_8638_);
if (lean_obj_tag(v___x_8806_) == 0)
{
lean_object* v_a_8807_; lean_object* v_a_8808_; 
v_a_8807_ = lean_ctor_get(v___x_8806_, 0);
lean_inc(v_a_8807_);
v_a_8808_ = lean_ctor_get(v___x_8806_, 1);
lean_inc(v_a_8808_);
lean_dec_ref(v___x_8806_);
v_a_8757_ = v_a_8807_;
v_a_8758_ = v_a_8808_;
goto v___jp_8756_;
}
else
{
lean_object* v_a_8809_; lean_object* v_a_8810_; lean_object* v___x_8812_; uint8_t v_isShared_8813_; uint8_t v_isSharedCheck_8817_; 
lean_dec_ref(v___f_8755_);
lean_dec_ref(v_a_8637_);
lean_dec_ref(v_self_8631_);
v_a_8809_ = lean_ctor_get(v___x_8806_, 0);
v_a_8810_ = lean_ctor_get(v___x_8806_, 1);
v_isSharedCheck_8817_ = !lean_is_exclusive(v___x_8806_);
if (v_isSharedCheck_8817_ == 0)
{
v___x_8812_ = v___x_8806_;
v_isShared_8813_ = v_isSharedCheck_8817_;
goto v_resetjp_8811_;
}
else
{
lean_inc(v_a_8810_);
lean_inc(v_a_8809_);
lean_dec(v___x_8806_);
v___x_8812_ = lean_box(0);
v_isShared_8813_ = v_isSharedCheck_8817_;
goto v_resetjp_8811_;
}
v_resetjp_8811_:
{
lean_object* v___x_8815_; 
if (v_isShared_8813_ == 0)
{
v___x_8815_ = v___x_8812_;
goto v_reusejp_8814_;
}
else
{
lean_object* v_reuseFailAlloc_8816_; 
v_reuseFailAlloc_8816_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_8816_, 0, v_a_8809_);
lean_ctor_set(v_reuseFailAlloc_8816_, 1, v_a_8810_);
v___x_8815_ = v_reuseFailAlloc_8816_;
goto v_reusejp_8814_;
}
v_reusejp_8814_:
{
return v___x_8815_;
}
}
}
}
else
{
v_a_8757_ = v_arts_8632_;
v_a_8758_ = v_a_8638_;
goto v___jp_8756_;
}
v___jp_8640_:
{
lean_object* v_log_8647_; uint8_t v_action_8648_; uint8_t v_wantsRebuild_8649_; lean_object* v_trace_8650_; lean_object* v_buildTime_8651_; lean_object* v___x_8652_; 
v_log_8647_ = lean_ctor_get(v_a_8646_, 0);
v_action_8648_ = lean_ctor_get_uint8(v_a_8646_, sizeof(void*)*3);
v_wantsRebuild_8649_ = lean_ctor_get_uint8(v_a_8646_, sizeof(void*)*3 + 1);
v_trace_8650_ = lean_ctor_get(v_a_8646_, 1);
v_buildTime_8651_ = lean_ctor_get(v_a_8646_, 2);
v___x_8652_ = l_Lake_Cache_saveArtifact(v___y_8643_, v___y_8641_, v___y_8642_, v_a_8645_, v___y_8644_, v___y_8644_);
if (lean_obj_tag(v___x_8652_) == 0)
{
lean_object* v_a_8653_; lean_object* v___x_8654_; 
v_a_8653_ = lean_ctor_get(v___x_8652_, 0);
lean_inc(v_a_8653_);
lean_dec_ref(v___x_8652_);
v___x_8654_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_8654_, 0, v_a_8653_);
lean_ctor_set(v___x_8654_, 1, v_a_8646_);
return v___x_8654_;
}
else
{
lean_object* v___x_8656_; uint8_t v_isShared_8657_; uint8_t v_isSharedCheck_8668_; 
lean_inc(v_buildTime_8651_);
lean_inc_ref(v_trace_8650_);
lean_inc_ref(v_log_8647_);
v_isSharedCheck_8668_ = !lean_is_exclusive(v_a_8646_);
if (v_isSharedCheck_8668_ == 0)
{
lean_object* v_unused_8669_; lean_object* v_unused_8670_; lean_object* v_unused_8671_; 
v_unused_8669_ = lean_ctor_get(v_a_8646_, 2);
lean_dec(v_unused_8669_);
v_unused_8670_ = lean_ctor_get(v_a_8646_, 1);
lean_dec(v_unused_8670_);
v_unused_8671_ = lean_ctor_get(v_a_8646_, 0);
lean_dec(v_unused_8671_);
v___x_8656_ = v_a_8646_;
v_isShared_8657_ = v_isSharedCheck_8668_;
goto v_resetjp_8655_;
}
else
{
lean_dec(v_a_8646_);
v___x_8656_ = lean_box(0);
v_isShared_8657_ = v_isSharedCheck_8668_;
goto v_resetjp_8655_;
}
v_resetjp_8655_:
{
lean_object* v_a_8658_; lean_object* v___x_8659_; uint8_t v___x_8660_; lean_object* v___x_8661_; lean_object* v___x_8662_; lean_object* v___x_8663_; lean_object* v___x_8665_; 
v_a_8658_ = lean_ctor_get(v___x_8652_, 0);
lean_inc(v_a_8658_);
lean_dec_ref(v___x_8652_);
v___x_8659_ = lean_io_error_to_string(v_a_8658_);
v___x_8660_ = 3;
v___x_8661_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_8661_, 0, v___x_8659_);
lean_ctor_set_uint8(v___x_8661_, sizeof(void*)*1, v___x_8660_);
v___x_8662_ = lean_array_get_size(v_log_8647_);
v___x_8663_ = lean_array_push(v_log_8647_, v___x_8661_);
if (v_isShared_8657_ == 0)
{
lean_ctor_set(v___x_8656_, 0, v___x_8663_);
v___x_8665_ = v___x_8656_;
goto v_reusejp_8664_;
}
else
{
lean_object* v_reuseFailAlloc_8667_; 
v_reuseFailAlloc_8667_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_8667_, 0, v___x_8663_);
lean_ctor_set(v_reuseFailAlloc_8667_, 1, v_trace_8650_);
lean_ctor_set(v_reuseFailAlloc_8667_, 2, v_buildTime_8651_);
lean_ctor_set_uint8(v_reuseFailAlloc_8667_, sizeof(void*)*3, v_action_8648_);
lean_ctor_set_uint8(v_reuseFailAlloc_8667_, sizeof(void*)*3 + 1, v_wantsRebuild_8649_);
v___x_8665_ = v_reuseFailAlloc_8667_;
goto v_reusejp_8664_;
}
v_reusejp_8664_:
{
lean_object* v___x_8666_; 
v___x_8666_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_8666_, 0, v___x_8662_);
lean_ctor_set(v___x_8666_, 1, v___x_8665_);
return v___x_8666_;
}
}
}
}
v___jp_8672_:
{
if (v_a_8679_ == 0)
{
lean_object* v___x_8681_; 
lean_dec(v___y_8678_);
lean_dec_ref(v___y_8676_);
lean_dec_ref(v___y_8674_);
v___x_8681_ = l_Lake_computeArtifact___redArg(v___y_8673_, v___y_8675_, v___y_8677_, v_a_8637_, v_a_8680_);
lean_dec_ref(v_a_8637_);
return v___x_8681_;
}
else
{
lean_dec_ref(v_a_8637_);
if (lean_obj_tag(v___y_8678_) == 0)
{
lean_object* v_config_8682_; lean_object* v_restoreAllArtifacts_x3f_8683_; 
v_config_8682_ = lean_ctor_get(v___y_8674_, 6);
lean_inc_ref(v_config_8682_);
lean_dec_ref(v___y_8674_);
v_restoreAllArtifacts_x3f_8683_ = lean_ctor_get(v_config_8682_, 26);
lean_inc(v_restoreAllArtifacts_x3f_8683_);
lean_dec_ref(v_config_8682_);
if (lean_obj_tag(v_restoreAllArtifacts_x3f_8683_) == 0)
{
v___y_8641_ = v___y_8673_;
v___y_8642_ = v___y_8675_;
v___y_8643_ = v___y_8676_;
v___y_8644_ = v___y_8677_;
v_a_8645_ = v___y_8677_;
v_a_8646_ = v_a_8680_;
goto v___jp_8640_;
}
else
{
lean_object* v_val_8684_; uint8_t v___x_8685_; 
v_val_8684_ = lean_ctor_get(v_restoreAllArtifacts_x3f_8683_, 0);
lean_inc(v_val_8684_);
lean_dec_ref(v_restoreAllArtifacts_x3f_8683_);
v___x_8685_ = lean_unbox(v_val_8684_);
lean_dec(v_val_8684_);
v___y_8641_ = v___y_8673_;
v___y_8642_ = v___y_8675_;
v___y_8643_ = v___y_8676_;
v___y_8644_ = v___y_8677_;
v_a_8645_ = v___x_8685_;
v_a_8646_ = v_a_8680_;
goto v___jp_8640_;
}
}
else
{
lean_object* v_val_8686_; uint8_t v___x_8687_; 
lean_dec_ref(v___y_8674_);
v_val_8686_ = lean_ctor_get(v___y_8678_, 0);
lean_inc(v_val_8686_);
lean_dec_ref(v___y_8678_);
v___x_8687_ = lean_unbox(v_val_8686_);
lean_dec(v_val_8686_);
v___y_8641_ = v___y_8673_;
v___y_8642_ = v___y_8675_;
v___y_8643_ = v___y_8676_;
v___y_8644_ = v___y_8677_;
v_a_8645_ = v___x_8687_;
v_a_8646_ = v_a_8680_;
goto v___jp_8640_;
}
}
}
v___jp_8688_:
{
if (lean_obj_tag(v___y_8693_) == 0)
{
lean_object* v_a_8694_; lean_object* v_toContext_8695_; lean_object* v_lakeEnv_8696_; lean_object* v_lean_8697_; lean_object* v_a_8698_; lean_object* v_log_8699_; uint8_t v_action_8700_; uint8_t v_wantsRebuild_8701_; lean_object* v_trace_8702_; lean_object* v_buildTime_8703_; lean_object* v___x_8705_; uint8_t v_isShared_8706_; uint8_t v_isSharedCheck_8743_; 
v_a_8694_ = lean_ctor_get(v___y_8693_, 1);
lean_inc(v_a_8694_);
v_toContext_8695_ = lean_ctor_get(v_a_8637_, 1);
v_lakeEnv_8696_ = lean_ctor_get(v_toContext_8695_, 1);
v_lean_8697_ = lean_ctor_get(v_lakeEnv_8696_, 1);
v_a_8698_ = lean_ctor_get(v___y_8693_, 0);
lean_inc(v_a_8698_);
lean_dec_ref(v___y_8693_);
v_log_8699_ = lean_ctor_get(v_a_8694_, 0);
v_action_8700_ = lean_ctor_get_uint8(v_a_8694_, sizeof(void*)*3);
v_wantsRebuild_8701_ = lean_ctor_get_uint8(v_a_8694_, sizeof(void*)*3 + 1);
v_trace_8702_ = lean_ctor_get(v_a_8694_, 1);
v_buildTime_8703_ = lean_ctor_get(v_a_8694_, 2);
v_isSharedCheck_8743_ = !lean_is_exclusive(v_a_8694_);
if (v_isSharedCheck_8743_ == 0)
{
v___x_8705_ = v_a_8694_;
v_isShared_8706_ = v_isSharedCheck_8743_;
goto v_resetjp_8704_;
}
else
{
lean_inc(v_buildTime_8703_);
lean_inc(v_trace_8702_);
lean_inc(v_log_8699_);
lean_dec(v_a_8694_);
v___x_8705_ = lean_box(0);
v_isShared_8706_ = v_isSharedCheck_8743_;
goto v_resetjp_8704_;
}
v_resetjp_8704_:
{
lean_object* v_root_8707_; lean_object* v_lakeCache_8708_; lean_object* v_enableArtifactCache_x3f_8709_; lean_object* v_leantar_8710_; lean_object* v___x_8711_; lean_object* v___x_8712_; lean_object* v___x_8713_; uint8_t v___x_8714_; uint8_t v___x_8715_; lean_object* v___x_8716_; lean_object* v___x_8717_; 
v_root_8707_ = lean_ctor_get(v_toContext_8695_, 0);
v_lakeCache_8708_ = lean_ctor_get(v_toContext_8695_, 3);
v_enableArtifactCache_x3f_8709_ = lean_ctor_get(v_lakeEnv_8696_, 6);
v_leantar_8710_ = lean_ctor_get(v_lean_8697_, 9);
v___x_8711_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__0));
v___x_8712_ = lean_box(0);
v___x_8713_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__1));
v___x_8714_ = 1;
v___x_8715_ = 0;
lean_inc_ref(v_leantar_8710_);
v___x_8716_ = lean_alloc_ctor(0, 5, 2);
lean_ctor_set(v___x_8716_, 0, v___x_8711_);
lean_ctor_set(v___x_8716_, 1, v_leantar_8710_);
lean_ctor_set(v___x_8716_, 2, v_a_8698_);
lean_ctor_set(v___x_8716_, 3, v___x_8712_);
lean_ctor_set(v___x_8716_, 4, v___x_8713_);
lean_ctor_set_uint8(v___x_8716_, sizeof(void*)*5, v___x_8714_);
lean_ctor_set_uint8(v___x_8716_, sizeof(void*)*5 + 1, v___x_8715_);
v___x_8717_ = l_Lake_proc(v___x_8716_, v___x_8714_, v_log_8699_);
if (lean_obj_tag(v___x_8717_) == 0)
{
lean_object* v_a_8718_; lean_object* v___x_8720_; 
v_a_8718_ = lean_ctor_get(v___x_8717_, 1);
lean_inc(v_a_8718_);
lean_dec_ref(v___x_8717_);
if (v_isShared_8706_ == 0)
{
lean_ctor_set(v___x_8705_, 0, v_a_8718_);
v___x_8720_ = v___x_8705_;
goto v_reusejp_8719_;
}
else
{
lean_object* v_reuseFailAlloc_8730_; 
v_reuseFailAlloc_8730_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_8730_, 0, v_a_8718_);
lean_ctor_set(v_reuseFailAlloc_8730_, 1, v_trace_8702_);
lean_ctor_set(v_reuseFailAlloc_8730_, 2, v_buildTime_8703_);
lean_ctor_set_uint8(v_reuseFailAlloc_8730_, sizeof(void*)*3, v_action_8700_);
lean_ctor_set_uint8(v_reuseFailAlloc_8730_, sizeof(void*)*3 + 1, v_wantsRebuild_8701_);
v___x_8720_ = v_reuseFailAlloc_8730_;
goto v_reusejp_8719_;
}
v_reusejp_8719_:
{
if (lean_obj_tag(v___y_8690_) == 0)
{
if (lean_obj_tag(v_enableArtifactCache_x3f_8709_) == 0)
{
lean_object* v_config_8721_; lean_object* v_enableArtifactCache_x3f_8722_; 
v_config_8721_ = lean_ctor_get(v_root_8707_, 6);
v_enableArtifactCache_x3f_8722_ = lean_ctor_get(v_config_8721_, 25);
if (lean_obj_tag(v_enableArtifactCache_x3f_8722_) == 0)
{
lean_object* v___x_8723_; 
lean_dec(v___y_8692_);
v___x_8723_ = l_Lake_computeArtifact___redArg(v___y_8689_, v___y_8691_, v___x_8715_, v_a_8637_, v___x_8720_);
lean_dec_ref(v_a_8637_);
return v___x_8723_;
}
else
{
lean_object* v_val_8724_; uint8_t v___x_8725_; 
v_val_8724_ = lean_ctor_get(v_enableArtifactCache_x3f_8722_, 0);
v___x_8725_ = lean_unbox(v_val_8724_);
lean_inc_ref(v_lakeCache_8708_);
lean_inc_ref(v_root_8707_);
v___y_8673_ = v___y_8689_;
v___y_8674_ = v_root_8707_;
v___y_8675_ = v___y_8691_;
v___y_8676_ = v_lakeCache_8708_;
v___y_8677_ = v___x_8715_;
v___y_8678_ = v___y_8692_;
v_a_8679_ = v___x_8725_;
v_a_8680_ = v___x_8720_;
goto v___jp_8672_;
}
}
else
{
lean_object* v_val_8726_; uint8_t v___x_8727_; 
v_val_8726_ = lean_ctor_get(v_enableArtifactCache_x3f_8709_, 0);
v___x_8727_ = lean_unbox(v_val_8726_);
lean_inc_ref(v_lakeCache_8708_);
lean_inc_ref(v_root_8707_);
v___y_8673_ = v___y_8689_;
v___y_8674_ = v_root_8707_;
v___y_8675_ = v___y_8691_;
v___y_8676_ = v_lakeCache_8708_;
v___y_8677_ = v___x_8715_;
v___y_8678_ = v___y_8692_;
v_a_8679_ = v___x_8727_;
v_a_8680_ = v___x_8720_;
goto v___jp_8672_;
}
}
else
{
lean_object* v_val_8728_; uint8_t v___x_8729_; 
v_val_8728_ = lean_ctor_get(v___y_8690_, 0);
lean_inc(v_val_8728_);
lean_dec_ref(v___y_8690_);
v___x_8729_ = lean_unbox(v_val_8728_);
lean_dec(v_val_8728_);
lean_inc_ref(v_lakeCache_8708_);
lean_inc_ref(v_root_8707_);
v___y_8673_ = v___y_8689_;
v___y_8674_ = v_root_8707_;
v___y_8675_ = v___y_8691_;
v___y_8676_ = v_lakeCache_8708_;
v___y_8677_ = v___x_8715_;
v___y_8678_ = v___y_8692_;
v_a_8679_ = v___x_8729_;
v_a_8680_ = v___x_8720_;
goto v___jp_8672_;
}
}
}
else
{
lean_object* v_a_8731_; lean_object* v_a_8732_; lean_object* v___x_8734_; uint8_t v_isShared_8735_; uint8_t v_isSharedCheck_8742_; 
lean_dec(v___y_8692_);
lean_dec_ref(v___y_8691_);
lean_dec(v___y_8690_);
lean_dec_ref(v___y_8689_);
lean_dec_ref(v_a_8637_);
v_a_8731_ = lean_ctor_get(v___x_8717_, 0);
v_a_8732_ = lean_ctor_get(v___x_8717_, 1);
v_isSharedCheck_8742_ = !lean_is_exclusive(v___x_8717_);
if (v_isSharedCheck_8742_ == 0)
{
v___x_8734_ = v___x_8717_;
v_isShared_8735_ = v_isSharedCheck_8742_;
goto v_resetjp_8733_;
}
else
{
lean_inc(v_a_8732_);
lean_inc(v_a_8731_);
lean_dec(v___x_8717_);
v___x_8734_ = lean_box(0);
v_isShared_8735_ = v_isSharedCheck_8742_;
goto v_resetjp_8733_;
}
v_resetjp_8733_:
{
lean_object* v___x_8737_; 
if (v_isShared_8706_ == 0)
{
lean_ctor_set(v___x_8705_, 0, v_a_8732_);
v___x_8737_ = v___x_8705_;
goto v_reusejp_8736_;
}
else
{
lean_object* v_reuseFailAlloc_8741_; 
v_reuseFailAlloc_8741_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_8741_, 0, v_a_8732_);
lean_ctor_set(v_reuseFailAlloc_8741_, 1, v_trace_8702_);
lean_ctor_set(v_reuseFailAlloc_8741_, 2, v_buildTime_8703_);
lean_ctor_set_uint8(v_reuseFailAlloc_8741_, sizeof(void*)*3, v_action_8700_);
lean_ctor_set_uint8(v_reuseFailAlloc_8741_, sizeof(void*)*3 + 1, v_wantsRebuild_8701_);
v___x_8737_ = v_reuseFailAlloc_8741_;
goto v_reusejp_8736_;
}
v_reusejp_8736_:
{
lean_object* v___x_8739_; 
if (v_isShared_8735_ == 0)
{
lean_ctor_set(v___x_8734_, 1, v___x_8737_);
v___x_8739_ = v___x_8734_;
goto v_reusejp_8738_;
}
else
{
lean_object* v_reuseFailAlloc_8740_; 
v_reuseFailAlloc_8740_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_8740_, 0, v_a_8731_);
lean_ctor_set(v_reuseFailAlloc_8740_, 1, v___x_8737_);
v___x_8739_ = v_reuseFailAlloc_8740_;
goto v_reusejp_8738_;
}
v_reusejp_8738_:
{
return v___x_8739_;
}
}
}
}
}
}
else
{
lean_object* v_a_8744_; lean_object* v_a_8745_; lean_object* v___x_8747_; uint8_t v_isShared_8748_; uint8_t v_isSharedCheck_8752_; 
lean_dec(v___y_8692_);
lean_dec_ref(v___y_8691_);
lean_dec(v___y_8690_);
lean_dec_ref(v___y_8689_);
lean_dec_ref(v_a_8637_);
v_a_8744_ = lean_ctor_get(v___y_8693_, 0);
v_a_8745_ = lean_ctor_get(v___y_8693_, 1);
v_isSharedCheck_8752_ = !lean_is_exclusive(v___y_8693_);
if (v_isSharedCheck_8752_ == 0)
{
v___x_8747_ = v___y_8693_;
v_isShared_8748_ = v_isSharedCheck_8752_;
goto v_resetjp_8746_;
}
else
{
lean_inc(v_a_8745_);
lean_inc(v_a_8744_);
lean_dec(v___y_8693_);
v___x_8747_ = lean_box(0);
v_isShared_8748_ = v_isSharedCheck_8752_;
goto v_resetjp_8746_;
}
v_resetjp_8746_:
{
lean_object* v___x_8750_; 
if (v_isShared_8748_ == 0)
{
v___x_8750_ = v___x_8747_;
goto v_reusejp_8749_;
}
else
{
lean_object* v_reuseFailAlloc_8751_; 
v_reuseFailAlloc_8751_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_8751_, 0, v_a_8744_);
lean_ctor_set(v_reuseFailAlloc_8751_, 1, v_a_8745_);
v___x_8750_ = v_reuseFailAlloc_8751_;
goto v_reusejp_8749_;
}
v_reusejp_8749_:
{
return v___x_8750_;
}
}
}
}
v___jp_8756_:
{
lean_object* v_lib_8759_; lean_object* v_pkg_8760_; lean_object* v_config_8761_; lean_object* v_name_8762_; lean_object* v_dir_8763_; lean_object* v_buildDir_8764_; lean_object* v_leanLibDir_8765_; lean_object* v_irDir_8766_; lean_object* v_enableArtifactCache_x3f_8767_; lean_object* v_restoreAllArtifacts_x3f_8768_; lean_object* v_olean_8769_; lean_object* v_oleanServer_x3f_8770_; lean_object* v_oleanPrivate_x3f_8771_; lean_object* v_ilean_8772_; lean_object* v_ir_x3f_8773_; lean_object* v_c_8774_; lean_object* v_bc_x3f_8775_; lean_object* v___x_8776_; lean_object* v___x_8777_; lean_object* v___x_8778_; lean_object* v___x_8779_; lean_object* v___x_8780_; lean_object* v___x_8781_; lean_object* v___x_8782_; lean_object* v___x_8783_; lean_object* v___x_8784_; lean_object* v___x_8785_; lean_object* v___x_8786_; lean_object* v___x_8787_; lean_object* v___x_8788_; lean_object* v___x_8789_; lean_object* v___x_8790_; lean_object* v___x_8791_; lean_object* v___x_8792_; lean_object* v___x_8793_; lean_object* v___x_8794_; lean_object* v___x_8795_; lean_object* v___x_8796_; lean_object* v___x_8797_; lean_object* v___x_8798_; lean_object* v___x_8799_; 
v_lib_8759_ = lean_ctor_get(v_self_8631_, 0);
v_pkg_8760_ = lean_ctor_get(v_lib_8759_, 0);
v_config_8761_ = lean_ctor_get(v_pkg_8760_, 6);
v_name_8762_ = lean_ctor_get(v_self_8631_, 1);
v_dir_8763_ = lean_ctor_get(v_pkg_8760_, 4);
v_buildDir_8764_ = lean_ctor_get(v_config_8761_, 6);
v_leanLibDir_8765_ = lean_ctor_get(v_config_8761_, 7);
v_irDir_8766_ = lean_ctor_get(v_config_8761_, 10);
v_enableArtifactCache_x3f_8767_ = lean_ctor_get(v_config_8761_, 25);
lean_inc(v_enableArtifactCache_x3f_8767_);
v_restoreAllArtifacts_x3f_8768_ = lean_ctor_get(v_config_8761_, 26);
lean_inc(v_restoreAllArtifacts_x3f_8768_);
v_olean_8769_ = lean_ctor_get(v_a_8757_, 0);
lean_inc_ref(v_olean_8769_);
v_oleanServer_x3f_8770_ = lean_ctor_get(v_a_8757_, 1);
lean_inc(v_oleanServer_x3f_8770_);
v_oleanPrivate_x3f_8771_ = lean_ctor_get(v_a_8757_, 2);
lean_inc(v_oleanPrivate_x3f_8771_);
v_ilean_8772_ = lean_ctor_get(v_a_8757_, 3);
lean_inc_ref(v_ilean_8772_);
v_ir_x3f_8773_ = lean_ctor_get(v_a_8757_, 4);
lean_inc(v_ir_x3f_8773_);
v_c_8774_ = lean_ctor_get(v_a_8757_, 5);
lean_inc_ref(v_c_8774_);
v_bc_x3f_8775_ = lean_ctor_get(v_a_8757_, 6);
lean_inc(v_bc_x3f_8775_);
lean_dec_ref(v_a_8757_);
v___x_8776_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__2));
lean_inc_ref(v_buildDir_8764_);
v___x_8777_ = l_System_FilePath_normalize(v_buildDir_8764_);
lean_inc_ref(v_dir_8763_);
v___x_8778_ = l_Lake_joinRelative(v_dir_8763_, v___x_8777_);
lean_inc_ref(v_leanLibDir_8765_);
v___x_8779_ = l_System_FilePath_normalize(v_leanLibDir_8765_);
lean_inc_ref(v___x_8778_);
v___x_8780_ = l_Lake_joinRelative(v___x_8778_, v___x_8779_);
v___x_8781_ = l_Lean_Name_getPrefix(v_name_8762_);
v___x_8782_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1));
lean_inc(v___x_8781_);
v___x_8783_ = l_Lean_modToFilePath(v___x_8780_, v___x_8781_, v___x_8782_);
lean_dec_ref(v___x_8780_);
v___x_8784_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__3, &l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__3_once, _init_l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__3);
lean_inc_ref(v_irDir_8766_);
v___x_8785_ = l_System_FilePath_normalize(v_irDir_8766_);
v___x_8786_ = l_Lake_joinRelative(v___x_8778_, v___x_8785_);
v___x_8787_ = l_Lean_modToFilePath(v___x_8786_, v___x_8781_, v___x_8782_);
v___x_8788_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__1));
lean_inc(v_name_8762_);
v___x_8789_ = l_Lean_modToFilePath(v___x_8786_, v_name_8762_, v___x_8788_);
lean_dec_ref(v___x_8786_);
v___x_8790_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__4));
v___x_8791_ = l_Lean_Name_getString_x21(v_name_8762_);
v___x_8792_ = l_System_FilePath_addExtension(v___x_8791_, v___x_8790_);
v___x_8793_ = lean_array_push(v___x_8784_, v___x_8783_);
v___x_8794_ = lean_array_push(v___x_8793_, v___x_8776_);
v___x_8795_ = lean_array_push(v___x_8794_, v___x_8787_);
lean_inc_ref(v___x_8789_);
v___x_8796_ = lean_array_push(v___x_8795_, v___x_8789_);
v___x_8797_ = lean_array_push(v___x_8796_, v___x_8792_);
v___x_8798_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__5));
v___x_8799_ = l___private_Lake_Build_Module_0__Lake_Module_packLtar___lam__0(v_self_8631_, v___x_8797_, v___x_8798_, v_olean_8769_);
lean_dec_ref(v_olean_8769_);
if (lean_obj_tag(v_oleanServer_x3f_8770_) == 1)
{
lean_object* v_val_8800_; lean_object* v___x_8801_; lean_object* v___x_8802_; lean_object* v___x_8803_; 
v_val_8800_ = lean_ctor_get(v_oleanServer_x3f_8770_, 0);
lean_inc(v_val_8800_);
lean_dec_ref(v_oleanServer_x3f_8770_);
v___x_8801_ = l___private_Lake_Build_Module_0__Lake_Module_packLtar___lam__0(v_self_8631_, v___x_8799_, v___x_8798_, v_val_8800_);
lean_dec(v_val_8800_);
lean_dec_ref(v_self_8631_);
v___x_8802_ = lean_box(0);
v___x_8803_ = l___private_Lake_Build_Module_0__Lake_Module_packLtar___lam__1(v___f_8755_, v_c_8774_, v_bc_x3f_8775_, v___x_8798_, v_ilean_8772_, v_ir_x3f_8773_, v_oleanPrivate_x3f_8771_, v___x_8802_, v___x_8801_, v_a_8633_, v_a_8634_, v_a_8635_, v_a_8636_, v_a_8637_, v_a_8758_);
v___y_8689_ = v___x_8789_;
v___y_8690_ = v_enableArtifactCache_x3f_8767_;
v___y_8691_ = v___x_8788_;
v___y_8692_ = v_restoreAllArtifacts_x3f_8768_;
v___y_8693_ = v___x_8803_;
goto v___jp_8688_;
}
else
{
lean_object* v___x_8804_; lean_object* v___x_8805_; 
lean_dec(v_oleanServer_x3f_8770_);
lean_dec_ref(v_self_8631_);
v___x_8804_ = lean_box(0);
v___x_8805_ = l___private_Lake_Build_Module_0__Lake_Module_packLtar___lam__1(v___f_8755_, v_c_8774_, v_bc_x3f_8775_, v___x_8798_, v_ilean_8772_, v_ir_x3f_8773_, v_oleanPrivate_x3f_8771_, v___x_8804_, v___x_8799_, v_a_8633_, v_a_8634_, v_a_8635_, v_a_8636_, v_a_8637_, v_a_8758_);
v___y_8689_ = v___x_8789_;
v___y_8690_ = v_enableArtifactCache_x3f_8767_;
v___y_8691_ = v___x_8788_;
v___y_8692_ = v_restoreAllArtifacts_x3f_8768_;
v___y_8693_ = v___x_8805_;
goto v___jp_8688_;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_packLtar___boxed(lean_object* v_self_8818_, lean_object* v_arts_8819_, lean_object* v_a_8820_, lean_object* v_a_8821_, lean_object* v_a_8822_, lean_object* v_a_8823_, lean_object* v_a_8824_, lean_object* v_a_8825_, lean_object* v_a_8826_){
_start:
{
lean_object* v_res_8827_; 
v_res_8827_ = l___private_Lake_Build_Module_0__Lake_Module_packLtar(v_self_8818_, v_arts_8819_, v_a_8820_, v_a_8821_, v_a_8822_, v_a_8823_, v_a_8824_, v_a_8825_);
lean_dec(v_a_8823_);
lean_dec(v_a_8822_);
lean_dec(v_a_8821_);
lean_dec_ref(v_a_8820_);
return v_res_8827_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_unpackLtar___redArg(lean_object* v_self_8829_, lean_object* v_ltar_8830_, lean_object* v_a_8831_, lean_object* v_a_8832_){
_start:
{
lean_object* v_lib_8834_; lean_object* v_pkg_8835_; lean_object* v_config_8836_; lean_object* v_toContext_8837_; lean_object* v_lakeEnv_8838_; lean_object* v_lean_8839_; lean_object* v_name_8840_; lean_object* v_dir_8841_; lean_object* v_buildDir_8842_; lean_object* v_leanLibDir_8843_; lean_object* v_irDir_8844_; lean_object* v_log_8845_; uint8_t v_action_8846_; uint8_t v_wantsRebuild_8847_; lean_object* v_trace_8848_; lean_object* v_buildTime_8849_; lean_object* v___x_8851_; uint8_t v_isShared_8852_; uint8_t v_isSharedCheck_8903_; 
v_lib_8834_ = lean_ctor_get(v_self_8829_, 0);
v_pkg_8835_ = lean_ctor_get(v_lib_8834_, 0);
lean_inc_ref(v_pkg_8835_);
v_config_8836_ = lean_ctor_get(v_pkg_8835_, 6);
lean_inc_ref(v_config_8836_);
v_toContext_8837_ = lean_ctor_get(v_a_8831_, 1);
v_lakeEnv_8838_ = lean_ctor_get(v_toContext_8837_, 1);
v_lean_8839_ = lean_ctor_get(v_lakeEnv_8838_, 1);
v_name_8840_ = lean_ctor_get(v_self_8829_, 1);
lean_inc(v_name_8840_);
lean_dec_ref(v_self_8829_);
v_dir_8841_ = lean_ctor_get(v_pkg_8835_, 4);
lean_inc_ref(v_dir_8841_);
lean_dec_ref(v_pkg_8835_);
v_buildDir_8842_ = lean_ctor_get(v_config_8836_, 6);
lean_inc_ref(v_buildDir_8842_);
v_leanLibDir_8843_ = lean_ctor_get(v_config_8836_, 7);
lean_inc_ref(v_leanLibDir_8843_);
v_irDir_8844_ = lean_ctor_get(v_config_8836_, 10);
lean_inc_ref(v_irDir_8844_);
lean_dec_ref(v_config_8836_);
v_log_8845_ = lean_ctor_get(v_a_8832_, 0);
v_action_8846_ = lean_ctor_get_uint8(v_a_8832_, sizeof(void*)*3);
v_wantsRebuild_8847_ = lean_ctor_get_uint8(v_a_8832_, sizeof(void*)*3 + 1);
v_trace_8848_ = lean_ctor_get(v_a_8832_, 1);
v_buildTime_8849_ = lean_ctor_get(v_a_8832_, 2);
v_isSharedCheck_8903_ = !lean_is_exclusive(v_a_8832_);
if (v_isSharedCheck_8903_ == 0)
{
v___x_8851_ = v_a_8832_;
v_isShared_8852_ = v_isSharedCheck_8903_;
goto v_resetjp_8850_;
}
else
{
lean_inc(v_buildTime_8849_);
lean_inc(v_trace_8848_);
lean_inc(v_log_8845_);
lean_dec(v_a_8832_);
v___x_8851_ = lean_box(0);
v_isShared_8852_ = v_isSharedCheck_8903_;
goto v_resetjp_8850_;
}
v_resetjp_8850_:
{
lean_object* v_leantar_8853_; lean_object* v___x_8854_; lean_object* v___x_8855_; lean_object* v___x_8856_; lean_object* v___x_8857_; lean_object* v___x_8858_; lean_object* v___x_8859_; lean_object* v___x_8860_; lean_object* v___x_8861_; lean_object* v___x_8862_; lean_object* v___x_8863_; lean_object* v___x_8864_; lean_object* v___x_8865_; lean_object* v___x_8866_; lean_object* v___x_8867_; lean_object* v___x_8868_; lean_object* v___x_8869_; lean_object* v___x_8870_; lean_object* v_args_8871_; lean_object* v___x_8872_; lean_object* v___x_8873_; lean_object* v___x_8874_; uint8_t v___x_8875_; uint8_t v___x_8876_; lean_object* v___x_8877_; lean_object* v___x_8878_; 
v_leantar_8853_ = lean_ctor_get(v_lean_8839_, 9);
v___x_8854_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__2));
v___x_8855_ = l_System_FilePath_normalize(v_buildDir_8842_);
v___x_8856_ = l_Lake_joinRelative(v_dir_8841_, v___x_8855_);
v___x_8857_ = l_System_FilePath_normalize(v_leanLibDir_8843_);
lean_inc_ref(v___x_8856_);
v___x_8858_ = l_Lake_joinRelative(v___x_8856_, v___x_8857_);
v___x_8859_ = l_Lean_Name_getPrefix(v_name_8840_);
lean_dec(v_name_8840_);
v___x_8860_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1));
lean_inc(v___x_8859_);
v___x_8861_ = l_Lean_modToFilePath(v___x_8858_, v___x_8859_, v___x_8860_);
lean_dec_ref(v___x_8858_);
v___x_8862_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__3, &l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__3_once, _init_l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__3);
v___x_8863_ = l_System_FilePath_normalize(v_irDir_8844_);
v___x_8864_ = l_Lake_joinRelative(v___x_8856_, v___x_8863_);
v___x_8865_ = l_Lean_modToFilePath(v___x_8864_, v___x_8859_, v___x_8860_);
lean_dec_ref(v___x_8864_);
v___x_8866_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_unpackLtar___redArg___closed__0));
v___x_8867_ = lean_array_push(v___x_8862_, v___x_8861_);
v___x_8868_ = lean_array_push(v___x_8867_, v___x_8854_);
v___x_8869_ = lean_array_push(v___x_8868_, v___x_8865_);
v___x_8870_ = lean_array_push(v___x_8869_, v___x_8866_);
v_args_8871_ = lean_array_push(v___x_8870_, v_ltar_8830_);
v___x_8872_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__0));
v___x_8873_ = lean_box(0);
v___x_8874_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__1));
v___x_8875_ = 1;
v___x_8876_ = 0;
lean_inc_ref(v_leantar_8853_);
v___x_8877_ = lean_alloc_ctor(0, 5, 2);
lean_ctor_set(v___x_8877_, 0, v___x_8872_);
lean_ctor_set(v___x_8877_, 1, v_leantar_8853_);
lean_ctor_set(v___x_8877_, 2, v_args_8871_);
lean_ctor_set(v___x_8877_, 3, v___x_8873_);
lean_ctor_set(v___x_8877_, 4, v___x_8874_);
lean_ctor_set_uint8(v___x_8877_, sizeof(void*)*5, v___x_8875_);
lean_ctor_set_uint8(v___x_8877_, sizeof(void*)*5 + 1, v___x_8876_);
v___x_8878_ = l_Lake_proc(v___x_8877_, v___x_8875_, v_log_8845_);
if (lean_obj_tag(v___x_8878_) == 0)
{
lean_object* v_a_8879_; lean_object* v_a_8880_; lean_object* v___x_8882_; uint8_t v_isShared_8883_; uint8_t v_isSharedCheck_8890_; 
v_a_8879_ = lean_ctor_get(v___x_8878_, 0);
v_a_8880_ = lean_ctor_get(v___x_8878_, 1);
v_isSharedCheck_8890_ = !lean_is_exclusive(v___x_8878_);
if (v_isSharedCheck_8890_ == 0)
{
v___x_8882_ = v___x_8878_;
v_isShared_8883_ = v_isSharedCheck_8890_;
goto v_resetjp_8881_;
}
else
{
lean_inc(v_a_8880_);
lean_inc(v_a_8879_);
lean_dec(v___x_8878_);
v___x_8882_ = lean_box(0);
v_isShared_8883_ = v_isSharedCheck_8890_;
goto v_resetjp_8881_;
}
v_resetjp_8881_:
{
lean_object* v___x_8885_; 
if (v_isShared_8852_ == 0)
{
lean_ctor_set(v___x_8851_, 0, v_a_8880_);
v___x_8885_ = v___x_8851_;
goto v_reusejp_8884_;
}
else
{
lean_object* v_reuseFailAlloc_8889_; 
v_reuseFailAlloc_8889_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_8889_, 0, v_a_8880_);
lean_ctor_set(v_reuseFailAlloc_8889_, 1, v_trace_8848_);
lean_ctor_set(v_reuseFailAlloc_8889_, 2, v_buildTime_8849_);
lean_ctor_set_uint8(v_reuseFailAlloc_8889_, sizeof(void*)*3, v_action_8846_);
lean_ctor_set_uint8(v_reuseFailAlloc_8889_, sizeof(void*)*3 + 1, v_wantsRebuild_8847_);
v___x_8885_ = v_reuseFailAlloc_8889_;
goto v_reusejp_8884_;
}
v_reusejp_8884_:
{
lean_object* v___x_8887_; 
if (v_isShared_8883_ == 0)
{
lean_ctor_set(v___x_8882_, 1, v___x_8885_);
v___x_8887_ = v___x_8882_;
goto v_reusejp_8886_;
}
else
{
lean_object* v_reuseFailAlloc_8888_; 
v_reuseFailAlloc_8888_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_8888_, 0, v_a_8879_);
lean_ctor_set(v_reuseFailAlloc_8888_, 1, v___x_8885_);
v___x_8887_ = v_reuseFailAlloc_8888_;
goto v_reusejp_8886_;
}
v_reusejp_8886_:
{
return v___x_8887_;
}
}
}
}
else
{
lean_object* v_a_8891_; lean_object* v_a_8892_; lean_object* v___x_8894_; uint8_t v_isShared_8895_; uint8_t v_isSharedCheck_8902_; 
v_a_8891_ = lean_ctor_get(v___x_8878_, 0);
v_a_8892_ = lean_ctor_get(v___x_8878_, 1);
v_isSharedCheck_8902_ = !lean_is_exclusive(v___x_8878_);
if (v_isSharedCheck_8902_ == 0)
{
v___x_8894_ = v___x_8878_;
v_isShared_8895_ = v_isSharedCheck_8902_;
goto v_resetjp_8893_;
}
else
{
lean_inc(v_a_8892_);
lean_inc(v_a_8891_);
lean_dec(v___x_8878_);
v___x_8894_ = lean_box(0);
v_isShared_8895_ = v_isSharedCheck_8902_;
goto v_resetjp_8893_;
}
v_resetjp_8893_:
{
lean_object* v___x_8897_; 
if (v_isShared_8852_ == 0)
{
lean_ctor_set(v___x_8851_, 0, v_a_8892_);
v___x_8897_ = v___x_8851_;
goto v_reusejp_8896_;
}
else
{
lean_object* v_reuseFailAlloc_8901_; 
v_reuseFailAlloc_8901_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_8901_, 0, v_a_8892_);
lean_ctor_set(v_reuseFailAlloc_8901_, 1, v_trace_8848_);
lean_ctor_set(v_reuseFailAlloc_8901_, 2, v_buildTime_8849_);
lean_ctor_set_uint8(v_reuseFailAlloc_8901_, sizeof(void*)*3, v_action_8846_);
lean_ctor_set_uint8(v_reuseFailAlloc_8901_, sizeof(void*)*3 + 1, v_wantsRebuild_8847_);
v___x_8897_ = v_reuseFailAlloc_8901_;
goto v_reusejp_8896_;
}
v_reusejp_8896_:
{
lean_object* v___x_8899_; 
if (v_isShared_8895_ == 0)
{
lean_ctor_set(v___x_8894_, 1, v___x_8897_);
v___x_8899_ = v___x_8894_;
goto v_reusejp_8898_;
}
else
{
lean_object* v_reuseFailAlloc_8900_; 
v_reuseFailAlloc_8900_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_8900_, 0, v_a_8891_);
lean_ctor_set(v_reuseFailAlloc_8900_, 1, v___x_8897_);
v___x_8899_ = v_reuseFailAlloc_8900_;
goto v_reusejp_8898_;
}
v_reusejp_8898_:
{
return v___x_8899_;
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_unpackLtar___redArg___boxed(lean_object* v_self_8904_, lean_object* v_ltar_8905_, lean_object* v_a_8906_, lean_object* v_a_8907_, lean_object* v_a_8908_){
_start:
{
lean_object* v_res_8909_; 
v_res_8909_ = l___private_Lake_Build_Module_0__Lake_Module_unpackLtar___redArg(v_self_8904_, v_ltar_8905_, v_a_8906_, v_a_8907_);
lean_dec_ref(v_a_8906_);
return v_res_8909_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_unpackLtar(lean_object* v_self_8910_, lean_object* v_ltar_8911_, lean_object* v_a_8912_, lean_object* v_a_8913_, lean_object* v_a_8914_, lean_object* v_a_8915_, lean_object* v_a_8916_, lean_object* v_a_8917_){
_start:
{
lean_object* v___x_8919_; 
v___x_8919_ = l___private_Lake_Build_Module_0__Lake_Module_unpackLtar___redArg(v_self_8910_, v_ltar_8911_, v_a_8916_, v_a_8917_);
return v___x_8919_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_unpackLtar___boxed(lean_object* v_self_8920_, lean_object* v_ltar_8921_, lean_object* v_a_8922_, lean_object* v_a_8923_, lean_object* v_a_8924_, lean_object* v_a_8925_, lean_object* v_a_8926_, lean_object* v_a_8927_, lean_object* v_a_8928_){
_start:
{
lean_object* v_res_8929_; 
v_res_8929_ = l___private_Lake_Build_Module_0__Lake_Module_unpackLtar(v_self_8920_, v_ltar_8921_, v_a_8922_, v_a_8923_, v_a_8924_, v_a_8925_, v_a_8926_, v_a_8927_);
lean_dec_ref(v_a_8926_);
lean_dec(v_a_8925_);
lean_dec(v_a_8924_);
lean_dec(v_a_8923_);
lean_dec_ref(v_a_8922_);
return v_res_8929_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___lam__0(lean_object* v_name_8934_, lean_object* v___x_8935_, lean_object* v_self_8936_, lean_object* v_arts_8937_, lean_object* v___y_8938_, lean_object* v___y_8939_, lean_object* v___y_8940_, lean_object* v___y_8941_, lean_object* v___y_8942_, lean_object* v___y_8943_){
_start:
{
lean_object* v_a_8946_; lean_object* v_a_8947_; lean_object* v_a_8969_; lean_object* v_a_8970_; lean_object* v_ltar_x3f_8972_; 
v_ltar_x3f_8972_ = lean_ctor_get(v_arts_8937_, 7);
if (lean_obj_tag(v_ltar_x3f_8972_) == 0)
{
lean_object* v_toBuildConfig_8973_; uint8_t v_noBuild_8974_; 
v_toBuildConfig_8973_ = lean_ctor_get(v___y_8942_, 0);
v_noBuild_8974_ = lean_ctor_get_uint8(v_toBuildConfig_8973_, sizeof(void*)*2 + 2);
if (v_noBuild_8974_ == 0)
{
lean_object* v___x_8975_; 
v___x_8975_ = l___private_Lake_Build_Module_0__Lake_Module_packLtar(v_self_8936_, v_arts_8937_, v___y_8938_, v___y_8939_, v___y_8940_, v___y_8941_, v___y_8942_, v___y_8943_);
if (lean_obj_tag(v___x_8975_) == 0)
{
lean_object* v_a_8976_; lean_object* v_a_8977_; 
v_a_8976_ = lean_ctor_get(v___x_8975_, 0);
lean_inc(v_a_8976_);
v_a_8977_ = lean_ctor_get(v___x_8975_, 1);
lean_inc(v_a_8977_);
lean_dec_ref(v___x_8975_);
v_a_8946_ = v_a_8976_;
v_a_8947_ = v_a_8977_;
goto v___jp_8945_;
}
else
{
lean_object* v_a_8978_; lean_object* v_a_8979_; 
lean_dec(v_name_8934_);
v_a_8978_ = lean_ctor_get(v___x_8975_, 0);
lean_inc(v_a_8978_);
v_a_8979_ = lean_ctor_get(v___x_8975_, 1);
lean_inc(v_a_8979_);
lean_dec_ref(v___x_8975_);
v_a_8969_ = v_a_8978_;
v_a_8970_ = v_a_8979_;
goto v___jp_8968_;
}
}
else
{
lean_object* v_log_8980_; uint8_t v_action_8981_; lean_object* v_trace_8982_; lean_object* v_buildTime_8983_; lean_object* v___x_8985_; uint8_t v_isShared_8986_; uint8_t v_isSharedCheck_8993_; 
lean_dec_ref(v___y_8942_);
lean_dec_ref(v_arts_8937_);
lean_dec_ref(v_self_8936_);
lean_dec(v_name_8934_);
v_log_8980_ = lean_ctor_get(v___y_8943_, 0);
v_action_8981_ = lean_ctor_get_uint8(v___y_8943_, sizeof(void*)*3);
v_trace_8982_ = lean_ctor_get(v___y_8943_, 1);
v_buildTime_8983_ = lean_ctor_get(v___y_8943_, 2);
v_isSharedCheck_8993_ = !lean_is_exclusive(v___y_8943_);
if (v_isSharedCheck_8993_ == 0)
{
v___x_8985_ = v___y_8943_;
v_isShared_8986_ = v_isSharedCheck_8993_;
goto v_resetjp_8984_;
}
else
{
lean_inc(v_buildTime_8983_);
lean_inc(v_trace_8982_);
lean_inc(v_log_8980_);
lean_dec(v___y_8943_);
v___x_8985_ = lean_box(0);
v_isShared_8986_ = v_isSharedCheck_8993_;
goto v_resetjp_8984_;
}
v_resetjp_8984_:
{
lean_object* v___x_8987_; lean_object* v___x_8988_; lean_object* v___x_8989_; lean_object* v___x_8991_; 
v___x_8987_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___lam__0___closed__1));
v___x_8988_ = lean_array_get_size(v_log_8980_);
v___x_8989_ = lean_array_push(v_log_8980_, v___x_8987_);
if (v_isShared_8986_ == 0)
{
lean_ctor_set(v___x_8985_, 0, v___x_8989_);
v___x_8991_ = v___x_8985_;
goto v_reusejp_8990_;
}
else
{
lean_object* v_reuseFailAlloc_8992_; 
v_reuseFailAlloc_8992_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_8992_, 0, v___x_8989_);
lean_ctor_set(v_reuseFailAlloc_8992_, 1, v_trace_8982_);
lean_ctor_set(v_reuseFailAlloc_8992_, 2, v_buildTime_8983_);
lean_ctor_set_uint8(v_reuseFailAlloc_8992_, sizeof(void*)*3, v_action_8981_);
v___x_8991_ = v_reuseFailAlloc_8992_;
goto v_reusejp_8990_;
}
v_reusejp_8990_:
{
lean_ctor_set_uint8(v___x_8991_, sizeof(void*)*3 + 1, v_noBuild_8974_);
v_a_8969_ = v___x_8988_;
v_a_8970_ = v___x_8991_;
goto v___jp_8968_;
}
}
}
}
else
{
lean_object* v_val_8994_; 
lean_inc_ref(v_ltar_x3f_8972_);
lean_dec_ref(v___y_8942_);
lean_dec_ref(v_arts_8937_);
lean_dec_ref(v_self_8936_);
v_val_8994_ = lean_ctor_get(v_ltar_x3f_8972_, 0);
lean_inc(v_val_8994_);
lean_dec_ref(v_ltar_x3f_8972_);
v_a_8946_ = v_val_8994_;
v_a_8947_ = v___y_8943_;
goto v___jp_8945_;
}
v___jp_8945_:
{
lean_object* v_log_8948_; uint8_t v_action_8949_; uint8_t v_wantsRebuild_8950_; lean_object* v_buildTime_8951_; lean_object* v___x_8953_; uint8_t v_isShared_8954_; uint8_t v_isSharedCheck_8966_; 
v_log_8948_ = lean_ctor_get(v_a_8947_, 0);
v_action_8949_ = lean_ctor_get_uint8(v_a_8947_, sizeof(void*)*3);
v_wantsRebuild_8950_ = lean_ctor_get_uint8(v_a_8947_, sizeof(void*)*3 + 1);
v_buildTime_8951_ = lean_ctor_get(v_a_8947_, 2);
v_isSharedCheck_8966_ = !lean_is_exclusive(v_a_8947_);
if (v_isSharedCheck_8966_ == 0)
{
lean_object* v_unused_8967_; 
v_unused_8967_ = lean_ctor_get(v_a_8947_, 1);
lean_dec(v_unused_8967_);
v___x_8953_ = v_a_8947_;
v_isShared_8954_ = v_isSharedCheck_8966_;
goto v_resetjp_8952_;
}
else
{
lean_inc(v_buildTime_8951_);
lean_inc(v_log_8948_);
lean_dec(v_a_8947_);
v___x_8953_ = lean_box(0);
v_isShared_8954_ = v_isSharedCheck_8966_;
goto v_resetjp_8952_;
}
v_resetjp_8952_:
{
lean_object* v_path_8955_; uint8_t v___x_8956_; lean_object* v___x_8957_; lean_object* v___x_8958_; lean_object* v___x_8959_; lean_object* v___x_8960_; lean_object* v___x_8961_; lean_object* v___x_8963_; 
v_path_8955_ = lean_ctor_get(v_a_8946_, 1);
lean_inc_ref(v_path_8955_);
v___x_8956_ = 1;
v___x_8957_ = l_Lean_Name_toString(v_name_8934_, v___x_8956_);
v___x_8958_ = lean_string_append(v___x_8957_, v___x_8935_);
v___x_8959_ = l_Lake_BuildTrace_nil(v___x_8958_);
v___x_8960_ = l_Lake_Artifact_trace(v_a_8946_);
lean_dec_ref(v_a_8946_);
v___x_8961_ = l_Lake_BuildTrace_mix(v___x_8959_, v___x_8960_);
if (v_isShared_8954_ == 0)
{
lean_ctor_set(v___x_8953_, 1, v___x_8961_);
v___x_8963_ = v___x_8953_;
goto v_reusejp_8962_;
}
else
{
lean_object* v_reuseFailAlloc_8965_; 
v_reuseFailAlloc_8965_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_8965_, 0, v_log_8948_);
lean_ctor_set(v_reuseFailAlloc_8965_, 1, v___x_8961_);
lean_ctor_set(v_reuseFailAlloc_8965_, 2, v_buildTime_8951_);
lean_ctor_set_uint8(v_reuseFailAlloc_8965_, sizeof(void*)*3, v_action_8949_);
lean_ctor_set_uint8(v_reuseFailAlloc_8965_, sizeof(void*)*3 + 1, v_wantsRebuild_8950_);
v___x_8963_ = v_reuseFailAlloc_8965_;
goto v_reusejp_8962_;
}
v_reusejp_8962_:
{
lean_object* v___x_8964_; 
v___x_8964_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_8964_, 0, v_path_8955_);
lean_ctor_set(v___x_8964_, 1, v___x_8963_);
return v___x_8964_;
}
}
}
v___jp_8968_:
{
lean_object* v___x_8971_; 
v___x_8971_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_8971_, 0, v_a_8969_);
lean_ctor_set(v___x_8971_, 1, v_a_8970_);
return v___x_8971_;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___lam__0___boxed(lean_object* v_name_8995_, lean_object* v___x_8996_, lean_object* v_self_8997_, lean_object* v_arts_8998_, lean_object* v___y_8999_, lean_object* v___y_9000_, lean_object* v___y_9001_, lean_object* v___y_9002_, lean_object* v___y_9003_, lean_object* v___y_9004_, lean_object* v___y_9005_){
_start:
{
lean_object* v_res_9006_; 
v_res_9006_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___lam__0(v_name_8995_, v___x_8996_, v_self_8997_, v_arts_8998_, v___y_8999_, v___y_9000_, v___y_9001_, v___y_9002_, v___y_9003_, v___y_9004_);
lean_dec(v___y_9002_);
lean_dec(v___y_9001_);
lean_dec(v___y_9000_);
lean_dec_ref(v___y_8999_);
lean_dec_ref(v___x_8996_);
return v_res_9006_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___lam__1(lean_object* v___x_9007_, lean_object* v___x_9008_, lean_object* v___x_9009_, lean_object* v___f_9010_, lean_object* v___y_9011_, lean_object* v___y_9012_, lean_object* v___y_9013_, lean_object* v___y_9014_, lean_object* v___y_9015_, lean_object* v___y_9016_){
_start:
{
lean_object* v___x_9018_; 
lean_inc_ref(v___y_9011_);
lean_inc_ref(v___y_9015_);
lean_inc(v___y_9014_);
lean_inc(v___y_9013_);
lean_inc(v___x_9008_);
v___x_9018_ = lean_apply_7(v___y_9011_, v___x_9007_, v___x_9008_, v___y_9013_, v___y_9014_, v___y_9015_, v___y_9016_, lean_box(0));
if (lean_obj_tag(v___x_9018_) == 0)
{
lean_object* v_a_9019_; lean_object* v_a_9020_; lean_object* v___x_9022_; uint8_t v_isShared_9023_; uint8_t v_isSharedCheck_9031_; 
v_a_9019_ = lean_ctor_get(v___x_9018_, 0);
v_a_9020_ = lean_ctor_get(v___x_9018_, 1);
v_isSharedCheck_9031_ = !lean_is_exclusive(v___x_9018_);
if (v_isSharedCheck_9031_ == 0)
{
v___x_9022_ = v___x_9018_;
v_isShared_9023_ = v_isSharedCheck_9031_;
goto v_resetjp_9021_;
}
else
{
lean_inc(v_a_9020_);
lean_inc(v_a_9019_);
lean_dec(v___x_9018_);
v___x_9022_ = lean_box(0);
v_isShared_9023_ = v_isSharedCheck_9031_;
goto v_resetjp_9021_;
}
v_resetjp_9021_:
{
lean_object* v___x_9024_; uint8_t v___x_9025_; lean_object* v___x_9026_; lean_object* v___x_9027_; lean_object* v___x_9029_; 
v___x_9024_ = lean_unsigned_to_nat(0u);
v___x_9025_ = 0;
v___x_9026_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_9027_ = l_Lake_Job_mapM___redArg(v___x_9009_, v_a_9019_, v___f_9010_, v___x_9024_, v___x_9025_, v___y_9011_, v___x_9008_, v___y_9013_, v___y_9014_, v___y_9015_, v___x_9026_);
if (v_isShared_9023_ == 0)
{
lean_ctor_set(v___x_9022_, 0, v___x_9027_);
v___x_9029_ = v___x_9022_;
goto v_reusejp_9028_;
}
else
{
lean_object* v_reuseFailAlloc_9030_; 
v_reuseFailAlloc_9030_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_9030_, 0, v___x_9027_);
lean_ctor_set(v_reuseFailAlloc_9030_, 1, v_a_9020_);
v___x_9029_ = v_reuseFailAlloc_9030_;
goto v_reusejp_9028_;
}
v_reusejp_9028_:
{
return v___x_9029_;
}
}
}
else
{
lean_object* v_a_9032_; lean_object* v_a_9033_; lean_object* v___x_9035_; uint8_t v_isShared_9036_; uint8_t v_isSharedCheck_9040_; 
lean_dec_ref(v___y_9015_);
lean_dec(v___y_9014_);
lean_dec(v___y_9013_);
lean_dec_ref(v___y_9011_);
lean_dec_ref(v___f_9010_);
lean_dec(v___x_9009_);
lean_dec(v___x_9008_);
v_a_9032_ = lean_ctor_get(v___x_9018_, 0);
v_a_9033_ = lean_ctor_get(v___x_9018_, 1);
v_isSharedCheck_9040_ = !lean_is_exclusive(v___x_9018_);
if (v_isSharedCheck_9040_ == 0)
{
v___x_9035_ = v___x_9018_;
v_isShared_9036_ = v_isSharedCheck_9040_;
goto v_resetjp_9034_;
}
else
{
lean_inc(v_a_9033_);
lean_inc(v_a_9032_);
lean_dec(v___x_9018_);
v___x_9035_ = lean_box(0);
v_isShared_9036_ = v_isSharedCheck_9040_;
goto v_resetjp_9034_;
}
v_resetjp_9034_:
{
lean_object* v___x_9038_; 
if (v_isShared_9036_ == 0)
{
v___x_9038_ = v___x_9035_;
goto v_reusejp_9037_;
}
else
{
lean_object* v_reuseFailAlloc_9039_; 
v_reuseFailAlloc_9039_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_9039_, 0, v_a_9032_);
lean_ctor_set(v_reuseFailAlloc_9039_, 1, v_a_9033_);
v___x_9038_ = v_reuseFailAlloc_9039_;
goto v_reusejp_9037_;
}
v_reusejp_9037_:
{
return v___x_9038_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___lam__1___boxed(lean_object* v___x_9041_, lean_object* v___x_9042_, lean_object* v___x_9043_, lean_object* v___f_9044_, lean_object* v___y_9045_, lean_object* v___y_9046_, lean_object* v___y_9047_, lean_object* v___y_9048_, lean_object* v___y_9049_, lean_object* v___y_9050_, lean_object* v___y_9051_){
_start:
{
lean_object* v_res_9052_; 
v_res_9052_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___lam__1(v___x_9041_, v___x_9042_, v___x_9043_, v___f_9044_, v___y_9045_, v___y_9046_, v___y_9047_, v___y_9048_, v___y_9049_, v___y_9050_);
lean_dec(v___y_9046_);
return v_res_9052_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar(lean_object* v_self_9054_, lean_object* v_a_9055_, lean_object* v_a_9056_, lean_object* v_a_9057_, lean_object* v_a_9058_, lean_object* v_a_9059_, lean_object* v_a_9060_){
_start:
{
lean_object* v_lib_9062_; lean_object* v_pkg_9063_; lean_object* v_name_9064_; lean_object* v_keyName_9065_; lean_object* v___x_9066_; lean_object* v___x_9067_; lean_object* v___f_9068_; lean_object* v___x_9069_; lean_object* v___x_9070_; lean_object* v___x_9071_; lean_object* v___x_9072_; lean_object* v___x_9073_; lean_object* v___f_9074_; lean_object* v___x_9075_; 
v_lib_9062_ = lean_ctor_get(v_self_9054_, 0);
v_pkg_9063_ = lean_ctor_get(v_lib_9062_, 0);
lean_inc_ref(v_pkg_9063_);
v_name_9064_ = lean_ctor_get(v_self_9054_, 1);
lean_inc(v_name_9064_);
v_keyName_9065_ = lean_ctor_get(v_pkg_9063_, 2);
v___x_9066_ = l_Lake_instDataKindFilePath;
v___x_9067_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___closed__0));
lean_inc_ref(v_self_9054_);
lean_inc(v_name_9064_);
v___f_9068_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___lam__0___boxed), 11, 3);
lean_closure_set(v___f_9068_, 0, v_name_9064_);
lean_closure_set(v___f_9068_, 1, v___x_9067_);
lean_closure_set(v___f_9068_, 2, v_self_9054_);
v___x_9069_ = l_Lake_Module_leanArtsFacet;
lean_inc(v_name_9064_);
lean_inc(v_keyName_9065_);
v___x_9070_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_9070_, 0, v_keyName_9065_);
lean_ctor_set(v___x_9070_, 1, v_name_9064_);
v___x_9071_ = l_Lake_Module_keyword;
v___x_9072_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_9072_, 0, v___x_9070_);
lean_ctor_set(v___x_9072_, 1, v___x_9071_);
lean_ctor_set(v___x_9072_, 2, v_self_9054_);
lean_ctor_set(v___x_9072_, 3, v___x_9069_);
v___x_9073_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_9073_, 0, v_pkg_9063_);
v___f_9074_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___lam__1___boxed), 11, 4);
lean_closure_set(v___f_9074_, 0, v___x_9072_);
lean_closure_set(v___f_9074_, 1, v___x_9073_);
lean_closure_set(v___f_9074_, 2, v___x_9066_);
lean_closure_set(v___f_9074_, 3, v___f_9068_);
lean_inc_ref(v_a_9059_);
v___x_9075_ = l_Lake_ensureJob___redArg(v___x_9066_, v___f_9074_, v_a_9055_, v_a_9056_, v_a_9057_, v_a_9058_, v_a_9059_, v_a_9060_);
if (lean_obj_tag(v___x_9075_) == 0)
{
lean_object* v_a_9076_; lean_object* v_a_9077_; lean_object* v___x_9079_; uint8_t v_isShared_9080_; uint8_t v_isSharedCheck_9104_; 
v_a_9076_ = lean_ctor_get(v___x_9075_, 0);
v_a_9077_ = lean_ctor_get(v___x_9075_, 1);
v_isSharedCheck_9104_ = !lean_is_exclusive(v___x_9075_);
if (v_isSharedCheck_9104_ == 0)
{
v___x_9079_ = v___x_9075_;
v_isShared_9080_ = v_isSharedCheck_9104_;
goto v_resetjp_9078_;
}
else
{
lean_inc(v_a_9077_);
lean_inc(v_a_9076_);
lean_dec(v___x_9075_);
v___x_9079_ = lean_box(0);
v_isShared_9080_ = v_isSharedCheck_9104_;
goto v_resetjp_9078_;
}
v_resetjp_9078_:
{
lean_object* v_task_9081_; lean_object* v_kind_9082_; lean_object* v___x_9084_; uint8_t v_isShared_9085_; uint8_t v_isSharedCheck_9102_; 
v_task_9081_ = lean_ctor_get(v_a_9076_, 0);
v_kind_9082_ = lean_ctor_get(v_a_9076_, 1);
v_isSharedCheck_9102_ = !lean_is_exclusive(v_a_9076_);
if (v_isSharedCheck_9102_ == 0)
{
lean_object* v_unused_9103_; 
v_unused_9103_ = lean_ctor_get(v_a_9076_, 2);
lean_dec(v_unused_9103_);
v___x_9084_ = v_a_9076_;
v_isShared_9085_ = v_isSharedCheck_9102_;
goto v_resetjp_9083_;
}
else
{
lean_inc(v_kind_9082_);
lean_inc(v_task_9081_);
lean_dec(v_a_9076_);
v___x_9084_ = lean_box(0);
v_isShared_9085_ = v_isSharedCheck_9102_;
goto v_resetjp_9083_;
}
v_resetjp_9083_:
{
lean_object* v_registeredJobs_9086_; lean_object* v___x_9087_; uint8_t v___x_9088_; lean_object* v___x_9089_; lean_object* v___x_9090_; uint8_t v___x_9091_; lean_object* v_job_9093_; 
v_registeredJobs_9086_ = lean_ctor_get(v_a_9059_, 3);
lean_inc(v_registeredJobs_9086_);
lean_dec_ref(v_a_9059_);
v___x_9087_ = lean_st_ref_take(v_registeredJobs_9086_);
v___x_9088_ = 1;
v___x_9089_ = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(v_name_9064_, v___x_9088_);
v___x_9090_ = lean_string_append(v___x_9089_, v___x_9067_);
v___x_9091_ = 0;
if (v_isShared_9085_ == 0)
{
lean_ctor_set(v___x_9084_, 2, v___x_9090_);
v_job_9093_ = v___x_9084_;
goto v_reusejp_9092_;
}
else
{
lean_object* v_reuseFailAlloc_9101_; 
v_reuseFailAlloc_9101_ = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(v_reuseFailAlloc_9101_, 0, v_task_9081_);
lean_ctor_set(v_reuseFailAlloc_9101_, 1, v_kind_9082_);
lean_ctor_set(v_reuseFailAlloc_9101_, 2, v___x_9090_);
v_job_9093_ = v_reuseFailAlloc_9101_;
goto v_reusejp_9092_;
}
v_reusejp_9092_:
{
lean_object* v___x_9094_; lean_object* v___x_9095_; lean_object* v___x_9096_; lean_object* v___x_9097_; lean_object* v___x_9099_; 
lean_ctor_set_uint8(v_job_9093_, sizeof(void*)*3, v___x_9091_);
lean_inc_ref(v_job_9093_);
v___x_9094_ = l_Lake_Job_toOpaque___redArg(v_job_9093_);
v___x_9095_ = lean_array_push(v___x_9087_, v___x_9094_);
v___x_9096_ = lean_st_ref_set(v_registeredJobs_9086_, v___x_9095_);
lean_dec(v_registeredJobs_9086_);
v___x_9097_ = l_Lake_Job_renew___redArg(v_job_9093_);
if (v_isShared_9080_ == 0)
{
lean_ctor_set(v___x_9079_, 0, v___x_9097_);
v___x_9099_ = v___x_9079_;
goto v_reusejp_9098_;
}
else
{
lean_object* v_reuseFailAlloc_9100_; 
v_reuseFailAlloc_9100_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_9100_, 0, v___x_9097_);
lean_ctor_set(v_reuseFailAlloc_9100_, 1, v_a_9077_);
v___x_9099_ = v_reuseFailAlloc_9100_;
goto v_reusejp_9098_;
}
v_reusejp_9098_:
{
return v___x_9099_;
}
}
}
}
}
else
{
lean_dec(v_name_9064_);
lean_dec_ref(v_a_9059_);
return v___x_9075_;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar___boxed(lean_object* v_self_9105_, lean_object* v_a_9106_, lean_object* v_a_9107_, lean_object* v_a_9108_, lean_object* v_a_9109_, lean_object* v_a_9110_, lean_object* v_a_9111_, lean_object* v_a_9112_){
_start:
{
lean_object* v_res_9113_; 
v_res_9113_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildLtar(v_self_9105_, v_a_9106_, v_a_9107_, v_a_9108_, v_a_9109_, v_a_9110_, v_a_9111_);
return v_res_9113_;
}
}
static lean_object* _init_l_Lake_Module_ltarFacetConfig___closed__1(void){
_start:
{
lean_object* v___f_9115_; uint8_t v___x_9116_; lean_object* v___x_9117_; lean_object* v___x_9118_; lean_object* v___x_9119_; lean_object* v___x_9120_; 
v___f_9115_ = ((lean_object*)(l_Lake_Module_leanFacetConfig___closed__0));
v___x_9116_ = 1;
v___x_9117_ = l_Lake_instDataKindFilePath;
v___x_9118_ = ((lean_object*)(l_Lake_Module_ltarFacetConfig___closed__0));
v___x_9119_ = l_Lake_Module_keyword;
v___x_9120_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_9120_, 0, v___x_9119_);
lean_ctor_set(v___x_9120_, 1, v___x_9118_);
lean_ctor_set(v___x_9120_, 2, v___x_9117_);
lean_ctor_set(v___x_9120_, 3, v___f_9115_);
lean_ctor_set_uint8(v___x_9120_, sizeof(void*)*4, v___x_9116_);
lean_ctor_set_uint8(v___x_9120_, sizeof(void*)*4 + 1, v___x_9116_);
return v___x_9120_;
}
}
static lean_object* _init_l_Lake_Module_ltarFacetConfig(void){
_start:
{
lean_object* v___x_9121_; 
v___x_9121_ = lean_obj_once(&l_Lake_Module_ltarFacetConfig___closed__1, &l_Lake_Module_ltarFacetConfig___closed__1_once, _init_l_Lake_Module_ltarFacetConfig___closed__1);
return v___x_9121_;
}
}
LEAN_EXPORT lean_object* l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___lam__0(lean_object* v_val_9122_, lean_object* v_a_x3f_9123_, lean_object* v___y_9124_){
_start:
{
lean_object* v___x_9126_; lean_object* v_log_9127_; uint8_t v_action_9128_; uint8_t v_wantsRebuild_9129_; lean_object* v_trace_9130_; lean_object* v_buildTime_9131_; lean_object* v___x_9133_; uint8_t v_isShared_9134_; uint8_t v_isSharedCheck_9142_; 
v___x_9126_ = lean_io_mono_ms_now();
v_log_9127_ = lean_ctor_get(v___y_9124_, 0);
v_action_9128_ = lean_ctor_get_uint8(v___y_9124_, sizeof(void*)*3);
v_wantsRebuild_9129_ = lean_ctor_get_uint8(v___y_9124_, sizeof(void*)*3 + 1);
v_trace_9130_ = lean_ctor_get(v___y_9124_, 1);
v_buildTime_9131_ = lean_ctor_get(v___y_9124_, 2);
v_isSharedCheck_9142_ = !lean_is_exclusive(v___y_9124_);
if (v_isSharedCheck_9142_ == 0)
{
v___x_9133_ = v___y_9124_;
v_isShared_9134_ = v_isSharedCheck_9142_;
goto v_resetjp_9132_;
}
else
{
lean_inc(v_buildTime_9131_);
lean_inc(v_trace_9130_);
lean_inc(v_log_9127_);
lean_dec(v___y_9124_);
v___x_9133_ = lean_box(0);
v_isShared_9134_ = v_isSharedCheck_9142_;
goto v_resetjp_9132_;
}
v_resetjp_9132_:
{
lean_object* v___x_9135_; lean_object* v___x_9136_; lean_object* v___x_9137_; lean_object* v___x_9139_; 
v___x_9135_ = lean_nat_sub(v___x_9126_, v_val_9122_);
lean_dec(v___x_9126_);
v___x_9136_ = lean_box(0);
v___x_9137_ = lean_nat_add(v_buildTime_9131_, v___x_9135_);
lean_dec(v___x_9135_);
lean_dec(v_buildTime_9131_);
if (v_isShared_9134_ == 0)
{
lean_ctor_set(v___x_9133_, 2, v___x_9137_);
v___x_9139_ = v___x_9133_;
goto v_reusejp_9138_;
}
else
{
lean_object* v_reuseFailAlloc_9141_; 
v_reuseFailAlloc_9141_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_9141_, 0, v_log_9127_);
lean_ctor_set(v_reuseFailAlloc_9141_, 1, v_trace_9130_);
lean_ctor_set(v_reuseFailAlloc_9141_, 2, v___x_9137_);
lean_ctor_set_uint8(v_reuseFailAlloc_9141_, sizeof(void*)*3, v_action_9128_);
lean_ctor_set_uint8(v_reuseFailAlloc_9141_, sizeof(void*)*3 + 1, v_wantsRebuild_9129_);
v___x_9139_ = v_reuseFailAlloc_9141_;
goto v_reusejp_9138_;
}
v_reusejp_9138_:
{
lean_object* v___x_9140_; 
v___x_9140_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_9140_, 0, v___x_9136_);
lean_ctor_set(v___x_9140_, 1, v___x_9139_);
return v___x_9140_;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___lam__0___boxed(lean_object* v_val_9143_, lean_object* v_a_x3f_9144_, lean_object* v___y_9145_, lean_object* v___y_9146_){
_start:
{
lean_object* v_res_9147_; 
v_res_9147_ = l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___lam__0(v_val_9143_, v_a_x3f_9144_, v___y_9145_);
lean_dec(v_a_x3f_9144_);
lean_dec(v_val_9143_);
return v_res_9147_;
}
}
LEAN_EXPORT lean_object* l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0(lean_object* v___x_9154_, lean_object* v_setup_9155_, lean_object* v_mod_9156_, lean_object* v_srcFile_9157_, lean_object* v_relSrcFile_9158_, lean_object* v_args_9159_, lean_object* v_a_9160_, lean_object* v_depTrace_9161_, lean_object* v_traceFile_9162_, uint8_t v_action_9163_, lean_object* v_a_9164_, lean_object* v_a_9165_, lean_object* v_a_9166_, lean_object* v_a_9167_, lean_object* v_a_9168_){
_start:
{
lean_object* v_a_9171_; lean_object* v_a_9172_; lean_object* v_log_9175_; uint8_t v_action_9176_; uint8_t v_wantsRebuild_9177_; lean_object* v_trace_9178_; lean_object* v_buildTime_9179_; lean_object* v_toBuildConfig_9185_; lean_object* v_log_9186_; uint8_t v_action_9187_; uint8_t v_wantsRebuild_9188_; lean_object* v_trace_9189_; lean_object* v_buildTime_9190_; lean_object* v___x_9192_; uint8_t v_isShared_9193_; uint8_t v_isSharedCheck_9370_; 
v_toBuildConfig_9185_ = lean_ctor_get(v_a_9167_, 0);
v_log_9186_ = lean_ctor_get(v_a_9168_, 0);
v_action_9187_ = lean_ctor_get_uint8(v_a_9168_, sizeof(void*)*3);
v_wantsRebuild_9188_ = lean_ctor_get_uint8(v_a_9168_, sizeof(void*)*3 + 1);
v_trace_9189_ = lean_ctor_get(v_a_9168_, 1);
v_buildTime_9190_ = lean_ctor_get(v_a_9168_, 2);
v_isSharedCheck_9370_ = !lean_is_exclusive(v_a_9168_);
if (v_isSharedCheck_9370_ == 0)
{
v___x_9192_ = v_a_9168_;
v_isShared_9193_ = v_isSharedCheck_9370_;
goto v_resetjp_9191_;
}
else
{
lean_inc(v_buildTime_9190_);
lean_inc(v_trace_9189_);
lean_inc(v_log_9186_);
lean_dec(v_a_9168_);
v___x_9192_ = lean_box(0);
v_isShared_9193_ = v_isSharedCheck_9370_;
goto v_resetjp_9191_;
}
v___jp_9170_:
{
lean_object* v___x_9173_; 
v___x_9173_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_9173_, 0, v_a_9171_);
lean_ctor_set(v___x_9173_, 1, v_a_9172_);
return v___x_9173_;
}
v___jp_9174_:
{
lean_object* v___x_9180_; lean_object* v___x_9181_; lean_object* v___x_9182_; lean_object* v___x_9183_; lean_object* v___x_9184_; 
v___x_9180_ = ((lean_object*)(l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___closed__1));
v___x_9181_ = lean_array_get_size(v_log_9175_);
v___x_9182_ = lean_array_push(v_log_9175_, v___x_9180_);
v___x_9183_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v___x_9183_, 0, v___x_9182_);
lean_ctor_set(v___x_9183_, 1, v_trace_9178_);
lean_ctor_set(v___x_9183_, 2, v_buildTime_9179_);
lean_ctor_set_uint8(v___x_9183_, sizeof(void*)*3, v_action_9176_);
lean_ctor_set_uint8(v___x_9183_, sizeof(void*)*3 + 1, v_wantsRebuild_9177_);
v___x_9184_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_9184_, 0, v___x_9181_);
lean_ctor_set(v___x_9184_, 1, v___x_9183_);
return v___x_9184_;
}
v_resetjp_9191_:
{
lean_object* v_toContext_9194_; uint8_t v_noBuild_9195_; uint8_t v___x_9196_; lean_object* v___x_9197_; lean_object* v___x_9198_; 
v_toContext_9194_ = lean_ctor_get(v_a_9167_, 1);
v_noBuild_9195_ = lean_ctor_get_uint8(v_toBuildConfig_9185_, sizeof(void*)*2 + 2);
v___x_9196_ = l_Lake_JobAction_merge(v_action_9187_, v_action_9163_);
v___x_9197_ = ((lean_object*)(l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___closed__2));
lean_inc_ref(v_traceFile_9162_);
v___x_9198_ = l_System_FilePath_addExtension(v_traceFile_9162_, v___x_9197_);
if (v_noBuild_9195_ == 0)
{
lean_object* v___x_9199_; lean_object* v___x_9200_; lean_object* v_a_9202_; lean_object* v_a_9203_; 
v___x_9199_ = lean_io_mono_ms_now();
lean_inc_ref(v_a_9160_);
lean_inc_ref(v_log_9186_);
lean_inc_ref(v_a_9167_);
lean_inc(v_a_9166_);
lean_inc(v_a_9165_);
lean_inc(v_a_9164_);
v___x_9200_ = lean_apply_7(v_a_9160_, v___x_9154_, v_a_9164_, v_a_9165_, v_a_9166_, v_a_9167_, v_log_9186_, lean_box(0));
if (lean_obj_tag(v___x_9200_) == 0)
{
lean_object* v_a_9207_; lean_object* v_a_9208_; lean_object* v___x_9209_; 
v_a_9207_ = lean_ctor_get(v___x_9200_, 0);
lean_inc(v_a_9207_);
v_a_9208_ = lean_ctor_get(v___x_9200_, 1);
lean_inc(v_a_9208_);
lean_dec_ref(v___x_9200_);
v___x_9209_ = l_Lake_Job_await___redArg(v_a_9207_, v_a_9208_);
if (lean_obj_tag(v___x_9209_) == 0)
{
lean_object* v_a_9210_; lean_object* v_a_9211_; lean_object* v_imports_9212_; lean_object* v_name_9213_; lean_object* v_package_x3f_9214_; uint8_t v_isModule_9215_; lean_object* v_imports_x3f_9216_; lean_object* v_importArts_9217_; lean_object* v_dynlibs_9218_; lean_object* v_plugins_9219_; lean_object* v_options_9220_; lean_object* v___x_9222_; uint8_t v_isShared_9223_; uint8_t v_isSharedCheck_9344_; 
v_a_9210_ = lean_ctor_get(v___x_9209_, 0);
lean_inc(v_a_9210_);
v_a_9211_ = lean_ctor_get(v___x_9209_, 1);
lean_inc(v_a_9211_);
lean_dec_ref(v___x_9209_);
v_imports_9212_ = lean_ctor_get(v_a_9210_, 3);
lean_inc_ref(v_imports_9212_);
lean_dec(v_a_9210_);
v_name_9213_ = lean_ctor_get(v_setup_9155_, 0);
v_package_x3f_9214_ = lean_ctor_get(v_setup_9155_, 1);
v_isModule_9215_ = lean_ctor_get_uint8(v_setup_9155_, sizeof(void*)*7);
v_imports_x3f_9216_ = lean_ctor_get(v_setup_9155_, 2);
v_importArts_9217_ = lean_ctor_get(v_setup_9155_, 3);
v_dynlibs_9218_ = lean_ctor_get(v_setup_9155_, 4);
v_plugins_9219_ = lean_ctor_get(v_setup_9155_, 5);
v_options_9220_ = lean_ctor_get(v_setup_9155_, 6);
v_isSharedCheck_9344_ = !lean_is_exclusive(v_setup_9155_);
if (v_isSharedCheck_9344_ == 0)
{
v___x_9222_ = v_setup_9155_;
v_isShared_9223_ = v_isSharedCheck_9344_;
goto v_resetjp_9221_;
}
else
{
lean_inc(v_options_9220_);
lean_inc(v_plugins_9219_);
lean_inc(v_dynlibs_9218_);
lean_inc(v_importArts_9217_);
lean_inc(v_imports_x3f_9216_);
lean_inc(v_package_x3f_9214_);
lean_inc(v_name_9213_);
lean_dec(v_setup_9155_);
v___x_9222_ = lean_box(0);
v_isShared_9223_ = v_isSharedCheck_9344_;
goto v_resetjp_9221_;
}
v_resetjp_9221_:
{
uint8_t v___y_9225_; 
if (v_isModule_9215_ == 0)
{
uint8_t v___x_9343_; 
v___x_9343_ = 1;
v___y_9225_ = v___x_9343_;
goto v___jp_9224_;
}
else
{
v___y_9225_ = v_noBuild_9195_;
goto v___jp_9224_;
}
v___jp_9224_:
{
lean_object* v___x_9226_; 
lean_inc_ref(v_a_9167_);
v___x_9226_ = l___private_Lake_Build_Module_0__Lake_fetchTransImportArts(v_imports_9212_, v_importArts_9217_, v___y_9225_, v_a_9160_, v_a_9164_, v_a_9165_, v_a_9166_, v_a_9167_, v_a_9211_);
lean_dec_ref(v_imports_9212_);
if (lean_obj_tag(v___x_9226_) == 0)
{
lean_object* v_a_9227_; lean_object* v_a_9228_; lean_object* v___x_9230_; 
v_a_9227_ = lean_ctor_get(v___x_9226_, 0);
lean_inc(v_a_9227_);
v_a_9228_ = lean_ctor_get(v___x_9226_, 1);
lean_inc(v_a_9228_);
lean_dec_ref(v___x_9226_);
if (v_isShared_9223_ == 0)
{
lean_ctor_set(v___x_9222_, 3, v_a_9227_);
v___x_9230_ = v___x_9222_;
goto v_reusejp_9229_;
}
else
{
lean_object* v_reuseFailAlloc_9337_; 
v_reuseFailAlloc_9337_ = lean_alloc_ctor(0, 7, 1);
lean_ctor_set(v_reuseFailAlloc_9337_, 0, v_name_9213_);
lean_ctor_set(v_reuseFailAlloc_9337_, 1, v_package_x3f_9214_);
lean_ctor_set(v_reuseFailAlloc_9337_, 2, v_imports_x3f_9216_);
lean_ctor_set(v_reuseFailAlloc_9337_, 3, v_a_9227_);
lean_ctor_set(v_reuseFailAlloc_9337_, 4, v_dynlibs_9218_);
lean_ctor_set(v_reuseFailAlloc_9337_, 5, v_plugins_9219_);
lean_ctor_set(v_reuseFailAlloc_9337_, 6, v_options_9220_);
lean_ctor_set_uint8(v_reuseFailAlloc_9337_, sizeof(void*)*7, v_isModule_9215_);
v___x_9230_ = v_reuseFailAlloc_9337_;
goto v_reusejp_9229_;
}
v_reusejp_9229_:
{
lean_object* v___x_9231_; lean_object* v___x_9232_; 
lean_inc_ref(v_srcFile_9157_);
lean_inc_ref(v_mod_9156_);
v___x_9231_ = l___private_Lake_Build_Module_0__Lake_Module_mkArtifacts(v_mod_9156_, v_srcFile_9157_, v_isModule_9215_);
lean_inc_ref(v_mod_9156_);
v___x_9232_ = l_Lake_Module_clearOutputArtifacts(v_mod_9156_);
if (lean_obj_tag(v___x_9232_) == 0)
{
lean_object* v_lakeEnv_9233_; lean_object* v_lean_9234_; lean_object* v_lib_9235_; lean_object* v_pkg_9236_; lean_object* v_config_9237_; lean_object* v_lean_9238_; lean_object* v_name_9239_; lean_object* v_dir_9240_; lean_object* v_buildDir_9241_; lean_object* v_irDir_9242_; lean_object* v___x_9243_; lean_object* v___x_9244_; lean_object* v___x_9245_; lean_object* v___x_9246_; lean_object* v___x_9247_; lean_object* v___x_9248_; lean_object* v___x_9249_; lean_object* v___x_9250_; 
lean_dec_ref(v___x_9232_);
v_lakeEnv_9233_ = lean_ctor_get(v_toContext_9194_, 1);
v_lean_9234_ = lean_ctor_get(v_lakeEnv_9233_, 1);
v_lib_9235_ = lean_ctor_get(v_mod_9156_, 0);
v_pkg_9236_ = lean_ctor_get(v_lib_9235_, 0);
v_config_9237_ = lean_ctor_get(v_pkg_9236_, 6);
v_lean_9238_ = lean_ctor_get(v_lean_9234_, 7);
v_name_9239_ = lean_ctor_get(v_mod_9156_, 1);
v_dir_9240_ = lean_ctor_get(v_pkg_9236_, 4);
v_buildDir_9241_ = lean_ctor_get(v_config_9237_, 6);
v_irDir_9242_ = lean_ctor_get(v_config_9237_, 10);
v___x_9243_ = l_Lake_Workspace_leanPath(v_toContext_9194_);
v___x_9244_ = ((lean_object*)(l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___closed__3));
lean_inc_ref(v_buildDir_9241_);
v___x_9245_ = l_System_FilePath_normalize(v_buildDir_9241_);
lean_inc_ref(v_dir_9240_);
v___x_9246_ = l_Lake_joinRelative(v_dir_9240_, v___x_9245_);
lean_inc_ref(v_irDir_9242_);
v___x_9247_ = l_System_FilePath_normalize(v_irDir_9242_);
v___x_9248_ = l_Lake_joinRelative(v___x_9246_, v___x_9247_);
lean_inc(v_name_9239_);
v___x_9249_ = l_Lean_modToFilePath(v___x_9248_, v_name_9239_, v___x_9244_);
lean_dec_ref(v___x_9248_);
lean_inc_ref(v_lean_9238_);
v___x_9250_ = l_Lake_compileLeanModule(v_srcFile_9157_, v_relSrcFile_9158_, v___x_9230_, v___x_9249_, v___x_9231_, v_args_9159_, v___x_9243_, v_lean_9238_, v_a_9228_);
if (lean_obj_tag(v___x_9250_) == 0)
{
lean_object* v_a_9251_; lean_object* v___x_9252_; 
v_a_9251_ = lean_ctor_get(v___x_9250_, 1);
lean_inc(v_a_9251_);
lean_dec_ref(v___x_9250_);
lean_inc_ref(v_mod_9156_);
v___x_9252_ = l_Lake_Module_clearOutputHashes(v_mod_9156_);
if (lean_obj_tag(v___x_9252_) == 0)
{
lean_object* v___x_9253_; 
lean_dec_ref(v___x_9252_);
v___x_9253_ = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___redArg(v_mod_9156_, v_isModule_9215_, v_a_9167_, v_a_9251_);
lean_dec_ref(v_a_9167_);
if (lean_obj_tag(v___x_9253_) == 0)
{
lean_object* v_a_9254_; lean_object* v_a_9255_; lean_object* v___x_9256_; lean_object* v___x_9257_; lean_object* v___x_9258_; lean_object* v___x_9259_; lean_object* v___x_9260_; lean_object* v___x_9261_; lean_object* v___x_9262_; 
v_a_9254_ = lean_ctor_get(v___x_9253_, 0);
lean_inc(v_a_9254_);
v_a_9255_ = lean_ctor_get(v___x_9253_, 1);
lean_inc(v_a_9255_);
lean_dec_ref(v___x_9253_);
v___x_9256_ = lean_array_get_size(v_log_9186_);
lean_dec_ref(v_log_9186_);
v___x_9257_ = lean_array_get_size(v_a_9255_);
v___x_9258_ = l_Array_extract___redArg(v_a_9255_, v___x_9256_, v___x_9257_);
lean_inc(v_a_9254_);
v___x_9259_ = l_Lake_ModuleOutputArtifacts_descrs(v_a_9254_);
v___x_9260_ = l_Lake_ModuleOutputDescrs_toJson(v___x_9259_);
v___x_9261_ = l___private_Lake_Build_Common_0__Lake_BuildMetadata_ofBuildCore(v_depTrace_9161_, v___x_9260_, v___x_9258_);
v___x_9262_ = l_Lake_BuildMetadata_writeFile(v_traceFile_9162_, v___x_9261_);
if (lean_obj_tag(v___x_9262_) == 0)
{
lean_object* v___x_9264_; uint8_t v_isShared_9265_; uint8_t v_isSharedCheck_9299_; 
v_isSharedCheck_9299_ = !lean_is_exclusive(v___x_9262_);
if (v_isSharedCheck_9299_ == 0)
{
lean_object* v_unused_9300_; 
v_unused_9300_ = lean_ctor_get(v___x_9262_, 0);
lean_dec(v_unused_9300_);
v___x_9264_ = v___x_9262_;
v_isShared_9265_ = v_isSharedCheck_9299_;
goto v_resetjp_9263_;
}
else
{
lean_dec(v___x_9262_);
v___x_9264_ = lean_box(0);
v_isShared_9265_ = v_isSharedCheck_9299_;
goto v_resetjp_9263_;
}
v_resetjp_9263_:
{
lean_object* v___x_9266_; 
v___x_9266_ = l_Lake_removeFileIfExists(v___x_9198_);
lean_dec_ref(v___x_9198_);
if (lean_obj_tag(v___x_9266_) == 0)
{
lean_object* v___x_9268_; uint8_t v_isShared_9269_; uint8_t v_isSharedCheck_9289_; 
v_isSharedCheck_9289_ = !lean_is_exclusive(v___x_9266_);
if (v_isSharedCheck_9289_ == 0)
{
lean_object* v_unused_9290_; 
v_unused_9290_ = lean_ctor_get(v___x_9266_, 0);
lean_dec(v_unused_9290_);
v___x_9268_ = v___x_9266_;
v_isShared_9269_ = v_isSharedCheck_9289_;
goto v_resetjp_9267_;
}
else
{
lean_dec(v___x_9266_);
v___x_9268_ = lean_box(0);
v_isShared_9269_ = v_isSharedCheck_9289_;
goto v_resetjp_9267_;
}
v_resetjp_9267_:
{
lean_object* v___x_9271_; 
if (v_isShared_9193_ == 0)
{
lean_ctor_set(v___x_9192_, 0, v_a_9255_);
v___x_9271_ = v___x_9192_;
goto v_reusejp_9270_;
}
else
{
lean_object* v_reuseFailAlloc_9288_; 
v_reuseFailAlloc_9288_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_9288_, 0, v_a_9255_);
lean_ctor_set(v_reuseFailAlloc_9288_, 1, v_trace_9189_);
lean_ctor_set(v_reuseFailAlloc_9288_, 2, v_buildTime_9190_);
lean_ctor_set_uint8(v_reuseFailAlloc_9288_, sizeof(void*)*3 + 1, v_wantsRebuild_9188_);
v___x_9271_ = v_reuseFailAlloc_9288_;
goto v_reusejp_9270_;
}
v_reusejp_9270_:
{
lean_object* v___x_9273_; 
lean_ctor_set_uint8(v___x_9271_, sizeof(void*)*3, v___x_9196_);
lean_inc(v_a_9254_);
if (v_isShared_9269_ == 0)
{
lean_ctor_set(v___x_9268_, 0, v_a_9254_);
v___x_9273_ = v___x_9268_;
goto v_reusejp_9272_;
}
else
{
lean_object* v_reuseFailAlloc_9287_; 
v_reuseFailAlloc_9287_ = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(v_reuseFailAlloc_9287_, 0, v_a_9254_);
v___x_9273_ = v_reuseFailAlloc_9287_;
goto v_reusejp_9272_;
}
v_reusejp_9272_:
{
lean_object* v___x_9275_; 
if (v_isShared_9265_ == 0)
{
lean_ctor_set_tag(v___x_9264_, 1);
lean_ctor_set(v___x_9264_, 0, v___x_9273_);
v___x_9275_ = v___x_9264_;
goto v_reusejp_9274_;
}
else
{
lean_object* v_reuseFailAlloc_9286_; 
v_reuseFailAlloc_9286_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_9286_, 0, v___x_9273_);
v___x_9275_ = v_reuseFailAlloc_9286_;
goto v_reusejp_9274_;
}
v_reusejp_9274_:
{
lean_object* v___x_9276_; lean_object* v_a_9277_; lean_object* v___x_9279_; uint8_t v_isShared_9280_; uint8_t v_isSharedCheck_9284_; 
v___x_9276_ = l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___lam__0(v___x_9199_, v___x_9275_, v___x_9271_);
lean_dec_ref(v___x_9275_);
lean_dec(v___x_9199_);
v_a_9277_ = lean_ctor_get(v___x_9276_, 1);
v_isSharedCheck_9284_ = !lean_is_exclusive(v___x_9276_);
if (v_isSharedCheck_9284_ == 0)
{
lean_object* v_unused_9285_; 
v_unused_9285_ = lean_ctor_get(v___x_9276_, 0);
lean_dec(v_unused_9285_);
v___x_9279_ = v___x_9276_;
v_isShared_9280_ = v_isSharedCheck_9284_;
goto v_resetjp_9278_;
}
else
{
lean_inc(v_a_9277_);
lean_dec(v___x_9276_);
v___x_9279_ = lean_box(0);
v_isShared_9280_ = v_isSharedCheck_9284_;
goto v_resetjp_9278_;
}
v_resetjp_9278_:
{
lean_object* v___x_9282_; 
if (v_isShared_9280_ == 0)
{
lean_ctor_set(v___x_9279_, 0, v_a_9254_);
v___x_9282_ = v___x_9279_;
goto v_reusejp_9281_;
}
else
{
lean_object* v_reuseFailAlloc_9283_; 
v_reuseFailAlloc_9283_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_9283_, 0, v_a_9254_);
lean_ctor_set(v_reuseFailAlloc_9283_, 1, v_a_9277_);
v___x_9282_ = v_reuseFailAlloc_9283_;
goto v_reusejp_9281_;
}
v_reusejp_9281_:
{
return v___x_9282_;
}
}
}
}
}
}
}
else
{
lean_object* v_a_9291_; lean_object* v___x_9292_; uint8_t v___x_9293_; lean_object* v___x_9294_; lean_object* v___x_9295_; lean_object* v___x_9297_; 
lean_del_object(v___x_9264_);
lean_dec(v_a_9254_);
v_a_9291_ = lean_ctor_get(v___x_9266_, 0);
lean_inc(v_a_9291_);
lean_dec_ref(v___x_9266_);
v___x_9292_ = lean_io_error_to_string(v_a_9291_);
v___x_9293_ = 3;
v___x_9294_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_9294_, 0, v___x_9292_);
lean_ctor_set_uint8(v___x_9294_, sizeof(void*)*1, v___x_9293_);
v___x_9295_ = lean_array_push(v_a_9255_, v___x_9294_);
if (v_isShared_9193_ == 0)
{
lean_ctor_set(v___x_9192_, 0, v___x_9295_);
v___x_9297_ = v___x_9192_;
goto v_reusejp_9296_;
}
else
{
lean_object* v_reuseFailAlloc_9298_; 
v_reuseFailAlloc_9298_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_9298_, 0, v___x_9295_);
lean_ctor_set(v_reuseFailAlloc_9298_, 1, v_trace_9189_);
lean_ctor_set(v_reuseFailAlloc_9298_, 2, v_buildTime_9190_);
lean_ctor_set_uint8(v_reuseFailAlloc_9298_, sizeof(void*)*3 + 1, v_wantsRebuild_9188_);
v___x_9297_ = v_reuseFailAlloc_9298_;
goto v_reusejp_9296_;
}
v_reusejp_9296_:
{
lean_ctor_set_uint8(v___x_9297_, sizeof(void*)*3, v___x_9196_);
v_a_9202_ = v___x_9257_;
v_a_9203_ = v___x_9297_;
goto v___jp_9201_;
}
}
}
}
else
{
lean_object* v_a_9301_; lean_object* v___x_9302_; uint8_t v___x_9303_; lean_object* v___x_9304_; lean_object* v___x_9305_; lean_object* v___x_9307_; 
lean_dec(v_a_9254_);
lean_dec_ref(v___x_9198_);
v_a_9301_ = lean_ctor_get(v___x_9262_, 0);
lean_inc(v_a_9301_);
lean_dec_ref(v___x_9262_);
v___x_9302_ = lean_io_error_to_string(v_a_9301_);
v___x_9303_ = 3;
v___x_9304_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_9304_, 0, v___x_9302_);
lean_ctor_set_uint8(v___x_9304_, sizeof(void*)*1, v___x_9303_);
v___x_9305_ = lean_array_push(v_a_9255_, v___x_9304_);
if (v_isShared_9193_ == 0)
{
lean_ctor_set(v___x_9192_, 0, v___x_9305_);
v___x_9307_ = v___x_9192_;
goto v_reusejp_9306_;
}
else
{
lean_object* v_reuseFailAlloc_9308_; 
v_reuseFailAlloc_9308_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_9308_, 0, v___x_9305_);
lean_ctor_set(v_reuseFailAlloc_9308_, 1, v_trace_9189_);
lean_ctor_set(v_reuseFailAlloc_9308_, 2, v_buildTime_9190_);
lean_ctor_set_uint8(v_reuseFailAlloc_9308_, sizeof(void*)*3 + 1, v_wantsRebuild_9188_);
v___x_9307_ = v_reuseFailAlloc_9308_;
goto v_reusejp_9306_;
}
v_reusejp_9306_:
{
lean_ctor_set_uint8(v___x_9307_, sizeof(void*)*3, v___x_9196_);
v_a_9202_ = v___x_9257_;
v_a_9203_ = v___x_9307_;
goto v___jp_9201_;
}
}
}
else
{
lean_object* v_a_9309_; lean_object* v_a_9310_; lean_object* v___x_9312_; 
lean_dec_ref(v___x_9198_);
lean_dec_ref(v_log_9186_);
lean_dec_ref(v_traceFile_9162_);
v_a_9309_ = lean_ctor_get(v___x_9253_, 0);
lean_inc(v_a_9309_);
v_a_9310_ = lean_ctor_get(v___x_9253_, 1);
lean_inc(v_a_9310_);
lean_dec_ref(v___x_9253_);
if (v_isShared_9193_ == 0)
{
lean_ctor_set(v___x_9192_, 0, v_a_9310_);
v___x_9312_ = v___x_9192_;
goto v_reusejp_9311_;
}
else
{
lean_object* v_reuseFailAlloc_9313_; 
v_reuseFailAlloc_9313_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_9313_, 0, v_a_9310_);
lean_ctor_set(v_reuseFailAlloc_9313_, 1, v_trace_9189_);
lean_ctor_set(v_reuseFailAlloc_9313_, 2, v_buildTime_9190_);
lean_ctor_set_uint8(v_reuseFailAlloc_9313_, sizeof(void*)*3 + 1, v_wantsRebuild_9188_);
v___x_9312_ = v_reuseFailAlloc_9313_;
goto v_reusejp_9311_;
}
v_reusejp_9311_:
{
lean_ctor_set_uint8(v___x_9312_, sizeof(void*)*3, v___x_9196_);
v_a_9202_ = v_a_9309_;
v_a_9203_ = v___x_9312_;
goto v___jp_9201_;
}
}
}
else
{
lean_object* v_a_9314_; lean_object* v___x_9315_; uint8_t v___x_9316_; lean_object* v___x_9317_; lean_object* v___x_9318_; lean_object* v___x_9319_; lean_object* v___x_9321_; 
lean_dec_ref(v___x_9198_);
lean_dec_ref(v_log_9186_);
lean_dec_ref(v_a_9167_);
lean_dec_ref(v_traceFile_9162_);
lean_dec_ref(v_mod_9156_);
v_a_9314_ = lean_ctor_get(v___x_9252_, 0);
lean_inc(v_a_9314_);
lean_dec_ref(v___x_9252_);
v___x_9315_ = lean_io_error_to_string(v_a_9314_);
v___x_9316_ = 3;
v___x_9317_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_9317_, 0, v___x_9315_);
lean_ctor_set_uint8(v___x_9317_, sizeof(void*)*1, v___x_9316_);
v___x_9318_ = lean_array_get_size(v_a_9251_);
v___x_9319_ = lean_array_push(v_a_9251_, v___x_9317_);
if (v_isShared_9193_ == 0)
{
lean_ctor_set(v___x_9192_, 0, v___x_9319_);
v___x_9321_ = v___x_9192_;
goto v_reusejp_9320_;
}
else
{
lean_object* v_reuseFailAlloc_9322_; 
v_reuseFailAlloc_9322_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_9322_, 0, v___x_9319_);
lean_ctor_set(v_reuseFailAlloc_9322_, 1, v_trace_9189_);
lean_ctor_set(v_reuseFailAlloc_9322_, 2, v_buildTime_9190_);
lean_ctor_set_uint8(v_reuseFailAlloc_9322_, sizeof(void*)*3 + 1, v_wantsRebuild_9188_);
v___x_9321_ = v_reuseFailAlloc_9322_;
goto v_reusejp_9320_;
}
v_reusejp_9320_:
{
lean_ctor_set_uint8(v___x_9321_, sizeof(void*)*3, v___x_9196_);
v_a_9202_ = v___x_9318_;
v_a_9203_ = v___x_9321_;
goto v___jp_9201_;
}
}
}
else
{
lean_object* v_a_9323_; lean_object* v_a_9324_; lean_object* v___x_9326_; 
lean_dec_ref(v___x_9198_);
lean_dec_ref(v_log_9186_);
lean_dec_ref(v_a_9167_);
lean_dec_ref(v_traceFile_9162_);
lean_dec_ref(v_mod_9156_);
v_a_9323_ = lean_ctor_get(v___x_9250_, 0);
lean_inc(v_a_9323_);
v_a_9324_ = lean_ctor_get(v___x_9250_, 1);
lean_inc(v_a_9324_);
lean_dec_ref(v___x_9250_);
if (v_isShared_9193_ == 0)
{
lean_ctor_set(v___x_9192_, 0, v_a_9324_);
v___x_9326_ = v___x_9192_;
goto v_reusejp_9325_;
}
else
{
lean_object* v_reuseFailAlloc_9327_; 
v_reuseFailAlloc_9327_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_9327_, 0, v_a_9324_);
lean_ctor_set(v_reuseFailAlloc_9327_, 1, v_trace_9189_);
lean_ctor_set(v_reuseFailAlloc_9327_, 2, v_buildTime_9190_);
lean_ctor_set_uint8(v_reuseFailAlloc_9327_, sizeof(void*)*3 + 1, v_wantsRebuild_9188_);
v___x_9326_ = v_reuseFailAlloc_9327_;
goto v_reusejp_9325_;
}
v_reusejp_9325_:
{
lean_ctor_set_uint8(v___x_9326_, sizeof(void*)*3, v___x_9196_);
v_a_9202_ = v_a_9323_;
v_a_9203_ = v___x_9326_;
goto v___jp_9201_;
}
}
}
else
{
lean_object* v_a_9328_; lean_object* v___x_9329_; uint8_t v___x_9330_; lean_object* v___x_9331_; lean_object* v___x_9332_; lean_object* v___x_9333_; lean_object* v___x_9335_; 
lean_dec_ref(v___x_9231_);
lean_dec_ref(v___x_9230_);
lean_dec_ref(v___x_9198_);
lean_dec_ref(v_log_9186_);
lean_dec_ref(v_a_9167_);
lean_dec_ref(v_traceFile_9162_);
lean_dec_ref(v_args_9159_);
lean_dec_ref(v_relSrcFile_9158_);
lean_dec_ref(v_srcFile_9157_);
lean_dec_ref(v_mod_9156_);
v_a_9328_ = lean_ctor_get(v___x_9232_, 0);
lean_inc(v_a_9328_);
lean_dec_ref(v___x_9232_);
v___x_9329_ = lean_io_error_to_string(v_a_9328_);
v___x_9330_ = 3;
v___x_9331_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_9331_, 0, v___x_9329_);
lean_ctor_set_uint8(v___x_9331_, sizeof(void*)*1, v___x_9330_);
v___x_9332_ = lean_array_get_size(v_a_9228_);
v___x_9333_ = lean_array_push(v_a_9228_, v___x_9331_);
if (v_isShared_9193_ == 0)
{
lean_ctor_set(v___x_9192_, 0, v___x_9333_);
v___x_9335_ = v___x_9192_;
goto v_reusejp_9334_;
}
else
{
lean_object* v_reuseFailAlloc_9336_; 
v_reuseFailAlloc_9336_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_9336_, 0, v___x_9333_);
lean_ctor_set(v_reuseFailAlloc_9336_, 1, v_trace_9189_);
lean_ctor_set(v_reuseFailAlloc_9336_, 2, v_buildTime_9190_);
lean_ctor_set_uint8(v_reuseFailAlloc_9336_, sizeof(void*)*3 + 1, v_wantsRebuild_9188_);
v___x_9335_ = v_reuseFailAlloc_9336_;
goto v_reusejp_9334_;
}
v_reusejp_9334_:
{
lean_ctor_set_uint8(v___x_9335_, sizeof(void*)*3, v___x_9196_);
v_a_9202_ = v___x_9332_;
v_a_9203_ = v___x_9335_;
goto v___jp_9201_;
}
}
}
}
else
{
lean_object* v_a_9338_; lean_object* v_a_9339_; lean_object* v___x_9341_; 
lean_del_object(v___x_9222_);
lean_dec(v_options_9220_);
lean_dec_ref(v_plugins_9219_);
lean_dec_ref(v_dynlibs_9218_);
lean_dec(v_imports_x3f_9216_);
lean_dec(v_package_x3f_9214_);
lean_dec(v_name_9213_);
lean_dec_ref(v___x_9198_);
lean_dec_ref(v_log_9186_);
lean_dec_ref(v_a_9167_);
lean_dec_ref(v_traceFile_9162_);
lean_dec_ref(v_args_9159_);
lean_dec_ref(v_relSrcFile_9158_);
lean_dec_ref(v_srcFile_9157_);
lean_dec_ref(v_mod_9156_);
v_a_9338_ = lean_ctor_get(v___x_9226_, 0);
lean_inc(v_a_9338_);
v_a_9339_ = lean_ctor_get(v___x_9226_, 1);
lean_inc(v_a_9339_);
lean_dec_ref(v___x_9226_);
if (v_isShared_9193_ == 0)
{
lean_ctor_set(v___x_9192_, 0, v_a_9339_);
v___x_9341_ = v___x_9192_;
goto v_reusejp_9340_;
}
else
{
lean_object* v_reuseFailAlloc_9342_; 
v_reuseFailAlloc_9342_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_9342_, 0, v_a_9339_);
lean_ctor_set(v_reuseFailAlloc_9342_, 1, v_trace_9189_);
lean_ctor_set(v_reuseFailAlloc_9342_, 2, v_buildTime_9190_);
lean_ctor_set_uint8(v_reuseFailAlloc_9342_, sizeof(void*)*3 + 1, v_wantsRebuild_9188_);
v___x_9341_ = v_reuseFailAlloc_9342_;
goto v_reusejp_9340_;
}
v_reusejp_9340_:
{
lean_ctor_set_uint8(v___x_9341_, sizeof(void*)*3, v___x_9196_);
v_a_9202_ = v_a_9338_;
v_a_9203_ = v___x_9341_;
goto v___jp_9201_;
}
}
}
}
}
else
{
lean_object* v_a_9345_; lean_object* v_a_9346_; lean_object* v___x_9348_; 
lean_dec_ref(v___x_9198_);
lean_dec_ref(v_log_9186_);
lean_dec_ref(v_a_9167_);
lean_dec(v_a_9166_);
lean_dec(v_a_9165_);
lean_dec(v_a_9164_);
lean_dec_ref(v_traceFile_9162_);
lean_dec_ref(v_a_9160_);
lean_dec_ref(v_args_9159_);
lean_dec_ref(v_relSrcFile_9158_);
lean_dec_ref(v_srcFile_9157_);
lean_dec_ref(v_mod_9156_);
lean_dec_ref(v_setup_9155_);
v_a_9345_ = lean_ctor_get(v___x_9209_, 0);
lean_inc(v_a_9345_);
v_a_9346_ = lean_ctor_get(v___x_9209_, 1);
lean_inc(v_a_9346_);
lean_dec_ref(v___x_9209_);
if (v_isShared_9193_ == 0)
{
lean_ctor_set(v___x_9192_, 0, v_a_9346_);
v___x_9348_ = v___x_9192_;
goto v_reusejp_9347_;
}
else
{
lean_object* v_reuseFailAlloc_9349_; 
v_reuseFailAlloc_9349_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_9349_, 0, v_a_9346_);
lean_ctor_set(v_reuseFailAlloc_9349_, 1, v_trace_9189_);
lean_ctor_set(v_reuseFailAlloc_9349_, 2, v_buildTime_9190_);
lean_ctor_set_uint8(v_reuseFailAlloc_9349_, sizeof(void*)*3 + 1, v_wantsRebuild_9188_);
v___x_9348_ = v_reuseFailAlloc_9349_;
goto v_reusejp_9347_;
}
v_reusejp_9347_:
{
lean_ctor_set_uint8(v___x_9348_, sizeof(void*)*3, v___x_9196_);
v_a_9202_ = v_a_9345_;
v_a_9203_ = v___x_9348_;
goto v___jp_9201_;
}
}
}
else
{
lean_object* v_a_9350_; lean_object* v_a_9351_; lean_object* v___x_9353_; 
lean_dec_ref(v___x_9198_);
lean_dec_ref(v_log_9186_);
lean_dec_ref(v_a_9167_);
lean_dec(v_a_9166_);
lean_dec(v_a_9165_);
lean_dec(v_a_9164_);
lean_dec_ref(v_traceFile_9162_);
lean_dec_ref(v_a_9160_);
lean_dec_ref(v_args_9159_);
lean_dec_ref(v_relSrcFile_9158_);
lean_dec_ref(v_srcFile_9157_);
lean_dec_ref(v_mod_9156_);
lean_dec_ref(v_setup_9155_);
v_a_9350_ = lean_ctor_get(v___x_9200_, 0);
lean_inc(v_a_9350_);
v_a_9351_ = lean_ctor_get(v___x_9200_, 1);
lean_inc(v_a_9351_);
lean_dec_ref(v___x_9200_);
if (v_isShared_9193_ == 0)
{
lean_ctor_set(v___x_9192_, 0, v_a_9351_);
v___x_9353_ = v___x_9192_;
goto v_reusejp_9352_;
}
else
{
lean_object* v_reuseFailAlloc_9354_; 
v_reuseFailAlloc_9354_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_9354_, 0, v_a_9351_);
lean_ctor_set(v_reuseFailAlloc_9354_, 1, v_trace_9189_);
lean_ctor_set(v_reuseFailAlloc_9354_, 2, v_buildTime_9190_);
lean_ctor_set_uint8(v_reuseFailAlloc_9354_, sizeof(void*)*3 + 1, v_wantsRebuild_9188_);
v___x_9353_ = v_reuseFailAlloc_9354_;
goto v_reusejp_9352_;
}
v_reusejp_9352_:
{
lean_ctor_set_uint8(v___x_9353_, sizeof(void*)*3, v___x_9196_);
v_a_9202_ = v_a_9350_;
v_a_9203_ = v___x_9353_;
goto v___jp_9201_;
}
}
v___jp_9201_:
{
lean_object* v___x_9204_; lean_object* v___x_9205_; lean_object* v_a_9206_; 
v___x_9204_ = lean_box(0);
v___x_9205_ = l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___lam__0(v___x_9199_, v___x_9204_, v_a_9203_);
lean_dec(v___x_9199_);
v_a_9206_ = lean_ctor_get(v___x_9205_, 1);
lean_inc(v_a_9206_);
lean_dec_ref(v___x_9205_);
v_a_9171_ = v_a_9202_;
v_a_9172_ = v_a_9206_;
goto v___jp_9170_;
}
}
else
{
uint8_t v___x_9355_; 
lean_dec_ref(v_a_9167_);
lean_dec(v_a_9166_);
lean_dec(v_a_9165_);
lean_dec(v_a_9164_);
lean_dec_ref(v_a_9160_);
lean_dec_ref(v_args_9159_);
lean_dec_ref(v_relSrcFile_9158_);
lean_dec_ref(v_srcFile_9157_);
lean_dec_ref(v_mod_9156_);
lean_dec_ref(v_setup_9155_);
lean_dec_ref(v___x_9154_);
v___x_9355_ = l_System_FilePath_pathExists(v_traceFile_9162_);
lean_dec_ref(v_traceFile_9162_);
if (v___x_9355_ == 0)
{
lean_dec_ref(v___x_9198_);
lean_del_object(v___x_9192_);
v_log_9175_ = v_log_9186_;
v_action_9176_ = v___x_9196_;
v_wantsRebuild_9177_ = v_noBuild_9195_;
v_trace_9178_ = v_trace_9189_;
v_buildTime_9179_ = v_buildTime_9190_;
goto v___jp_9174_;
}
else
{
lean_object* v___x_9356_; lean_object* v___x_9357_; lean_object* v___x_9358_; lean_object* v___x_9359_; 
v___x_9356_ = lean_box(0);
v___x_9357_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__5));
v___x_9358_ = l___private_Lake_Build_Common_0__Lake_BuildMetadata_ofBuildCore(v_depTrace_9161_, v___x_9356_, v___x_9357_);
v___x_9359_ = l_Lake_BuildMetadata_writeFile(v___x_9198_, v___x_9358_);
if (lean_obj_tag(v___x_9359_) == 0)
{
lean_dec_ref(v___x_9359_);
lean_del_object(v___x_9192_);
v_log_9175_ = v_log_9186_;
v_action_9176_ = v___x_9196_;
v_wantsRebuild_9177_ = v_noBuild_9195_;
v_trace_9178_ = v_trace_9189_;
v_buildTime_9179_ = v_buildTime_9190_;
goto v___jp_9174_;
}
else
{
lean_object* v_a_9360_; lean_object* v___x_9361_; uint8_t v___x_9362_; lean_object* v___x_9363_; lean_object* v___x_9364_; lean_object* v___x_9365_; lean_object* v___x_9367_; 
v_a_9360_ = lean_ctor_get(v___x_9359_, 0);
lean_inc(v_a_9360_);
lean_dec_ref(v___x_9359_);
v___x_9361_ = lean_io_error_to_string(v_a_9360_);
v___x_9362_ = 3;
v___x_9363_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_9363_, 0, v___x_9361_);
lean_ctor_set_uint8(v___x_9363_, sizeof(void*)*1, v___x_9362_);
v___x_9364_ = lean_array_get_size(v_log_9186_);
v___x_9365_ = lean_array_push(v_log_9186_, v___x_9363_);
if (v_isShared_9193_ == 0)
{
lean_ctor_set(v___x_9192_, 0, v___x_9365_);
v___x_9367_ = v___x_9192_;
goto v_reusejp_9366_;
}
else
{
lean_object* v_reuseFailAlloc_9369_; 
v_reuseFailAlloc_9369_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_9369_, 0, v___x_9365_);
lean_ctor_set(v_reuseFailAlloc_9369_, 1, v_trace_9189_);
lean_ctor_set(v_reuseFailAlloc_9369_, 2, v_buildTime_9190_);
v___x_9367_ = v_reuseFailAlloc_9369_;
goto v_reusejp_9366_;
}
v_reusejp_9366_:
{
lean_object* v___x_9368_; 
lean_ctor_set_uint8(v___x_9367_, sizeof(void*)*3, v___x_9196_);
lean_ctor_set_uint8(v___x_9367_, sizeof(void*)*3 + 1, v_noBuild_9195_);
v___x_9368_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_9368_, 0, v___x_9364_);
lean_ctor_set(v___x_9368_, 1, v___x_9367_);
return v___x_9368_;
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___boxed(lean_object* v___x_9371_, lean_object* v_setup_9372_, lean_object* v_mod_9373_, lean_object* v_srcFile_9374_, lean_object* v_relSrcFile_9375_, lean_object* v_args_9376_, lean_object* v_a_9377_, lean_object* v_depTrace_9378_, lean_object* v_traceFile_9379_, lean_object* v_action_9380_, lean_object* v_a_9381_, lean_object* v_a_9382_, lean_object* v_a_9383_, lean_object* v_a_9384_, lean_object* v_a_9385_, lean_object* v_a_9386_){
_start:
{
uint8_t v_action_boxed_9387_; lean_object* v_res_9388_; 
v_action_boxed_9387_ = lean_unbox(v_action_9380_);
v_res_9388_ = l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0(v___x_9371_, v_setup_9372_, v_mod_9373_, v_srcFile_9374_, v_relSrcFile_9375_, v_args_9376_, v_a_9377_, v_depTrace_9378_, v_traceFile_9379_, v_action_boxed_9387_, v_a_9381_, v_a_9382_, v_a_9383_, v_a_9384_, v_a_9385_);
lean_dec_ref(v_depTrace_9378_);
return v_res_9388_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_buildLean(lean_object* v_mod_9389_, lean_object* v_depTrace_9390_, lean_object* v_srcFile_9391_, lean_object* v_setup_9392_, lean_object* v_a_9393_, lean_object* v_a_9394_, lean_object* v_a_9395_, lean_object* v_a_9396_, lean_object* v_a_9397_, lean_object* v_a_9398_){
_start:
{
lean_object* v_lib_9400_; lean_object* v_pkg_9401_; lean_object* v_config_9402_; lean_object* v_toLeanConfig_9403_; lean_object* v_config_9404_; lean_object* v_toLeanConfig_9405_; lean_object* v_name_9406_; lean_object* v_keyName_9407_; lean_object* v_dir_9408_; lean_object* v_buildDir_9409_; lean_object* v_leanLibDir_9410_; uint8_t v_buildType_9411_; lean_object* v_moreLeanArgs_9412_; lean_object* v_weakLeanArgs_9413_; uint8_t v_buildType_9414_; lean_object* v_moreLeanArgs_9415_; lean_object* v_weakLeanArgs_9416_; lean_object* v___x_9417_; lean_object* v___x_9418_; lean_object* v___x_9419_; lean_object* v___x_9420_; lean_object* v___x_9421_; lean_object* v___x_9422_; lean_object* v___x_9423_; uint8_t v___y_9425_; uint8_t v___x_9437_; 
v_lib_9400_ = lean_ctor_get(v_mod_9389_, 0);
v_pkg_9401_ = lean_ctor_get(v_lib_9400_, 0);
v_config_9402_ = lean_ctor_get(v_pkg_9401_, 6);
v_toLeanConfig_9403_ = lean_ctor_get(v_config_9402_, 1);
v_config_9404_ = lean_ctor_get(v_lib_9400_, 2);
v_toLeanConfig_9405_ = lean_ctor_get(v_config_9404_, 0);
v_name_9406_ = lean_ctor_get(v_mod_9389_, 1);
v_keyName_9407_ = lean_ctor_get(v_pkg_9401_, 2);
v_dir_9408_ = lean_ctor_get(v_pkg_9401_, 4);
v_buildDir_9409_ = lean_ctor_get(v_config_9402_, 6);
v_leanLibDir_9410_ = lean_ctor_get(v_config_9402_, 7);
v_buildType_9411_ = lean_ctor_get_uint8(v_toLeanConfig_9403_, sizeof(void*)*13);
v_moreLeanArgs_9412_ = lean_ctor_get(v_toLeanConfig_9403_, 1);
v_weakLeanArgs_9413_ = lean_ctor_get(v_toLeanConfig_9403_, 2);
v_buildType_9414_ = lean_ctor_get_uint8(v_toLeanConfig_9405_, sizeof(void*)*13);
v_moreLeanArgs_9415_ = lean_ctor_get(v_toLeanConfig_9405_, 1);
v_weakLeanArgs_9416_ = lean_ctor_get(v_toLeanConfig_9405_, 2);
v___x_9417_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__4));
lean_inc_ref(v_buildDir_9409_);
v___x_9418_ = l_System_FilePath_normalize(v_buildDir_9409_);
lean_inc_ref(v_dir_9408_);
v___x_9419_ = l_Lake_joinRelative(v_dir_9408_, v___x_9418_);
lean_inc_ref(v_leanLibDir_9410_);
v___x_9420_ = l_System_FilePath_normalize(v_leanLibDir_9410_);
v___x_9421_ = l_Lake_joinRelative(v___x_9419_, v___x_9420_);
lean_inc(v_name_9406_);
v___x_9422_ = l_Lean_modToFilePath(v___x_9421_, v_name_9406_, v___x_9417_);
lean_dec_ref(v___x_9421_);
lean_inc_ref(v_weakLeanArgs_9413_);
v___x_9423_ = l_Array_append___redArg(v_weakLeanArgs_9413_, v_weakLeanArgs_9416_);
v___x_9437_ = l_Lake_instOrdBuildType_ord(v_buildType_9411_, v_buildType_9414_);
if (v___x_9437_ == 2)
{
v___y_9425_ = v_buildType_9414_;
goto v___jp_9424_;
}
else
{
v___y_9425_ = v_buildType_9411_;
goto v___jp_9424_;
}
v___jp_9424_:
{
lean_object* v___x_9426_; lean_object* v___x_9427_; lean_object* v___x_9428_; lean_object* v_args_9429_; lean_object* v_relSrcFile_9430_; lean_object* v___x_9431_; lean_object* v___x_9432_; lean_object* v___x_9433_; lean_object* v___x_9434_; uint8_t v___x_9435_; lean_object* v___x_9436_; 
v___x_9426_ = l_Lake_BuildType_leanArgs(v___y_9425_);
v___x_9427_ = l_Array_append___redArg(v___x_9426_, v_moreLeanArgs_9412_);
v___x_9428_ = l_Array_append___redArg(v___x_9427_, v_moreLeanArgs_9415_);
v_args_9429_ = l_Array_append___redArg(v___x_9423_, v___x_9428_);
lean_dec_ref(v___x_9428_);
lean_inc_ref(v_srcFile_9391_);
v_relSrcFile_9430_ = l_Lake_relPathFrom(v_dir_9408_, v_srcFile_9391_);
v___x_9431_ = l_Lake_Module_inputFacet;
lean_inc(v_name_9406_);
lean_inc(v_keyName_9407_);
v___x_9432_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_9432_, 0, v_keyName_9407_);
lean_ctor_set(v___x_9432_, 1, v_name_9406_);
v___x_9433_ = l_Lake_Module_keyword;
lean_inc_ref(v_mod_9389_);
v___x_9434_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_9434_, 0, v___x_9432_);
lean_ctor_set(v___x_9434_, 1, v___x_9433_);
lean_ctor_set(v___x_9434_, 2, v_mod_9389_);
lean_ctor_set(v___x_9434_, 3, v___x_9431_);
v___x_9435_ = 3;
v___x_9436_ = l_Lake_buildAction___at___00__private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0(v___x_9434_, v_setup_9392_, v_mod_9389_, v_srcFile_9391_, v_relSrcFile_9430_, v_args_9429_, v_a_9393_, v_depTrace_9390_, v___x_9422_, v___x_9435_, v_a_9394_, v_a_9395_, v_a_9396_, v_a_9397_, v_a_9398_);
return v___x_9436_;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_buildLean___boxed(lean_object* v_mod_9438_, lean_object* v_depTrace_9439_, lean_object* v_srcFile_9440_, lean_object* v_setup_9441_, lean_object* v_a_9442_, lean_object* v_a_9443_, lean_object* v_a_9444_, lean_object* v_a_9445_, lean_object* v_a_9446_, lean_object* v_a_9447_, lean_object* v_a_9448_){
_start:
{
lean_object* v_res_9449_; 
v_res_9449_ = l___private_Lake_Build_Module_0__Lake_Module_buildLean(v_mod_9438_, v_depTrace_9439_, v_srcFile_9440_, v_setup_9441_, v_a_9442_, v_a_9443_, v_a_9444_, v_a_9445_, v_a_9446_, v_a_9447_);
lean_dec_ref(v_depTrace_9439_);
return v_res_9449_;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__2(void){
_start:
{
lean_object* v___x_9452_; lean_object* v___x_9453_; 
v___x_9452_ = lean_unsigned_to_nat(0u);
v___x_9453_ = lean_nat_to_int(v___x_9452_);
return v___x_9453_;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__3(void){
_start:
{
uint32_t v___x_9454_; lean_object* v___x_9455_; lean_object* v___x_9456_; 
v___x_9454_ = 0;
v___x_9455_ = lean_obj_once(&l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__2, &l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__2_once, _init_l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__2);
v___x_9456_ = lean_alloc_ctor(0, 1, 4);
lean_ctor_set(v___x_9456_, 0, v___x_9455_);
lean_ctor_set_uint32(v___x_9456_, sizeof(void*)*1, v___x_9454_);
return v___x_9456_;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0(lean_object* v_init_9457_, lean_object* v_x_9458_){
_start:
{
if (lean_obj_tag(v_x_9458_) == 0)
{
lean_object* v_k_9459_; lean_object* v_v_9460_; lean_object* v_l_9461_; lean_object* v_r_9462_; lean_object* v___x_9463_; lean_object* v___x_9464_; uint8_t v___x_9465_; lean_object* v___x_9466_; lean_object* v___x_9467_; lean_object* v___x_9468_; lean_object* v___x_9469_; lean_object* v___x_9470_; lean_object* v_opt_9471_; uint64_t v___x_9472_; uint64_t v___x_9473_; uint64_t v___x_9474_; lean_object* v___x_9475_; lean_object* v___x_9476_; lean_object* v___x_9477_; lean_object* v___x_9478_; 
v_k_9459_ = lean_ctor_get(v_x_9458_, 1);
lean_inc(v_k_9459_);
v_v_9460_ = lean_ctor_get(v_x_9458_, 2);
lean_inc(v_v_9460_);
v_l_9461_ = lean_ctor_get(v_x_9458_, 3);
lean_inc(v_l_9461_);
v_r_9462_ = lean_ctor_get(v_x_9458_, 4);
lean_inc(v_r_9462_);
lean_dec_ref(v_x_9458_);
v___x_9463_ = l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0(v_init_9457_, v_l_9461_);
v___x_9464_ = ((lean_object*)(l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__0));
v___x_9465_ = 1;
v___x_9466_ = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(v_k_9459_, v___x_9465_);
v___x_9467_ = lean_string_append(v___x_9464_, v___x_9466_);
lean_dec_ref(v___x_9466_);
v___x_9468_ = ((lean_object*)(l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__1));
v___x_9469_ = lean_string_append(v___x_9467_, v___x_9468_);
v___x_9470_ = l_Lean_LeanOptionValue_asCliFlagValue(v_v_9460_);
v_opt_9471_ = lean_string_append(v___x_9469_, v___x_9470_);
lean_dec_ref(v___x_9470_);
v___x_9472_ = l_Lake_Hash_nil;
v___x_9473_ = lean_string_hash(v_opt_9471_);
v___x_9474_ = lean_uint64_mix_hash(v___x_9472_, v___x_9473_);
v___x_9475_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0___closed__0));
v___x_9476_ = lean_obj_once(&l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__3, &l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__3_once, _init_l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__3);
v___x_9477_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v___x_9477_, 0, v_opt_9471_);
lean_ctor_set(v___x_9477_, 1, v___x_9475_);
lean_ctor_set(v___x_9477_, 2, v___x_9476_);
lean_ctor_set_uint64(v___x_9477_, sizeof(void*)*3, v___x_9474_);
v___x_9478_ = l_Lake_BuildTrace_mix(v___x_9463_, v___x_9477_);
v_init_9457_ = v___x_9478_;
v_x_9458_ = v_r_9462_;
goto _start;
}
else
{
return v_init_9457_;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_traceOptions(lean_object* v_opts_9480_, lean_object* v_caption_9481_){
_start:
{
lean_object* v___x_9482_; lean_object* v___x_9483_; 
v___x_9482_ = l_Lake_BuildTrace_nil(v_caption_9481_);
v___x_9483_ = l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0(v___x_9482_, v_opts_9480_);
return v___x_9483_;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0(lean_object* v_init_9484_, lean_object* v_t_9485_){
_start:
{
lean_object* v___x_9486_; 
v___x_9486_ = l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0(v_init_9484_, v_t_9485_);
return v___x_9486_;
}
}
LEAN_EXPORT lean_object* l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__0___lam__0(lean_object* v_a_9487_, lean_object* v_____r_9488_, lean_object* v___y_9489_, lean_object* v___y_9490_, lean_object* v___y_9491_, lean_object* v___y_9492_, lean_object* v___y_9493_, lean_object* v___y_9494_){
_start:
{
lean_object* v___x_9496_; lean_object* v___x_9497_; lean_object* v___x_9498_; 
v___x_9496_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_9496_, 0, v_a_9487_);
v___x_9497_ = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(v___x_9497_, 0, v___x_9496_);
v___x_9498_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_9498_, 0, v___x_9497_);
lean_ctor_set(v___x_9498_, 1, v___y_9494_);
return v___x_9498_;
}
}
LEAN_EXPORT lean_object* l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__0___lam__0___boxed(lean_object* v_a_9499_, lean_object* v_____r_9500_, lean_object* v___y_9501_, lean_object* v___y_9502_, lean_object* v___y_9503_, lean_object* v___y_9504_, lean_object* v___y_9505_, lean_object* v___y_9506_, lean_object* v___y_9507_){
_start:
{
lean_object* v_res_9508_; 
v_res_9508_ = l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__0___lam__0(v_a_9499_, v_____r_9500_, v___y_9501_, v___y_9502_, v___y_9503_, v___y_9504_, v___y_9505_, v___y_9506_);
lean_dec_ref(v___y_9505_);
lean_dec(v___y_9504_);
lean_dec(v___y_9503_);
lean_dec(v___y_9502_);
lean_dec_ref(v___y_9501_);
return v_res_9508_;
}
}
LEAN_EXPORT lean_object* l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__0(lean_object* v_a_9510_, uint64_t v_inputHash_9511_, lean_object* v_savedTrace_9512_, lean_object* v_pkg_9513_, lean_object* v_a_9514_, lean_object* v_a_9515_, lean_object* v_a_9516_, lean_object* v_a_9517_, lean_object* v_a_9518_){
_start:
{
lean_object* v___y_9521_; lean_object* v_a_9525_; lean_object* v_a_9526_; lean_object* v___y_9541_; 
if (lean_obj_tag(v_savedTrace_9512_) == 2)
{
lean_object* v_data_9556_; uint64_t v_depHash_9557_; lean_object* v_outputs_x3f_9558_; uint8_t v___x_9559_; 
v_data_9556_ = lean_ctor_get(v_savedTrace_9512_, 0);
lean_inc_ref(v_data_9556_);
lean_dec_ref(v_savedTrace_9512_);
v_depHash_9557_ = lean_ctor_get_uint64(v_data_9556_, sizeof(void*)*3);
v_outputs_x3f_9558_ = lean_ctor_get(v_data_9556_, 1);
lean_inc(v_outputs_x3f_9558_);
lean_dec_ref(v_data_9556_);
v___x_9559_ = lean_uint64_dec_eq(v_depHash_9557_, v_inputHash_9511_);
if (v___x_9559_ == 0)
{
lean_dec(v_outputs_x3f_9558_);
lean_dec_ref(v_a_9517_);
lean_dec_ref(v_pkg_9513_);
v___y_9521_ = v_a_9518_;
goto v___jp_9520_;
}
else
{
if (lean_obj_tag(v_outputs_x3f_9558_) == 1)
{
lean_object* v_val_9560_; lean_object* v___x_9561_; lean_object* v___x_9562_; lean_object* v___x_9563_; 
v_val_9560_ = lean_ctor_get(v_outputs_x3f_9558_, 0);
lean_inc(v_val_9560_);
lean_dec_ref(v_outputs_x3f_9558_);
v___x_9561_ = lean_box(0);
lean_inc(v_val_9560_);
v___x_9562_ = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(v___x_9562_, 0, v_val_9560_);
lean_ctor_set(v___x_9562_, 1, v___x_9561_);
lean_ctor_set(v___x_9562_, 2, v___x_9561_);
lean_inc_ref(v_a_9517_);
v___x_9563_ = l___private_Lake_Build_Module_0__Lake_resolveModuleOutputArtifacts___redArg(v___x_9562_, v_a_9517_, v_a_9518_);
if (lean_obj_tag(v___x_9563_) == 0)
{
lean_object* v_config_9564_; lean_object* v_a_9565_; lean_object* v_a_9566_; lean_object* v_enableArtifactCache_x3f_9567_; lean_object* v_a_9569_; uint8_t v_a_9573_; lean_object* v_a_9574_; 
v_config_9564_ = lean_ctor_get(v_pkg_9513_, 6);
v_a_9565_ = lean_ctor_get(v___x_9563_, 0);
lean_inc(v_a_9565_);
v_a_9566_ = lean_ctor_get(v___x_9563_, 1);
lean_inc(v_a_9566_);
lean_dec_ref(v___x_9563_);
v_enableArtifactCache_x3f_9567_ = lean_ctor_get(v_config_9564_, 25);
if (lean_obj_tag(v_enableArtifactCache_x3f_9567_) == 0)
{
lean_object* v_toContext_9605_; lean_object* v_lakeEnv_9606_; lean_object* v_enableArtifactCache_x3f_9607_; 
v_toContext_9605_ = lean_ctor_get(v_a_9517_, 1);
v_lakeEnv_9606_ = lean_ctor_get(v_toContext_9605_, 1);
v_enableArtifactCache_x3f_9607_ = lean_ctor_get(v_lakeEnv_9606_, 6);
if (lean_obj_tag(v_enableArtifactCache_x3f_9607_) == 0)
{
lean_object* v_root_9608_; lean_object* v_config_9609_; lean_object* v_enableArtifactCache_x3f_9610_; 
v_root_9608_ = lean_ctor_get(v_toContext_9605_, 0);
v_config_9609_ = lean_ctor_get(v_root_9608_, 6);
v_enableArtifactCache_x3f_9610_ = lean_ctor_get(v_config_9609_, 25);
if (lean_obj_tag(v_enableArtifactCache_x3f_9610_) == 0)
{
lean_dec(v_val_9560_);
lean_dec_ref(v_pkg_9513_);
v_a_9569_ = v_a_9566_;
goto v___jp_9568_;
}
else
{
lean_object* v_val_9611_; uint8_t v___x_9612_; 
v_val_9611_ = lean_ctor_get(v_enableArtifactCache_x3f_9610_, 0);
v___x_9612_ = lean_unbox(v_val_9611_);
v_a_9573_ = v___x_9612_;
v_a_9574_ = v_a_9566_;
goto v___jp_9572_;
}
}
else
{
lean_object* v_val_9613_; uint8_t v___x_9614_; 
v_val_9613_ = lean_ctor_get(v_enableArtifactCache_x3f_9607_, 0);
v___x_9614_ = lean_unbox(v_val_9613_);
v_a_9573_ = v___x_9614_;
v_a_9574_ = v_a_9566_;
goto v___jp_9572_;
}
}
else
{
lean_object* v_val_9615_; uint8_t v___x_9616_; 
v_val_9615_ = lean_ctor_get(v_enableArtifactCache_x3f_9567_, 0);
v___x_9616_ = lean_unbox(v_val_9615_);
v_a_9573_ = v___x_9616_;
v_a_9574_ = v_a_9566_;
goto v___jp_9572_;
}
v___jp_9568_:
{
lean_object* v___x_9570_; lean_object* v___x_9571_; 
v___x_9570_ = lean_box(0);
v___x_9571_ = l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__0___lam__0(v_a_9565_, v___x_9570_, v_a_9510_, v_a_9514_, v_a_9515_, v_a_9516_, v_a_9517_, v_a_9569_);
lean_dec_ref(v_a_9517_);
v___y_9541_ = v___x_9571_;
goto v___jp_9540_;
}
v___jp_9572_:
{
if (v_a_9573_ == 0)
{
lean_dec(v_val_9560_);
lean_dec_ref(v_pkg_9513_);
v_a_9569_ = v_a_9574_;
goto v___jp_9568_;
}
else
{
lean_object* v_toContext_9575_; lean_object* v_log_9576_; uint8_t v_action_9577_; uint8_t v_wantsRebuild_9578_; lean_object* v_trace_9579_; lean_object* v_buildTime_9580_; lean_object* v_lakeCache_9581_; lean_object* v___x_9582_; lean_object* v___x_9583_; 
v_toContext_9575_ = lean_ctor_get(v_a_9517_, 1);
v_log_9576_ = lean_ctor_get(v_a_9574_, 0);
v_action_9577_ = lean_ctor_get_uint8(v_a_9574_, sizeof(void*)*3);
v_wantsRebuild_9578_ = lean_ctor_get_uint8(v_a_9574_, sizeof(void*)*3 + 1);
v_trace_9579_ = lean_ctor_get(v_a_9574_, 1);
v_buildTime_9580_ = lean_ctor_get(v_a_9574_, 2);
v_lakeCache_9581_ = lean_ctor_get(v_toContext_9575_, 3);
v___x_9582_ = l_Lake_Package_cacheScope(v_pkg_9513_);
lean_inc_ref(v_lakeCache_9581_);
v___x_9583_ = l___private_Lake_Config_Cache_0__Lake_Cache_writeOutputsCore(v_lakeCache_9581_, v___x_9582_, v_inputHash_9511_, v_val_9560_, v___x_9561_, v___x_9561_);
if (lean_obj_tag(v___x_9583_) == 0)
{
lean_object* v___x_9584_; lean_object* v___x_9585_; 
lean_dec_ref(v___x_9583_);
v___x_9584_ = lean_box(0);
v___x_9585_ = l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__0___lam__0(v_a_9565_, v___x_9584_, v_a_9510_, v_a_9514_, v_a_9515_, v_a_9516_, v_a_9517_, v_a_9574_);
lean_dec_ref(v_a_9517_);
v___y_9541_ = v___x_9585_;
goto v___jp_9540_;
}
else
{
lean_object* v___x_9587_; uint8_t v_isShared_9588_; uint8_t v_isSharedCheck_9601_; 
lean_inc(v_buildTime_9580_);
lean_inc_ref(v_trace_9579_);
lean_inc_ref(v_log_9576_);
v_isSharedCheck_9601_ = !lean_is_exclusive(v_a_9574_);
if (v_isSharedCheck_9601_ == 0)
{
lean_object* v_unused_9602_; lean_object* v_unused_9603_; lean_object* v_unused_9604_; 
v_unused_9602_ = lean_ctor_get(v_a_9574_, 2);
lean_dec(v_unused_9602_);
v_unused_9603_ = lean_ctor_get(v_a_9574_, 1);
lean_dec(v_unused_9603_);
v_unused_9604_ = lean_ctor_get(v_a_9574_, 0);
lean_dec(v_unused_9604_);
v___x_9587_ = v_a_9574_;
v_isShared_9588_ = v_isSharedCheck_9601_;
goto v_resetjp_9586_;
}
else
{
lean_dec(v_a_9574_);
v___x_9587_ = lean_box(0);
v_isShared_9588_ = v_isSharedCheck_9601_;
goto v_resetjp_9586_;
}
v_resetjp_9586_:
{
lean_object* v_a_9589_; lean_object* v___x_9590_; lean_object* v___x_9591_; lean_object* v___x_9592_; uint8_t v___x_9593_; lean_object* v___x_9594_; lean_object* v___x_9595_; lean_object* v___x_9596_; lean_object* v___x_9598_; 
v_a_9589_ = lean_ctor_get(v___x_9583_, 0);
lean_inc(v_a_9589_);
lean_dec_ref(v___x_9583_);
v___x_9590_ = ((lean_object*)(l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__0___closed__0));
v___x_9591_ = lean_io_error_to_string(v_a_9589_);
v___x_9592_ = lean_string_append(v___x_9590_, v___x_9591_);
lean_dec_ref(v___x_9591_);
v___x_9593_ = 2;
v___x_9594_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_9594_, 0, v___x_9592_);
lean_ctor_set_uint8(v___x_9594_, sizeof(void*)*1, v___x_9593_);
v___x_9595_ = lean_box(0);
v___x_9596_ = lean_array_push(v_log_9576_, v___x_9594_);
if (v_isShared_9588_ == 0)
{
lean_ctor_set(v___x_9587_, 0, v___x_9596_);
v___x_9598_ = v___x_9587_;
goto v_reusejp_9597_;
}
else
{
lean_object* v_reuseFailAlloc_9600_; 
v_reuseFailAlloc_9600_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_9600_, 0, v___x_9596_);
lean_ctor_set(v_reuseFailAlloc_9600_, 1, v_trace_9579_);
lean_ctor_set(v_reuseFailAlloc_9600_, 2, v_buildTime_9580_);
lean_ctor_set_uint8(v_reuseFailAlloc_9600_, sizeof(void*)*3, v_action_9577_);
lean_ctor_set_uint8(v_reuseFailAlloc_9600_, sizeof(void*)*3 + 1, v_wantsRebuild_9578_);
v___x_9598_ = v_reuseFailAlloc_9600_;
goto v_reusejp_9597_;
}
v_reusejp_9597_:
{
lean_object* v___x_9599_; 
v___x_9599_ = l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__0___lam__0(v_a_9565_, v___x_9595_, v_a_9510_, v_a_9514_, v_a_9515_, v_a_9516_, v_a_9517_, v___x_9598_);
lean_dec_ref(v_a_9517_);
v___y_9541_ = v___x_9599_;
goto v___jp_9540_;
}
}
}
}
}
}
else
{
lean_object* v_a_9617_; lean_object* v_a_9618_; 
lean_dec(v_val_9560_);
lean_dec_ref(v_a_9517_);
lean_dec_ref(v_pkg_9513_);
v_a_9617_ = lean_ctor_get(v___x_9563_, 0);
lean_inc(v_a_9617_);
v_a_9618_ = lean_ctor_get(v___x_9563_, 1);
lean_inc(v_a_9618_);
lean_dec_ref(v___x_9563_);
v_a_9525_ = v_a_9617_;
v_a_9526_ = v_a_9618_;
goto v___jp_9524_;
}
}
else
{
lean_dec(v_outputs_x3f_9558_);
lean_dec_ref(v_a_9517_);
lean_dec_ref(v_pkg_9513_);
v___y_9521_ = v_a_9518_;
goto v___jp_9520_;
}
}
}
else
{
lean_dec_ref(v_a_9517_);
lean_dec_ref(v_pkg_9513_);
lean_dec(v_savedTrace_9512_);
v___y_9521_ = v_a_9518_;
goto v___jp_9520_;
}
v___jp_9520_:
{
lean_object* v___x_9522_; lean_object* v___x_9523_; 
v___x_9522_ = lean_box(0);
v___x_9523_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_9523_, 0, v___x_9522_);
lean_ctor_set(v___x_9523_, 1, v___y_9521_);
return v___x_9523_;
}
v___jp_9524_:
{
lean_object* v_log_9527_; uint8_t v_action_9528_; uint8_t v_wantsRebuild_9529_; lean_object* v_trace_9530_; lean_object* v_buildTime_9531_; lean_object* v___x_9533_; uint8_t v_isShared_9534_; uint8_t v_isSharedCheck_9539_; 
v_log_9527_ = lean_ctor_get(v_a_9526_, 0);
v_action_9528_ = lean_ctor_get_uint8(v_a_9526_, sizeof(void*)*3);
v_wantsRebuild_9529_ = lean_ctor_get_uint8(v_a_9526_, sizeof(void*)*3 + 1);
v_trace_9530_ = lean_ctor_get(v_a_9526_, 1);
v_buildTime_9531_ = lean_ctor_get(v_a_9526_, 2);
v_isSharedCheck_9539_ = !lean_is_exclusive(v_a_9526_);
if (v_isSharedCheck_9539_ == 0)
{
v___x_9533_ = v_a_9526_;
v_isShared_9534_ = v_isSharedCheck_9539_;
goto v_resetjp_9532_;
}
else
{
lean_inc(v_buildTime_9531_);
lean_inc(v_trace_9530_);
lean_inc(v_log_9527_);
lean_dec(v_a_9526_);
v___x_9533_ = lean_box(0);
v_isShared_9534_ = v_isSharedCheck_9539_;
goto v_resetjp_9532_;
}
v_resetjp_9532_:
{
lean_object* v___x_9535_; lean_object* v___x_9537_; 
v___x_9535_ = l_Array_shrink___redArg(v_log_9527_, v_a_9525_);
lean_dec(v_a_9525_);
if (v_isShared_9534_ == 0)
{
lean_ctor_set(v___x_9533_, 0, v___x_9535_);
v___x_9537_ = v___x_9533_;
goto v_reusejp_9536_;
}
else
{
lean_object* v_reuseFailAlloc_9538_; 
v_reuseFailAlloc_9538_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_9538_, 0, v___x_9535_);
lean_ctor_set(v_reuseFailAlloc_9538_, 1, v_trace_9530_);
lean_ctor_set(v_reuseFailAlloc_9538_, 2, v_buildTime_9531_);
lean_ctor_set_uint8(v_reuseFailAlloc_9538_, sizeof(void*)*3, v_action_9528_);
lean_ctor_set_uint8(v_reuseFailAlloc_9538_, sizeof(void*)*3 + 1, v_wantsRebuild_9529_);
v___x_9537_ = v_reuseFailAlloc_9538_;
goto v_reusejp_9536_;
}
v_reusejp_9536_:
{
v___y_9521_ = v___x_9537_;
goto v___jp_9520_;
}
}
}
v___jp_9540_:
{
if (lean_obj_tag(v___y_9541_) == 0)
{
lean_object* v_a_9542_; 
v_a_9542_ = lean_ctor_get(v___y_9541_, 0);
if (lean_obj_tag(v_a_9542_) == 0)
{
lean_object* v_a_9543_; lean_object* v___x_9545_; uint8_t v_isShared_9546_; uint8_t v_isSharedCheck_9551_; 
lean_inc_ref(v_a_9542_);
v_a_9543_ = lean_ctor_get(v___y_9541_, 1);
v_isSharedCheck_9551_ = !lean_is_exclusive(v___y_9541_);
if (v_isSharedCheck_9551_ == 0)
{
lean_object* v_unused_9552_; 
v_unused_9552_ = lean_ctor_get(v___y_9541_, 0);
lean_dec(v_unused_9552_);
v___x_9545_ = v___y_9541_;
v_isShared_9546_ = v_isSharedCheck_9551_;
goto v_resetjp_9544_;
}
else
{
lean_inc(v_a_9543_);
lean_dec(v___y_9541_);
v___x_9545_ = lean_box(0);
v_isShared_9546_ = v_isSharedCheck_9551_;
goto v_resetjp_9544_;
}
v_resetjp_9544_:
{
lean_object* v_a_9547_; lean_object* v___x_9549_; 
v_a_9547_ = lean_ctor_get(v_a_9542_, 0);
lean_inc(v_a_9547_);
lean_dec_ref(v_a_9542_);
if (v_isShared_9546_ == 0)
{
lean_ctor_set(v___x_9545_, 0, v_a_9547_);
v___x_9549_ = v___x_9545_;
goto v_reusejp_9548_;
}
else
{
lean_object* v_reuseFailAlloc_9550_; 
v_reuseFailAlloc_9550_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_9550_, 0, v_a_9547_);
lean_ctor_set(v_reuseFailAlloc_9550_, 1, v_a_9543_);
v___x_9549_ = v_reuseFailAlloc_9550_;
goto v_reusejp_9548_;
}
v_reusejp_9548_:
{
return v___x_9549_;
}
}
}
else
{
lean_object* v_a_9553_; 
v_a_9553_ = lean_ctor_get(v___y_9541_, 1);
lean_inc(v_a_9553_);
lean_dec_ref(v___y_9541_);
v___y_9521_ = v_a_9553_;
goto v___jp_9520_;
}
}
else
{
lean_object* v_a_9554_; lean_object* v_a_9555_; 
v_a_9554_ = lean_ctor_get(v___y_9541_, 0);
lean_inc(v_a_9554_);
v_a_9555_ = lean_ctor_get(v___y_9541_, 1);
lean_inc(v_a_9555_);
lean_dec_ref(v___y_9541_);
v_a_9525_ = v_a_9554_;
v_a_9526_ = v_a_9555_;
goto v___jp_9524_;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__0___boxed(lean_object* v_a_9619_, lean_object* v_inputHash_9620_, lean_object* v_savedTrace_9621_, lean_object* v_pkg_9622_, lean_object* v_a_9623_, lean_object* v_a_9624_, lean_object* v_a_9625_, lean_object* v_a_9626_, lean_object* v_a_9627_, lean_object* v_a_9628_){
_start:
{
uint64_t v_inputHash_boxed_9629_; lean_object* v_res_9630_; 
v_inputHash_boxed_9629_ = lean_unbox_uint64(v_inputHash_9620_);
lean_dec_ref(v_inputHash_9620_);
v_res_9630_ = l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__0(v_a_9619_, v_inputHash_boxed_9629_, v_savedTrace_9621_, v_pkg_9622_, v_a_9623_, v_a_9624_, v_a_9625_, v_a_9626_, v_a_9627_);
lean_dec(v_a_9625_);
lean_dec(v_a_9624_);
lean_dec(v_a_9623_);
lean_dec_ref(v_a_9619_);
return v_res_9630_;
}
}
LEAN_EXPORT lean_object* l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__2___lam__0(lean_object* v_a_9631_, lean_object* v_____r_9632_, lean_object* v___y_9633_, lean_object* v___y_9634_, lean_object* v___y_9635_, lean_object* v___y_9636_, lean_object* v___y_9637_, lean_object* v___y_9638_){
_start:
{
lean_object* v___x_9640_; lean_object* v___x_9641_; lean_object* v___x_9642_; 
v___x_9640_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_9640_, 0, v_a_9631_);
v___x_9641_ = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(v___x_9641_, 0, v___x_9640_);
v___x_9642_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_9642_, 0, v___x_9641_);
lean_ctor_set(v___x_9642_, 1, v___y_9638_);
return v___x_9642_;
}
}
LEAN_EXPORT lean_object* l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__2___lam__0___boxed(lean_object* v_a_9643_, lean_object* v_____r_9644_, lean_object* v___y_9645_, lean_object* v___y_9646_, lean_object* v___y_9647_, lean_object* v___y_9648_, lean_object* v___y_9649_, lean_object* v___y_9650_, lean_object* v___y_9651_){
_start:
{
lean_object* v_res_9652_; 
v_res_9652_ = l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__2___lam__0(v_a_9643_, v_____r_9644_, v___y_9645_, v___y_9646_, v___y_9647_, v___y_9648_, v___y_9649_, v___y_9650_);
lean_dec_ref(v___y_9649_);
lean_dec(v___y_9648_);
lean_dec(v___y_9647_);
lean_dec(v___y_9646_);
lean_dec_ref(v___y_9645_);
return v_res_9652_;
}
}
LEAN_EXPORT lean_object* l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__2(lean_object* v_a_9653_, uint64_t v_inputHash_9654_, lean_object* v_savedTrace_9655_, lean_object* v_pkg_9656_, lean_object* v_a_9657_, lean_object* v_a_9658_, lean_object* v_a_9659_, lean_object* v_a_9660_, lean_object* v_a_9661_){
_start:
{
lean_object* v___y_9664_; lean_object* v_a_9668_; lean_object* v_a_9669_; lean_object* v___y_9684_; 
if (lean_obj_tag(v_savedTrace_9655_) == 2)
{
lean_object* v_data_9699_; uint64_t v_depHash_9700_; lean_object* v_outputs_x3f_9701_; uint8_t v___x_9702_; 
v_data_9699_ = lean_ctor_get(v_savedTrace_9655_, 0);
lean_inc_ref(v_data_9699_);
lean_dec_ref(v_savedTrace_9655_);
v_depHash_9700_ = lean_ctor_get_uint64(v_data_9699_, sizeof(void*)*3);
v_outputs_x3f_9701_ = lean_ctor_get(v_data_9699_, 1);
lean_inc(v_outputs_x3f_9701_);
lean_dec_ref(v_data_9699_);
v___x_9702_ = lean_uint64_dec_eq(v_depHash_9700_, v_inputHash_9654_);
if (v___x_9702_ == 0)
{
lean_dec(v_outputs_x3f_9701_);
lean_dec_ref(v_a_9660_);
lean_dec_ref(v_pkg_9656_);
v___y_9664_ = v_a_9661_;
goto v___jp_9663_;
}
else
{
if (lean_obj_tag(v_outputs_x3f_9701_) == 1)
{
lean_object* v_val_9703_; lean_object* v___x_9704_; lean_object* v___x_9705_; lean_object* v___x_9706_; 
v_val_9703_ = lean_ctor_get(v_outputs_x3f_9701_, 0);
lean_inc(v_val_9703_);
lean_dec_ref(v_outputs_x3f_9701_);
v___x_9704_ = lean_box(0);
lean_inc(v_val_9703_);
v___x_9705_ = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(v___x_9705_, 0, v_val_9703_);
lean_ctor_set(v___x_9705_, 1, v___x_9704_);
lean_ctor_set(v___x_9705_, 2, v___x_9704_);
lean_inc_ref(v_a_9660_);
v___x_9706_ = l___private_Lake_Build_Module_0__Lake_resolveModuleOutputs___redArg(v___x_9705_, v_a_9660_, v_a_9661_);
if (lean_obj_tag(v___x_9706_) == 0)
{
lean_object* v_config_9707_; lean_object* v_a_9708_; lean_object* v_a_9709_; lean_object* v_enableArtifactCache_x3f_9710_; lean_object* v_a_9712_; uint8_t v_a_9716_; lean_object* v_a_9717_; 
v_config_9707_ = lean_ctor_get(v_pkg_9656_, 6);
v_a_9708_ = lean_ctor_get(v___x_9706_, 0);
lean_inc(v_a_9708_);
v_a_9709_ = lean_ctor_get(v___x_9706_, 1);
lean_inc(v_a_9709_);
lean_dec_ref(v___x_9706_);
v_enableArtifactCache_x3f_9710_ = lean_ctor_get(v_config_9707_, 25);
if (lean_obj_tag(v_enableArtifactCache_x3f_9710_) == 0)
{
lean_object* v_toContext_9748_; lean_object* v_lakeEnv_9749_; lean_object* v_enableArtifactCache_x3f_9750_; 
v_toContext_9748_ = lean_ctor_get(v_a_9660_, 1);
v_lakeEnv_9749_ = lean_ctor_get(v_toContext_9748_, 1);
v_enableArtifactCache_x3f_9750_ = lean_ctor_get(v_lakeEnv_9749_, 6);
if (lean_obj_tag(v_enableArtifactCache_x3f_9750_) == 0)
{
lean_object* v_root_9751_; lean_object* v_config_9752_; lean_object* v_enableArtifactCache_x3f_9753_; 
v_root_9751_ = lean_ctor_get(v_toContext_9748_, 0);
v_config_9752_ = lean_ctor_get(v_root_9751_, 6);
v_enableArtifactCache_x3f_9753_ = lean_ctor_get(v_config_9752_, 25);
if (lean_obj_tag(v_enableArtifactCache_x3f_9753_) == 0)
{
lean_dec(v_val_9703_);
lean_dec_ref(v_pkg_9656_);
v_a_9712_ = v_a_9709_;
goto v___jp_9711_;
}
else
{
lean_object* v_val_9754_; uint8_t v___x_9755_; 
v_val_9754_ = lean_ctor_get(v_enableArtifactCache_x3f_9753_, 0);
v___x_9755_ = lean_unbox(v_val_9754_);
v_a_9716_ = v___x_9755_;
v_a_9717_ = v_a_9709_;
goto v___jp_9715_;
}
}
else
{
lean_object* v_val_9756_; uint8_t v___x_9757_; 
v_val_9756_ = lean_ctor_get(v_enableArtifactCache_x3f_9750_, 0);
v___x_9757_ = lean_unbox(v_val_9756_);
v_a_9716_ = v___x_9757_;
v_a_9717_ = v_a_9709_;
goto v___jp_9715_;
}
}
else
{
lean_object* v_val_9758_; uint8_t v___x_9759_; 
v_val_9758_ = lean_ctor_get(v_enableArtifactCache_x3f_9710_, 0);
v___x_9759_ = lean_unbox(v_val_9758_);
v_a_9716_ = v___x_9759_;
v_a_9717_ = v_a_9709_;
goto v___jp_9715_;
}
v___jp_9711_:
{
lean_object* v___x_9713_; lean_object* v___x_9714_; 
v___x_9713_ = lean_box(0);
v___x_9714_ = l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__2___lam__0(v_a_9708_, v___x_9713_, v_a_9653_, v_a_9657_, v_a_9658_, v_a_9659_, v_a_9660_, v_a_9712_);
lean_dec_ref(v_a_9660_);
v___y_9684_ = v___x_9714_;
goto v___jp_9683_;
}
v___jp_9715_:
{
if (v_a_9716_ == 0)
{
lean_dec(v_val_9703_);
lean_dec_ref(v_pkg_9656_);
v_a_9712_ = v_a_9717_;
goto v___jp_9711_;
}
else
{
lean_object* v_toContext_9718_; lean_object* v_log_9719_; uint8_t v_action_9720_; uint8_t v_wantsRebuild_9721_; lean_object* v_trace_9722_; lean_object* v_buildTime_9723_; lean_object* v_lakeCache_9724_; lean_object* v___x_9725_; lean_object* v___x_9726_; 
v_toContext_9718_ = lean_ctor_get(v_a_9660_, 1);
v_log_9719_ = lean_ctor_get(v_a_9717_, 0);
v_action_9720_ = lean_ctor_get_uint8(v_a_9717_, sizeof(void*)*3);
v_wantsRebuild_9721_ = lean_ctor_get_uint8(v_a_9717_, sizeof(void*)*3 + 1);
v_trace_9722_ = lean_ctor_get(v_a_9717_, 1);
v_buildTime_9723_ = lean_ctor_get(v_a_9717_, 2);
v_lakeCache_9724_ = lean_ctor_get(v_toContext_9718_, 3);
v___x_9725_ = l_Lake_Package_cacheScope(v_pkg_9656_);
lean_inc_ref(v_lakeCache_9724_);
v___x_9726_ = l___private_Lake_Config_Cache_0__Lake_Cache_writeOutputsCore(v_lakeCache_9724_, v___x_9725_, v_inputHash_9654_, v_val_9703_, v___x_9704_, v___x_9704_);
if (lean_obj_tag(v___x_9726_) == 0)
{
lean_object* v___x_9727_; lean_object* v___x_9728_; 
lean_dec_ref(v___x_9726_);
v___x_9727_ = lean_box(0);
v___x_9728_ = l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__2___lam__0(v_a_9708_, v___x_9727_, v_a_9653_, v_a_9657_, v_a_9658_, v_a_9659_, v_a_9660_, v_a_9717_);
lean_dec_ref(v_a_9660_);
v___y_9684_ = v___x_9728_;
goto v___jp_9683_;
}
else
{
lean_object* v___x_9730_; uint8_t v_isShared_9731_; uint8_t v_isSharedCheck_9744_; 
lean_inc(v_buildTime_9723_);
lean_inc_ref(v_trace_9722_);
lean_inc_ref(v_log_9719_);
v_isSharedCheck_9744_ = !lean_is_exclusive(v_a_9717_);
if (v_isSharedCheck_9744_ == 0)
{
lean_object* v_unused_9745_; lean_object* v_unused_9746_; lean_object* v_unused_9747_; 
v_unused_9745_ = lean_ctor_get(v_a_9717_, 2);
lean_dec(v_unused_9745_);
v_unused_9746_ = lean_ctor_get(v_a_9717_, 1);
lean_dec(v_unused_9746_);
v_unused_9747_ = lean_ctor_get(v_a_9717_, 0);
lean_dec(v_unused_9747_);
v___x_9730_ = v_a_9717_;
v_isShared_9731_ = v_isSharedCheck_9744_;
goto v_resetjp_9729_;
}
else
{
lean_dec(v_a_9717_);
v___x_9730_ = lean_box(0);
v_isShared_9731_ = v_isSharedCheck_9744_;
goto v_resetjp_9729_;
}
v_resetjp_9729_:
{
lean_object* v_a_9732_; lean_object* v___x_9733_; lean_object* v___x_9734_; lean_object* v___x_9735_; uint8_t v___x_9736_; lean_object* v___x_9737_; lean_object* v___x_9738_; lean_object* v___x_9739_; lean_object* v___x_9741_; 
v_a_9732_ = lean_ctor_get(v___x_9726_, 0);
lean_inc(v_a_9732_);
lean_dec_ref(v___x_9726_);
v___x_9733_ = ((lean_object*)(l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__0___closed__0));
v___x_9734_ = lean_io_error_to_string(v_a_9732_);
v___x_9735_ = lean_string_append(v___x_9733_, v___x_9734_);
lean_dec_ref(v___x_9734_);
v___x_9736_ = 2;
v___x_9737_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_9737_, 0, v___x_9735_);
lean_ctor_set_uint8(v___x_9737_, sizeof(void*)*1, v___x_9736_);
v___x_9738_ = lean_box(0);
v___x_9739_ = lean_array_push(v_log_9719_, v___x_9737_);
if (v_isShared_9731_ == 0)
{
lean_ctor_set(v___x_9730_, 0, v___x_9739_);
v___x_9741_ = v___x_9730_;
goto v_reusejp_9740_;
}
else
{
lean_object* v_reuseFailAlloc_9743_; 
v_reuseFailAlloc_9743_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_9743_, 0, v___x_9739_);
lean_ctor_set(v_reuseFailAlloc_9743_, 1, v_trace_9722_);
lean_ctor_set(v_reuseFailAlloc_9743_, 2, v_buildTime_9723_);
lean_ctor_set_uint8(v_reuseFailAlloc_9743_, sizeof(void*)*3, v_action_9720_);
lean_ctor_set_uint8(v_reuseFailAlloc_9743_, sizeof(void*)*3 + 1, v_wantsRebuild_9721_);
v___x_9741_ = v_reuseFailAlloc_9743_;
goto v_reusejp_9740_;
}
v_reusejp_9740_:
{
lean_object* v___x_9742_; 
v___x_9742_ = l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__2___lam__0(v_a_9708_, v___x_9738_, v_a_9653_, v_a_9657_, v_a_9658_, v_a_9659_, v_a_9660_, v___x_9741_);
lean_dec_ref(v_a_9660_);
v___y_9684_ = v___x_9742_;
goto v___jp_9683_;
}
}
}
}
}
}
else
{
lean_object* v_a_9760_; lean_object* v_a_9761_; 
lean_dec(v_val_9703_);
lean_dec_ref(v_a_9660_);
lean_dec_ref(v_pkg_9656_);
v_a_9760_ = lean_ctor_get(v___x_9706_, 0);
lean_inc(v_a_9760_);
v_a_9761_ = lean_ctor_get(v___x_9706_, 1);
lean_inc(v_a_9761_);
lean_dec_ref(v___x_9706_);
v_a_9668_ = v_a_9760_;
v_a_9669_ = v_a_9761_;
goto v___jp_9667_;
}
}
else
{
lean_dec(v_outputs_x3f_9701_);
lean_dec_ref(v_a_9660_);
lean_dec_ref(v_pkg_9656_);
v___y_9664_ = v_a_9661_;
goto v___jp_9663_;
}
}
}
else
{
lean_dec_ref(v_a_9660_);
lean_dec_ref(v_pkg_9656_);
lean_dec(v_savedTrace_9655_);
v___y_9664_ = v_a_9661_;
goto v___jp_9663_;
}
v___jp_9663_:
{
lean_object* v___x_9665_; lean_object* v___x_9666_; 
v___x_9665_ = lean_box(0);
v___x_9666_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_9666_, 0, v___x_9665_);
lean_ctor_set(v___x_9666_, 1, v___y_9664_);
return v___x_9666_;
}
v___jp_9667_:
{
lean_object* v_log_9670_; uint8_t v_action_9671_; uint8_t v_wantsRebuild_9672_; lean_object* v_trace_9673_; lean_object* v_buildTime_9674_; lean_object* v___x_9676_; uint8_t v_isShared_9677_; uint8_t v_isSharedCheck_9682_; 
v_log_9670_ = lean_ctor_get(v_a_9669_, 0);
v_action_9671_ = lean_ctor_get_uint8(v_a_9669_, sizeof(void*)*3);
v_wantsRebuild_9672_ = lean_ctor_get_uint8(v_a_9669_, sizeof(void*)*3 + 1);
v_trace_9673_ = lean_ctor_get(v_a_9669_, 1);
v_buildTime_9674_ = lean_ctor_get(v_a_9669_, 2);
v_isSharedCheck_9682_ = !lean_is_exclusive(v_a_9669_);
if (v_isSharedCheck_9682_ == 0)
{
v___x_9676_ = v_a_9669_;
v_isShared_9677_ = v_isSharedCheck_9682_;
goto v_resetjp_9675_;
}
else
{
lean_inc(v_buildTime_9674_);
lean_inc(v_trace_9673_);
lean_inc(v_log_9670_);
lean_dec(v_a_9669_);
v___x_9676_ = lean_box(0);
v_isShared_9677_ = v_isSharedCheck_9682_;
goto v_resetjp_9675_;
}
v_resetjp_9675_:
{
lean_object* v___x_9678_; lean_object* v___x_9680_; 
v___x_9678_ = l_Array_shrink___redArg(v_log_9670_, v_a_9668_);
lean_dec(v_a_9668_);
if (v_isShared_9677_ == 0)
{
lean_ctor_set(v___x_9676_, 0, v___x_9678_);
v___x_9680_ = v___x_9676_;
goto v_reusejp_9679_;
}
else
{
lean_object* v_reuseFailAlloc_9681_; 
v_reuseFailAlloc_9681_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_9681_, 0, v___x_9678_);
lean_ctor_set(v_reuseFailAlloc_9681_, 1, v_trace_9673_);
lean_ctor_set(v_reuseFailAlloc_9681_, 2, v_buildTime_9674_);
lean_ctor_set_uint8(v_reuseFailAlloc_9681_, sizeof(void*)*3, v_action_9671_);
lean_ctor_set_uint8(v_reuseFailAlloc_9681_, sizeof(void*)*3 + 1, v_wantsRebuild_9672_);
v___x_9680_ = v_reuseFailAlloc_9681_;
goto v_reusejp_9679_;
}
v_reusejp_9679_:
{
v___y_9664_ = v___x_9680_;
goto v___jp_9663_;
}
}
}
v___jp_9683_:
{
if (lean_obj_tag(v___y_9684_) == 0)
{
lean_object* v_a_9685_; 
v_a_9685_ = lean_ctor_get(v___y_9684_, 0);
if (lean_obj_tag(v_a_9685_) == 0)
{
lean_object* v_a_9686_; lean_object* v___x_9688_; uint8_t v_isShared_9689_; uint8_t v_isSharedCheck_9694_; 
lean_inc_ref(v_a_9685_);
v_a_9686_ = lean_ctor_get(v___y_9684_, 1);
v_isSharedCheck_9694_ = !lean_is_exclusive(v___y_9684_);
if (v_isSharedCheck_9694_ == 0)
{
lean_object* v_unused_9695_; 
v_unused_9695_ = lean_ctor_get(v___y_9684_, 0);
lean_dec(v_unused_9695_);
v___x_9688_ = v___y_9684_;
v_isShared_9689_ = v_isSharedCheck_9694_;
goto v_resetjp_9687_;
}
else
{
lean_inc(v_a_9686_);
lean_dec(v___y_9684_);
v___x_9688_ = lean_box(0);
v_isShared_9689_ = v_isSharedCheck_9694_;
goto v_resetjp_9687_;
}
v_resetjp_9687_:
{
lean_object* v_a_9690_; lean_object* v___x_9692_; 
v_a_9690_ = lean_ctor_get(v_a_9685_, 0);
lean_inc(v_a_9690_);
lean_dec_ref(v_a_9685_);
if (v_isShared_9689_ == 0)
{
lean_ctor_set(v___x_9688_, 0, v_a_9690_);
v___x_9692_ = v___x_9688_;
goto v_reusejp_9691_;
}
else
{
lean_object* v_reuseFailAlloc_9693_; 
v_reuseFailAlloc_9693_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_9693_, 0, v_a_9690_);
lean_ctor_set(v_reuseFailAlloc_9693_, 1, v_a_9686_);
v___x_9692_ = v_reuseFailAlloc_9693_;
goto v_reusejp_9691_;
}
v_reusejp_9691_:
{
return v___x_9692_;
}
}
}
else
{
lean_object* v_a_9696_; 
v_a_9696_ = lean_ctor_get(v___y_9684_, 1);
lean_inc(v_a_9696_);
lean_dec_ref(v___y_9684_);
v___y_9664_ = v_a_9696_;
goto v___jp_9663_;
}
}
else
{
lean_object* v_a_9697_; lean_object* v_a_9698_; 
v_a_9697_ = lean_ctor_get(v___y_9684_, 0);
lean_inc(v_a_9697_);
v_a_9698_ = lean_ctor_get(v___y_9684_, 1);
lean_inc(v_a_9698_);
lean_dec_ref(v___y_9684_);
v_a_9668_ = v_a_9697_;
v_a_9669_ = v_a_9698_;
goto v___jp_9667_;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__2___boxed(lean_object* v_a_9762_, lean_object* v_inputHash_9763_, lean_object* v_savedTrace_9764_, lean_object* v_pkg_9765_, lean_object* v_a_9766_, lean_object* v_a_9767_, lean_object* v_a_9768_, lean_object* v_a_9769_, lean_object* v_a_9770_, lean_object* v_a_9771_){
_start:
{
uint64_t v_inputHash_boxed_9772_; lean_object* v_res_9773_; 
v_inputHash_boxed_9772_ = lean_unbox_uint64(v_inputHash_9763_);
lean_dec_ref(v_inputHash_9763_);
v_res_9773_ = l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__2(v_a_9762_, v_inputHash_boxed_9772_, v_savedTrace_9764_, v_pkg_9765_, v_a_9766_, v_a_9767_, v_a_9768_, v_a_9769_, v_a_9770_);
lean_dec(v_a_9768_);
lean_dec(v_a_9767_);
lean_dec(v_a_9766_);
lean_dec_ref(v_a_9762_);
return v_res_9773_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1_spec__1(lean_object* v_as_9775_, size_t v_i_9776_, size_t v_stop_9777_, lean_object* v_b_9778_){
_start:
{
uint8_t v___x_9779_; 
v___x_9779_ = lean_usize_dec_eq(v_i_9776_, v_stop_9777_);
if (v___x_9779_ == 0)
{
lean_object* v___x_9780_; lean_object* v_message_9781_; lean_object* v___x_9782_; lean_object* v___x_9783_; lean_object* v___x_9784_; size_t v___x_9785_; size_t v___x_9786_; 
v___x_9780_ = lean_array_uget_borrowed(v_as_9775_, v_i_9776_);
v_message_9781_ = lean_ctor_get(v___x_9780_, 0);
v___x_9782_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1_spec__1___closed__0));
v___x_9783_ = lean_string_append(v_b_9778_, v___x_9782_);
v___x_9784_ = lean_string_append(v___x_9783_, v_message_9781_);
v___x_9785_ = ((size_t)1ULL);
v___x_9786_ = lean_usize_add(v_i_9776_, v___x_9785_);
v_i_9776_ = v___x_9786_;
v_b_9778_ = v___x_9784_;
goto _start;
}
else
{
return v_b_9778_;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1_spec__1___boxed(lean_object* v_as_9788_, lean_object* v_i_9789_, lean_object* v_stop_9790_, lean_object* v_b_9791_){
_start:
{
size_t v_i_boxed_9792_; size_t v_stop_boxed_9793_; lean_object* v_res_9794_; 
v_i_boxed_9792_ = lean_unbox_usize(v_i_9789_);
lean_dec(v_i_9789_);
v_stop_boxed_9793_ = lean_unbox_usize(v_stop_9790_);
lean_dec(v_stop_9790_);
v_res_9794_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1_spec__1(v_as_9788_, v_i_boxed_9792_, v_stop_boxed_9793_, v_b_9791_);
lean_dec_ref(v_as_9788_);
return v_res_9794_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1___redArg(uint64_t v_inputHash_9797_, lean_object* v_pkg_9798_, lean_object* v_a_9799_, lean_object* v_a_9800_){
_start:
{
lean_object* v_toContext_9802_; lean_object* v_log_9803_; uint8_t v_action_9804_; uint8_t v_wantsRebuild_9805_; lean_object* v_trace_9806_; lean_object* v_buildTime_9807_; lean_object* v___x_9809_; uint8_t v_isShared_9810_; uint8_t v_isSharedCheck_9900_; 
v_toContext_9802_ = lean_ctor_get(v_a_9799_, 1);
v_log_9803_ = lean_ctor_get(v_a_9800_, 0);
v_action_9804_ = lean_ctor_get_uint8(v_a_9800_, sizeof(void*)*3);
v_wantsRebuild_9805_ = lean_ctor_get_uint8(v_a_9800_, sizeof(void*)*3 + 1);
v_trace_9806_ = lean_ctor_get(v_a_9800_, 1);
v_buildTime_9807_ = lean_ctor_get(v_a_9800_, 2);
v_isSharedCheck_9900_ = !lean_is_exclusive(v_a_9800_);
if (v_isSharedCheck_9900_ == 0)
{
v___x_9809_ = v_a_9800_;
v_isShared_9810_ = v_isSharedCheck_9900_;
goto v_resetjp_9808_;
}
else
{
lean_inc(v_buildTime_9807_);
lean_inc(v_trace_9806_);
lean_inc(v_log_9803_);
lean_dec(v_a_9800_);
v___x_9809_ = lean_box(0);
v_isShared_9810_ = v_isSharedCheck_9900_;
goto v_resetjp_9808_;
}
v_resetjp_9808_:
{
lean_object* v_lakeCache_9811_; lean_object* v___x_9812_; lean_object* v___x_9813_; 
v_lakeCache_9811_ = lean_ctor_get(v_toContext_9802_, 3);
v___x_9812_ = l_Lake_Package_cacheScope(v_pkg_9798_);
lean_inc_ref(v_lakeCache_9811_);
v___x_9813_ = l_Lake_Cache_readOutputs_x3f(v_lakeCache_9811_, v___x_9812_, v_inputHash_9797_, v_log_9803_);
if (lean_obj_tag(v___x_9813_) == 0)
{
lean_object* v_a_9814_; lean_object* v_a_9815_; lean_object* v___x_9817_; uint8_t v_isShared_9818_; uint8_t v_isSharedCheck_9887_; 
v_a_9814_ = lean_ctor_get(v___x_9813_, 0);
v_a_9815_ = lean_ctor_get(v___x_9813_, 1);
v_isSharedCheck_9887_ = !lean_is_exclusive(v___x_9813_);
if (v_isSharedCheck_9887_ == 0)
{
v___x_9817_ = v___x_9813_;
v_isShared_9818_ = v_isSharedCheck_9887_;
goto v_resetjp_9816_;
}
else
{
lean_inc(v_a_9815_);
lean_inc(v_a_9814_);
lean_dec(v___x_9813_);
v___x_9817_ = lean_box(0);
v_isShared_9818_ = v_isSharedCheck_9887_;
goto v_resetjp_9816_;
}
v_resetjp_9816_:
{
lean_object* v___x_9820_; 
if (v_isShared_9810_ == 0)
{
lean_ctor_set(v___x_9809_, 0, v_a_9815_);
v___x_9820_ = v___x_9809_;
goto v_reusejp_9819_;
}
else
{
lean_object* v_reuseFailAlloc_9886_; 
v_reuseFailAlloc_9886_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_9886_, 0, v_a_9815_);
lean_ctor_set(v_reuseFailAlloc_9886_, 1, v_trace_9806_);
lean_ctor_set(v_reuseFailAlloc_9886_, 2, v_buildTime_9807_);
lean_ctor_set_uint8(v_reuseFailAlloc_9886_, sizeof(void*)*3, v_action_9804_);
lean_ctor_set_uint8(v_reuseFailAlloc_9886_, sizeof(void*)*3 + 1, v_wantsRebuild_9805_);
v___x_9820_ = v_reuseFailAlloc_9886_;
goto v_reusejp_9819_;
}
v_reusejp_9819_:
{
if (lean_obj_tag(v_a_9814_) == 1)
{
lean_object* v_val_9821_; lean_object* v___x_9823_; uint8_t v_isShared_9824_; uint8_t v_isSharedCheck_9881_; 
v_val_9821_ = lean_ctor_get(v_a_9814_, 0);
v_isSharedCheck_9881_ = !lean_is_exclusive(v_a_9814_);
if (v_isSharedCheck_9881_ == 0)
{
v___x_9823_ = v_a_9814_;
v_isShared_9824_ = v_isSharedCheck_9881_;
goto v_resetjp_9822_;
}
else
{
lean_inc(v_val_9821_);
lean_dec(v_a_9814_);
v___x_9823_ = lean_box(0);
v_isShared_9824_ = v_isSharedCheck_9881_;
goto v_resetjp_9822_;
}
v_resetjp_9822_:
{
lean_object* v___x_9825_; lean_object* v_r_9827_; lean_object* v___y_9828_; 
v___x_9825_ = l___private_Lake_Build_Module_0__Lake_resolveModuleOutputs___redArg(v_val_9821_, v_a_9799_, v___x_9820_);
if (lean_obj_tag(v___x_9825_) == 0)
{
lean_object* v_a_9832_; lean_object* v_a_9833_; lean_object* v___x_9835_; 
v_a_9832_ = lean_ctor_get(v___x_9825_, 0);
lean_inc(v_a_9832_);
v_a_9833_ = lean_ctor_get(v___x_9825_, 1);
lean_inc(v_a_9833_);
lean_dec_ref(v___x_9825_);
if (v_isShared_9824_ == 0)
{
lean_ctor_set(v___x_9823_, 0, v_a_9832_);
v___x_9835_ = v___x_9823_;
goto v_reusejp_9834_;
}
else
{
lean_object* v_reuseFailAlloc_9836_; 
v_reuseFailAlloc_9836_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_9836_, 0, v_a_9832_);
v___x_9835_ = v_reuseFailAlloc_9836_;
goto v_reusejp_9834_;
}
v_reusejp_9834_:
{
v_r_9827_ = v___x_9835_;
v___y_9828_ = v_a_9833_;
goto v___jp_9826_;
}
}
else
{
lean_object* v_a_9837_; lean_object* v_a_9838_; lean_object* v_log_9839_; uint8_t v_action_9840_; uint8_t v_wantsRebuild_9841_; lean_object* v_trace_9842_; lean_object* v_buildTime_9843_; lean_object* v___x_9845_; uint8_t v_isShared_9846_; uint8_t v_isSharedCheck_9880_; 
lean_del_object(v___x_9823_);
v_a_9837_ = lean_ctor_get(v___x_9825_, 1);
lean_inc(v_a_9837_);
v_a_9838_ = lean_ctor_get(v___x_9825_, 0);
lean_inc(v_a_9838_);
lean_dec_ref(v___x_9825_);
v_log_9839_ = lean_ctor_get(v_a_9837_, 0);
v_action_9840_ = lean_ctor_get_uint8(v_a_9837_, sizeof(void*)*3);
v_wantsRebuild_9841_ = lean_ctor_get_uint8(v_a_9837_, sizeof(void*)*3 + 1);
v_trace_9842_ = lean_ctor_get(v_a_9837_, 1);
v_buildTime_9843_ = lean_ctor_get(v_a_9837_, 2);
v_isSharedCheck_9880_ = !lean_is_exclusive(v_a_9837_);
if (v_isSharedCheck_9880_ == 0)
{
v___x_9845_ = v_a_9837_;
v_isShared_9846_ = v_isSharedCheck_9880_;
goto v_resetjp_9844_;
}
else
{
lean_inc(v_buildTime_9843_);
lean_inc(v_trace_9842_);
lean_inc(v_log_9839_);
lean_dec(v_a_9837_);
v___x_9845_ = lean_box(0);
v_isShared_9846_ = v_isSharedCheck_9880_;
goto v_resetjp_9844_;
}
v_resetjp_9844_:
{
lean_object* v___x_9847_; lean_object* v___x_9848_; lean_object* v___x_9849_; lean_object* v___y_9851_; lean_object* v___x_9859_; lean_object* v___x_9860_; lean_object* v___x_9861_; lean_object* v___x_9862_; lean_object* v___x_9863_; lean_object* v___x_9864_; lean_object* v___x_9865_; lean_object* v___x_9866_; lean_object* v___x_9867_; lean_object* v___x_9868_; lean_object* v___x_9869_; lean_object* v___x_9870_; lean_object* v___x_9871_; uint8_t v___x_9872_; 
v___x_9847_ = lean_array_get_size(v_log_9839_);
lean_inc(v_a_9838_);
v___x_9848_ = l_Array_extract___redArg(v_log_9839_, v_a_9838_, v___x_9847_);
v___x_9849_ = l_Array_shrink___redArg(v_log_9839_, v_a_9838_);
lean_dec(v_a_9838_);
v___x_9859_ = ((lean_object*)(l___private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1___redArg___closed__0));
v___x_9860_ = l_Lake_Hash_hex(v_inputHash_9797_);
v___x_9861_ = lean_unsigned_to_nat(7u);
v___x_9862_ = lean_unsigned_to_nat(0u);
v___x_9863_ = lean_string_utf8_byte_size(v___x_9860_);
lean_inc_ref(v___x_9860_);
v___x_9864_ = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(v___x_9864_, 0, v___x_9860_);
lean_ctor_set(v___x_9864_, 1, v___x_9862_);
lean_ctor_set(v___x_9864_, 2, v___x_9863_);
v___x_9865_ = l_String_Slice_Pos_nextn(v___x_9864_, v___x_9862_, v___x_9861_);
lean_dec_ref(v___x_9864_);
v___x_9866_ = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(v___x_9866_, 0, v___x_9860_);
lean_ctor_set(v___x_9866_, 1, v___x_9862_);
lean_ctor_set(v___x_9866_, 2, v___x_9865_);
v___x_9867_ = l_String_Slice_toString(v___x_9866_);
lean_dec_ref(v___x_9866_);
v___x_9868_ = lean_string_append(v___x_9859_, v___x_9867_);
lean_dec_ref(v___x_9867_);
v___x_9869_ = ((lean_object*)(l___private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1___redArg___closed__1));
v___x_9870_ = lean_string_append(v___x_9868_, v___x_9869_);
v___x_9871_ = lean_array_get_size(v___x_9848_);
v___x_9872_ = lean_nat_dec_lt(v___x_9862_, v___x_9871_);
if (v___x_9872_ == 0)
{
lean_dec_ref(v___x_9848_);
v___y_9851_ = v___x_9870_;
goto v___jp_9850_;
}
else
{
uint8_t v___x_9873_; 
v___x_9873_ = lean_nat_dec_le(v___x_9871_, v___x_9871_);
if (v___x_9873_ == 0)
{
if (v___x_9872_ == 0)
{
lean_dec_ref(v___x_9848_);
v___y_9851_ = v___x_9870_;
goto v___jp_9850_;
}
else
{
size_t v___x_9874_; size_t v___x_9875_; lean_object* v___x_9876_; 
v___x_9874_ = ((size_t)0ULL);
v___x_9875_ = lean_usize_of_nat(v___x_9871_);
v___x_9876_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1_spec__1(v___x_9848_, v___x_9874_, v___x_9875_, v___x_9870_);
lean_dec_ref(v___x_9848_);
v___y_9851_ = v___x_9876_;
goto v___jp_9850_;
}
}
else
{
size_t v___x_9877_; size_t v___x_9878_; lean_object* v___x_9879_; 
v___x_9877_ = ((size_t)0ULL);
v___x_9878_ = lean_usize_of_nat(v___x_9871_);
v___x_9879_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1_spec__1(v___x_9848_, v___x_9877_, v___x_9878_, v___x_9870_);
lean_dec_ref(v___x_9848_);
v___y_9851_ = v___x_9879_;
goto v___jp_9850_;
}
}
v___jp_9850_:
{
uint8_t v___x_9852_; lean_object* v___x_9853_; lean_object* v___x_9854_; lean_object* v___x_9856_; 
v___x_9852_ = 2;
v___x_9853_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_9853_, 0, v___y_9851_);
lean_ctor_set_uint8(v___x_9853_, sizeof(void*)*1, v___x_9852_);
v___x_9854_ = lean_array_push(v___x_9849_, v___x_9853_);
if (v_isShared_9846_ == 0)
{
lean_ctor_set(v___x_9845_, 0, v___x_9854_);
v___x_9856_ = v___x_9845_;
goto v_reusejp_9855_;
}
else
{
lean_object* v_reuseFailAlloc_9858_; 
v_reuseFailAlloc_9858_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_9858_, 0, v___x_9854_);
lean_ctor_set(v_reuseFailAlloc_9858_, 1, v_trace_9842_);
lean_ctor_set(v_reuseFailAlloc_9858_, 2, v_buildTime_9843_);
lean_ctor_set_uint8(v_reuseFailAlloc_9858_, sizeof(void*)*3, v_action_9840_);
lean_ctor_set_uint8(v_reuseFailAlloc_9858_, sizeof(void*)*3 + 1, v_wantsRebuild_9841_);
v___x_9856_ = v_reuseFailAlloc_9858_;
goto v_reusejp_9855_;
}
v_reusejp_9855_:
{
lean_object* v___x_9857_; 
v___x_9857_ = lean_box(0);
v_r_9827_ = v___x_9857_;
v___y_9828_ = v___x_9856_;
goto v___jp_9826_;
}
}
}
}
v___jp_9826_:
{
lean_object* v___x_9830_; 
if (v_isShared_9818_ == 0)
{
lean_ctor_set(v___x_9817_, 1, v___y_9828_);
lean_ctor_set(v___x_9817_, 0, v_r_9827_);
v___x_9830_ = v___x_9817_;
goto v_reusejp_9829_;
}
else
{
lean_object* v_reuseFailAlloc_9831_; 
v_reuseFailAlloc_9831_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_9831_, 0, v_r_9827_);
lean_ctor_set(v_reuseFailAlloc_9831_, 1, v___y_9828_);
v___x_9830_ = v_reuseFailAlloc_9831_;
goto v_reusejp_9829_;
}
v_reusejp_9829_:
{
return v___x_9830_;
}
}
}
}
else
{
lean_object* v___x_9882_; lean_object* v___x_9884_; 
lean_dec(v_a_9814_);
lean_dec_ref(v_a_9799_);
v___x_9882_ = lean_box(0);
if (v_isShared_9818_ == 0)
{
lean_ctor_set(v___x_9817_, 1, v___x_9820_);
lean_ctor_set(v___x_9817_, 0, v___x_9882_);
v___x_9884_ = v___x_9817_;
goto v_reusejp_9883_;
}
else
{
lean_object* v_reuseFailAlloc_9885_; 
v_reuseFailAlloc_9885_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_9885_, 0, v___x_9882_);
lean_ctor_set(v_reuseFailAlloc_9885_, 1, v___x_9820_);
v___x_9884_ = v_reuseFailAlloc_9885_;
goto v_reusejp_9883_;
}
v_reusejp_9883_:
{
return v___x_9884_;
}
}
}
}
}
else
{
lean_object* v_a_9888_; lean_object* v_a_9889_; lean_object* v___x_9891_; uint8_t v_isShared_9892_; uint8_t v_isSharedCheck_9899_; 
lean_dec_ref(v_a_9799_);
v_a_9888_ = lean_ctor_get(v___x_9813_, 0);
v_a_9889_ = lean_ctor_get(v___x_9813_, 1);
v_isSharedCheck_9899_ = !lean_is_exclusive(v___x_9813_);
if (v_isSharedCheck_9899_ == 0)
{
v___x_9891_ = v___x_9813_;
v_isShared_9892_ = v_isSharedCheck_9899_;
goto v_resetjp_9890_;
}
else
{
lean_inc(v_a_9889_);
lean_inc(v_a_9888_);
lean_dec(v___x_9813_);
v___x_9891_ = lean_box(0);
v_isShared_9892_ = v_isSharedCheck_9899_;
goto v_resetjp_9890_;
}
v_resetjp_9890_:
{
lean_object* v___x_9894_; 
if (v_isShared_9810_ == 0)
{
lean_ctor_set(v___x_9809_, 0, v_a_9889_);
v___x_9894_ = v___x_9809_;
goto v_reusejp_9893_;
}
else
{
lean_object* v_reuseFailAlloc_9898_; 
v_reuseFailAlloc_9898_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_9898_, 0, v_a_9889_);
lean_ctor_set(v_reuseFailAlloc_9898_, 1, v_trace_9806_);
lean_ctor_set(v_reuseFailAlloc_9898_, 2, v_buildTime_9807_);
lean_ctor_set_uint8(v_reuseFailAlloc_9898_, sizeof(void*)*3, v_action_9804_);
lean_ctor_set_uint8(v_reuseFailAlloc_9898_, sizeof(void*)*3 + 1, v_wantsRebuild_9805_);
v___x_9894_ = v_reuseFailAlloc_9898_;
goto v_reusejp_9893_;
}
v_reusejp_9893_:
{
lean_object* v___x_9896_; 
if (v_isShared_9892_ == 0)
{
lean_ctor_set(v___x_9891_, 1, v___x_9894_);
v___x_9896_ = v___x_9891_;
goto v_reusejp_9895_;
}
else
{
lean_object* v_reuseFailAlloc_9897_; 
v_reuseFailAlloc_9897_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_9897_, 0, v_a_9888_);
lean_ctor_set(v_reuseFailAlloc_9897_, 1, v___x_9894_);
v___x_9896_ = v_reuseFailAlloc_9897_;
goto v_reusejp_9895_;
}
v_reusejp_9895_:
{
return v___x_9896_;
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1___redArg___boxed(lean_object* v_inputHash_9901_, lean_object* v_pkg_9902_, lean_object* v_a_9903_, lean_object* v_a_9904_, lean_object* v_a_9905_){
_start:
{
uint64_t v_inputHash_boxed_9906_; lean_object* v_res_9907_; 
v_inputHash_boxed_9906_ = lean_unbox_uint64(v_inputHash_9901_);
lean_dec_ref(v_inputHash_9901_);
v_res_9907_ = l___private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1___redArg(v_inputHash_boxed_9906_, v_pkg_9902_, v_a_9903_, v_a_9904_);
return v_res_9907_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f(lean_object* v_mod_9908_, lean_object* v_setup_9909_, lean_object* v_savedTrace_9910_, uint8_t v_restoreAll_9911_, lean_object* v_a_9912_, lean_object* v_a_9913_, lean_object* v_a_9914_, lean_object* v_a_9915_, lean_object* v_a_9916_, lean_object* v_a_9917_){
_start:
{
lean_object* v_arts_9920_; lean_object* v___y_9921_; lean_object* v___y_9925_; lean_object* v___y_9926_; lean_object* v_a_9952_; lean_object* v___y_9956_; lean_object* v_a_9957_; lean_object* v___y_9961_; uint8_t v_a_9962_; lean_object* v_a_9963_; lean_object* v_trace_9985_; lean_object* v_lib_9986_; uint64_t v_hash_9987_; lean_object* v_name_9988_; lean_object* v_pkg_9989_; lean_object* v___y_9991_; lean_object* v___x_10239_; 
v_trace_9985_ = lean_ctor_get(v_a_9917_, 1);
v_lib_9986_ = lean_ctor_get(v_mod_9908_, 0);
v_hash_9987_ = lean_ctor_get_uint64(v_trace_9985_, sizeof(void*)*3);
v_name_9988_ = lean_ctor_get(v_mod_9908_, 1);
v_pkg_9989_ = lean_ctor_get(v_lib_9986_, 0);
lean_inc_ref(v_a_9916_);
lean_inc_ref(v_pkg_9989_);
v___x_10239_ = l___private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1___redArg(v_hash_9987_, v_pkg_9989_, v_a_9916_, v_a_9917_);
if (lean_obj_tag(v___x_10239_) == 0)
{
lean_object* v_a_10240_; 
v_a_10240_ = lean_ctor_get(v___x_10239_, 0);
lean_inc(v_a_10240_);
if (lean_obj_tag(v_a_10240_) == 1)
{
lean_dec_ref(v_a_10240_);
v___y_9991_ = v___x_10239_;
goto v___jp_9990_;
}
else
{
lean_object* v_a_10241_; lean_object* v___x_10242_; lean_object* v_a_10243_; 
lean_dec(v_a_10240_);
v_a_10241_ = lean_ctor_get(v___x_10239_, 1);
lean_inc(v_a_10241_);
lean_dec_ref(v___x_10239_);
lean_inc_ref(v_a_9916_);
lean_inc_ref(v_pkg_9989_);
lean_inc(v_savedTrace_9910_);
v___x_10242_ = l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__2(v_a_9912_, v_hash_9987_, v_savedTrace_9910_, v_pkg_9989_, v_a_9913_, v_a_9914_, v_a_9915_, v_a_9916_, v_a_10241_);
v_a_10243_ = lean_ctor_get(v___x_10242_, 0);
lean_inc(v_a_10243_);
if (lean_obj_tag(v_a_10243_) == 1)
{
lean_dec_ref(v_a_10243_);
v___y_9991_ = v___x_10242_;
goto v___jp_9990_;
}
else
{
lean_object* v_a_10244_; 
lean_dec(v_a_10243_);
lean_dec_ref(v_a_9916_);
lean_dec_ref(v_mod_9908_);
v_a_10244_ = lean_ctor_get(v___x_10242_, 1);
lean_inc(v_a_10244_);
lean_dec_ref(v___x_10242_);
v_a_9952_ = v_a_10244_;
goto v___jp_9951_;
}
}
}
else
{
v___y_9991_ = v___x_10239_;
goto v___jp_9990_;
}
v___jp_9919_:
{
lean_object* v___x_9922_; lean_object* v___x_9923_; 
v___x_9922_ = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(v___x_9922_, 0, v_arts_9920_);
v___x_9923_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_9923_, 0, v___x_9922_);
lean_ctor_set(v___x_9923_, 1, v___y_9921_);
return v___x_9923_;
}
v___jp_9924_:
{
if (v_restoreAll_9911_ == 0)
{
lean_object* v___x_9927_; 
v___x_9927_ = l___private_Lake_Build_Module_0__Lake_Module_restoreNeededArtifacts___redArg(v_mod_9908_, v___y_9925_, v___y_9926_);
if (lean_obj_tag(v___x_9927_) == 0)
{
lean_object* v_a_9928_; lean_object* v_a_9929_; 
v_a_9928_ = lean_ctor_get(v___x_9927_, 0);
lean_inc(v_a_9928_);
v_a_9929_ = lean_ctor_get(v___x_9927_, 1);
lean_inc(v_a_9929_);
lean_dec_ref(v___x_9927_);
v_arts_9920_ = v_a_9928_;
v___y_9921_ = v_a_9929_;
goto v___jp_9919_;
}
else
{
lean_object* v_a_9930_; lean_object* v_a_9931_; lean_object* v___x_9933_; uint8_t v_isShared_9934_; uint8_t v_isSharedCheck_9938_; 
v_a_9930_ = lean_ctor_get(v___x_9927_, 0);
v_a_9931_ = lean_ctor_get(v___x_9927_, 1);
v_isSharedCheck_9938_ = !lean_is_exclusive(v___x_9927_);
if (v_isSharedCheck_9938_ == 0)
{
v___x_9933_ = v___x_9927_;
v_isShared_9934_ = v_isSharedCheck_9938_;
goto v_resetjp_9932_;
}
else
{
lean_inc(v_a_9931_);
lean_inc(v_a_9930_);
lean_dec(v___x_9927_);
v___x_9933_ = lean_box(0);
v_isShared_9934_ = v_isSharedCheck_9938_;
goto v_resetjp_9932_;
}
v_resetjp_9932_:
{
lean_object* v___x_9936_; 
if (v_isShared_9934_ == 0)
{
v___x_9936_ = v___x_9933_;
goto v_reusejp_9935_;
}
else
{
lean_object* v_reuseFailAlloc_9937_; 
v_reuseFailAlloc_9937_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_9937_, 0, v_a_9930_);
lean_ctor_set(v_reuseFailAlloc_9937_, 1, v_a_9931_);
v___x_9936_ = v_reuseFailAlloc_9937_;
goto v_reusejp_9935_;
}
v_reusejp_9935_:
{
return v___x_9936_;
}
}
}
}
else
{
lean_object* v___x_9939_; 
v___x_9939_ = l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts___redArg(v_mod_9908_, v___y_9925_, v___y_9926_);
if (lean_obj_tag(v___x_9939_) == 0)
{
lean_object* v_a_9940_; lean_object* v_a_9941_; 
v_a_9940_ = lean_ctor_get(v___x_9939_, 0);
lean_inc(v_a_9940_);
v_a_9941_ = lean_ctor_get(v___x_9939_, 1);
lean_inc(v_a_9941_);
lean_dec_ref(v___x_9939_);
v_arts_9920_ = v_a_9940_;
v___y_9921_ = v_a_9941_;
goto v___jp_9919_;
}
else
{
lean_object* v_a_9942_; lean_object* v_a_9943_; lean_object* v___x_9945_; uint8_t v_isShared_9946_; uint8_t v_isSharedCheck_9950_; 
v_a_9942_ = lean_ctor_get(v___x_9939_, 0);
v_a_9943_ = lean_ctor_get(v___x_9939_, 1);
v_isSharedCheck_9950_ = !lean_is_exclusive(v___x_9939_);
if (v_isSharedCheck_9950_ == 0)
{
v___x_9945_ = v___x_9939_;
v_isShared_9946_ = v_isSharedCheck_9950_;
goto v_resetjp_9944_;
}
else
{
lean_inc(v_a_9943_);
lean_inc(v_a_9942_);
lean_dec(v___x_9939_);
v___x_9945_ = lean_box(0);
v_isShared_9946_ = v_isSharedCheck_9950_;
goto v_resetjp_9944_;
}
v_resetjp_9944_:
{
lean_object* v___x_9948_; 
if (v_isShared_9946_ == 0)
{
v___x_9948_ = v___x_9945_;
goto v_reusejp_9947_;
}
else
{
lean_object* v_reuseFailAlloc_9949_; 
v_reuseFailAlloc_9949_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_9949_, 0, v_a_9942_);
lean_ctor_set(v_reuseFailAlloc_9949_, 1, v_a_9943_);
v___x_9948_ = v_reuseFailAlloc_9949_;
goto v_reusejp_9947_;
}
v_reusejp_9947_:
{
return v___x_9948_;
}
}
}
}
}
v___jp_9951_:
{
lean_object* v___x_9953_; lean_object* v___x_9954_; 
v___x_9953_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_9953_, 0, v_savedTrace_9910_);
v___x_9954_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_9954_, 0, v___x_9953_);
lean_ctor_set(v___x_9954_, 1, v_a_9952_);
return v___x_9954_;
}
v___jp_9955_:
{
lean_object* v___x_9958_; lean_object* v___x_9959_; 
v___x_9958_ = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(v___x_9958_, 0, v___y_9956_);
v___x_9959_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_9959_, 0, v___x_9958_);
lean_ctor_set(v___x_9959_, 1, v_a_9957_);
return v___x_9959_;
}
v___jp_9960_:
{
if (v_a_9962_ == 0)
{
lean_dec_ref(v_a_9916_);
lean_dec_ref(v_mod_9908_);
v___y_9956_ = v___y_9961_;
v_a_9957_ = v_a_9963_;
goto v___jp_9955_;
}
else
{
uint8_t v_isModule_9964_; lean_object* v___x_9965_; 
lean_dec_ref(v___y_9961_);
v_isModule_9964_ = lean_ctor_get_uint8(v_setup_9909_, sizeof(void*)*7);
v___x_9965_ = l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts___redArg(v_mod_9908_, v_isModule_9964_, v_restoreAll_9911_, v_a_9916_, v_a_9963_);
if (lean_obj_tag(v___x_9965_) == 0)
{
lean_object* v_a_9966_; lean_object* v_a_9967_; lean_object* v___x_9969_; uint8_t v_isShared_9970_; uint8_t v_isSharedCheck_9975_; 
v_a_9966_ = lean_ctor_get(v___x_9965_, 0);
v_a_9967_ = lean_ctor_get(v___x_9965_, 1);
v_isSharedCheck_9975_ = !lean_is_exclusive(v___x_9965_);
if (v_isSharedCheck_9975_ == 0)
{
v___x_9969_ = v___x_9965_;
v_isShared_9970_ = v_isSharedCheck_9975_;
goto v_resetjp_9968_;
}
else
{
lean_inc(v_a_9967_);
lean_inc(v_a_9966_);
lean_dec(v___x_9965_);
v___x_9969_ = lean_box(0);
v_isShared_9970_ = v_isSharedCheck_9975_;
goto v_resetjp_9968_;
}
v_resetjp_9968_:
{
lean_object* v___x_9971_; lean_object* v___x_9973_; 
v___x_9971_ = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(v___x_9971_, 0, v_a_9966_);
if (v_isShared_9970_ == 0)
{
lean_ctor_set(v___x_9969_, 0, v___x_9971_);
v___x_9973_ = v___x_9969_;
goto v_reusejp_9972_;
}
else
{
lean_object* v_reuseFailAlloc_9974_; 
v_reuseFailAlloc_9974_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_9974_, 0, v___x_9971_);
lean_ctor_set(v_reuseFailAlloc_9974_, 1, v_a_9967_);
v___x_9973_ = v_reuseFailAlloc_9974_;
goto v_reusejp_9972_;
}
v_reusejp_9972_:
{
return v___x_9973_;
}
}
}
else
{
lean_object* v_a_9976_; lean_object* v_a_9977_; lean_object* v___x_9979_; uint8_t v_isShared_9980_; uint8_t v_isSharedCheck_9984_; 
v_a_9976_ = lean_ctor_get(v___x_9965_, 0);
v_a_9977_ = lean_ctor_get(v___x_9965_, 1);
v_isSharedCheck_9984_ = !lean_is_exclusive(v___x_9965_);
if (v_isSharedCheck_9984_ == 0)
{
v___x_9979_ = v___x_9965_;
v_isShared_9980_ = v_isSharedCheck_9984_;
goto v_resetjp_9978_;
}
else
{
lean_inc(v_a_9977_);
lean_inc(v_a_9976_);
lean_dec(v___x_9965_);
v___x_9979_ = lean_box(0);
v_isShared_9980_ = v_isSharedCheck_9984_;
goto v_resetjp_9978_;
}
v_resetjp_9978_:
{
lean_object* v___x_9982_; 
if (v_isShared_9980_ == 0)
{
v___x_9982_ = v___x_9979_;
goto v_reusejp_9981_;
}
else
{
lean_object* v_reuseFailAlloc_9983_; 
v_reuseFailAlloc_9983_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_9983_, 0, v_a_9976_);
lean_ctor_set(v_reuseFailAlloc_9983_, 1, v_a_9977_);
v___x_9982_ = v_reuseFailAlloc_9983_;
goto v_reusejp_9981_;
}
v_reusejp_9981_:
{
return v___x_9982_;
}
}
}
}
}
v___jp_9990_:
{
if (lean_obj_tag(v___y_9991_) == 0)
{
lean_object* v_a_9992_; 
v_a_9992_ = lean_ctor_get(v___y_9991_, 0);
if (lean_obj_tag(v_a_9992_) == 1)
{
lean_object* v_val_9993_; 
v_val_9993_ = lean_ctor_get(v_a_9992_, 0);
lean_inc(v_val_9993_);
if (lean_obj_tag(v_val_9993_) == 0)
{
lean_object* v_a_9994_; lean_object* v___x_9996_; uint8_t v_isShared_9997_; uint8_t v_isSharedCheck_10148_; 
lean_dec(v_savedTrace_9910_);
v_a_9994_ = lean_ctor_get(v___y_9991_, 1);
v_isSharedCheck_10148_ = !lean_is_exclusive(v___y_9991_);
if (v_isSharedCheck_10148_ == 0)
{
lean_object* v_unused_10149_; 
v_unused_10149_ = lean_ctor_get(v___y_9991_, 0);
lean_dec(v_unused_10149_);
v___x_9996_ = v___y_9991_;
v_isShared_9997_ = v_isSharedCheck_10148_;
goto v_resetjp_9995_;
}
else
{
lean_inc(v_a_9994_);
lean_dec(v___y_9991_);
v___x_9996_ = lean_box(0);
v_isShared_9997_ = v_isSharedCheck_10148_;
goto v_resetjp_9995_;
}
v_resetjp_9995_:
{
lean_object* v_art_9998_; lean_object* v_log_9999_; uint8_t v_action_10000_; uint8_t v_wantsRebuild_10001_; lean_object* v_trace_10002_; lean_object* v_buildTime_10003_; lean_object* v___x_10004_; 
v_art_9998_ = lean_ctor_get(v_val_9993_, 0);
lean_inc_ref(v_art_9998_);
lean_dec_ref(v_val_9993_);
v_log_9999_ = lean_ctor_get(v_a_9994_, 0);
v_action_10000_ = lean_ctor_get_uint8(v_a_9994_, sizeof(void*)*3);
v_wantsRebuild_10001_ = lean_ctor_get_uint8(v_a_9994_, sizeof(void*)*3 + 1);
v_trace_10002_ = lean_ctor_get(v_a_9994_, 1);
v_buildTime_10003_ = lean_ctor_get(v_a_9994_, 2);
lean_inc_ref(v_mod_9908_);
v___x_10004_ = l_Lake_Module_clearOutputArtifacts(v_mod_9908_);
if (lean_obj_tag(v___x_10004_) == 0)
{
lean_object* v___x_10006_; uint8_t v_isShared_10007_; uint8_t v_isSharedCheck_10127_; 
lean_del_object(v___x_9996_);
v_isSharedCheck_10127_ = !lean_is_exclusive(v___x_10004_);
if (v_isSharedCheck_10127_ == 0)
{
lean_object* v_unused_10128_; 
v_unused_10128_ = lean_ctor_get(v___x_10004_, 0);
lean_dec(v_unused_10128_);
v___x_10006_ = v___x_10004_;
v_isShared_10007_ = v_isSharedCheck_10127_;
goto v_resetjp_10005_;
}
else
{
lean_dec(v___x_10004_);
v___x_10006_ = lean_box(0);
v_isShared_10007_ = v_isSharedCheck_10127_;
goto v_resetjp_10005_;
}
v_resetjp_10005_:
{
lean_object* v_path_10008_; lean_object* v___x_10009_; 
v_path_10008_ = lean_ctor_get(v_art_9998_, 1);
lean_inc_ref(v_path_10008_);
lean_inc_ref(v_mod_9908_);
v___x_10009_ = l___private_Lake_Build_Module_0__Lake_Module_unpackLtar___redArg(v_mod_9908_, v_path_10008_, v_a_9916_, v_a_9994_);
if (lean_obj_tag(v___x_10009_) == 0)
{
lean_object* v_config_10010_; lean_object* v_a_10011_; lean_object* v_dir_10012_; lean_object* v_buildDir_10013_; lean_object* v_leanLibDir_10014_; lean_object* v_enableArtifactCache_x3f_10015_; lean_object* v_log_10016_; uint8_t v_action_10017_; uint8_t v_wantsRebuild_10018_; lean_object* v_trace_10019_; lean_object* v_buildTime_10020_; lean_object* v___x_10022_; uint8_t v_isShared_10023_; uint8_t v_isSharedCheck_10117_; 
v_config_10010_ = lean_ctor_get(v_pkg_9989_, 6);
v_a_10011_ = lean_ctor_get(v___x_10009_, 1);
lean_inc(v_a_10011_);
lean_dec_ref(v___x_10009_);
v_dir_10012_ = lean_ctor_get(v_pkg_9989_, 4);
v_buildDir_10013_ = lean_ctor_get(v_config_10010_, 6);
v_leanLibDir_10014_ = lean_ctor_get(v_config_10010_, 7);
v_enableArtifactCache_x3f_10015_ = lean_ctor_get(v_config_10010_, 25);
v_log_10016_ = lean_ctor_get(v_a_10011_, 0);
v_action_10017_ = lean_ctor_get_uint8(v_a_10011_, sizeof(void*)*3);
v_wantsRebuild_10018_ = lean_ctor_get_uint8(v_a_10011_, sizeof(void*)*3 + 1);
v_trace_10019_ = lean_ctor_get(v_a_10011_, 1);
v_buildTime_10020_ = lean_ctor_get(v_a_10011_, 2);
v_isSharedCheck_10117_ = !lean_is_exclusive(v_a_10011_);
if (v_isSharedCheck_10117_ == 0)
{
v___x_10022_ = v_a_10011_;
v_isShared_10023_ = v_isSharedCheck_10117_;
goto v_resetjp_10021_;
}
else
{
lean_inc(v_buildTime_10020_);
lean_inc(v_trace_10019_);
lean_inc(v_log_10016_);
lean_dec(v_a_10011_);
v___x_10022_ = lean_box(0);
v_isShared_10023_ = v_isSharedCheck_10117_;
goto v_resetjp_10021_;
}
v_resetjp_10021_:
{
lean_object* v___x_10024_; lean_object* v___x_10025_; lean_object* v___x_10026_; lean_object* v___x_10027_; lean_object* v___x_10028_; lean_object* v___x_10029_; lean_object* v___x_10030_; 
v___x_10024_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__4));
lean_inc_ref(v_buildDir_10013_);
v___x_10025_ = l_System_FilePath_normalize(v_buildDir_10013_);
lean_inc_ref(v_dir_10012_);
v___x_10026_ = l_Lake_joinRelative(v_dir_10012_, v___x_10025_);
lean_inc_ref(v_leanLibDir_10014_);
v___x_10027_ = l_System_FilePath_normalize(v_leanLibDir_10014_);
v___x_10028_ = l_Lake_joinRelative(v___x_10026_, v___x_10027_);
lean_inc(v_name_9988_);
v___x_10029_ = l_Lean_modToFilePath(v___x_10028_, v_name_9988_, v___x_10024_);
lean_dec_ref(v___x_10028_);
v___x_10030_ = l_Lake_readTraceFile(v___x_10029_, v_log_10016_);
if (lean_obj_tag(v___x_10030_) == 0)
{
lean_object* v_a_10031_; lean_object* v_a_10032_; lean_object* v___x_10034_; 
v_a_10031_ = lean_ctor_get(v___x_10030_, 0);
lean_inc(v_a_10031_);
v_a_10032_ = lean_ctor_get(v___x_10030_, 1);
lean_inc(v_a_10032_);
lean_dec_ref(v___x_10030_);
if (v_isShared_10023_ == 0)
{
lean_ctor_set(v___x_10022_, 0, v_a_10032_);
v___x_10034_ = v___x_10022_;
goto v_reusejp_10033_;
}
else
{
lean_object* v_reuseFailAlloc_10104_; 
v_reuseFailAlloc_10104_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_10104_, 0, v_a_10032_);
lean_ctor_set(v_reuseFailAlloc_10104_, 1, v_trace_10019_);
lean_ctor_set(v_reuseFailAlloc_10104_, 2, v_buildTime_10020_);
lean_ctor_set_uint8(v_reuseFailAlloc_10104_, sizeof(void*)*3, v_action_10017_);
lean_ctor_set_uint8(v_reuseFailAlloc_10104_, sizeof(void*)*3 + 1, v_wantsRebuild_10018_);
v___x_10034_ = v_reuseFailAlloc_10104_;
goto v_reusejp_10033_;
}
v_reusejp_10033_:
{
lean_object* v___x_10035_; lean_object* v_a_10036_; 
lean_inc_ref(v_a_9916_);
lean_inc_ref(v_pkg_9989_);
lean_inc(v_a_10031_);
v___x_10035_ = l_Lake_getArtifactsUsingTrace_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__0(v_a_9912_, v_hash_9987_, v_a_10031_, v_pkg_9989_, v_a_9913_, v_a_9914_, v_a_9915_, v_a_9916_, v___x_10034_);
v_a_10036_ = lean_ctor_get(v___x_10035_, 0);
lean_inc(v_a_10036_);
if (lean_obj_tag(v_a_10036_) == 1)
{
lean_object* v_val_10037_; lean_object* v___x_10039_; uint8_t v_isShared_10040_; uint8_t v_isSharedCheck_10091_; 
lean_dec(v_a_10031_);
lean_del_object(v___x_10006_);
v_val_10037_ = lean_ctor_get(v_a_10036_, 0);
v_isSharedCheck_10091_ = !lean_is_exclusive(v_a_10036_);
if (v_isSharedCheck_10091_ == 0)
{
v___x_10039_ = v_a_10036_;
v_isShared_10040_ = v_isSharedCheck_10091_;
goto v_resetjp_10038_;
}
else
{
lean_inc(v_val_10037_);
lean_dec(v_a_10036_);
v___x_10039_ = lean_box(0);
v_isShared_10040_ = v_isSharedCheck_10091_;
goto v_resetjp_10038_;
}
v_resetjp_10038_:
{
lean_object* v_a_10041_; uint8_t v_isModule_10042_; lean_object* v_olean_10043_; lean_object* v_oleanServer_x3f_10044_; lean_object* v_oleanPrivate_x3f_10045_; lean_object* v_ilean_10046_; lean_object* v_ir_x3f_10047_; lean_object* v_c_10048_; lean_object* v_bc_x3f_10049_; lean_object* v___x_10051_; uint8_t v_isShared_10052_; uint8_t v_isSharedCheck_10089_; 
v_a_10041_ = lean_ctor_get(v___x_10035_, 1);
lean_inc(v_a_10041_);
lean_dec_ref(v___x_10035_);
v_isModule_10042_ = lean_ctor_get_uint8(v_val_10037_, sizeof(void*)*8);
v_olean_10043_ = lean_ctor_get(v_val_10037_, 0);
v_oleanServer_x3f_10044_ = lean_ctor_get(v_val_10037_, 1);
v_oleanPrivate_x3f_10045_ = lean_ctor_get(v_val_10037_, 2);
v_ilean_10046_ = lean_ctor_get(v_val_10037_, 3);
v_ir_x3f_10047_ = lean_ctor_get(v_val_10037_, 4);
v_c_10048_ = lean_ctor_get(v_val_10037_, 5);
v_bc_x3f_10049_ = lean_ctor_get(v_val_10037_, 6);
v_isSharedCheck_10089_ = !lean_is_exclusive(v_val_10037_);
if (v_isSharedCheck_10089_ == 0)
{
lean_object* v_unused_10090_; 
v_unused_10090_ = lean_ctor_get(v_val_10037_, 7);
lean_dec(v_unused_10090_);
v___x_10051_ = v_val_10037_;
v_isShared_10052_ = v_isSharedCheck_10089_;
goto v_resetjp_10050_;
}
else
{
lean_inc(v_bc_x3f_10049_);
lean_inc(v_c_10048_);
lean_inc(v_ir_x3f_10047_);
lean_inc(v_ilean_10046_);
lean_inc(v_oleanPrivate_x3f_10045_);
lean_inc(v_oleanServer_x3f_10044_);
lean_inc(v_olean_10043_);
lean_dec(v_val_10037_);
v___x_10051_ = lean_box(0);
v_isShared_10052_ = v_isSharedCheck_10089_;
goto v_resetjp_10050_;
}
v_resetjp_10050_:
{
lean_object* v___x_10054_; 
if (v_isShared_10040_ == 0)
{
lean_ctor_set(v___x_10039_, 0, v_art_9998_);
v___x_10054_ = v___x_10039_;
goto v_reusejp_10053_;
}
else
{
lean_object* v_reuseFailAlloc_10088_; 
v_reuseFailAlloc_10088_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_10088_, 0, v_art_9998_);
v___x_10054_ = v_reuseFailAlloc_10088_;
goto v_reusejp_10053_;
}
v_reusejp_10053_:
{
lean_object* v___x_10056_; 
if (v_isShared_10052_ == 0)
{
lean_ctor_set(v___x_10051_, 7, v___x_10054_);
v___x_10056_ = v___x_10051_;
goto v_reusejp_10055_;
}
else
{
lean_object* v_reuseFailAlloc_10087_; 
v_reuseFailAlloc_10087_ = lean_alloc_ctor(0, 8, 1);
lean_ctor_set(v_reuseFailAlloc_10087_, 0, v_olean_10043_);
lean_ctor_set(v_reuseFailAlloc_10087_, 1, v_oleanServer_x3f_10044_);
lean_ctor_set(v_reuseFailAlloc_10087_, 2, v_oleanPrivate_x3f_10045_);
lean_ctor_set(v_reuseFailAlloc_10087_, 3, v_ilean_10046_);
lean_ctor_set(v_reuseFailAlloc_10087_, 4, v_ir_x3f_10047_);
lean_ctor_set(v_reuseFailAlloc_10087_, 5, v_c_10048_);
lean_ctor_set(v_reuseFailAlloc_10087_, 6, v_bc_x3f_10049_);
lean_ctor_set(v_reuseFailAlloc_10087_, 7, v___x_10054_);
lean_ctor_set_uint8(v_reuseFailAlloc_10087_, sizeof(void*)*8, v_isModule_10042_);
v___x_10056_ = v_reuseFailAlloc_10087_;
goto v_reusejp_10055_;
}
v_reusejp_10055_:
{
lean_object* v___x_10057_; 
lean_inc_ref(v_mod_9908_);
v___x_10057_ = l___private_Lake_Build_Module_0__Lake_Module_restoreAllArtifacts___redArg(v_mod_9908_, v___x_10056_, v_a_10041_);
if (lean_obj_tag(v___x_10057_) == 0)
{
if (lean_obj_tag(v_enableArtifactCache_x3f_10015_) == 0)
{
lean_object* v_toContext_10058_; lean_object* v_lakeEnv_10059_; lean_object* v_enableArtifactCache_x3f_10060_; 
v_toContext_10058_ = lean_ctor_get(v_a_9916_, 1);
v_lakeEnv_10059_ = lean_ctor_get(v_toContext_10058_, 1);
v_enableArtifactCache_x3f_10060_ = lean_ctor_get(v_lakeEnv_10059_, 6);
if (lean_obj_tag(v_enableArtifactCache_x3f_10060_) == 0)
{
lean_object* v_root_10061_; lean_object* v_config_10062_; lean_object* v_enableArtifactCache_x3f_10063_; 
v_root_10061_ = lean_ctor_get(v_toContext_10058_, 0);
v_config_10062_ = lean_ctor_get(v_root_10061_, 6);
v_enableArtifactCache_x3f_10063_ = lean_ctor_get(v_config_10062_, 25);
if (lean_obj_tag(v_enableArtifactCache_x3f_10063_) == 0)
{
lean_object* v_a_10064_; lean_object* v_a_10065_; 
lean_dec_ref(v_a_9916_);
lean_dec_ref(v_mod_9908_);
v_a_10064_ = lean_ctor_get(v___x_10057_, 0);
lean_inc(v_a_10064_);
v_a_10065_ = lean_ctor_get(v___x_10057_, 1);
lean_inc(v_a_10065_);
lean_dec_ref(v___x_10057_);
v___y_9956_ = v_a_10064_;
v_a_9957_ = v_a_10065_;
goto v___jp_9955_;
}
else
{
lean_object* v_a_10066_; lean_object* v_a_10067_; lean_object* v_val_10068_; uint8_t v___x_10069_; 
v_a_10066_ = lean_ctor_get(v___x_10057_, 0);
lean_inc(v_a_10066_);
v_a_10067_ = lean_ctor_get(v___x_10057_, 1);
lean_inc(v_a_10067_);
lean_dec_ref(v___x_10057_);
v_val_10068_ = lean_ctor_get(v_enableArtifactCache_x3f_10063_, 0);
v___x_10069_ = lean_unbox(v_val_10068_);
v___y_9961_ = v_a_10066_;
v_a_9962_ = v___x_10069_;
v_a_9963_ = v_a_10067_;
goto v___jp_9960_;
}
}
else
{
lean_object* v_a_10070_; lean_object* v_a_10071_; lean_object* v_val_10072_; uint8_t v___x_10073_; 
v_a_10070_ = lean_ctor_get(v___x_10057_, 0);
lean_inc(v_a_10070_);
v_a_10071_ = lean_ctor_get(v___x_10057_, 1);
lean_inc(v_a_10071_);
lean_dec_ref(v___x_10057_);
v_val_10072_ = lean_ctor_get(v_enableArtifactCache_x3f_10060_, 0);
v___x_10073_ = lean_unbox(v_val_10072_);
v___y_9961_ = v_a_10070_;
v_a_9962_ = v___x_10073_;
v_a_9963_ = v_a_10071_;
goto v___jp_9960_;
}
}
else
{
lean_object* v_a_10074_; lean_object* v_a_10075_; lean_object* v_val_10076_; uint8_t v___x_10077_; 
v_a_10074_ = lean_ctor_get(v___x_10057_, 0);
lean_inc(v_a_10074_);
v_a_10075_ = lean_ctor_get(v___x_10057_, 1);
lean_inc(v_a_10075_);
lean_dec_ref(v___x_10057_);
v_val_10076_ = lean_ctor_get(v_enableArtifactCache_x3f_10015_, 0);
v___x_10077_ = lean_unbox(v_val_10076_);
v___y_9961_ = v_a_10074_;
v_a_9962_ = v___x_10077_;
v_a_9963_ = v_a_10075_;
goto v___jp_9960_;
}
}
else
{
lean_object* v_a_10078_; lean_object* v_a_10079_; lean_object* v___x_10081_; uint8_t v_isShared_10082_; uint8_t v_isSharedCheck_10086_; 
lean_dec_ref(v_a_9916_);
lean_dec_ref(v_mod_9908_);
v_a_10078_ = lean_ctor_get(v___x_10057_, 0);
v_a_10079_ = lean_ctor_get(v___x_10057_, 1);
v_isSharedCheck_10086_ = !lean_is_exclusive(v___x_10057_);
if (v_isSharedCheck_10086_ == 0)
{
v___x_10081_ = v___x_10057_;
v_isShared_10082_ = v_isSharedCheck_10086_;
goto v_resetjp_10080_;
}
else
{
lean_inc(v_a_10079_);
lean_inc(v_a_10078_);
lean_dec(v___x_10057_);
v___x_10081_ = lean_box(0);
v_isShared_10082_ = v_isSharedCheck_10086_;
goto v_resetjp_10080_;
}
v_resetjp_10080_:
{
lean_object* v___x_10084_; 
if (v_isShared_10082_ == 0)
{
v___x_10084_ = v___x_10081_;
goto v_reusejp_10083_;
}
else
{
lean_object* v_reuseFailAlloc_10085_; 
v_reuseFailAlloc_10085_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10085_, 0, v_a_10078_);
lean_ctor_set(v_reuseFailAlloc_10085_, 1, v_a_10079_);
v___x_10084_ = v_reuseFailAlloc_10085_;
goto v_reusejp_10083_;
}
v_reusejp_10083_:
{
return v___x_10084_;
}
}
}
}
}
}
}
}
else
{
lean_object* v_a_10092_; lean_object* v___x_10094_; uint8_t v_isShared_10095_; uint8_t v_isSharedCheck_10102_; 
lean_dec(v_a_10036_);
lean_dec_ref(v_art_9998_);
lean_dec_ref(v_a_9916_);
lean_dec_ref(v_mod_9908_);
v_a_10092_ = lean_ctor_get(v___x_10035_, 1);
v_isSharedCheck_10102_ = !lean_is_exclusive(v___x_10035_);
if (v_isSharedCheck_10102_ == 0)
{
lean_object* v_unused_10103_; 
v_unused_10103_ = lean_ctor_get(v___x_10035_, 0);
lean_dec(v_unused_10103_);
v___x_10094_ = v___x_10035_;
v_isShared_10095_ = v_isSharedCheck_10102_;
goto v_resetjp_10093_;
}
else
{
lean_inc(v_a_10092_);
lean_dec(v___x_10035_);
v___x_10094_ = lean_box(0);
v_isShared_10095_ = v_isSharedCheck_10102_;
goto v_resetjp_10093_;
}
v_resetjp_10093_:
{
lean_object* v___x_10097_; 
if (v_isShared_10007_ == 0)
{
lean_ctor_set_tag(v___x_10006_, 1);
lean_ctor_set(v___x_10006_, 0, v_a_10031_);
v___x_10097_ = v___x_10006_;
goto v_reusejp_10096_;
}
else
{
lean_object* v_reuseFailAlloc_10101_; 
v_reuseFailAlloc_10101_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_10101_, 0, v_a_10031_);
v___x_10097_ = v_reuseFailAlloc_10101_;
goto v_reusejp_10096_;
}
v_reusejp_10096_:
{
lean_object* v___x_10099_; 
if (v_isShared_10095_ == 0)
{
lean_ctor_set(v___x_10094_, 0, v___x_10097_);
v___x_10099_ = v___x_10094_;
goto v_reusejp_10098_;
}
else
{
lean_object* v_reuseFailAlloc_10100_; 
v_reuseFailAlloc_10100_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10100_, 0, v___x_10097_);
lean_ctor_set(v_reuseFailAlloc_10100_, 1, v_a_10092_);
v___x_10099_ = v_reuseFailAlloc_10100_;
goto v_reusejp_10098_;
}
v_reusejp_10098_:
{
return v___x_10099_;
}
}
}
}
}
}
else
{
lean_object* v_a_10105_; lean_object* v_a_10106_; lean_object* v___x_10108_; uint8_t v_isShared_10109_; uint8_t v_isSharedCheck_10116_; 
lean_del_object(v___x_10006_);
lean_dec_ref(v_art_9998_);
lean_dec_ref(v_a_9916_);
lean_dec_ref(v_mod_9908_);
v_a_10105_ = lean_ctor_get(v___x_10030_, 0);
v_a_10106_ = lean_ctor_get(v___x_10030_, 1);
v_isSharedCheck_10116_ = !lean_is_exclusive(v___x_10030_);
if (v_isSharedCheck_10116_ == 0)
{
v___x_10108_ = v___x_10030_;
v_isShared_10109_ = v_isSharedCheck_10116_;
goto v_resetjp_10107_;
}
else
{
lean_inc(v_a_10106_);
lean_inc(v_a_10105_);
lean_dec(v___x_10030_);
v___x_10108_ = lean_box(0);
v_isShared_10109_ = v_isSharedCheck_10116_;
goto v_resetjp_10107_;
}
v_resetjp_10107_:
{
lean_object* v___x_10111_; 
if (v_isShared_10023_ == 0)
{
lean_ctor_set(v___x_10022_, 0, v_a_10106_);
v___x_10111_ = v___x_10022_;
goto v_reusejp_10110_;
}
else
{
lean_object* v_reuseFailAlloc_10115_; 
v_reuseFailAlloc_10115_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_10115_, 0, v_a_10106_);
lean_ctor_set(v_reuseFailAlloc_10115_, 1, v_trace_10019_);
lean_ctor_set(v_reuseFailAlloc_10115_, 2, v_buildTime_10020_);
lean_ctor_set_uint8(v_reuseFailAlloc_10115_, sizeof(void*)*3, v_action_10017_);
lean_ctor_set_uint8(v_reuseFailAlloc_10115_, sizeof(void*)*3 + 1, v_wantsRebuild_10018_);
v___x_10111_ = v_reuseFailAlloc_10115_;
goto v_reusejp_10110_;
}
v_reusejp_10110_:
{
lean_object* v___x_10113_; 
if (v_isShared_10109_ == 0)
{
lean_ctor_set(v___x_10108_, 1, v___x_10111_);
v___x_10113_ = v___x_10108_;
goto v_reusejp_10112_;
}
else
{
lean_object* v_reuseFailAlloc_10114_; 
v_reuseFailAlloc_10114_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10114_, 0, v_a_10105_);
lean_ctor_set(v_reuseFailAlloc_10114_, 1, v___x_10111_);
v___x_10113_ = v_reuseFailAlloc_10114_;
goto v_reusejp_10112_;
}
v_reusejp_10112_:
{
return v___x_10113_;
}
}
}
}
}
}
else
{
lean_object* v_a_10118_; lean_object* v_a_10119_; lean_object* v___x_10121_; uint8_t v_isShared_10122_; uint8_t v_isSharedCheck_10126_; 
lean_del_object(v___x_10006_);
lean_dec_ref(v_art_9998_);
lean_dec_ref(v_a_9916_);
lean_dec_ref(v_mod_9908_);
v_a_10118_ = lean_ctor_get(v___x_10009_, 0);
v_a_10119_ = lean_ctor_get(v___x_10009_, 1);
v_isSharedCheck_10126_ = !lean_is_exclusive(v___x_10009_);
if (v_isSharedCheck_10126_ == 0)
{
v___x_10121_ = v___x_10009_;
v_isShared_10122_ = v_isSharedCheck_10126_;
goto v_resetjp_10120_;
}
else
{
lean_inc(v_a_10119_);
lean_inc(v_a_10118_);
lean_dec(v___x_10009_);
v___x_10121_ = lean_box(0);
v_isShared_10122_ = v_isSharedCheck_10126_;
goto v_resetjp_10120_;
}
v_resetjp_10120_:
{
lean_object* v___x_10124_; 
if (v_isShared_10122_ == 0)
{
v___x_10124_ = v___x_10121_;
goto v_reusejp_10123_;
}
else
{
lean_object* v_reuseFailAlloc_10125_; 
v_reuseFailAlloc_10125_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10125_, 0, v_a_10118_);
lean_ctor_set(v_reuseFailAlloc_10125_, 1, v_a_10119_);
v___x_10124_ = v_reuseFailAlloc_10125_;
goto v_reusejp_10123_;
}
v_reusejp_10123_:
{
return v___x_10124_;
}
}
}
}
}
else
{
lean_object* v___x_10130_; uint8_t v_isShared_10131_; uint8_t v_isSharedCheck_10144_; 
lean_inc(v_buildTime_10003_);
lean_inc_ref(v_trace_10002_);
lean_inc_ref(v_log_9999_);
lean_dec_ref(v_art_9998_);
lean_dec_ref(v_a_9916_);
lean_dec_ref(v_mod_9908_);
v_isSharedCheck_10144_ = !lean_is_exclusive(v_a_9994_);
if (v_isSharedCheck_10144_ == 0)
{
lean_object* v_unused_10145_; lean_object* v_unused_10146_; lean_object* v_unused_10147_; 
v_unused_10145_ = lean_ctor_get(v_a_9994_, 2);
lean_dec(v_unused_10145_);
v_unused_10146_ = lean_ctor_get(v_a_9994_, 1);
lean_dec(v_unused_10146_);
v_unused_10147_ = lean_ctor_get(v_a_9994_, 0);
lean_dec(v_unused_10147_);
v___x_10130_ = v_a_9994_;
v_isShared_10131_ = v_isSharedCheck_10144_;
goto v_resetjp_10129_;
}
else
{
lean_dec(v_a_9994_);
v___x_10130_ = lean_box(0);
v_isShared_10131_ = v_isSharedCheck_10144_;
goto v_resetjp_10129_;
}
v_resetjp_10129_:
{
lean_object* v_a_10132_; lean_object* v___x_10133_; uint8_t v___x_10134_; lean_object* v___x_10135_; lean_object* v___x_10136_; lean_object* v___x_10137_; lean_object* v___x_10139_; 
v_a_10132_ = lean_ctor_get(v___x_10004_, 0);
lean_inc(v_a_10132_);
lean_dec_ref(v___x_10004_);
v___x_10133_ = lean_io_error_to_string(v_a_10132_);
v___x_10134_ = 3;
v___x_10135_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_10135_, 0, v___x_10133_);
lean_ctor_set_uint8(v___x_10135_, sizeof(void*)*1, v___x_10134_);
v___x_10136_ = lean_array_get_size(v_log_9999_);
v___x_10137_ = lean_array_push(v_log_9999_, v___x_10135_);
if (v_isShared_10131_ == 0)
{
lean_ctor_set(v___x_10130_, 0, v___x_10137_);
v___x_10139_ = v___x_10130_;
goto v_reusejp_10138_;
}
else
{
lean_object* v_reuseFailAlloc_10143_; 
v_reuseFailAlloc_10143_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_10143_, 0, v___x_10137_);
lean_ctor_set(v_reuseFailAlloc_10143_, 1, v_trace_10002_);
lean_ctor_set(v_reuseFailAlloc_10143_, 2, v_buildTime_10003_);
lean_ctor_set_uint8(v_reuseFailAlloc_10143_, sizeof(void*)*3, v_action_10000_);
lean_ctor_set_uint8(v_reuseFailAlloc_10143_, sizeof(void*)*3 + 1, v_wantsRebuild_10001_);
v___x_10139_ = v_reuseFailAlloc_10143_;
goto v_reusejp_10138_;
}
v_reusejp_10138_:
{
lean_object* v___x_10141_; 
if (v_isShared_9997_ == 0)
{
lean_ctor_set_tag(v___x_9996_, 1);
lean_ctor_set(v___x_9996_, 1, v___x_10139_);
lean_ctor_set(v___x_9996_, 0, v___x_10136_);
v___x_10141_ = v___x_9996_;
goto v_reusejp_10140_;
}
else
{
lean_object* v_reuseFailAlloc_10142_; 
v_reuseFailAlloc_10142_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10142_, 0, v___x_10136_);
lean_ctor_set(v_reuseFailAlloc_10142_, 1, v___x_10139_);
v___x_10141_ = v_reuseFailAlloc_10142_;
goto v_reusejp_10140_;
}
v_reusejp_10140_:
{
return v___x_10141_;
}
}
}
}
}
}
else
{
lean_object* v_a_10150_; lean_object* v_arts_10151_; lean_object* v___x_10152_; 
lean_dec_ref(v_a_9916_);
v_a_10150_ = lean_ctor_get(v___y_9991_, 1);
lean_inc(v_a_10150_);
lean_dec_ref(v___y_9991_);
v_arts_10151_ = lean_ctor_get(v_val_9993_, 0);
lean_inc_ref(v_arts_10151_);
lean_dec_ref(v_val_9993_);
v___x_10152_ = l_Lake_SavedTrace_replayOrFetchIfUpToDate___redArg(v_hash_9987_, v_savedTrace_9910_, v_a_10150_);
lean_dec(v_savedTrace_9910_);
if (lean_obj_tag(v___x_10152_) == 0)
{
lean_object* v_a_10153_; uint8_t v___x_10154_; 
v_a_10153_ = lean_ctor_get(v___x_10152_, 0);
lean_inc(v_a_10153_);
v___x_10154_ = lean_unbox(v_a_10153_);
lean_dec(v_a_10153_);
if (v___x_10154_ == 0)
{
lean_object* v_a_10155_; lean_object* v___x_10157_; uint8_t v_isShared_10158_; uint8_t v_isSharedCheck_10217_; 
v_a_10155_ = lean_ctor_get(v___x_10152_, 1);
v_isSharedCheck_10217_ = !lean_is_exclusive(v___x_10152_);
if (v_isSharedCheck_10217_ == 0)
{
lean_object* v_unused_10218_; 
v_unused_10218_ = lean_ctor_get(v___x_10152_, 0);
lean_dec(v_unused_10218_);
v___x_10157_ = v___x_10152_;
v_isShared_10158_ = v_isSharedCheck_10217_;
goto v_resetjp_10156_;
}
else
{
lean_inc(v_a_10155_);
lean_dec(v___x_10152_);
v___x_10157_ = lean_box(0);
v_isShared_10158_ = v_isSharedCheck_10217_;
goto v_resetjp_10156_;
}
v_resetjp_10156_:
{
lean_object* v_log_10159_; uint8_t v_action_10160_; uint8_t v_wantsRebuild_10161_; lean_object* v_trace_10162_; lean_object* v_buildTime_10163_; lean_object* v___x_10164_; 
v_log_10159_ = lean_ctor_get(v_a_10155_, 0);
v_action_10160_ = lean_ctor_get_uint8(v_a_10155_, sizeof(void*)*3);
v_wantsRebuild_10161_ = lean_ctor_get_uint8(v_a_10155_, sizeof(void*)*3 + 1);
v_trace_10162_ = lean_ctor_get(v_a_10155_, 1);
v_buildTime_10163_ = lean_ctor_get(v_a_10155_, 2);
lean_inc_ref(v_mod_9908_);
v___x_10164_ = l_Lake_Module_clearOutputArtifacts(v_mod_9908_);
if (lean_obj_tag(v___x_10164_) == 0)
{
lean_object* v_config_10165_; lean_object* v_dir_10166_; lean_object* v_buildDir_10167_; lean_object* v_leanLibDir_10168_; lean_object* v___x_10169_; lean_object* v___x_10170_; lean_object* v___x_10171_; lean_object* v___x_10172_; lean_object* v___x_10173_; lean_object* v___x_10174_; lean_object* v___x_10175_; lean_object* v___x_10176_; lean_object* v___x_10177_; lean_object* v___x_10178_; 
lean_dec_ref(v___x_10164_);
v_config_10165_ = lean_ctor_get(v_pkg_9989_, 6);
v_dir_10166_ = lean_ctor_get(v_pkg_9989_, 4);
v_buildDir_10167_ = lean_ctor_get(v_config_10165_, 6);
v_leanLibDir_10168_ = lean_ctor_get(v_config_10165_, 7);
v___x_10169_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__4));
lean_inc_ref(v_buildDir_10167_);
v___x_10170_ = l_System_FilePath_normalize(v_buildDir_10167_);
lean_inc_ref(v_dir_10166_);
v___x_10171_ = l_Lake_joinRelative(v_dir_10166_, v___x_10170_);
lean_inc_ref(v_leanLibDir_10168_);
v___x_10172_ = l_System_FilePath_normalize(v_leanLibDir_10168_);
v___x_10173_ = l_Lake_joinRelative(v___x_10171_, v___x_10172_);
lean_inc(v_name_9988_);
v___x_10174_ = l_Lean_modToFilePath(v___x_10173_, v_name_9988_, v___x_10169_);
lean_dec_ref(v___x_10173_);
lean_inc_ref(v_arts_10151_);
v___x_10175_ = l_Lake_ModuleOutputArtifacts_descrs(v_arts_10151_);
v___x_10176_ = l_Lake_ModuleOutputDescrs_toJson(v___x_10175_);
v___x_10177_ = l_Lake_BuildMetadata_ofFetch(v_hash_9987_, v___x_10176_);
v___x_10178_ = l_Lake_BuildMetadata_writeFile(v___x_10174_, v___x_10177_);
if (lean_obj_tag(v___x_10178_) == 0)
{
lean_dec_ref(v___x_10178_);
lean_del_object(v___x_10157_);
v___y_9925_ = v_arts_10151_;
v___y_9926_ = v_a_10155_;
goto v___jp_9924_;
}
else
{
lean_object* v___x_10180_; uint8_t v_isShared_10181_; uint8_t v_isSharedCheck_10194_; 
lean_inc(v_buildTime_10163_);
lean_inc_ref(v_trace_10162_);
lean_inc_ref(v_log_10159_);
lean_dec_ref(v_arts_10151_);
lean_dec_ref(v_mod_9908_);
v_isSharedCheck_10194_ = !lean_is_exclusive(v_a_10155_);
if (v_isSharedCheck_10194_ == 0)
{
lean_object* v_unused_10195_; lean_object* v_unused_10196_; lean_object* v_unused_10197_; 
v_unused_10195_ = lean_ctor_get(v_a_10155_, 2);
lean_dec(v_unused_10195_);
v_unused_10196_ = lean_ctor_get(v_a_10155_, 1);
lean_dec(v_unused_10196_);
v_unused_10197_ = lean_ctor_get(v_a_10155_, 0);
lean_dec(v_unused_10197_);
v___x_10180_ = v_a_10155_;
v_isShared_10181_ = v_isSharedCheck_10194_;
goto v_resetjp_10179_;
}
else
{
lean_dec(v_a_10155_);
v___x_10180_ = lean_box(0);
v_isShared_10181_ = v_isSharedCheck_10194_;
goto v_resetjp_10179_;
}
v_resetjp_10179_:
{
lean_object* v_a_10182_; lean_object* v___x_10183_; uint8_t v___x_10184_; lean_object* v___x_10185_; lean_object* v___x_10186_; lean_object* v___x_10187_; lean_object* v___x_10189_; 
v_a_10182_ = lean_ctor_get(v___x_10178_, 0);
lean_inc(v_a_10182_);
lean_dec_ref(v___x_10178_);
v___x_10183_ = lean_io_error_to_string(v_a_10182_);
v___x_10184_ = 3;
v___x_10185_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_10185_, 0, v___x_10183_);
lean_ctor_set_uint8(v___x_10185_, sizeof(void*)*1, v___x_10184_);
v___x_10186_ = lean_array_get_size(v_log_10159_);
v___x_10187_ = lean_array_push(v_log_10159_, v___x_10185_);
if (v_isShared_10181_ == 0)
{
lean_ctor_set(v___x_10180_, 0, v___x_10187_);
v___x_10189_ = v___x_10180_;
goto v_reusejp_10188_;
}
else
{
lean_object* v_reuseFailAlloc_10193_; 
v_reuseFailAlloc_10193_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_10193_, 0, v___x_10187_);
lean_ctor_set(v_reuseFailAlloc_10193_, 1, v_trace_10162_);
lean_ctor_set(v_reuseFailAlloc_10193_, 2, v_buildTime_10163_);
lean_ctor_set_uint8(v_reuseFailAlloc_10193_, sizeof(void*)*3, v_action_10160_);
lean_ctor_set_uint8(v_reuseFailAlloc_10193_, sizeof(void*)*3 + 1, v_wantsRebuild_10161_);
v___x_10189_ = v_reuseFailAlloc_10193_;
goto v_reusejp_10188_;
}
v_reusejp_10188_:
{
lean_object* v___x_10191_; 
if (v_isShared_10158_ == 0)
{
lean_ctor_set_tag(v___x_10157_, 1);
lean_ctor_set(v___x_10157_, 1, v___x_10189_);
lean_ctor_set(v___x_10157_, 0, v___x_10186_);
v___x_10191_ = v___x_10157_;
goto v_reusejp_10190_;
}
else
{
lean_object* v_reuseFailAlloc_10192_; 
v_reuseFailAlloc_10192_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10192_, 0, v___x_10186_);
lean_ctor_set(v_reuseFailAlloc_10192_, 1, v___x_10189_);
v___x_10191_ = v_reuseFailAlloc_10192_;
goto v_reusejp_10190_;
}
v_reusejp_10190_:
{
return v___x_10191_;
}
}
}
}
}
else
{
lean_object* v___x_10199_; uint8_t v_isShared_10200_; uint8_t v_isSharedCheck_10213_; 
lean_inc(v_buildTime_10163_);
lean_inc_ref(v_trace_10162_);
lean_inc_ref(v_log_10159_);
lean_dec_ref(v_arts_10151_);
lean_dec_ref(v_mod_9908_);
v_isSharedCheck_10213_ = !lean_is_exclusive(v_a_10155_);
if (v_isSharedCheck_10213_ == 0)
{
lean_object* v_unused_10214_; lean_object* v_unused_10215_; lean_object* v_unused_10216_; 
v_unused_10214_ = lean_ctor_get(v_a_10155_, 2);
lean_dec(v_unused_10214_);
v_unused_10215_ = lean_ctor_get(v_a_10155_, 1);
lean_dec(v_unused_10215_);
v_unused_10216_ = lean_ctor_get(v_a_10155_, 0);
lean_dec(v_unused_10216_);
v___x_10199_ = v_a_10155_;
v_isShared_10200_ = v_isSharedCheck_10213_;
goto v_resetjp_10198_;
}
else
{
lean_dec(v_a_10155_);
v___x_10199_ = lean_box(0);
v_isShared_10200_ = v_isSharedCheck_10213_;
goto v_resetjp_10198_;
}
v_resetjp_10198_:
{
lean_object* v_a_10201_; lean_object* v___x_10202_; uint8_t v___x_10203_; lean_object* v___x_10204_; lean_object* v___x_10205_; lean_object* v___x_10206_; lean_object* v___x_10208_; 
v_a_10201_ = lean_ctor_get(v___x_10164_, 0);
lean_inc(v_a_10201_);
lean_dec_ref(v___x_10164_);
v___x_10202_ = lean_io_error_to_string(v_a_10201_);
v___x_10203_ = 3;
v___x_10204_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_10204_, 0, v___x_10202_);
lean_ctor_set_uint8(v___x_10204_, sizeof(void*)*1, v___x_10203_);
v___x_10205_ = lean_array_get_size(v_log_10159_);
v___x_10206_ = lean_array_push(v_log_10159_, v___x_10204_);
if (v_isShared_10200_ == 0)
{
lean_ctor_set(v___x_10199_, 0, v___x_10206_);
v___x_10208_ = v___x_10199_;
goto v_reusejp_10207_;
}
else
{
lean_object* v_reuseFailAlloc_10212_; 
v_reuseFailAlloc_10212_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_10212_, 0, v___x_10206_);
lean_ctor_set(v_reuseFailAlloc_10212_, 1, v_trace_10162_);
lean_ctor_set(v_reuseFailAlloc_10212_, 2, v_buildTime_10163_);
lean_ctor_set_uint8(v_reuseFailAlloc_10212_, sizeof(void*)*3, v_action_10160_);
lean_ctor_set_uint8(v_reuseFailAlloc_10212_, sizeof(void*)*3 + 1, v_wantsRebuild_10161_);
v___x_10208_ = v_reuseFailAlloc_10212_;
goto v_reusejp_10207_;
}
v_reusejp_10207_:
{
lean_object* v___x_10210_; 
if (v_isShared_10158_ == 0)
{
lean_ctor_set_tag(v___x_10157_, 1);
lean_ctor_set(v___x_10157_, 1, v___x_10208_);
lean_ctor_set(v___x_10157_, 0, v___x_10205_);
v___x_10210_ = v___x_10157_;
goto v_reusejp_10209_;
}
else
{
lean_object* v_reuseFailAlloc_10211_; 
v_reuseFailAlloc_10211_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10211_, 0, v___x_10205_);
lean_ctor_set(v_reuseFailAlloc_10211_, 1, v___x_10208_);
v___x_10210_ = v_reuseFailAlloc_10211_;
goto v_reusejp_10209_;
}
v_reusejp_10209_:
{
return v___x_10210_;
}
}
}
}
}
}
else
{
lean_object* v_a_10219_; 
v_a_10219_ = lean_ctor_get(v___x_10152_, 1);
lean_inc(v_a_10219_);
lean_dec_ref(v___x_10152_);
v___y_9925_ = v_arts_10151_;
v___y_9926_ = v_a_10219_;
goto v___jp_9924_;
}
}
else
{
lean_object* v_a_10220_; lean_object* v_a_10221_; lean_object* v___x_10223_; uint8_t v_isShared_10224_; uint8_t v_isSharedCheck_10228_; 
lean_dec_ref(v_arts_10151_);
lean_dec_ref(v_mod_9908_);
v_a_10220_ = lean_ctor_get(v___x_10152_, 0);
v_a_10221_ = lean_ctor_get(v___x_10152_, 1);
v_isSharedCheck_10228_ = !lean_is_exclusive(v___x_10152_);
if (v_isSharedCheck_10228_ == 0)
{
v___x_10223_ = v___x_10152_;
v_isShared_10224_ = v_isSharedCheck_10228_;
goto v_resetjp_10222_;
}
else
{
lean_inc(v_a_10221_);
lean_inc(v_a_10220_);
lean_dec(v___x_10152_);
v___x_10223_ = lean_box(0);
v_isShared_10224_ = v_isSharedCheck_10228_;
goto v_resetjp_10222_;
}
v_resetjp_10222_:
{
lean_object* v___x_10226_; 
if (v_isShared_10224_ == 0)
{
v___x_10226_ = v___x_10223_;
goto v_reusejp_10225_;
}
else
{
lean_object* v_reuseFailAlloc_10227_; 
v_reuseFailAlloc_10227_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10227_, 0, v_a_10220_);
lean_ctor_set(v_reuseFailAlloc_10227_, 1, v_a_10221_);
v___x_10226_ = v_reuseFailAlloc_10227_;
goto v_reusejp_10225_;
}
v_reusejp_10225_:
{
return v___x_10226_;
}
}
}
}
}
else
{
lean_object* v_a_10229_; 
lean_dec_ref(v_a_9916_);
lean_dec_ref(v_mod_9908_);
v_a_10229_ = lean_ctor_get(v___y_9991_, 1);
lean_inc(v_a_10229_);
lean_dec_ref(v___y_9991_);
v_a_9952_ = v_a_10229_;
goto v___jp_9951_;
}
}
else
{
lean_object* v_a_10230_; lean_object* v_a_10231_; lean_object* v___x_10233_; uint8_t v_isShared_10234_; uint8_t v_isSharedCheck_10238_; 
lean_dec_ref(v_a_9916_);
lean_dec(v_savedTrace_9910_);
lean_dec_ref(v_mod_9908_);
v_a_10230_ = lean_ctor_get(v___y_9991_, 0);
v_a_10231_ = lean_ctor_get(v___y_9991_, 1);
v_isSharedCheck_10238_ = !lean_is_exclusive(v___y_9991_);
if (v_isSharedCheck_10238_ == 0)
{
v___x_10233_ = v___y_9991_;
v_isShared_10234_ = v_isSharedCheck_10238_;
goto v_resetjp_10232_;
}
else
{
lean_inc(v_a_10231_);
lean_inc(v_a_10230_);
lean_dec(v___y_9991_);
v___x_10233_ = lean_box(0);
v_isShared_10234_ = v_isSharedCheck_10238_;
goto v_resetjp_10232_;
}
v_resetjp_10232_:
{
lean_object* v___x_10236_; 
if (v_isShared_10234_ == 0)
{
v___x_10236_ = v___x_10233_;
goto v_reusejp_10235_;
}
else
{
lean_object* v_reuseFailAlloc_10237_; 
v_reuseFailAlloc_10237_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10237_, 0, v_a_10230_);
lean_ctor_set(v_reuseFailAlloc_10237_, 1, v_a_10231_);
v___x_10236_ = v_reuseFailAlloc_10237_;
goto v_reusejp_10235_;
}
v_reusejp_10235_:
{
return v___x_10236_;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f___boxed(lean_object* v_mod_10245_, lean_object* v_setup_10246_, lean_object* v_savedTrace_10247_, lean_object* v_restoreAll_10248_, lean_object* v_a_10249_, lean_object* v_a_10250_, lean_object* v_a_10251_, lean_object* v_a_10252_, lean_object* v_a_10253_, lean_object* v_a_10254_, lean_object* v_a_10255_){
_start:
{
uint8_t v_restoreAll_boxed_10256_; lean_object* v_res_10257_; 
v_restoreAll_boxed_10256_ = lean_unbox(v_restoreAll_10248_);
v_res_10257_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f(v_mod_10245_, v_setup_10246_, v_savedTrace_10247_, v_restoreAll_boxed_10256_, v_a_10249_, v_a_10250_, v_a_10251_, v_a_10252_, v_a_10253_, v_a_10254_);
lean_dec(v_a_10252_);
lean_dec(v_a_10251_);
lean_dec(v_a_10250_);
lean_dec_ref(v_a_10249_);
lean_dec_ref(v_setup_10246_);
return v_res_10257_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1(lean_object* v_a_10258_, uint64_t v_inputHash_10259_, lean_object* v_pkg_10260_, lean_object* v_a_10261_, lean_object* v_a_10262_, lean_object* v_a_10263_, lean_object* v_a_10264_, lean_object* v_a_10265_){
_start:
{
lean_object* v___x_10267_; 
v___x_10267_ = l___private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1___redArg(v_inputHash_10259_, v_pkg_10260_, v_a_10264_, v_a_10265_);
return v___x_10267_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1___boxed(lean_object* v_a_10268_, lean_object* v_inputHash_10269_, lean_object* v_pkg_10270_, lean_object* v_a_10271_, lean_object* v_a_10272_, lean_object* v_a_10273_, lean_object* v_a_10274_, lean_object* v_a_10275_, lean_object* v_a_10276_){
_start:
{
uint64_t v_inputHash_boxed_10277_; lean_object* v_res_10278_; 
v_inputHash_boxed_10277_ = lean_unbox_uint64(v_inputHash_10269_);
lean_dec_ref(v_inputHash_10269_);
v_res_10278_ = l___private_Lake_Build_Common_0__Lake_getArtifactsUsingCache_x3f___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f_spec__1(v_a_10268_, v_inputHash_boxed_10277_, v_pkg_10270_, v_a_10271_, v_a_10272_, v_a_10273_, v_a_10274_, v_a_10275_);
lean_dec(v_a_10273_);
lean_dec(v_a_10272_);
lean_dec(v_a_10271_);
lean_dec_ref(v_a_10268_);
return v_res_10278_;
}
}
LEAN_EXPORT uint8_t l_Lake_MTime_checkUpToDate___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__1(lean_object* v_setup_10279_, lean_object* v_info_10280_, lean_object* v_self_10281_){
_start:
{
uint8_t v_isModule_10283_; lean_object* v___x_10284_; 
v_isModule_10283_ = lean_ctor_get_uint8(v_setup_10279_, sizeof(void*)*7);
v___x_10284_ = l_Lake_Module_getMTime(v_info_10280_, v_isModule_10283_);
if (lean_obj_tag(v___x_10284_) == 0)
{
lean_object* v_a_10285_; uint8_t v___x_10286_; 
v_a_10285_ = lean_ctor_get(v___x_10284_, 0);
lean_inc(v_a_10285_);
lean_dec_ref(v___x_10284_);
v___x_10286_ = l_IO_FS_instOrdSystemTime_ord(v_self_10281_, v_a_10285_);
lean_dec(v_a_10285_);
if (v___x_10286_ == 0)
{
uint8_t v___x_10287_; 
v___x_10287_ = 1;
return v___x_10287_;
}
else
{
uint8_t v___x_10288_; 
v___x_10288_ = 0;
return v___x_10288_;
}
}
else
{
uint8_t v___x_10289_; 
lean_dec_ref(v___x_10284_);
v___x_10289_ = 0;
return v___x_10289_;
}
}
}
LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__1___boxed(lean_object* v_setup_10290_, lean_object* v_info_10291_, lean_object* v_self_10292_, lean_object* v_a_10293_){
_start:
{
uint8_t v_res_10294_; lean_object* v_r_10295_; 
v_res_10294_ = l_Lake_MTime_checkUpToDate___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__1(v_setup_10290_, v_info_10291_, v_self_10292_);
lean_dec_ref(v_self_10292_);
lean_dec_ref(v_setup_10290_);
v_r_10295_ = lean_box(v_res_10294_);
return v_r_10295_;
}
}
LEAN_EXPORT uint8_t l_Option_instBEq_beq___at___00__private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__0_spec__1(lean_object* v_x_10296_, lean_object* v_x_10297_){
_start:
{
if (lean_obj_tag(v_x_10296_) == 0)
{
if (lean_obj_tag(v_x_10297_) == 0)
{
uint8_t v___x_10298_; 
v___x_10298_ = 1;
return v___x_10298_;
}
else
{
uint8_t v___x_10299_; 
v___x_10299_ = 0;
return v___x_10299_;
}
}
else
{
if (lean_obj_tag(v_x_10297_) == 0)
{
uint8_t v___x_10300_; 
v___x_10300_ = 0;
return v___x_10300_;
}
else
{
lean_object* v_val_10301_; lean_object* v_val_10302_; uint64_t v___x_10303_; uint64_t v___x_10304_; uint8_t v___x_10305_; 
v_val_10301_ = lean_ctor_get(v_x_10296_, 0);
v_val_10302_ = lean_ctor_get(v_x_10297_, 0);
v___x_10303_ = lean_unbox_uint64(v_val_10301_);
v___x_10304_ = lean_unbox_uint64(v_val_10302_);
v___x_10305_ = lean_uint64_dec_eq(v___x_10303_, v___x_10304_);
return v___x_10305_;
}
}
}
}
LEAN_EXPORT lean_object* l_Option_instBEq_beq___at___00__private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__0_spec__1___boxed(lean_object* v_x_10306_, lean_object* v_x_10307_){
_start:
{
uint8_t v_res_10308_; lean_object* v_r_10309_; 
v_res_10308_ = l_Option_instBEq_beq___at___00__private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__0_spec__1(v_x_10306_, v_x_10307_);
lean_dec(v_x_10307_);
lean_dec(v_x_10306_);
v_r_10309_ = lean_box(v_res_10308_);
return v_r_10309_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__0___redArg(lean_object* v_setup_10310_, lean_object* v_info_10311_, lean_object* v_depTrace_10312_, lean_object* v_depHash_10313_, lean_object* v_oldTrace_10314_, lean_object* v_a_10315_, lean_object* v_a_10316_){
_start:
{
uint64_t v_hash_10318_; lean_object* v___x_10319_; lean_object* v___x_10320_; uint8_t v___x_10321_; 
v_hash_10318_ = lean_ctor_get_uint64(v_depTrace_10312_, sizeof(void*)*3);
v___x_10319_ = lean_box_uint64(v_hash_10318_);
v___x_10320_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_10320_, 0, v___x_10319_);
v___x_10321_ = l_Option_instBEq_beq___at___00__private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__0_spec__1(v___x_10320_, v_depHash_10313_);
lean_dec_ref(v___x_10320_);
if (v___x_10321_ == 0)
{
lean_object* v_toBuildConfig_10322_; uint8_t v_oldMode_10323_; 
v_toBuildConfig_10322_ = lean_ctor_get(v_a_10315_, 0);
v_oldMode_10323_ = lean_ctor_get_uint8(v_toBuildConfig_10322_, sizeof(void*)*2);
if (v_oldMode_10323_ == 0)
{
uint8_t v___x_10324_; lean_object* v___x_10325_; lean_object* v___x_10326_; 
lean_dec_ref(v_info_10311_);
v___x_10324_ = 0;
v___x_10325_ = lean_box(v___x_10324_);
v___x_10326_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_10326_, 0, v___x_10325_);
lean_ctor_set(v___x_10326_, 1, v_a_10316_);
return v___x_10326_;
}
else
{
uint8_t v___x_10327_; 
v___x_10327_ = l_Lake_MTime_checkUpToDate___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__1(v_setup_10310_, v_info_10311_, v_oldTrace_10314_);
if (v___x_10327_ == 0)
{
uint8_t v___x_10328_; lean_object* v___x_10329_; lean_object* v___x_10330_; 
v___x_10328_ = 0;
v___x_10329_ = lean_box(v___x_10328_);
v___x_10330_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_10330_, 0, v___x_10329_);
lean_ctor_set(v___x_10330_, 1, v_a_10316_);
return v___x_10330_;
}
else
{
uint8_t v___x_10331_; lean_object* v___x_10332_; lean_object* v___x_10333_; 
v___x_10331_ = 1;
v___x_10332_ = lean_box(v___x_10331_);
v___x_10333_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_10333_, 0, v___x_10332_);
lean_ctor_set(v___x_10333_, 1, v_a_10316_);
return v___x_10333_;
}
}
}
else
{
uint8_t v_isModule_10334_; uint8_t v___x_10335_; 
v_isModule_10334_ = lean_ctor_get_uint8(v_setup_10310_, sizeof(void*)*7);
v___x_10335_ = l_Lake_Module_checkExists(v_info_10311_, v_isModule_10334_);
if (v___x_10335_ == 0)
{
uint8_t v___x_10336_; lean_object* v___x_10337_; lean_object* v___x_10338_; 
v___x_10336_ = 0;
v___x_10337_ = lean_box(v___x_10336_);
v___x_10338_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_10338_, 0, v___x_10337_);
lean_ctor_set(v___x_10338_, 1, v_a_10316_);
return v___x_10338_;
}
else
{
uint8_t v___x_10339_; lean_object* v___x_10340_; lean_object* v___x_10341_; 
v___x_10339_ = 2;
v___x_10340_ = lean_box(v___x_10339_);
v___x_10341_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_10341_, 0, v___x_10340_);
lean_ctor_set(v___x_10341_, 1, v_a_10316_);
return v___x_10341_;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__0___redArg___boxed(lean_object* v_setup_10342_, lean_object* v_info_10343_, lean_object* v_depTrace_10344_, lean_object* v_depHash_10345_, lean_object* v_oldTrace_10346_, lean_object* v_a_10347_, lean_object* v_a_10348_, lean_object* v_a_10349_){
_start:
{
lean_object* v_res_10350_; 
v_res_10350_ = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__0___redArg(v_setup_10342_, v_info_10343_, v_depTrace_10344_, v_depHash_10345_, v_oldTrace_10346_, v_a_10347_, v_a_10348_);
lean_dec_ref(v_a_10347_);
lean_dec_ref(v_oldTrace_10346_);
lean_dec(v_depHash_10345_);
lean_dec_ref(v_depTrace_10344_);
lean_dec_ref(v_setup_10342_);
return v_res_10350_;
}
}
LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0(lean_object* v_setup_10351_, lean_object* v_a_10352_, lean_object* v_info_10353_, lean_object* v_depTrace_10354_, lean_object* v_savedTrace_10355_, lean_object* v_oldTrace_10356_, lean_object* v_a_10357_, lean_object* v_a_10358_, lean_object* v_a_10359_, lean_object* v_a_10360_, lean_object* v_a_10361_){
_start:
{
if (lean_obj_tag(v_savedTrace_10355_) == 2)
{
lean_object* v_data_10363_; lean_object* v___x_10365_; uint8_t v_isShared_10366_; uint8_t v_isSharedCheck_10413_; 
v_data_10363_ = lean_ctor_get(v_savedTrace_10355_, 0);
v_isSharedCheck_10413_ = !lean_is_exclusive(v_savedTrace_10355_);
if (v_isSharedCheck_10413_ == 0)
{
v___x_10365_ = v_savedTrace_10355_;
v_isShared_10366_ = v_isSharedCheck_10413_;
goto v_resetjp_10364_;
}
else
{
lean_inc(v_data_10363_);
lean_dec(v_savedTrace_10355_);
v___x_10365_ = lean_box(0);
v_isShared_10366_ = v_isSharedCheck_10413_;
goto v_resetjp_10364_;
}
v_resetjp_10364_:
{
uint64_t v_depHash_10367_; lean_object* v_log_10368_; lean_object* v___x_10369_; lean_object* v___x_10371_; 
v_depHash_10367_ = lean_ctor_get_uint64(v_data_10363_, sizeof(void*)*3);
v_log_10368_ = lean_ctor_get(v_data_10363_, 2);
lean_inc_ref(v_log_10368_);
lean_dec_ref(v_data_10363_);
v___x_10369_ = lean_box_uint64(v_depHash_10367_);
if (v_isShared_10366_ == 0)
{
lean_ctor_set_tag(v___x_10365_, 1);
lean_ctor_set(v___x_10365_, 0, v___x_10369_);
v___x_10371_ = v___x_10365_;
goto v_reusejp_10370_;
}
else
{
lean_object* v_reuseFailAlloc_10412_; 
v_reuseFailAlloc_10412_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_10412_, 0, v___x_10369_);
v___x_10371_ = v_reuseFailAlloc_10412_;
goto v_reusejp_10370_;
}
v_reusejp_10370_:
{
lean_object* v___x_10372_; lean_object* v_a_10373_; lean_object* v_a_10374_; lean_object* v___x_10376_; uint8_t v_isShared_10377_; uint8_t v_isSharedCheck_10411_; 
v___x_10372_ = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__0___redArg(v_setup_10351_, v_info_10353_, v_depTrace_10354_, v___x_10371_, v_oldTrace_10356_, v_a_10360_, v_a_10361_);
lean_dec_ref(v___x_10371_);
v_a_10373_ = lean_ctor_get(v___x_10372_, 0);
v_a_10374_ = lean_ctor_get(v___x_10372_, 1);
v_isSharedCheck_10411_ = !lean_is_exclusive(v___x_10372_);
if (v_isSharedCheck_10411_ == 0)
{
v___x_10376_ = v___x_10372_;
v_isShared_10377_ = v_isSharedCheck_10411_;
goto v_resetjp_10375_;
}
else
{
lean_inc(v_a_10374_);
lean_inc(v_a_10373_);
lean_dec(v___x_10372_);
v___x_10376_ = lean_box(0);
v_isShared_10377_ = v_isSharedCheck_10411_;
goto v_resetjp_10375_;
}
v_resetjp_10375_:
{
lean_object* v___y_10379_; uint8_t v___x_10383_; uint8_t v___x_10384_; uint8_t v___x_10385_; 
v___x_10383_ = 0;
v___x_10384_ = lean_unbox(v_a_10373_);
v___x_10385_ = l_Lake_instDecidableEqOutputStatus(v___x_10384_, v___x_10383_);
if (v___x_10385_ == 0)
{
lean_object* v_log_10386_; uint8_t v_action_10387_; uint8_t v_wantsRebuild_10388_; lean_object* v_trace_10389_; lean_object* v_buildTime_10390_; lean_object* v___x_10392_; uint8_t v_isShared_10393_; uint8_t v_isSharedCheck_10410_; 
v_log_10386_ = lean_ctor_get(v_a_10374_, 0);
v_action_10387_ = lean_ctor_get_uint8(v_a_10374_, sizeof(void*)*3);
v_wantsRebuild_10388_ = lean_ctor_get_uint8(v_a_10374_, sizeof(void*)*3 + 1);
v_trace_10389_ = lean_ctor_get(v_a_10374_, 1);
v_buildTime_10390_ = lean_ctor_get(v_a_10374_, 2);
v_isSharedCheck_10410_ = !lean_is_exclusive(v_a_10374_);
if (v_isSharedCheck_10410_ == 0)
{
v___x_10392_ = v_a_10374_;
v_isShared_10393_ = v_isSharedCheck_10410_;
goto v_resetjp_10391_;
}
else
{
lean_inc(v_buildTime_10390_);
lean_inc(v_trace_10389_);
lean_inc(v_log_10386_);
lean_dec(v_a_10374_);
v___x_10392_ = lean_box(0);
v_isShared_10393_ = v_isSharedCheck_10410_;
goto v_resetjp_10391_;
}
v_resetjp_10391_:
{
uint8_t v___x_10394_; uint8_t v___x_10395_; lean_object* v___x_10397_; 
v___x_10394_ = 1;
v___x_10395_ = l_Lake_JobAction_merge(v_action_10387_, v___x_10394_);
if (v_isShared_10393_ == 0)
{
v___x_10397_ = v___x_10392_;
goto v_reusejp_10396_;
}
else
{
lean_object* v_reuseFailAlloc_10409_; 
v_reuseFailAlloc_10409_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_10409_, 0, v_log_10386_);
lean_ctor_set(v_reuseFailAlloc_10409_, 1, v_trace_10389_);
lean_ctor_set(v_reuseFailAlloc_10409_, 2, v_buildTime_10390_);
lean_ctor_set_uint8(v_reuseFailAlloc_10409_, sizeof(void*)*3 + 1, v_wantsRebuild_10388_);
v___x_10397_ = v_reuseFailAlloc_10409_;
goto v_reusejp_10396_;
}
v_reusejp_10396_:
{
lean_object* v___x_10398_; 
lean_ctor_set_uint8(v___x_10397_, sizeof(void*)*3, v___x_10395_);
v___x_10398_ = l___private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay(v_log_10368_, v_a_10352_, v_a_10357_, v_a_10358_, v_a_10359_, v_a_10360_, v___x_10397_);
lean_dec_ref(v_log_10368_);
if (lean_obj_tag(v___x_10398_) == 0)
{
lean_object* v_a_10399_; 
v_a_10399_ = lean_ctor_get(v___x_10398_, 1);
lean_inc(v_a_10399_);
lean_dec_ref(v___x_10398_);
v___y_10379_ = v_a_10399_;
goto v___jp_10378_;
}
else
{
lean_object* v_a_10400_; lean_object* v_a_10401_; lean_object* v___x_10403_; uint8_t v_isShared_10404_; uint8_t v_isSharedCheck_10408_; 
lean_del_object(v___x_10376_);
lean_dec(v_a_10373_);
v_a_10400_ = lean_ctor_get(v___x_10398_, 0);
v_a_10401_ = lean_ctor_get(v___x_10398_, 1);
v_isSharedCheck_10408_ = !lean_is_exclusive(v___x_10398_);
if (v_isSharedCheck_10408_ == 0)
{
v___x_10403_ = v___x_10398_;
v_isShared_10404_ = v_isSharedCheck_10408_;
goto v_resetjp_10402_;
}
else
{
lean_inc(v_a_10401_);
lean_inc(v_a_10400_);
lean_dec(v___x_10398_);
v___x_10403_ = lean_box(0);
v_isShared_10404_ = v_isSharedCheck_10408_;
goto v_resetjp_10402_;
}
v_resetjp_10402_:
{
lean_object* v___x_10406_; 
if (v_isShared_10404_ == 0)
{
v___x_10406_ = v___x_10403_;
goto v_reusejp_10405_;
}
else
{
lean_object* v_reuseFailAlloc_10407_; 
v_reuseFailAlloc_10407_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10407_, 0, v_a_10400_);
lean_ctor_set(v_reuseFailAlloc_10407_, 1, v_a_10401_);
v___x_10406_ = v_reuseFailAlloc_10407_;
goto v_reusejp_10405_;
}
v_reusejp_10405_:
{
return v___x_10406_;
}
}
}
}
}
}
else
{
lean_dec_ref(v_log_10368_);
v___y_10379_ = v_a_10374_;
goto v___jp_10378_;
}
v___jp_10378_:
{
lean_object* v___x_10381_; 
if (v_isShared_10377_ == 0)
{
lean_ctor_set(v___x_10376_, 1, v___y_10379_);
v___x_10381_ = v___x_10376_;
goto v_reusejp_10380_;
}
else
{
lean_object* v_reuseFailAlloc_10382_; 
v_reuseFailAlloc_10382_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10382_, 0, v_a_10373_);
lean_ctor_set(v_reuseFailAlloc_10382_, 1, v___y_10379_);
v___x_10381_ = v_reuseFailAlloc_10382_;
goto v_reusejp_10380_;
}
v_reusejp_10380_:
{
return v___x_10381_;
}
}
}
}
}
}
else
{
lean_object* v_toBuildConfig_10414_; uint8_t v_oldMode_10415_; 
lean_dec(v_savedTrace_10355_);
v_toBuildConfig_10414_ = lean_ctor_get(v_a_10360_, 0);
v_oldMode_10415_ = lean_ctor_get_uint8(v_toBuildConfig_10414_, sizeof(void*)*2);
if (v_oldMode_10415_ == 0)
{
uint8_t v___x_10416_; lean_object* v___x_10417_; lean_object* v___x_10418_; 
lean_dec_ref(v_info_10353_);
v___x_10416_ = 0;
v___x_10417_ = lean_box(v___x_10416_);
v___x_10418_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_10418_, 0, v___x_10417_);
lean_ctor_set(v___x_10418_, 1, v_a_10361_);
return v___x_10418_;
}
else
{
uint8_t v___x_10419_; 
v___x_10419_ = l_Lake_MTime_checkUpToDate___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__1(v_setup_10351_, v_info_10353_, v_oldTrace_10356_);
if (v___x_10419_ == 0)
{
uint8_t v___x_10420_; lean_object* v___x_10421_; lean_object* v___x_10422_; 
v___x_10420_ = 0;
v___x_10421_ = lean_box(v___x_10420_);
v___x_10422_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_10422_, 0, v___x_10421_);
lean_ctor_set(v___x_10422_, 1, v_a_10361_);
return v___x_10422_;
}
else
{
uint8_t v___x_10423_; lean_object* v___x_10424_; lean_object* v___x_10425_; 
v___x_10423_ = 1;
v___x_10424_ = lean_box(v___x_10423_);
v___x_10425_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_10425_, 0, v___x_10424_);
lean_ctor_set(v___x_10425_, 1, v_a_10361_);
return v___x_10425_;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0___boxed(lean_object* v_setup_10426_, lean_object* v_a_10427_, lean_object* v_info_10428_, lean_object* v_depTrace_10429_, lean_object* v_savedTrace_10430_, lean_object* v_oldTrace_10431_, lean_object* v_a_10432_, lean_object* v_a_10433_, lean_object* v_a_10434_, lean_object* v_a_10435_, lean_object* v_a_10436_, lean_object* v_a_10437_){
_start:
{
lean_object* v_res_10438_; 
v_res_10438_ = l_Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0(v_setup_10426_, v_a_10427_, v_info_10428_, v_depTrace_10429_, v_savedTrace_10430_, v_oldTrace_10431_, v_a_10432_, v_a_10433_, v_a_10434_, v_a_10435_, v_a_10436_);
lean_dec_ref(v_a_10435_);
lean_dec(v_a_10434_);
lean_dec(v_a_10433_);
lean_dec(v_a_10432_);
lean_dec_ref(v_oldTrace_10431_);
lean_dec_ref(v_depTrace_10429_);
lean_dec_ref(v_a_10427_);
lean_dec_ref(v_setup_10426_);
return v_res_10438_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore(lean_object* v_mod_10439_, lean_object* v_setup_10440_, lean_object* v_srcFile_10441_, lean_object* v_srcTrace_10442_, lean_object* v_a_10443_, lean_object* v_a_10444_, lean_object* v_a_10445_, lean_object* v_a_10446_, lean_object* v_a_10447_, lean_object* v_a_10448_){
_start:
{
uint8_t v___y_10451_; lean_object* v___y_10452_; lean_object* v___y_10453_; lean_object* v_lib_10488_; lean_object* v_pkg_10489_; lean_object* v_config_10490_; lean_object* v_name_10491_; lean_object* v_dir_10492_; lean_object* v_buildDir_10493_; lean_object* v_leanLibDir_10494_; lean_object* v_irDir_10495_; lean_object* v_enableArtifactCache_x3f_10496_; lean_object* v_restoreAllArtifacts_x3f_10497_; lean_object* v_log_10498_; uint8_t v_action_10499_; uint8_t v_wantsRebuild_10500_; lean_object* v_trace_10501_; lean_object* v_buildTime_10502_; lean_object* v___x_10504_; uint8_t v_isShared_10505_; uint8_t v_isSharedCheck_10836_; 
v_lib_10488_ = lean_ctor_get(v_mod_10439_, 0);
v_pkg_10489_ = lean_ctor_get(v_lib_10488_, 0);
v_config_10490_ = lean_ctor_get(v_pkg_10489_, 6);
v_name_10491_ = lean_ctor_get(v_mod_10439_, 1);
v_dir_10492_ = lean_ctor_get(v_pkg_10489_, 4);
v_buildDir_10493_ = lean_ctor_get(v_config_10490_, 6);
v_leanLibDir_10494_ = lean_ctor_get(v_config_10490_, 7);
v_irDir_10495_ = lean_ctor_get(v_config_10490_, 10);
v_enableArtifactCache_x3f_10496_ = lean_ctor_get(v_config_10490_, 25);
v_restoreAllArtifacts_x3f_10497_ = lean_ctor_get(v_config_10490_, 26);
v_log_10498_ = lean_ctor_get(v_a_10448_, 0);
v_action_10499_ = lean_ctor_get_uint8(v_a_10448_, sizeof(void*)*3);
v_wantsRebuild_10500_ = lean_ctor_get_uint8(v_a_10448_, sizeof(void*)*3 + 1);
v_trace_10501_ = lean_ctor_get(v_a_10448_, 1);
v_buildTime_10502_ = lean_ctor_get(v_a_10448_, 2);
v_isSharedCheck_10836_ = !lean_is_exclusive(v_a_10448_);
if (v_isSharedCheck_10836_ == 0)
{
v___x_10504_ = v_a_10448_;
v_isShared_10505_ = v_isSharedCheck_10836_;
goto v_resetjp_10503_;
}
else
{
lean_inc(v_buildTime_10502_);
lean_inc(v_trace_10501_);
lean_inc(v_log_10498_);
lean_dec(v_a_10448_);
v___x_10504_ = lean_box(0);
v_isShared_10505_ = v_isSharedCheck_10836_;
goto v_resetjp_10503_;
}
v___jp_10450_:
{
lean_object* v_log_10454_; uint8_t v_action_10455_; uint8_t v_wantsRebuild_10456_; lean_object* v_trace_10457_; lean_object* v_buildTime_10458_; lean_object* v___x_10460_; uint8_t v_isShared_10461_; uint8_t v_isSharedCheck_10487_; 
v_log_10454_ = lean_ctor_get(v___y_10453_, 0);
v_action_10455_ = lean_ctor_get_uint8(v___y_10453_, sizeof(void*)*3);
v_wantsRebuild_10456_ = lean_ctor_get_uint8(v___y_10453_, sizeof(void*)*3 + 1);
v_trace_10457_ = lean_ctor_get(v___y_10453_, 1);
v_buildTime_10458_ = lean_ctor_get(v___y_10453_, 2);
v_isSharedCheck_10487_ = !lean_is_exclusive(v___y_10453_);
if (v_isSharedCheck_10487_ == 0)
{
v___x_10460_ = v___y_10453_;
v_isShared_10461_ = v_isSharedCheck_10487_;
goto v_resetjp_10459_;
}
else
{
lean_inc(v_buildTime_10458_);
lean_inc(v_trace_10457_);
lean_inc(v_log_10454_);
lean_dec(v___y_10453_);
v___x_10460_ = lean_box(0);
v_isShared_10461_ = v_isSharedCheck_10487_;
goto v_resetjp_10459_;
}
v_resetjp_10459_:
{
lean_object* v___x_10462_; 
v___x_10462_ = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___redArg(v_mod_10439_, v___y_10451_, v___y_10452_, v_log_10454_);
lean_dec_ref(v___y_10452_);
if (lean_obj_tag(v___x_10462_) == 0)
{
lean_object* v_a_10463_; lean_object* v_a_10464_; lean_object* v___x_10466_; uint8_t v_isShared_10467_; uint8_t v_isSharedCheck_10474_; 
v_a_10463_ = lean_ctor_get(v___x_10462_, 0);
v_a_10464_ = lean_ctor_get(v___x_10462_, 1);
v_isSharedCheck_10474_ = !lean_is_exclusive(v___x_10462_);
if (v_isSharedCheck_10474_ == 0)
{
v___x_10466_ = v___x_10462_;
v_isShared_10467_ = v_isSharedCheck_10474_;
goto v_resetjp_10465_;
}
else
{
lean_inc(v_a_10464_);
lean_inc(v_a_10463_);
lean_dec(v___x_10462_);
v___x_10466_ = lean_box(0);
v_isShared_10467_ = v_isSharedCheck_10474_;
goto v_resetjp_10465_;
}
v_resetjp_10465_:
{
lean_object* v___x_10469_; 
if (v_isShared_10461_ == 0)
{
lean_ctor_set(v___x_10460_, 0, v_a_10464_);
v___x_10469_ = v___x_10460_;
goto v_reusejp_10468_;
}
else
{
lean_object* v_reuseFailAlloc_10473_; 
v_reuseFailAlloc_10473_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_10473_, 0, v_a_10464_);
lean_ctor_set(v_reuseFailAlloc_10473_, 1, v_trace_10457_);
lean_ctor_set(v_reuseFailAlloc_10473_, 2, v_buildTime_10458_);
lean_ctor_set_uint8(v_reuseFailAlloc_10473_, sizeof(void*)*3, v_action_10455_);
lean_ctor_set_uint8(v_reuseFailAlloc_10473_, sizeof(void*)*3 + 1, v_wantsRebuild_10456_);
v___x_10469_ = v_reuseFailAlloc_10473_;
goto v_reusejp_10468_;
}
v_reusejp_10468_:
{
lean_object* v___x_10471_; 
if (v_isShared_10467_ == 0)
{
lean_ctor_set(v___x_10466_, 1, v___x_10469_);
v___x_10471_ = v___x_10466_;
goto v_reusejp_10470_;
}
else
{
lean_object* v_reuseFailAlloc_10472_; 
v_reuseFailAlloc_10472_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10472_, 0, v_a_10463_);
lean_ctor_set(v_reuseFailAlloc_10472_, 1, v___x_10469_);
v___x_10471_ = v_reuseFailAlloc_10472_;
goto v_reusejp_10470_;
}
v_reusejp_10470_:
{
return v___x_10471_;
}
}
}
}
else
{
lean_object* v_a_10475_; lean_object* v_a_10476_; lean_object* v___x_10478_; uint8_t v_isShared_10479_; uint8_t v_isSharedCheck_10486_; 
v_a_10475_ = lean_ctor_get(v___x_10462_, 0);
v_a_10476_ = lean_ctor_get(v___x_10462_, 1);
v_isSharedCheck_10486_ = !lean_is_exclusive(v___x_10462_);
if (v_isSharedCheck_10486_ == 0)
{
v___x_10478_ = v___x_10462_;
v_isShared_10479_ = v_isSharedCheck_10486_;
goto v_resetjp_10477_;
}
else
{
lean_inc(v_a_10476_);
lean_inc(v_a_10475_);
lean_dec(v___x_10462_);
v___x_10478_ = lean_box(0);
v_isShared_10479_ = v_isSharedCheck_10486_;
goto v_resetjp_10477_;
}
v_resetjp_10477_:
{
lean_object* v___x_10481_; 
if (v_isShared_10461_ == 0)
{
lean_ctor_set(v___x_10460_, 0, v_a_10476_);
v___x_10481_ = v___x_10460_;
goto v_reusejp_10480_;
}
else
{
lean_object* v_reuseFailAlloc_10485_; 
v_reuseFailAlloc_10485_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_10485_, 0, v_a_10476_);
lean_ctor_set(v_reuseFailAlloc_10485_, 1, v_trace_10457_);
lean_ctor_set(v_reuseFailAlloc_10485_, 2, v_buildTime_10458_);
lean_ctor_set_uint8(v_reuseFailAlloc_10485_, sizeof(void*)*3, v_action_10455_);
lean_ctor_set_uint8(v_reuseFailAlloc_10485_, sizeof(void*)*3 + 1, v_wantsRebuild_10456_);
v___x_10481_ = v_reuseFailAlloc_10485_;
goto v_reusejp_10480_;
}
v_reusejp_10480_:
{
lean_object* v___x_10483_; 
if (v_isShared_10479_ == 0)
{
lean_ctor_set(v___x_10478_, 1, v___x_10481_);
v___x_10483_ = v___x_10478_;
goto v_reusejp_10482_;
}
else
{
lean_object* v_reuseFailAlloc_10484_; 
v_reuseFailAlloc_10484_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10484_, 0, v_a_10475_);
lean_ctor_set(v_reuseFailAlloc_10484_, 1, v___x_10481_);
v___x_10483_ = v_reuseFailAlloc_10484_;
goto v_reusejp_10482_;
}
v_reusejp_10482_:
{
return v___x_10483_;
}
}
}
}
}
}
v_resetjp_10503_:
{
uint8_t v___y_10507_; uint8_t v___y_10508_; lean_object* v___y_10509_; lean_object* v___y_10510_; lean_object* v___x_10592_; lean_object* v___x_10593_; lean_object* v___x_10594_; lean_object* v___x_10595_; lean_object* v___x_10596_; lean_object* v___x_10597_; lean_object* v___x_10598_; 
v___x_10592_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__4));
lean_inc_ref(v_buildDir_10493_);
v___x_10593_ = l_System_FilePath_normalize(v_buildDir_10493_);
lean_inc_ref(v_dir_10492_);
v___x_10594_ = l_Lake_joinRelative(v_dir_10492_, v___x_10593_);
lean_inc_ref(v_leanLibDir_10494_);
v___x_10595_ = l_System_FilePath_normalize(v_leanLibDir_10494_);
lean_inc_ref(v___x_10594_);
v___x_10596_ = l_Lake_joinRelative(v___x_10594_, v___x_10595_);
lean_inc(v_name_10491_);
v___x_10597_ = l_Lean_modToFilePath(v___x_10596_, v_name_10491_, v___x_10592_);
lean_dec_ref(v___x_10596_);
v___x_10598_ = l_Lake_readTraceFile(v___x_10597_, v_log_10498_);
if (lean_obj_tag(v___x_10598_) == 0)
{
lean_object* v_a_10599_; lean_object* v_a_10600_; uint8_t v_a_10602_; lean_object* v_a_10603_; uint8_t v___y_10666_; lean_object* v___y_10667_; uint8_t v___y_10668_; lean_object* v_a_10669_; uint8_t v___y_10744_; lean_object* v___y_10745_; uint8_t v___y_10746_; uint8_t v_a_10747_; lean_object* v_a_10748_; lean_object* v_a_10751_; uint8_t v_a_10798_; lean_object* v_a_10799_; lean_object* v___x_10810_; 
v_a_10599_ = lean_ctor_get(v___x_10598_, 0);
lean_inc(v_a_10599_);
v_a_10600_ = lean_ctor_get(v___x_10598_, 1);
lean_inc(v_a_10600_);
lean_dec_ref(v___x_10598_);
lean_inc_ref(v_trace_10501_);
if (v_isShared_10505_ == 0)
{
lean_ctor_set(v___x_10504_, 0, v_a_10600_);
v___x_10810_ = v___x_10504_;
goto v_reusejp_10809_;
}
else
{
lean_object* v_reuseFailAlloc_10823_; 
v_reuseFailAlloc_10823_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_10823_, 0, v_a_10600_);
lean_ctor_set(v_reuseFailAlloc_10823_, 1, v_trace_10501_);
lean_ctor_set(v_reuseFailAlloc_10823_, 2, v_buildTime_10502_);
lean_ctor_set_uint8(v_reuseFailAlloc_10823_, sizeof(void*)*3, v_action_10499_);
lean_ctor_set_uint8(v_reuseFailAlloc_10823_, sizeof(void*)*3 + 1, v_wantsRebuild_10500_);
v___x_10810_ = v_reuseFailAlloc_10823_;
goto v_reusejp_10809_;
}
v___jp_10601_:
{
lean_object* v___x_10604_; 
lean_inc_ref(v_a_10447_);
lean_inc_ref(v_mod_10439_);
v___x_10604_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f(v_mod_10439_, v_setup_10440_, v_a_10599_, v_a_10602_, v_a_10443_, v_a_10444_, v_a_10445_, v_a_10446_, v_a_10447_, v_a_10603_);
if (lean_obj_tag(v___x_10604_) == 0)
{
lean_object* v_a_10605_; 
v_a_10605_ = lean_ctor_get(v___x_10604_, 0);
lean_inc(v_a_10605_);
if (lean_obj_tag(v_a_10605_) == 0)
{
lean_object* v_a_10606_; lean_object* v___x_10608_; uint8_t v_isShared_10609_; uint8_t v_isSharedCheck_10614_; 
lean_dec_ref(v___x_10594_);
lean_dec_ref(v_trace_10501_);
lean_dec_ref(v_a_10447_);
lean_dec(v_a_10446_);
lean_dec(v_a_10445_);
lean_dec(v_a_10444_);
lean_dec_ref(v_a_10443_);
lean_dec_ref(v_srcFile_10441_);
lean_dec_ref(v_setup_10440_);
lean_dec_ref(v_mod_10439_);
v_a_10606_ = lean_ctor_get(v___x_10604_, 1);
v_isSharedCheck_10614_ = !lean_is_exclusive(v___x_10604_);
if (v_isSharedCheck_10614_ == 0)
{
lean_object* v_unused_10615_; 
v_unused_10615_ = lean_ctor_get(v___x_10604_, 0);
lean_dec(v_unused_10615_);
v___x_10608_ = v___x_10604_;
v_isShared_10609_ = v_isSharedCheck_10614_;
goto v_resetjp_10607_;
}
else
{
lean_inc(v_a_10606_);
lean_dec(v___x_10604_);
v___x_10608_ = lean_box(0);
v_isShared_10609_ = v_isSharedCheck_10614_;
goto v_resetjp_10607_;
}
v_resetjp_10607_:
{
lean_object* v_val_10610_; lean_object* v___x_10612_; 
v_val_10610_ = lean_ctor_get(v_a_10605_, 0);
lean_inc(v_val_10610_);
lean_dec_ref(v_a_10605_);
if (v_isShared_10609_ == 0)
{
lean_ctor_set(v___x_10608_, 0, v_val_10610_);
v___x_10612_ = v___x_10608_;
goto v_reusejp_10611_;
}
else
{
lean_object* v_reuseFailAlloc_10613_; 
v_reuseFailAlloc_10613_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10613_, 0, v_val_10610_);
lean_ctor_set(v_reuseFailAlloc_10613_, 1, v_a_10606_);
v___x_10612_ = v_reuseFailAlloc_10613_;
goto v_reusejp_10611_;
}
v_reusejp_10611_:
{
return v___x_10612_;
}
}
}
else
{
lean_object* v_a_10616_; lean_object* v_val_10617_; lean_object* v_mtime_10618_; lean_object* v___x_10619_; 
v_a_10616_ = lean_ctor_get(v___x_10604_, 1);
lean_inc(v_a_10616_);
lean_dec_ref(v___x_10604_);
v_val_10617_ = lean_ctor_get(v_a_10605_, 0);
lean_inc(v_val_10617_);
lean_dec_ref(v_a_10605_);
v_mtime_10618_ = lean_ctor_get(v_srcTrace_10442_, 2);
lean_inc_ref(v_mod_10439_);
v___x_10619_ = l_Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0(v_setup_10440_, v_a_10443_, v_mod_10439_, v_trace_10501_, v_val_10617_, v_mtime_10618_, v_a_10444_, v_a_10445_, v_a_10446_, v_a_10447_, v_a_10616_);
if (lean_obj_tag(v___x_10619_) == 0)
{
lean_object* v_a_10620_; lean_object* v_a_10621_; uint8_t v___x_10622_; uint8_t v___x_10623_; uint8_t v___x_10624_; 
v_a_10620_ = lean_ctor_get(v___x_10619_, 0);
lean_inc(v_a_10620_);
v_a_10621_ = lean_ctor_get(v___x_10619_, 1);
lean_inc(v_a_10621_);
lean_dec_ref(v___x_10619_);
v___x_10622_ = 0;
v___x_10623_ = lean_unbox(v_a_10620_);
v___x_10624_ = l_Lake_instDecidableEqOutputStatus(v___x_10623_, v___x_10622_);
if (v___x_10624_ == 0)
{
uint8_t v_isModule_10625_; uint8_t v___x_10626_; 
lean_dec(v_a_10446_);
lean_dec(v_a_10445_);
lean_dec(v_a_10444_);
lean_dec_ref(v_a_10443_);
lean_dec_ref(v_srcFile_10441_);
v_isModule_10625_ = lean_ctor_get_uint8(v_setup_10440_, sizeof(void*)*7);
lean_inc_ref(v_mod_10439_);
v___x_10626_ = l_Lake_Module_checkArtifactsExsist(v_mod_10439_, v_isModule_10625_);
if (v___x_10626_ == 0)
{
lean_object* v___x_10627_; lean_object* v___x_10628_; lean_object* v___x_10629_; lean_object* v___x_10630_; lean_object* v___x_10631_; 
v___x_10627_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__1));
lean_inc_ref(v_irDir_10495_);
v___x_10628_ = l_System_FilePath_normalize(v_irDir_10495_);
v___x_10629_ = l_Lake_joinRelative(v___x_10594_, v___x_10628_);
lean_inc(v_name_10491_);
v___x_10630_ = l_Lean_modToFilePath(v___x_10629_, v_name_10491_, v___x_10627_);
lean_dec_ref(v___x_10629_);
lean_inc_ref(v_mod_10439_);
v___x_10631_ = l___private_Lake_Build_Module_0__Lake_Module_unpackLtar___redArg(v_mod_10439_, v___x_10630_, v_a_10447_, v_a_10621_);
if (lean_obj_tag(v___x_10631_) == 0)
{
lean_object* v_a_10632_; uint8_t v___x_10633_; 
v_a_10632_ = lean_ctor_get(v___x_10631_, 1);
lean_inc(v_a_10632_);
lean_dec_ref(v___x_10631_);
v___x_10633_ = lean_unbox(v_a_10620_);
lean_dec(v_a_10620_);
v___y_10507_ = v___x_10633_;
v___y_10508_ = v_a_10602_;
v___y_10509_ = v_a_10447_;
v___y_10510_ = v_a_10632_;
goto v___jp_10506_;
}
else
{
lean_object* v_a_10634_; lean_object* v_a_10635_; lean_object* v___x_10637_; uint8_t v_isShared_10638_; uint8_t v_isSharedCheck_10642_; 
lean_dec(v_a_10620_);
lean_dec_ref(v_trace_10501_);
lean_dec_ref(v_a_10447_);
lean_dec_ref(v_setup_10440_);
lean_dec_ref(v_mod_10439_);
v_a_10634_ = lean_ctor_get(v___x_10631_, 0);
v_a_10635_ = lean_ctor_get(v___x_10631_, 1);
v_isSharedCheck_10642_ = !lean_is_exclusive(v___x_10631_);
if (v_isSharedCheck_10642_ == 0)
{
v___x_10637_ = v___x_10631_;
v_isShared_10638_ = v_isSharedCheck_10642_;
goto v_resetjp_10636_;
}
else
{
lean_inc(v_a_10635_);
lean_inc(v_a_10634_);
lean_dec(v___x_10631_);
v___x_10637_ = lean_box(0);
v_isShared_10638_ = v_isSharedCheck_10642_;
goto v_resetjp_10636_;
}
v_resetjp_10636_:
{
lean_object* v___x_10640_; 
if (v_isShared_10638_ == 0)
{
v___x_10640_ = v___x_10637_;
goto v_reusejp_10639_;
}
else
{
lean_object* v_reuseFailAlloc_10641_; 
v_reuseFailAlloc_10641_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10641_, 0, v_a_10634_);
lean_ctor_set(v_reuseFailAlloc_10641_, 1, v_a_10635_);
v___x_10640_ = v_reuseFailAlloc_10641_;
goto v_reusejp_10639_;
}
v_reusejp_10639_:
{
return v___x_10640_;
}
}
}
}
else
{
uint8_t v___x_10643_; 
lean_dec_ref(v___x_10594_);
v___x_10643_ = lean_unbox(v_a_10620_);
lean_dec(v_a_10620_);
v___y_10507_ = v___x_10643_;
v___y_10508_ = v_a_10602_;
v___y_10509_ = v_a_10447_;
v___y_10510_ = v_a_10621_;
goto v___jp_10506_;
}
}
else
{
lean_object* v___x_10644_; 
lean_dec_ref(v___x_10594_);
lean_inc_ref(v_a_10447_);
lean_inc_ref(v_setup_10440_);
lean_inc_ref(v_mod_10439_);
v___x_10644_ = l___private_Lake_Build_Module_0__Lake_Module_buildLean(v_mod_10439_, v_trace_10501_, v_srcFile_10441_, v_setup_10440_, v_a_10443_, v_a_10444_, v_a_10445_, v_a_10446_, v_a_10447_, v_a_10621_);
if (lean_obj_tag(v___x_10644_) == 0)
{
lean_object* v_a_10645_; uint8_t v___x_10646_; 
v_a_10645_ = lean_ctor_get(v___x_10644_, 1);
lean_inc(v_a_10645_);
lean_dec_ref(v___x_10644_);
v___x_10646_ = lean_unbox(v_a_10620_);
lean_dec(v_a_10620_);
v___y_10507_ = v___x_10646_;
v___y_10508_ = v_a_10602_;
v___y_10509_ = v_a_10447_;
v___y_10510_ = v_a_10645_;
goto v___jp_10506_;
}
else
{
lean_dec(v_a_10620_);
lean_dec_ref(v_trace_10501_);
lean_dec_ref(v_a_10447_);
lean_dec_ref(v_setup_10440_);
lean_dec_ref(v_mod_10439_);
return v___x_10644_;
}
}
}
else
{
lean_object* v_a_10647_; lean_object* v_a_10648_; lean_object* v___x_10650_; uint8_t v_isShared_10651_; uint8_t v_isSharedCheck_10655_; 
lean_dec_ref(v___x_10594_);
lean_dec_ref(v_trace_10501_);
lean_dec_ref(v_a_10447_);
lean_dec(v_a_10446_);
lean_dec(v_a_10445_);
lean_dec(v_a_10444_);
lean_dec_ref(v_a_10443_);
lean_dec_ref(v_srcFile_10441_);
lean_dec_ref(v_setup_10440_);
lean_dec_ref(v_mod_10439_);
v_a_10647_ = lean_ctor_get(v___x_10619_, 0);
v_a_10648_ = lean_ctor_get(v___x_10619_, 1);
v_isSharedCheck_10655_ = !lean_is_exclusive(v___x_10619_);
if (v_isSharedCheck_10655_ == 0)
{
v___x_10650_ = v___x_10619_;
v_isShared_10651_ = v_isSharedCheck_10655_;
goto v_resetjp_10649_;
}
else
{
lean_inc(v_a_10648_);
lean_inc(v_a_10647_);
lean_dec(v___x_10619_);
v___x_10650_ = lean_box(0);
v_isShared_10651_ = v_isSharedCheck_10655_;
goto v_resetjp_10649_;
}
v_resetjp_10649_:
{
lean_object* v___x_10653_; 
if (v_isShared_10651_ == 0)
{
v___x_10653_ = v___x_10650_;
goto v_reusejp_10652_;
}
else
{
lean_object* v_reuseFailAlloc_10654_; 
v_reuseFailAlloc_10654_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10654_, 0, v_a_10647_);
lean_ctor_set(v_reuseFailAlloc_10654_, 1, v_a_10648_);
v___x_10653_ = v_reuseFailAlloc_10654_;
goto v_reusejp_10652_;
}
v_reusejp_10652_:
{
return v___x_10653_;
}
}
}
}
}
else
{
lean_object* v_a_10656_; lean_object* v_a_10657_; lean_object* v___x_10659_; uint8_t v_isShared_10660_; uint8_t v_isSharedCheck_10664_; 
lean_dec_ref(v___x_10594_);
lean_dec_ref(v_trace_10501_);
lean_dec_ref(v_a_10447_);
lean_dec(v_a_10446_);
lean_dec(v_a_10445_);
lean_dec(v_a_10444_);
lean_dec_ref(v_a_10443_);
lean_dec_ref(v_srcFile_10441_);
lean_dec_ref(v_setup_10440_);
lean_dec_ref(v_mod_10439_);
v_a_10656_ = lean_ctor_get(v___x_10604_, 0);
v_a_10657_ = lean_ctor_get(v___x_10604_, 1);
v_isSharedCheck_10664_ = !lean_is_exclusive(v___x_10604_);
if (v_isSharedCheck_10664_ == 0)
{
v___x_10659_ = v___x_10604_;
v_isShared_10660_ = v_isSharedCheck_10664_;
goto v_resetjp_10658_;
}
else
{
lean_inc(v_a_10657_);
lean_inc(v_a_10656_);
lean_dec(v___x_10604_);
v___x_10659_ = lean_box(0);
v_isShared_10660_ = v_isSharedCheck_10664_;
goto v_resetjp_10658_;
}
v_resetjp_10658_:
{
lean_object* v___x_10662_; 
if (v_isShared_10660_ == 0)
{
v___x_10662_ = v___x_10659_;
goto v_reusejp_10661_;
}
else
{
lean_object* v_reuseFailAlloc_10663_; 
v_reuseFailAlloc_10663_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10663_, 0, v_a_10656_);
lean_ctor_set(v_reuseFailAlloc_10663_, 1, v_a_10657_);
v___x_10662_ = v_reuseFailAlloc_10663_;
goto v_reusejp_10661_;
}
v_reusejp_10661_:
{
return v___x_10662_;
}
}
}
}
v___jp_10665_:
{
lean_object* v___x_10670_; 
lean_inc_ref(v_a_10447_);
lean_inc_ref(v_mod_10439_);
v___x_10670_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchFromCache_x3f(v_mod_10439_, v_setup_10440_, v_a_10599_, v___y_10666_, v_a_10443_, v_a_10444_, v_a_10445_, v_a_10446_, v_a_10447_, v_a_10669_);
if (lean_obj_tag(v___x_10670_) == 0)
{
lean_object* v_a_10671_; 
v_a_10671_ = lean_ctor_get(v___x_10670_, 0);
lean_inc(v_a_10671_);
if (lean_obj_tag(v_a_10671_) == 0)
{
lean_object* v_a_10672_; lean_object* v___x_10674_; uint8_t v_isShared_10675_; uint8_t v_isSharedCheck_10680_; 
lean_dec_ref(v_trace_10501_);
lean_dec_ref(v_a_10447_);
lean_dec(v_a_10446_);
lean_dec(v_a_10445_);
lean_dec(v_a_10444_);
lean_dec_ref(v_a_10443_);
lean_dec_ref(v_srcFile_10441_);
lean_dec_ref(v_setup_10440_);
lean_dec_ref(v_mod_10439_);
v_a_10672_ = lean_ctor_get(v___x_10670_, 1);
v_isSharedCheck_10680_ = !lean_is_exclusive(v___x_10670_);
if (v_isSharedCheck_10680_ == 0)
{
lean_object* v_unused_10681_; 
v_unused_10681_ = lean_ctor_get(v___x_10670_, 0);
lean_dec(v_unused_10681_);
v___x_10674_ = v___x_10670_;
v_isShared_10675_ = v_isSharedCheck_10680_;
goto v_resetjp_10673_;
}
else
{
lean_inc(v_a_10672_);
lean_dec(v___x_10670_);
v___x_10674_ = lean_box(0);
v_isShared_10675_ = v_isSharedCheck_10680_;
goto v_resetjp_10673_;
}
v_resetjp_10673_:
{
lean_object* v_val_10676_; lean_object* v___x_10678_; 
v_val_10676_ = lean_ctor_get(v_a_10671_, 0);
lean_inc(v_val_10676_);
lean_dec_ref(v_a_10671_);
if (v_isShared_10675_ == 0)
{
lean_ctor_set(v___x_10674_, 0, v_val_10676_);
v___x_10678_ = v___x_10674_;
goto v_reusejp_10677_;
}
else
{
lean_object* v_reuseFailAlloc_10679_; 
v_reuseFailAlloc_10679_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10679_, 0, v_val_10676_);
lean_ctor_set(v_reuseFailAlloc_10679_, 1, v_a_10672_);
v___x_10678_ = v_reuseFailAlloc_10679_;
goto v_reusejp_10677_;
}
v_reusejp_10677_:
{
return v___x_10678_;
}
}
}
else
{
lean_object* v_a_10682_; lean_object* v_val_10683_; lean_object* v___x_10684_; 
v_a_10682_ = lean_ctor_get(v___x_10670_, 1);
lean_inc(v_a_10682_);
lean_dec_ref(v___x_10670_);
v_val_10683_ = lean_ctor_get(v_a_10671_, 0);
lean_inc(v_val_10683_);
lean_dec_ref(v_a_10671_);
lean_inc_ref(v_mod_10439_);
v___x_10684_ = l_Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0(v_setup_10440_, v_a_10443_, v_mod_10439_, v_trace_10501_, v_val_10683_, v___y_10667_, v_a_10444_, v_a_10445_, v_a_10446_, v_a_10447_, v_a_10682_);
if (lean_obj_tag(v___x_10684_) == 0)
{
lean_object* v_a_10685_; lean_object* v_a_10686_; uint8_t v___x_10687_; uint8_t v___x_10688_; 
v_a_10685_ = lean_ctor_get(v___x_10684_, 0);
lean_inc(v_a_10685_);
v_a_10686_ = lean_ctor_get(v___x_10684_, 1);
lean_inc(v_a_10686_);
lean_dec_ref(v___x_10684_);
v___x_10687_ = lean_unbox(v_a_10685_);
lean_dec(v_a_10685_);
v___x_10688_ = l_Lake_instDecidableEqOutputStatus(v___x_10687_, v___y_10668_);
if (v___x_10688_ == 0)
{
uint8_t v_isModule_10689_; lean_object* v_log_10690_; uint8_t v_action_10691_; uint8_t v_wantsRebuild_10692_; lean_object* v_trace_10693_; lean_object* v_buildTime_10694_; lean_object* v___x_10696_; uint8_t v_isShared_10697_; uint8_t v_isSharedCheck_10723_; 
lean_dec_ref(v_trace_10501_);
lean_dec(v_a_10446_);
lean_dec(v_a_10445_);
lean_dec(v_a_10444_);
lean_dec_ref(v_a_10443_);
lean_dec_ref(v_srcFile_10441_);
v_isModule_10689_ = lean_ctor_get_uint8(v_setup_10440_, sizeof(void*)*7);
lean_dec_ref(v_setup_10440_);
v_log_10690_ = lean_ctor_get(v_a_10686_, 0);
v_action_10691_ = lean_ctor_get_uint8(v_a_10686_, sizeof(void*)*3);
v_wantsRebuild_10692_ = lean_ctor_get_uint8(v_a_10686_, sizeof(void*)*3 + 1);
v_trace_10693_ = lean_ctor_get(v_a_10686_, 1);
v_buildTime_10694_ = lean_ctor_get(v_a_10686_, 2);
v_isSharedCheck_10723_ = !lean_is_exclusive(v_a_10686_);
if (v_isSharedCheck_10723_ == 0)
{
v___x_10696_ = v_a_10686_;
v_isShared_10697_ = v_isSharedCheck_10723_;
goto v_resetjp_10695_;
}
else
{
lean_inc(v_buildTime_10694_);
lean_inc(v_trace_10693_);
lean_inc(v_log_10690_);
lean_dec(v_a_10686_);
v___x_10696_ = lean_box(0);
v_isShared_10697_ = v_isSharedCheck_10723_;
goto v_resetjp_10695_;
}
v_resetjp_10695_:
{
lean_object* v___x_10698_; 
v___x_10698_ = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___redArg(v_mod_10439_, v_isModule_10689_, v_a_10447_, v_log_10690_);
lean_dec_ref(v_a_10447_);
if (lean_obj_tag(v___x_10698_) == 0)
{
lean_object* v_a_10699_; lean_object* v_a_10700_; lean_object* v___x_10702_; uint8_t v_isShared_10703_; uint8_t v_isSharedCheck_10710_; 
v_a_10699_ = lean_ctor_get(v___x_10698_, 0);
v_a_10700_ = lean_ctor_get(v___x_10698_, 1);
v_isSharedCheck_10710_ = !lean_is_exclusive(v___x_10698_);
if (v_isSharedCheck_10710_ == 0)
{
v___x_10702_ = v___x_10698_;
v_isShared_10703_ = v_isSharedCheck_10710_;
goto v_resetjp_10701_;
}
else
{
lean_inc(v_a_10700_);
lean_inc(v_a_10699_);
lean_dec(v___x_10698_);
v___x_10702_ = lean_box(0);
v_isShared_10703_ = v_isSharedCheck_10710_;
goto v_resetjp_10701_;
}
v_resetjp_10701_:
{
lean_object* v___x_10705_; 
if (v_isShared_10697_ == 0)
{
lean_ctor_set(v___x_10696_, 0, v_a_10700_);
v___x_10705_ = v___x_10696_;
goto v_reusejp_10704_;
}
else
{
lean_object* v_reuseFailAlloc_10709_; 
v_reuseFailAlloc_10709_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_10709_, 0, v_a_10700_);
lean_ctor_set(v_reuseFailAlloc_10709_, 1, v_trace_10693_);
lean_ctor_set(v_reuseFailAlloc_10709_, 2, v_buildTime_10694_);
lean_ctor_set_uint8(v_reuseFailAlloc_10709_, sizeof(void*)*3, v_action_10691_);
lean_ctor_set_uint8(v_reuseFailAlloc_10709_, sizeof(void*)*3 + 1, v_wantsRebuild_10692_);
v___x_10705_ = v_reuseFailAlloc_10709_;
goto v_reusejp_10704_;
}
v_reusejp_10704_:
{
lean_object* v___x_10707_; 
if (v_isShared_10703_ == 0)
{
lean_ctor_set(v___x_10702_, 1, v___x_10705_);
v___x_10707_ = v___x_10702_;
goto v_reusejp_10706_;
}
else
{
lean_object* v_reuseFailAlloc_10708_; 
v_reuseFailAlloc_10708_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10708_, 0, v_a_10699_);
lean_ctor_set(v_reuseFailAlloc_10708_, 1, v___x_10705_);
v___x_10707_ = v_reuseFailAlloc_10708_;
goto v_reusejp_10706_;
}
v_reusejp_10706_:
{
return v___x_10707_;
}
}
}
}
else
{
lean_object* v_a_10711_; lean_object* v_a_10712_; lean_object* v___x_10714_; uint8_t v_isShared_10715_; uint8_t v_isSharedCheck_10722_; 
v_a_10711_ = lean_ctor_get(v___x_10698_, 0);
v_a_10712_ = lean_ctor_get(v___x_10698_, 1);
v_isSharedCheck_10722_ = !lean_is_exclusive(v___x_10698_);
if (v_isSharedCheck_10722_ == 0)
{
v___x_10714_ = v___x_10698_;
v_isShared_10715_ = v_isSharedCheck_10722_;
goto v_resetjp_10713_;
}
else
{
lean_inc(v_a_10712_);
lean_inc(v_a_10711_);
lean_dec(v___x_10698_);
v___x_10714_ = lean_box(0);
v_isShared_10715_ = v_isSharedCheck_10722_;
goto v_resetjp_10713_;
}
v_resetjp_10713_:
{
lean_object* v___x_10717_; 
if (v_isShared_10697_ == 0)
{
lean_ctor_set(v___x_10696_, 0, v_a_10712_);
v___x_10717_ = v___x_10696_;
goto v_reusejp_10716_;
}
else
{
lean_object* v_reuseFailAlloc_10721_; 
v_reuseFailAlloc_10721_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_10721_, 0, v_a_10712_);
lean_ctor_set(v_reuseFailAlloc_10721_, 1, v_trace_10693_);
lean_ctor_set(v_reuseFailAlloc_10721_, 2, v_buildTime_10694_);
lean_ctor_set_uint8(v_reuseFailAlloc_10721_, sizeof(void*)*3, v_action_10691_);
lean_ctor_set_uint8(v_reuseFailAlloc_10721_, sizeof(void*)*3 + 1, v_wantsRebuild_10692_);
v___x_10717_ = v_reuseFailAlloc_10721_;
goto v_reusejp_10716_;
}
v_reusejp_10716_:
{
lean_object* v___x_10719_; 
if (v_isShared_10715_ == 0)
{
lean_ctor_set(v___x_10714_, 1, v___x_10717_);
v___x_10719_ = v___x_10714_;
goto v_reusejp_10718_;
}
else
{
lean_object* v_reuseFailAlloc_10720_; 
v_reuseFailAlloc_10720_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10720_, 0, v_a_10711_);
lean_ctor_set(v_reuseFailAlloc_10720_, 1, v___x_10717_);
v___x_10719_ = v_reuseFailAlloc_10720_;
goto v_reusejp_10718_;
}
v_reusejp_10718_:
{
return v___x_10719_;
}
}
}
}
}
}
else
{
lean_object* v___x_10724_; 
v___x_10724_ = l___private_Lake_Build_Module_0__Lake_Module_buildLean(v_mod_10439_, v_trace_10501_, v_srcFile_10441_, v_setup_10440_, v_a_10443_, v_a_10444_, v_a_10445_, v_a_10446_, v_a_10447_, v_a_10686_);
lean_dec_ref(v_trace_10501_);
return v___x_10724_;
}
}
else
{
lean_object* v_a_10725_; lean_object* v_a_10726_; lean_object* v___x_10728_; uint8_t v_isShared_10729_; uint8_t v_isSharedCheck_10733_; 
lean_dec_ref(v_trace_10501_);
lean_dec_ref(v_a_10447_);
lean_dec(v_a_10446_);
lean_dec(v_a_10445_);
lean_dec(v_a_10444_);
lean_dec_ref(v_a_10443_);
lean_dec_ref(v_srcFile_10441_);
lean_dec_ref(v_setup_10440_);
lean_dec_ref(v_mod_10439_);
v_a_10725_ = lean_ctor_get(v___x_10684_, 0);
v_a_10726_ = lean_ctor_get(v___x_10684_, 1);
v_isSharedCheck_10733_ = !lean_is_exclusive(v___x_10684_);
if (v_isSharedCheck_10733_ == 0)
{
v___x_10728_ = v___x_10684_;
v_isShared_10729_ = v_isSharedCheck_10733_;
goto v_resetjp_10727_;
}
else
{
lean_inc(v_a_10726_);
lean_inc(v_a_10725_);
lean_dec(v___x_10684_);
v___x_10728_ = lean_box(0);
v_isShared_10729_ = v_isSharedCheck_10733_;
goto v_resetjp_10727_;
}
v_resetjp_10727_:
{
lean_object* v___x_10731_; 
if (v_isShared_10729_ == 0)
{
v___x_10731_ = v___x_10728_;
goto v_reusejp_10730_;
}
else
{
lean_object* v_reuseFailAlloc_10732_; 
v_reuseFailAlloc_10732_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10732_, 0, v_a_10725_);
lean_ctor_set(v_reuseFailAlloc_10732_, 1, v_a_10726_);
v___x_10731_ = v_reuseFailAlloc_10732_;
goto v_reusejp_10730_;
}
v_reusejp_10730_:
{
return v___x_10731_;
}
}
}
}
}
else
{
lean_object* v_a_10734_; lean_object* v_a_10735_; lean_object* v___x_10737_; uint8_t v_isShared_10738_; uint8_t v_isSharedCheck_10742_; 
lean_dec_ref(v_trace_10501_);
lean_dec_ref(v_a_10447_);
lean_dec(v_a_10446_);
lean_dec(v_a_10445_);
lean_dec(v_a_10444_);
lean_dec_ref(v_a_10443_);
lean_dec_ref(v_srcFile_10441_);
lean_dec_ref(v_setup_10440_);
lean_dec_ref(v_mod_10439_);
v_a_10734_ = lean_ctor_get(v___x_10670_, 0);
v_a_10735_ = lean_ctor_get(v___x_10670_, 1);
v_isSharedCheck_10742_ = !lean_is_exclusive(v___x_10670_);
if (v_isSharedCheck_10742_ == 0)
{
v___x_10737_ = v___x_10670_;
v_isShared_10738_ = v_isSharedCheck_10742_;
goto v_resetjp_10736_;
}
else
{
lean_inc(v_a_10735_);
lean_inc(v_a_10734_);
lean_dec(v___x_10670_);
v___x_10737_ = lean_box(0);
v_isShared_10738_ = v_isSharedCheck_10742_;
goto v_resetjp_10736_;
}
v_resetjp_10736_:
{
lean_object* v___x_10740_; 
if (v_isShared_10738_ == 0)
{
v___x_10740_ = v___x_10737_;
goto v_reusejp_10739_;
}
else
{
lean_object* v_reuseFailAlloc_10741_; 
v_reuseFailAlloc_10741_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10741_, 0, v_a_10734_);
lean_ctor_set(v_reuseFailAlloc_10741_, 1, v_a_10735_);
v___x_10740_ = v_reuseFailAlloc_10741_;
goto v_reusejp_10739_;
}
v_reusejp_10739_:
{
return v___x_10740_;
}
}
}
}
v___jp_10743_:
{
if (v_a_10747_ == 0)
{
lean_object* v___x_10749_; 
lean_dec(v_a_10599_);
v___x_10749_ = l___private_Lake_Build_Module_0__Lake_Module_buildLean(v_mod_10439_, v_trace_10501_, v_srcFile_10441_, v_setup_10440_, v_a_10443_, v_a_10444_, v_a_10445_, v_a_10446_, v_a_10447_, v_a_10748_);
lean_dec_ref(v_trace_10501_);
return v___x_10749_;
}
else
{
v___y_10666_ = v___y_10744_;
v___y_10667_ = v___y_10745_;
v___y_10668_ = v___y_10746_;
v_a_10669_ = v_a_10748_;
goto v___jp_10665_;
}
}
v___jp_10750_:
{
lean_object* v_mtime_10752_; lean_object* v___x_10753_; 
v_mtime_10752_ = lean_ctor_get(v_srcTrace_10442_, 2);
lean_inc(v_a_10599_);
lean_inc_ref(v_mod_10439_);
v___x_10753_ = l_Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0(v_setup_10440_, v_a_10443_, v_mod_10439_, v_trace_10501_, v_a_10599_, v_mtime_10752_, v_a_10444_, v_a_10445_, v_a_10446_, v_a_10447_, v_a_10751_);
if (lean_obj_tag(v___x_10753_) == 0)
{
lean_object* v_a_10754_; lean_object* v_a_10755_; uint8_t v___x_10756_; uint8_t v___x_10757_; uint8_t v___x_10758_; 
v_a_10754_ = lean_ctor_get(v___x_10753_, 0);
lean_inc(v_a_10754_);
v_a_10755_ = lean_ctor_get(v___x_10753_, 1);
lean_inc(v_a_10755_);
lean_dec_ref(v___x_10753_);
v___x_10756_ = 0;
v___x_10757_ = lean_unbox(v_a_10754_);
lean_dec(v_a_10754_);
v___x_10758_ = l_Lake_instDecidableEqOutputStatus(v___x_10757_, v___x_10756_);
if (v___x_10758_ == 0)
{
uint8_t v_isModule_10759_; uint8_t v___x_10760_; 
lean_dec(v_a_10599_);
lean_dec_ref(v_trace_10501_);
lean_dec(v_a_10446_);
lean_dec(v_a_10445_);
lean_dec(v_a_10444_);
lean_dec_ref(v_a_10443_);
lean_dec_ref(v_srcFile_10441_);
v_isModule_10759_ = lean_ctor_get_uint8(v_setup_10440_, sizeof(void*)*7);
lean_dec_ref(v_setup_10440_);
lean_inc_ref(v_mod_10439_);
v___x_10760_ = l_Lake_Module_checkArtifactsExsist(v_mod_10439_, v_isModule_10759_);
if (v___x_10760_ == 0)
{
lean_object* v___x_10761_; lean_object* v___x_10762_; lean_object* v___x_10763_; lean_object* v___x_10764_; lean_object* v___x_10765_; 
v___x_10761_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__1));
lean_inc_ref(v_irDir_10495_);
v___x_10762_ = l_System_FilePath_normalize(v_irDir_10495_);
v___x_10763_ = l_Lake_joinRelative(v___x_10594_, v___x_10762_);
lean_inc(v_name_10491_);
v___x_10764_ = l_Lean_modToFilePath(v___x_10763_, v_name_10491_, v___x_10761_);
lean_dec_ref(v___x_10763_);
lean_inc_ref(v_mod_10439_);
v___x_10765_ = l___private_Lake_Build_Module_0__Lake_Module_unpackLtar___redArg(v_mod_10439_, v___x_10764_, v_a_10447_, v_a_10755_);
if (lean_obj_tag(v___x_10765_) == 0)
{
lean_object* v_a_10766_; 
v_a_10766_ = lean_ctor_get(v___x_10765_, 1);
lean_inc(v_a_10766_);
lean_dec_ref(v___x_10765_);
v___y_10451_ = v_isModule_10759_;
v___y_10452_ = v_a_10447_;
v___y_10453_ = v_a_10766_;
goto v___jp_10450_;
}
else
{
lean_object* v_a_10767_; lean_object* v_a_10768_; lean_object* v___x_10770_; uint8_t v_isShared_10771_; uint8_t v_isSharedCheck_10775_; 
lean_dec_ref(v_a_10447_);
lean_dec_ref(v_mod_10439_);
v_a_10767_ = lean_ctor_get(v___x_10765_, 0);
v_a_10768_ = lean_ctor_get(v___x_10765_, 1);
v_isSharedCheck_10775_ = !lean_is_exclusive(v___x_10765_);
if (v_isSharedCheck_10775_ == 0)
{
v___x_10770_ = v___x_10765_;
v_isShared_10771_ = v_isSharedCheck_10775_;
goto v_resetjp_10769_;
}
else
{
lean_inc(v_a_10768_);
lean_inc(v_a_10767_);
lean_dec(v___x_10765_);
v___x_10770_ = lean_box(0);
v_isShared_10771_ = v_isSharedCheck_10775_;
goto v_resetjp_10769_;
}
v_resetjp_10769_:
{
lean_object* v___x_10773_; 
if (v_isShared_10771_ == 0)
{
v___x_10773_ = v___x_10770_;
goto v_reusejp_10772_;
}
else
{
lean_object* v_reuseFailAlloc_10774_; 
v_reuseFailAlloc_10774_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10774_, 0, v_a_10767_);
lean_ctor_set(v_reuseFailAlloc_10774_, 1, v_a_10768_);
v___x_10773_ = v_reuseFailAlloc_10774_;
goto v_reusejp_10772_;
}
v_reusejp_10772_:
{
return v___x_10773_;
}
}
}
}
else
{
lean_dec_ref(v___x_10594_);
v___y_10451_ = v_isModule_10759_;
v___y_10452_ = v_a_10447_;
v___y_10453_ = v_a_10755_;
goto v___jp_10450_;
}
}
else
{
lean_dec_ref(v___x_10594_);
if (lean_obj_tag(v_enableArtifactCache_x3f_10496_) == 0)
{
lean_object* v_toContext_10776_; lean_object* v_lakeEnv_10777_; lean_object* v_enableArtifactCache_x3f_10778_; 
v_toContext_10776_ = lean_ctor_get(v_a_10447_, 1);
v_lakeEnv_10777_ = lean_ctor_get(v_toContext_10776_, 1);
v_enableArtifactCache_x3f_10778_ = lean_ctor_get(v_lakeEnv_10777_, 6);
if (lean_obj_tag(v_enableArtifactCache_x3f_10778_) == 0)
{
lean_object* v_root_10779_; lean_object* v_config_10780_; lean_object* v_enableArtifactCache_x3f_10781_; 
v_root_10779_ = lean_ctor_get(v_toContext_10776_, 0);
v_config_10780_ = lean_ctor_get(v_root_10779_, 6);
v_enableArtifactCache_x3f_10781_ = lean_ctor_get(v_config_10780_, 25);
if (lean_obj_tag(v_enableArtifactCache_x3f_10781_) == 0)
{
v___y_10666_ = v___x_10758_;
v___y_10667_ = v_mtime_10752_;
v___y_10668_ = v___x_10756_;
v_a_10669_ = v_a_10755_;
goto v___jp_10665_;
}
else
{
lean_object* v_val_10782_; uint8_t v___x_10783_; 
v_val_10782_ = lean_ctor_get(v_enableArtifactCache_x3f_10781_, 0);
v___x_10783_ = lean_unbox(v_val_10782_);
v___y_10744_ = v___x_10758_;
v___y_10745_ = v_mtime_10752_;
v___y_10746_ = v___x_10756_;
v_a_10747_ = v___x_10783_;
v_a_10748_ = v_a_10755_;
goto v___jp_10743_;
}
}
else
{
lean_object* v_val_10784_; uint8_t v___x_10785_; 
v_val_10784_ = lean_ctor_get(v_enableArtifactCache_x3f_10778_, 0);
v___x_10785_ = lean_unbox(v_val_10784_);
v___y_10744_ = v___x_10758_;
v___y_10745_ = v_mtime_10752_;
v___y_10746_ = v___x_10756_;
v_a_10747_ = v___x_10785_;
v_a_10748_ = v_a_10755_;
goto v___jp_10743_;
}
}
else
{
lean_object* v_val_10786_; uint8_t v___x_10787_; 
v_val_10786_ = lean_ctor_get(v_enableArtifactCache_x3f_10496_, 0);
v___x_10787_ = lean_unbox(v_val_10786_);
v___y_10744_ = v___x_10758_;
v___y_10745_ = v_mtime_10752_;
v___y_10746_ = v___x_10756_;
v_a_10747_ = v___x_10787_;
v_a_10748_ = v_a_10755_;
goto v___jp_10743_;
}
}
}
else
{
lean_object* v_a_10788_; lean_object* v_a_10789_; lean_object* v___x_10791_; uint8_t v_isShared_10792_; uint8_t v_isSharedCheck_10796_; 
lean_dec(v_a_10599_);
lean_dec_ref(v___x_10594_);
lean_dec_ref(v_trace_10501_);
lean_dec_ref(v_a_10447_);
lean_dec(v_a_10446_);
lean_dec(v_a_10445_);
lean_dec(v_a_10444_);
lean_dec_ref(v_a_10443_);
lean_dec_ref(v_srcFile_10441_);
lean_dec_ref(v_setup_10440_);
lean_dec_ref(v_mod_10439_);
v_a_10788_ = lean_ctor_get(v___x_10753_, 0);
v_a_10789_ = lean_ctor_get(v___x_10753_, 1);
v_isSharedCheck_10796_ = !lean_is_exclusive(v___x_10753_);
if (v_isSharedCheck_10796_ == 0)
{
v___x_10791_ = v___x_10753_;
v_isShared_10792_ = v_isSharedCheck_10796_;
goto v_resetjp_10790_;
}
else
{
lean_inc(v_a_10789_);
lean_inc(v_a_10788_);
lean_dec(v___x_10753_);
v___x_10791_ = lean_box(0);
v_isShared_10792_ = v_isSharedCheck_10796_;
goto v_resetjp_10790_;
}
v_resetjp_10790_:
{
lean_object* v___x_10794_; 
if (v_isShared_10792_ == 0)
{
v___x_10794_ = v___x_10791_;
goto v_reusejp_10793_;
}
else
{
lean_object* v_reuseFailAlloc_10795_; 
v_reuseFailAlloc_10795_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10795_, 0, v_a_10788_);
lean_ctor_set(v_reuseFailAlloc_10795_, 1, v_a_10789_);
v___x_10794_ = v_reuseFailAlloc_10795_;
goto v_reusejp_10793_;
}
v_reusejp_10793_:
{
return v___x_10794_;
}
}
}
}
v___jp_10797_:
{
if (v_a_10798_ == 0)
{
v_a_10751_ = v_a_10799_;
goto v___jp_10750_;
}
else
{
if (lean_obj_tag(v_restoreAllArtifacts_x3f_10497_) == 0)
{
lean_object* v_toContext_10800_; lean_object* v_root_10801_; lean_object* v_config_10802_; lean_object* v_restoreAllArtifacts_x3f_10803_; 
v_toContext_10800_ = lean_ctor_get(v_a_10447_, 1);
v_root_10801_ = lean_ctor_get(v_toContext_10800_, 0);
v_config_10802_ = lean_ctor_get(v_root_10801_, 6);
v_restoreAllArtifacts_x3f_10803_ = lean_ctor_get(v_config_10802_, 26);
if (lean_obj_tag(v_restoreAllArtifacts_x3f_10803_) == 0)
{
uint8_t v___x_10804_; 
v___x_10804_ = 0;
v_a_10602_ = v___x_10804_;
v_a_10603_ = v_a_10799_;
goto v___jp_10601_;
}
else
{
lean_object* v_val_10805_; uint8_t v___x_10806_; 
v_val_10805_ = lean_ctor_get(v_restoreAllArtifacts_x3f_10803_, 0);
v___x_10806_ = lean_unbox(v_val_10805_);
v_a_10602_ = v___x_10806_;
v_a_10603_ = v_a_10799_;
goto v___jp_10601_;
}
}
else
{
lean_object* v_val_10807_; uint8_t v___x_10808_; 
v_val_10807_ = lean_ctor_get(v_restoreAllArtifacts_x3f_10497_, 0);
v___x_10808_ = lean_unbox(v_val_10807_);
v_a_10602_ = v___x_10808_;
v_a_10603_ = v_a_10799_;
goto v___jp_10601_;
}
}
}
v_reusejp_10809_:
{
if (lean_obj_tag(v_enableArtifactCache_x3f_10496_) == 0)
{
lean_object* v_toContext_10811_; lean_object* v_lakeEnv_10812_; lean_object* v_enableArtifactCache_x3f_10813_; 
v_toContext_10811_ = lean_ctor_get(v_a_10447_, 1);
v_lakeEnv_10812_ = lean_ctor_get(v_toContext_10811_, 1);
v_enableArtifactCache_x3f_10813_ = lean_ctor_get(v_lakeEnv_10812_, 6);
if (lean_obj_tag(v_enableArtifactCache_x3f_10813_) == 0)
{
lean_object* v_root_10814_; lean_object* v_config_10815_; lean_object* v_enableArtifactCache_x3f_10816_; 
v_root_10814_ = lean_ctor_get(v_toContext_10811_, 0);
v_config_10815_ = lean_ctor_get(v_root_10814_, 6);
v_enableArtifactCache_x3f_10816_ = lean_ctor_get(v_config_10815_, 25);
if (lean_obj_tag(v_enableArtifactCache_x3f_10816_) == 0)
{
v_a_10751_ = v___x_10810_;
goto v___jp_10750_;
}
else
{
lean_object* v_val_10817_; uint8_t v___x_10818_; 
v_val_10817_ = lean_ctor_get(v_enableArtifactCache_x3f_10816_, 0);
v___x_10818_ = lean_unbox(v_val_10817_);
v_a_10798_ = v___x_10818_;
v_a_10799_ = v___x_10810_;
goto v___jp_10797_;
}
}
else
{
lean_object* v_val_10819_; uint8_t v___x_10820_; 
v_val_10819_ = lean_ctor_get(v_enableArtifactCache_x3f_10813_, 0);
v___x_10820_ = lean_unbox(v_val_10819_);
v_a_10798_ = v___x_10820_;
v_a_10799_ = v___x_10810_;
goto v___jp_10797_;
}
}
else
{
lean_object* v_val_10821_; uint8_t v___x_10822_; 
v_val_10821_ = lean_ctor_get(v_enableArtifactCache_x3f_10496_, 0);
v___x_10822_ = lean_unbox(v_val_10821_);
v_a_10798_ = v___x_10822_;
v_a_10799_ = v___x_10810_;
goto v___jp_10797_;
}
}
}
else
{
lean_object* v_a_10824_; lean_object* v_a_10825_; lean_object* v___x_10827_; uint8_t v_isShared_10828_; uint8_t v_isSharedCheck_10835_; 
lean_dec_ref(v___x_10594_);
lean_dec_ref(v_a_10447_);
lean_dec(v_a_10446_);
lean_dec(v_a_10445_);
lean_dec(v_a_10444_);
lean_dec_ref(v_a_10443_);
lean_dec_ref(v_srcFile_10441_);
lean_dec_ref(v_setup_10440_);
lean_dec_ref(v_mod_10439_);
v_a_10824_ = lean_ctor_get(v___x_10598_, 0);
v_a_10825_ = lean_ctor_get(v___x_10598_, 1);
v_isSharedCheck_10835_ = !lean_is_exclusive(v___x_10598_);
if (v_isSharedCheck_10835_ == 0)
{
v___x_10827_ = v___x_10598_;
v_isShared_10828_ = v_isSharedCheck_10835_;
goto v_resetjp_10826_;
}
else
{
lean_inc(v_a_10825_);
lean_inc(v_a_10824_);
lean_dec(v___x_10598_);
v___x_10827_ = lean_box(0);
v_isShared_10828_ = v_isSharedCheck_10835_;
goto v_resetjp_10826_;
}
v_resetjp_10826_:
{
lean_object* v___x_10830_; 
if (v_isShared_10505_ == 0)
{
lean_ctor_set(v___x_10504_, 0, v_a_10825_);
v___x_10830_ = v___x_10504_;
goto v_reusejp_10829_;
}
else
{
lean_object* v_reuseFailAlloc_10834_; 
v_reuseFailAlloc_10834_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_10834_, 0, v_a_10825_);
lean_ctor_set(v_reuseFailAlloc_10834_, 1, v_trace_10501_);
lean_ctor_set(v_reuseFailAlloc_10834_, 2, v_buildTime_10502_);
lean_ctor_set_uint8(v_reuseFailAlloc_10834_, sizeof(void*)*3, v_action_10499_);
lean_ctor_set_uint8(v_reuseFailAlloc_10834_, sizeof(void*)*3 + 1, v_wantsRebuild_10500_);
v___x_10830_ = v_reuseFailAlloc_10834_;
goto v_reusejp_10829_;
}
v_reusejp_10829_:
{
lean_object* v___x_10832_; 
if (v_isShared_10828_ == 0)
{
lean_ctor_set(v___x_10827_, 1, v___x_10830_);
v___x_10832_ = v___x_10827_;
goto v_reusejp_10831_;
}
else
{
lean_object* v_reuseFailAlloc_10833_; 
v_reuseFailAlloc_10833_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10833_, 0, v_a_10824_);
lean_ctor_set(v_reuseFailAlloc_10833_, 1, v___x_10830_);
v___x_10832_ = v_reuseFailAlloc_10833_;
goto v_reusejp_10831_;
}
v_reusejp_10831_:
{
return v___x_10832_;
}
}
}
}
v___jp_10506_:
{
uint8_t v___x_10511_; uint8_t v___x_10512_; 
v___x_10511_ = 1;
v___x_10512_ = l_Lake_instDecidableEqOutputStatus(v___y_10507_, v___x_10511_);
if (v___x_10512_ == 0)
{
uint8_t v_isModule_10513_; lean_object* v___x_10514_; 
lean_inc_ref(v_pkg_10489_);
v_isModule_10513_ = lean_ctor_get_uint8(v_setup_10440_, sizeof(void*)*7);
lean_dec_ref(v_setup_10440_);
lean_inc_ref(v___y_10509_);
v___x_10514_ = l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts___redArg(v_mod_10439_, v_isModule_10513_, v___y_10508_, v___y_10509_, v___y_10510_);
if (lean_obj_tag(v___x_10514_) == 0)
{
lean_object* v_a_10515_; lean_object* v_toContext_10516_; lean_object* v_a_10517_; lean_object* v___x_10519_; uint8_t v_isShared_10520_; uint8_t v_isSharedCheck_10555_; 
v_a_10515_ = lean_ctor_get(v___x_10514_, 1);
lean_inc(v_a_10515_);
v_toContext_10516_ = lean_ctor_get(v___y_10509_, 1);
lean_inc(v_toContext_10516_);
lean_dec_ref(v___y_10509_);
v_a_10517_ = lean_ctor_get(v___x_10514_, 0);
v_isSharedCheck_10555_ = !lean_is_exclusive(v___x_10514_);
if (v_isSharedCheck_10555_ == 0)
{
lean_object* v_unused_10556_; 
v_unused_10556_ = lean_ctor_get(v___x_10514_, 1);
lean_dec(v_unused_10556_);
v___x_10519_ = v___x_10514_;
v_isShared_10520_ = v_isSharedCheck_10555_;
goto v_resetjp_10518_;
}
else
{
lean_inc(v_a_10517_);
lean_dec(v___x_10514_);
v___x_10519_ = lean_box(0);
v_isShared_10520_ = v_isSharedCheck_10555_;
goto v_resetjp_10518_;
}
v_resetjp_10518_:
{
lean_object* v_log_10521_; uint8_t v_action_10522_; uint8_t v_wantsRebuild_10523_; lean_object* v_trace_10524_; lean_object* v_buildTime_10525_; lean_object* v_lakeCache_10526_; uint64_t v_hash_10527_; lean_object* v___x_10528_; lean_object* v___x_10529_; lean_object* v___x_10530_; lean_object* v___x_10531_; lean_object* v___x_10532_; 
v_log_10521_ = lean_ctor_get(v_a_10515_, 0);
v_action_10522_ = lean_ctor_get_uint8(v_a_10515_, sizeof(void*)*3);
v_wantsRebuild_10523_ = lean_ctor_get_uint8(v_a_10515_, sizeof(void*)*3 + 1);
v_trace_10524_ = lean_ctor_get(v_a_10515_, 1);
v_buildTime_10525_ = lean_ctor_get(v_a_10515_, 2);
v_lakeCache_10526_ = lean_ctor_get(v_toContext_10516_, 3);
lean_inc_ref(v_lakeCache_10526_);
lean_dec(v_toContext_10516_);
v_hash_10527_ = lean_ctor_get_uint64(v_trace_10501_, sizeof(void*)*3);
lean_dec_ref(v_trace_10501_);
v___x_10528_ = l_Lake_Package_cacheScope(v_pkg_10489_);
lean_inc(v_a_10517_);
v___x_10529_ = l_Lake_ModuleOutputArtifacts_descrs(v_a_10517_);
v___x_10530_ = l_Lake_ModuleOutputDescrs_toJson(v___x_10529_);
v___x_10531_ = lean_box(0);
v___x_10532_ = l___private_Lake_Config_Cache_0__Lake_Cache_writeOutputsCore(v_lakeCache_10526_, v___x_10528_, v_hash_10527_, v___x_10530_, v___x_10531_, v___x_10531_);
if (lean_obj_tag(v___x_10532_) == 0)
{
lean_object* v___x_10534_; 
lean_dec_ref(v___x_10532_);
if (v_isShared_10520_ == 0)
{
v___x_10534_ = v___x_10519_;
goto v_reusejp_10533_;
}
else
{
lean_object* v_reuseFailAlloc_10535_; 
v_reuseFailAlloc_10535_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10535_, 0, v_a_10517_);
lean_ctor_set(v_reuseFailAlloc_10535_, 1, v_a_10515_);
v___x_10534_ = v_reuseFailAlloc_10535_;
goto v_reusejp_10533_;
}
v_reusejp_10533_:
{
return v___x_10534_;
}
}
else
{
lean_object* v___x_10537_; uint8_t v_isShared_10538_; uint8_t v_isSharedCheck_10551_; 
lean_inc(v_buildTime_10525_);
lean_inc_ref(v_trace_10524_);
lean_inc_ref(v_log_10521_);
lean_dec(v_a_10517_);
v_isSharedCheck_10551_ = !lean_is_exclusive(v_a_10515_);
if (v_isSharedCheck_10551_ == 0)
{
lean_object* v_unused_10552_; lean_object* v_unused_10553_; lean_object* v_unused_10554_; 
v_unused_10552_ = lean_ctor_get(v_a_10515_, 2);
lean_dec(v_unused_10552_);
v_unused_10553_ = lean_ctor_get(v_a_10515_, 1);
lean_dec(v_unused_10553_);
v_unused_10554_ = lean_ctor_get(v_a_10515_, 0);
lean_dec(v_unused_10554_);
v___x_10537_ = v_a_10515_;
v_isShared_10538_ = v_isSharedCheck_10551_;
goto v_resetjp_10536_;
}
else
{
lean_dec(v_a_10515_);
v___x_10537_ = lean_box(0);
v_isShared_10538_ = v_isSharedCheck_10551_;
goto v_resetjp_10536_;
}
v_resetjp_10536_:
{
lean_object* v_a_10539_; lean_object* v___x_10540_; uint8_t v___x_10541_; lean_object* v___x_10542_; lean_object* v___x_10543_; lean_object* v___x_10544_; lean_object* v___x_10546_; 
v_a_10539_ = lean_ctor_get(v___x_10532_, 0);
lean_inc(v_a_10539_);
lean_dec_ref(v___x_10532_);
v___x_10540_ = lean_io_error_to_string(v_a_10539_);
v___x_10541_ = 3;
v___x_10542_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_10542_, 0, v___x_10540_);
lean_ctor_set_uint8(v___x_10542_, sizeof(void*)*1, v___x_10541_);
v___x_10543_ = lean_array_get_size(v_log_10521_);
v___x_10544_ = lean_array_push(v_log_10521_, v___x_10542_);
if (v_isShared_10538_ == 0)
{
lean_ctor_set(v___x_10537_, 0, v___x_10544_);
v___x_10546_ = v___x_10537_;
goto v_reusejp_10545_;
}
else
{
lean_object* v_reuseFailAlloc_10550_; 
v_reuseFailAlloc_10550_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_10550_, 0, v___x_10544_);
lean_ctor_set(v_reuseFailAlloc_10550_, 1, v_trace_10524_);
lean_ctor_set(v_reuseFailAlloc_10550_, 2, v_buildTime_10525_);
lean_ctor_set_uint8(v_reuseFailAlloc_10550_, sizeof(void*)*3, v_action_10522_);
lean_ctor_set_uint8(v_reuseFailAlloc_10550_, sizeof(void*)*3 + 1, v_wantsRebuild_10523_);
v___x_10546_ = v_reuseFailAlloc_10550_;
goto v_reusejp_10545_;
}
v_reusejp_10545_:
{
lean_object* v___x_10548_; 
if (v_isShared_10520_ == 0)
{
lean_ctor_set_tag(v___x_10519_, 1);
lean_ctor_set(v___x_10519_, 1, v___x_10546_);
lean_ctor_set(v___x_10519_, 0, v___x_10543_);
v___x_10548_ = v___x_10519_;
goto v_reusejp_10547_;
}
else
{
lean_object* v_reuseFailAlloc_10549_; 
v_reuseFailAlloc_10549_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10549_, 0, v___x_10543_);
lean_ctor_set(v_reuseFailAlloc_10549_, 1, v___x_10546_);
v___x_10548_ = v_reuseFailAlloc_10549_;
goto v_reusejp_10547_;
}
v_reusejp_10547_:
{
return v___x_10548_;
}
}
}
}
}
}
else
{
lean_dec_ref(v___y_10509_);
lean_dec_ref(v_trace_10501_);
lean_dec_ref(v_pkg_10489_);
return v___x_10514_;
}
}
else
{
uint8_t v_isModule_10557_; lean_object* v_log_10558_; uint8_t v_action_10559_; uint8_t v_wantsRebuild_10560_; lean_object* v_trace_10561_; lean_object* v_buildTime_10562_; lean_object* v___x_10564_; uint8_t v_isShared_10565_; uint8_t v_isSharedCheck_10591_; 
lean_dec_ref(v_trace_10501_);
v_isModule_10557_ = lean_ctor_get_uint8(v_setup_10440_, sizeof(void*)*7);
lean_dec_ref(v_setup_10440_);
v_log_10558_ = lean_ctor_get(v___y_10510_, 0);
v_action_10559_ = lean_ctor_get_uint8(v___y_10510_, sizeof(void*)*3);
v_wantsRebuild_10560_ = lean_ctor_get_uint8(v___y_10510_, sizeof(void*)*3 + 1);
v_trace_10561_ = lean_ctor_get(v___y_10510_, 1);
v_buildTime_10562_ = lean_ctor_get(v___y_10510_, 2);
v_isSharedCheck_10591_ = !lean_is_exclusive(v___y_10510_);
if (v_isSharedCheck_10591_ == 0)
{
v___x_10564_ = v___y_10510_;
v_isShared_10565_ = v_isSharedCheck_10591_;
goto v_resetjp_10563_;
}
else
{
lean_inc(v_buildTime_10562_);
lean_inc(v_trace_10561_);
lean_inc(v_log_10558_);
lean_dec(v___y_10510_);
v___x_10564_ = lean_box(0);
v_isShared_10565_ = v_isSharedCheck_10591_;
goto v_resetjp_10563_;
}
v_resetjp_10563_:
{
lean_object* v___x_10566_; 
v___x_10566_ = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___redArg(v_mod_10439_, v_isModule_10557_, v___y_10509_, v_log_10558_);
lean_dec_ref(v___y_10509_);
if (lean_obj_tag(v___x_10566_) == 0)
{
lean_object* v_a_10567_; lean_object* v_a_10568_; lean_object* v___x_10570_; uint8_t v_isShared_10571_; uint8_t v_isSharedCheck_10578_; 
v_a_10567_ = lean_ctor_get(v___x_10566_, 0);
v_a_10568_ = lean_ctor_get(v___x_10566_, 1);
v_isSharedCheck_10578_ = !lean_is_exclusive(v___x_10566_);
if (v_isSharedCheck_10578_ == 0)
{
v___x_10570_ = v___x_10566_;
v_isShared_10571_ = v_isSharedCheck_10578_;
goto v_resetjp_10569_;
}
else
{
lean_inc(v_a_10568_);
lean_inc(v_a_10567_);
lean_dec(v___x_10566_);
v___x_10570_ = lean_box(0);
v_isShared_10571_ = v_isSharedCheck_10578_;
goto v_resetjp_10569_;
}
v_resetjp_10569_:
{
lean_object* v___x_10573_; 
if (v_isShared_10565_ == 0)
{
lean_ctor_set(v___x_10564_, 0, v_a_10568_);
v___x_10573_ = v___x_10564_;
goto v_reusejp_10572_;
}
else
{
lean_object* v_reuseFailAlloc_10577_; 
v_reuseFailAlloc_10577_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_10577_, 0, v_a_10568_);
lean_ctor_set(v_reuseFailAlloc_10577_, 1, v_trace_10561_);
lean_ctor_set(v_reuseFailAlloc_10577_, 2, v_buildTime_10562_);
lean_ctor_set_uint8(v_reuseFailAlloc_10577_, sizeof(void*)*3, v_action_10559_);
lean_ctor_set_uint8(v_reuseFailAlloc_10577_, sizeof(void*)*3 + 1, v_wantsRebuild_10560_);
v___x_10573_ = v_reuseFailAlloc_10577_;
goto v_reusejp_10572_;
}
v_reusejp_10572_:
{
lean_object* v___x_10575_; 
if (v_isShared_10571_ == 0)
{
lean_ctor_set(v___x_10570_, 1, v___x_10573_);
v___x_10575_ = v___x_10570_;
goto v_reusejp_10574_;
}
else
{
lean_object* v_reuseFailAlloc_10576_; 
v_reuseFailAlloc_10576_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10576_, 0, v_a_10567_);
lean_ctor_set(v_reuseFailAlloc_10576_, 1, v___x_10573_);
v___x_10575_ = v_reuseFailAlloc_10576_;
goto v_reusejp_10574_;
}
v_reusejp_10574_:
{
return v___x_10575_;
}
}
}
}
else
{
lean_object* v_a_10579_; lean_object* v_a_10580_; lean_object* v___x_10582_; uint8_t v_isShared_10583_; uint8_t v_isSharedCheck_10590_; 
v_a_10579_ = lean_ctor_get(v___x_10566_, 0);
v_a_10580_ = lean_ctor_get(v___x_10566_, 1);
v_isSharedCheck_10590_ = !lean_is_exclusive(v___x_10566_);
if (v_isSharedCheck_10590_ == 0)
{
v___x_10582_ = v___x_10566_;
v_isShared_10583_ = v_isSharedCheck_10590_;
goto v_resetjp_10581_;
}
else
{
lean_inc(v_a_10580_);
lean_inc(v_a_10579_);
lean_dec(v___x_10566_);
v___x_10582_ = lean_box(0);
v_isShared_10583_ = v_isSharedCheck_10590_;
goto v_resetjp_10581_;
}
v_resetjp_10581_:
{
lean_object* v___x_10585_; 
if (v_isShared_10565_ == 0)
{
lean_ctor_set(v___x_10564_, 0, v_a_10580_);
v___x_10585_ = v___x_10564_;
goto v_reusejp_10584_;
}
else
{
lean_object* v_reuseFailAlloc_10589_; 
v_reuseFailAlloc_10589_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_10589_, 0, v_a_10580_);
lean_ctor_set(v_reuseFailAlloc_10589_, 1, v_trace_10561_);
lean_ctor_set(v_reuseFailAlloc_10589_, 2, v_buildTime_10562_);
lean_ctor_set_uint8(v_reuseFailAlloc_10589_, sizeof(void*)*3, v_action_10559_);
lean_ctor_set_uint8(v_reuseFailAlloc_10589_, sizeof(void*)*3 + 1, v_wantsRebuild_10560_);
v___x_10585_ = v_reuseFailAlloc_10589_;
goto v_reusejp_10584_;
}
v_reusejp_10584_:
{
lean_object* v___x_10587_; 
if (v_isShared_10583_ == 0)
{
lean_ctor_set(v___x_10582_, 1, v___x_10585_);
v___x_10587_ = v___x_10582_;
goto v_reusejp_10586_;
}
else
{
lean_object* v_reuseFailAlloc_10588_; 
v_reuseFailAlloc_10588_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10588_, 0, v_a_10579_);
lean_ctor_set(v_reuseFailAlloc_10588_, 1, v___x_10585_);
v___x_10587_ = v_reuseFailAlloc_10588_;
goto v_reusejp_10586_;
}
v_reusejp_10586_:
{
return v___x_10587_;
}
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore___boxed(lean_object* v_mod_10837_, lean_object* v_setup_10838_, lean_object* v_srcFile_10839_, lean_object* v_srcTrace_10840_, lean_object* v_a_10841_, lean_object* v_a_10842_, lean_object* v_a_10843_, lean_object* v_a_10844_, lean_object* v_a_10845_, lean_object* v_a_10846_, lean_object* v_a_10847_){
_start:
{
lean_object* v_res_10848_; 
v_res_10848_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore(v_mod_10837_, v_setup_10838_, v_srcFile_10839_, v_srcTrace_10840_, v_a_10841_, v_a_10842_, v_a_10843_, v_a_10844_, v_a_10845_, v_a_10846_);
lean_dec_ref(v_srcTrace_10840_);
return v_res_10848_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__0(lean_object* v_setup_10849_, lean_object* v_a_10850_, lean_object* v_info_10851_, lean_object* v_depTrace_10852_, lean_object* v_depHash_10853_, lean_object* v_oldTrace_10854_, lean_object* v_a_10855_, lean_object* v_a_10856_, lean_object* v_a_10857_, lean_object* v_a_10858_, lean_object* v_a_10859_){
_start:
{
lean_object* v___x_10861_; 
v___x_10861_ = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__0___redArg(v_setup_10849_, v_info_10851_, v_depTrace_10852_, v_depHash_10853_, v_oldTrace_10854_, v_a_10858_, v_a_10859_);
return v___x_10861_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__0___boxed(lean_object* v_setup_10862_, lean_object* v_a_10863_, lean_object* v_info_10864_, lean_object* v_depTrace_10865_, lean_object* v_depHash_10866_, lean_object* v_oldTrace_10867_, lean_object* v_a_10868_, lean_object* v_a_10869_, lean_object* v_a_10870_, lean_object* v_a_10871_, lean_object* v_a_10872_, lean_object* v_a_10873_){
_start:
{
lean_object* v_res_10874_; 
v_res_10874_ = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore_spec__0_spec__0(v_setup_10862_, v_a_10863_, v_info_10864_, v_depTrace_10865_, v_depHash_10866_, v_oldTrace_10867_, v_a_10868_, v_a_10869_, v_a_10870_, v_a_10871_, v_a_10872_);
lean_dec_ref(v_a_10871_);
lean_dec(v_a_10870_);
lean_dec(v_a_10869_);
lean_dec(v_a_10868_);
lean_dec_ref(v_oldTrace_10867_);
lean_dec(v_depHash_10866_);
lean_dec_ref(v_depTrace_10865_);
lean_dec_ref(v_a_10863_);
lean_dec_ref(v_setup_10862_);
return v_res_10874_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_trackOutputsIfEnabled(lean_object* v_mod_10876_, lean_object* v_arts_10877_, lean_object* v_a_10878_, lean_object* v_a_10879_, lean_object* v_a_10880_, lean_object* v_a_10881_, lean_object* v_a_10882_, lean_object* v_a_10883_){
_start:
{
lean_object* v___y_10886_; lean_object* v_lib_10888_; lean_object* v_pkg_10889_; lean_object* v_name_10890_; lean_object* v_wsIdx_10891_; lean_object* v_dir_10892_; lean_object* v_config_10893_; lean_object* v___x_10894_; uint8_t v___x_10895_; 
v_lib_10888_ = lean_ctor_get(v_mod_10876_, 0);
v_pkg_10889_ = lean_ctor_get(v_lib_10888_, 0);
v_name_10890_ = lean_ctor_get(v_mod_10876_, 1);
v_wsIdx_10891_ = lean_ctor_get(v_pkg_10889_, 0);
v_dir_10892_ = lean_ctor_get(v_pkg_10889_, 4);
v_config_10893_ = lean_ctor_get(v_pkg_10889_, 6);
v___x_10894_ = lean_unsigned_to_nat(0u);
v___x_10895_ = lean_nat_dec_eq(v_wsIdx_10891_, v___x_10894_);
if (v___x_10895_ == 0)
{
lean_dec_ref(v_a_10882_);
lean_dec_ref(v_mod_10876_);
v___y_10886_ = v_a_10883_;
goto v___jp_10885_;
}
else
{
lean_object* v_outputsRef_x3f_10896_; 
v_outputsRef_x3f_10896_ = lean_ctor_get(v_a_10882_, 4);
lean_inc(v_outputsRef_x3f_10896_);
if (lean_obj_tag(v_outputsRef_x3f_10896_) == 1)
{
lean_object* v_trace_10897_; lean_object* v_val_10898_; lean_object* v___x_10900_; uint8_t v_isShared_10901_; uint8_t v_isSharedCheck_10994_; 
v_trace_10897_ = lean_ctor_get(v_a_10883_, 1);
v_val_10898_ = lean_ctor_get(v_outputsRef_x3f_10896_, 0);
v_isSharedCheck_10994_ = !lean_is_exclusive(v_outputsRef_x3f_10896_);
if (v_isSharedCheck_10994_ == 0)
{
v___x_10900_ = v_outputsRef_x3f_10896_;
v_isShared_10901_ = v_isSharedCheck_10994_;
goto v_resetjp_10899_;
}
else
{
lean_inc(v_val_10898_);
lean_dec(v_outputsRef_x3f_10896_);
v___x_10900_ = lean_box(0);
v_isShared_10901_ = v_isSharedCheck_10994_;
goto v_resetjp_10899_;
}
v_resetjp_10899_:
{
uint64_t v_hash_10902_; uint8_t v_isModule_10903_; lean_object* v_olean_10904_; lean_object* v_oleanServer_x3f_10905_; lean_object* v_oleanPrivate_x3f_10906_; lean_object* v_ilean_10907_; lean_object* v_ir_x3f_10908_; lean_object* v_c_10909_; lean_object* v_bc_x3f_10910_; lean_object* v_ltar_x3f_10911_; lean_object* v___y_10913_; uint8_t v___y_10914_; lean_object* v___y_10915_; lean_object* v___y_10916_; lean_object* v___y_10917_; lean_object* v___y_10918_; uint8_t v___y_10919_; lean_object* v___y_10920_; lean_object* v___y_10931_; 
v_hash_10902_ = lean_ctor_get_uint64(v_trace_10897_, sizeof(void*)*3);
v_isModule_10903_ = lean_ctor_get_uint8(v_arts_10877_, sizeof(void*)*8);
v_olean_10904_ = lean_ctor_get(v_arts_10877_, 0);
v_oleanServer_x3f_10905_ = lean_ctor_get(v_arts_10877_, 1);
v_oleanPrivate_x3f_10906_ = lean_ctor_get(v_arts_10877_, 2);
v_ilean_10907_ = lean_ctor_get(v_arts_10877_, 3);
v_ir_x3f_10908_ = lean_ctor_get(v_arts_10877_, 4);
v_c_10909_ = lean_ctor_get(v_arts_10877_, 5);
v_bc_x3f_10910_ = lean_ctor_get(v_arts_10877_, 6);
v_ltar_x3f_10911_ = lean_ctor_get(v_arts_10877_, 7);
lean_inc(v_ltar_x3f_10911_);
if (lean_obj_tag(v_ltar_x3f_10911_) == 1)
{
lean_object* v_val_10959_; lean_object* v___x_10961_; uint8_t v_isShared_10962_; uint8_t v_isSharedCheck_10981_; 
lean_del_object(v___x_10900_);
lean_dec_ref(v_a_10882_);
lean_dec_ref(v_mod_10876_);
v_val_10959_ = lean_ctor_get(v_ltar_x3f_10911_, 0);
v_isSharedCheck_10981_ = !lean_is_exclusive(v_ltar_x3f_10911_);
if (v_isSharedCheck_10981_ == 0)
{
v___x_10961_ = v_ltar_x3f_10911_;
v_isShared_10962_ = v_isSharedCheck_10981_;
goto v_resetjp_10960_;
}
else
{
lean_inc(v_val_10959_);
lean_dec(v_ltar_x3f_10911_);
v___x_10961_ = lean_box(0);
v_isShared_10962_ = v_isSharedCheck_10981_;
goto v_resetjp_10960_;
}
v_resetjp_10960_:
{
lean_object* v___x_10963_; lean_object* v___y_10965_; lean_object* v_descr_10971_; uint64_t v_hash_10972_; lean_object* v_ext_10973_; lean_object* v___x_10974_; uint8_t v___x_10975_; 
v___x_10963_ = lean_st_ref_take(v_val_10898_);
v_descr_10971_ = lean_ctor_get(v_val_10959_, 0);
lean_inc_ref(v_descr_10971_);
lean_dec(v_val_10959_);
v_hash_10972_ = lean_ctor_get_uint64(v_descr_10971_, sizeof(void*)*1);
v_ext_10973_ = lean_ctor_get(v_descr_10971_, 0);
lean_inc_ref(v_ext_10973_);
lean_dec_ref(v_descr_10971_);
v___x_10974_ = lean_string_utf8_byte_size(v_ext_10973_);
v___x_10975_ = lean_nat_dec_eq(v___x_10974_, v___x_10894_);
if (v___x_10975_ == 0)
{
lean_object* v___x_10976_; lean_object* v___x_10977_; lean_object* v___x_10978_; lean_object* v___x_10979_; 
v___x_10976_ = l_Lake_Hash_hex(v_hash_10972_);
v___x_10977_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_trackOutputsIfEnabled___closed__0));
v___x_10978_ = lean_string_append(v___x_10976_, v___x_10977_);
v___x_10979_ = lean_string_append(v___x_10978_, v_ext_10973_);
lean_dec_ref(v_ext_10973_);
v___y_10965_ = v___x_10979_;
goto v___jp_10964_;
}
else
{
lean_object* v___x_10980_; 
lean_dec_ref(v_ext_10973_);
v___x_10980_ = l_Lake_Hash_hex(v_hash_10972_);
v___y_10965_ = v___x_10980_;
goto v___jp_10964_;
}
v___jp_10964_:
{
lean_object* v___x_10967_; 
if (v_isShared_10962_ == 0)
{
lean_ctor_set_tag(v___x_10961_, 3);
lean_ctor_set(v___x_10961_, 0, v___y_10965_);
v___x_10967_ = v___x_10961_;
goto v_reusejp_10966_;
}
else
{
lean_object* v_reuseFailAlloc_10970_; 
v_reuseFailAlloc_10970_ = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(v_reuseFailAlloc_10970_, 0, v___y_10965_);
v___x_10967_ = v_reuseFailAlloc_10970_;
goto v_reusejp_10966_;
}
v_reusejp_10966_:
{
lean_object* v___x_10968_; lean_object* v___x_10969_; 
v___x_10968_ = l_Lake_CacheMap_insertCore(v_hash_10902_, v___x_10967_, v___x_10963_);
v___x_10969_ = lean_st_ref_set(v_val_10898_, v___x_10968_);
lean_dec(v_val_10898_);
v___y_10886_ = v_a_10883_;
goto v___jp_10885_;
}
}
}
}
else
{
lean_object* v_buildDir_10982_; lean_object* v_irDir_10983_; lean_object* v___x_10984_; lean_object* v___x_10985_; lean_object* v___x_10986_; lean_object* v___x_10987_; lean_object* v___x_10988_; lean_object* v___x_10989_; uint8_t v___x_10990_; 
lean_inc(v_bc_x3f_10910_);
lean_inc_ref(v_c_10909_);
lean_inc(v_ir_x3f_10908_);
lean_inc_ref(v_ilean_10907_);
lean_inc(v_oleanPrivate_x3f_10906_);
lean_inc(v_oleanServer_x3f_10905_);
lean_inc_ref(v_olean_10904_);
lean_dec(v_ltar_x3f_10911_);
v_buildDir_10982_ = lean_ctor_get(v_config_10893_, 6);
v_irDir_10983_ = lean_ctor_get(v_config_10893_, 10);
v___x_10984_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__1));
lean_inc_ref(v_buildDir_10982_);
v___x_10985_ = l_System_FilePath_normalize(v_buildDir_10982_);
lean_inc_ref(v_dir_10892_);
v___x_10986_ = l_Lake_joinRelative(v_dir_10892_, v___x_10985_);
lean_inc_ref(v_irDir_10983_);
v___x_10987_ = l_System_FilePath_normalize(v_irDir_10983_);
v___x_10988_ = l_Lake_joinRelative(v___x_10986_, v___x_10987_);
lean_inc(v_name_10890_);
v___x_10989_ = l_Lean_modToFilePath(v___x_10988_, v_name_10890_, v___x_10984_);
lean_dec_ref(v___x_10988_);
v___x_10990_ = l_System_FilePath_pathExists(v___x_10989_);
if (v___x_10990_ == 0)
{
lean_object* v___x_10991_; 
lean_dec_ref(v___x_10989_);
v___x_10991_ = l___private_Lake_Build_Module_0__Lake_Module_packLtar(v_mod_10876_, v_arts_10877_, v_a_10878_, v_a_10879_, v_a_10880_, v_a_10881_, v_a_10882_, v_a_10883_);
v___y_10931_ = v___x_10991_;
goto v___jp_10930_;
}
else
{
uint8_t v___x_10992_; lean_object* v___x_10993_; 
lean_dec_ref(v_arts_10877_);
lean_dec_ref(v_mod_10876_);
v___x_10992_ = 0;
v___x_10993_ = l_Lake_computeArtifact___redArg(v___x_10989_, v___x_10984_, v___x_10992_, v_a_10882_, v_a_10883_);
lean_dec_ref(v_a_10882_);
v___y_10931_ = v___x_10993_;
goto v___jp_10930_;
}
}
v___jp_10912_:
{
lean_object* v___x_10921_; lean_object* v___x_10922_; lean_object* v___x_10923_; lean_object* v___x_10924_; lean_object* v___x_10926_; 
v___x_10921_ = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(v___x_10921_, 0, v___y_10920_);
v___x_10922_ = l_Lake_CacheMap_insertCore(v_hash_10902_, v___x_10921_, v___y_10915_);
v___x_10923_ = lean_st_ref_set(v_val_10898_, v___x_10922_);
lean_dec(v_val_10898_);
v___x_10924_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v___x_10924_, 0, v___y_10913_);
lean_ctor_set(v___x_10924_, 1, v___y_10917_);
lean_ctor_set(v___x_10924_, 2, v___y_10918_);
lean_ctor_set_uint8(v___x_10924_, sizeof(void*)*3, v___y_10919_);
lean_ctor_set_uint8(v___x_10924_, sizeof(void*)*3 + 1, v___y_10914_);
if (v_isShared_10901_ == 0)
{
lean_ctor_set(v___x_10900_, 0, v___y_10916_);
v___x_10926_ = v___x_10900_;
goto v_reusejp_10925_;
}
else
{
lean_object* v_reuseFailAlloc_10929_; 
v_reuseFailAlloc_10929_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v_reuseFailAlloc_10929_, 0, v___y_10916_);
v___x_10926_ = v_reuseFailAlloc_10929_;
goto v_reusejp_10925_;
}
v_reusejp_10925_:
{
lean_object* v___x_10927_; lean_object* v___x_10928_; 
v___x_10927_ = lean_alloc_ctor(0, 8, 1);
lean_ctor_set(v___x_10927_, 0, v_olean_10904_);
lean_ctor_set(v___x_10927_, 1, v_oleanServer_x3f_10905_);
lean_ctor_set(v___x_10927_, 2, v_oleanPrivate_x3f_10906_);
lean_ctor_set(v___x_10927_, 3, v_ilean_10907_);
lean_ctor_set(v___x_10927_, 4, v_ir_x3f_10908_);
lean_ctor_set(v___x_10927_, 5, v_c_10909_);
lean_ctor_set(v___x_10927_, 6, v_bc_x3f_10910_);
lean_ctor_set(v___x_10927_, 7, v___x_10926_);
lean_ctor_set_uint8(v___x_10927_, sizeof(void*)*8, v_isModule_10903_);
v___x_10928_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_10928_, 0, v___x_10927_);
lean_ctor_set(v___x_10928_, 1, v___x_10924_);
return v___x_10928_;
}
}
v___jp_10930_:
{
if (lean_obj_tag(v___y_10931_) == 0)
{
lean_object* v_a_10932_; lean_object* v_a_10933_; lean_object* v___x_10934_; lean_object* v_descr_10935_; lean_object* v_log_10936_; uint8_t v_action_10937_; uint8_t v_wantsRebuild_10938_; lean_object* v_trace_10939_; lean_object* v_buildTime_10940_; uint64_t v_hash_10941_; lean_object* v_ext_10942_; lean_object* v___x_10943_; uint8_t v___x_10944_; 
v_a_10932_ = lean_ctor_get(v___y_10931_, 0);
lean_inc(v_a_10932_);
v_a_10933_ = lean_ctor_get(v___y_10931_, 1);
lean_inc(v_a_10933_);
lean_dec_ref(v___y_10931_);
v___x_10934_ = lean_st_ref_take(v_val_10898_);
v_descr_10935_ = lean_ctor_get(v_a_10932_, 0);
v_log_10936_ = lean_ctor_get(v_a_10933_, 0);
lean_inc_ref(v_log_10936_);
v_action_10937_ = lean_ctor_get_uint8(v_a_10933_, sizeof(void*)*3);
v_wantsRebuild_10938_ = lean_ctor_get_uint8(v_a_10933_, sizeof(void*)*3 + 1);
v_trace_10939_ = lean_ctor_get(v_a_10933_, 1);
lean_inc_ref(v_trace_10939_);
v_buildTime_10940_ = lean_ctor_get(v_a_10933_, 2);
lean_inc(v_buildTime_10940_);
lean_dec(v_a_10933_);
v_hash_10941_ = lean_ctor_get_uint64(v_descr_10935_, sizeof(void*)*1);
v_ext_10942_ = lean_ctor_get(v_descr_10935_, 0);
v___x_10943_ = lean_string_utf8_byte_size(v_ext_10942_);
v___x_10944_ = lean_nat_dec_eq(v___x_10943_, v___x_10894_);
if (v___x_10944_ == 0)
{
lean_object* v___x_10945_; lean_object* v___x_10946_; lean_object* v___x_10947_; lean_object* v___x_10948_; 
v___x_10945_ = l_Lake_Hash_hex(v_hash_10941_);
v___x_10946_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_trackOutputsIfEnabled___closed__0));
v___x_10947_ = lean_string_append(v___x_10945_, v___x_10946_);
v___x_10948_ = lean_string_append(v___x_10947_, v_ext_10942_);
v___y_10913_ = v_log_10936_;
v___y_10914_ = v_wantsRebuild_10938_;
v___y_10915_ = v___x_10934_;
v___y_10916_ = v_a_10932_;
v___y_10917_ = v_trace_10939_;
v___y_10918_ = v_buildTime_10940_;
v___y_10919_ = v_action_10937_;
v___y_10920_ = v___x_10948_;
goto v___jp_10912_;
}
else
{
lean_object* v___x_10949_; 
v___x_10949_ = l_Lake_Hash_hex(v_hash_10941_);
v___y_10913_ = v_log_10936_;
v___y_10914_ = v_wantsRebuild_10938_;
v___y_10915_ = v___x_10934_;
v___y_10916_ = v_a_10932_;
v___y_10917_ = v_trace_10939_;
v___y_10918_ = v_buildTime_10940_;
v___y_10919_ = v_action_10937_;
v___y_10920_ = v___x_10949_;
goto v___jp_10912_;
}
}
else
{
lean_object* v_a_10950_; lean_object* v_a_10951_; lean_object* v___x_10953_; uint8_t v_isShared_10954_; uint8_t v_isSharedCheck_10958_; 
lean_dec(v_bc_x3f_10910_);
lean_dec_ref(v_c_10909_);
lean_dec(v_ir_x3f_10908_);
lean_dec_ref(v_ilean_10907_);
lean_dec(v_oleanPrivate_x3f_10906_);
lean_dec(v_oleanServer_x3f_10905_);
lean_dec_ref(v_olean_10904_);
lean_del_object(v___x_10900_);
lean_dec(v_val_10898_);
v_a_10950_ = lean_ctor_get(v___y_10931_, 0);
v_a_10951_ = lean_ctor_get(v___y_10931_, 1);
v_isSharedCheck_10958_ = !lean_is_exclusive(v___y_10931_);
if (v_isSharedCheck_10958_ == 0)
{
v___x_10953_ = v___y_10931_;
v_isShared_10954_ = v_isSharedCheck_10958_;
goto v_resetjp_10952_;
}
else
{
lean_inc(v_a_10951_);
lean_inc(v_a_10950_);
lean_dec(v___y_10931_);
v___x_10953_ = lean_box(0);
v_isShared_10954_ = v_isSharedCheck_10958_;
goto v_resetjp_10952_;
}
v_resetjp_10952_:
{
lean_object* v___x_10956_; 
if (v_isShared_10954_ == 0)
{
v___x_10956_ = v___x_10953_;
goto v_reusejp_10955_;
}
else
{
lean_object* v_reuseFailAlloc_10957_; 
v_reuseFailAlloc_10957_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_10957_, 0, v_a_10950_);
lean_ctor_set(v_reuseFailAlloc_10957_, 1, v_a_10951_);
v___x_10956_ = v_reuseFailAlloc_10957_;
goto v_reusejp_10955_;
}
v_reusejp_10955_:
{
return v___x_10956_;
}
}
}
}
}
}
else
{
lean_dec(v_outputsRef_x3f_10896_);
lean_dec_ref(v_a_10882_);
lean_dec_ref(v_mod_10876_);
v___y_10886_ = v_a_10883_;
goto v___jp_10885_;
}
}
v___jp_10885_:
{
lean_object* v___x_10887_; 
v___x_10887_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_10887_, 0, v_arts_10877_);
lean_ctor_set(v___x_10887_, 1, v___y_10886_);
return v___x_10887_;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_trackOutputsIfEnabled___boxed(lean_object* v_mod_10995_, lean_object* v_arts_10996_, lean_object* v_a_10997_, lean_object* v_a_10998_, lean_object* v_a_10999_, lean_object* v_a_11000_, lean_object* v_a_11001_, lean_object* v_a_11002_, lean_object* v_a_11003_){
_start:
{
lean_object* v_res_11004_; 
v_res_11004_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_trackOutputsIfEnabled(v_mod_10995_, v_arts_10996_, v_a_10997_, v_a_10998_, v_a_10999_, v_a_11000_, v_a_11001_, v_a_11002_);
lean_dec(v_a_11000_);
lean_dec(v_a_10999_);
lean_dec(v_a_10998_);
lean_dec_ref(v_a_10997_);
return v_res_11004_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_adjustMTime___redArg(lean_object* v_mod_11006_, lean_object* v_arts_11007_, lean_object* v_a_11008_){
_start:
{
lean_object* v_lib_11010_; lean_object* v_pkg_11011_; lean_object* v_config_11012_; lean_object* v_name_11013_; lean_object* v___x_11015_; uint8_t v_isShared_11016_; uint8_t v_isSharedCheck_11062_; 
v_lib_11010_ = lean_ctor_get(v_mod_11006_, 0);
v_pkg_11011_ = lean_ctor_get(v_lib_11010_, 0);
lean_inc_ref(v_pkg_11011_);
v_config_11012_ = lean_ctor_get(v_pkg_11011_, 6);
lean_inc_ref(v_config_11012_);
v_name_11013_ = lean_ctor_get(v_mod_11006_, 1);
v_isSharedCheck_11062_ = !lean_is_exclusive(v_mod_11006_);
if (v_isSharedCheck_11062_ == 0)
{
lean_object* v_unused_11063_; 
v_unused_11063_ = lean_ctor_get(v_mod_11006_, 0);
lean_dec(v_unused_11063_);
v___x_11015_ = v_mod_11006_;
v_isShared_11016_ = v_isSharedCheck_11062_;
goto v_resetjp_11014_;
}
else
{
lean_inc(v_name_11013_);
lean_dec(v_mod_11006_);
v___x_11015_ = lean_box(0);
v_isShared_11016_ = v_isSharedCheck_11062_;
goto v_resetjp_11014_;
}
v_resetjp_11014_:
{
lean_object* v_dir_11017_; lean_object* v_buildDir_11018_; lean_object* v_leanLibDir_11019_; lean_object* v_log_11020_; uint8_t v_action_11021_; uint8_t v_wantsRebuild_11022_; lean_object* v_trace_11023_; lean_object* v_buildTime_11024_; lean_object* v___x_11025_; lean_object* v___x_11026_; lean_object* v___x_11027_; lean_object* v___x_11028_; lean_object* v___x_11029_; lean_object* v___x_11030_; lean_object* v___x_11031_; 
v_dir_11017_ = lean_ctor_get(v_pkg_11011_, 4);
lean_inc_ref(v_dir_11017_);
lean_dec_ref(v_pkg_11011_);
v_buildDir_11018_ = lean_ctor_get(v_config_11012_, 6);
lean_inc_ref(v_buildDir_11018_);
v_leanLibDir_11019_ = lean_ctor_get(v_config_11012_, 7);
lean_inc_ref(v_leanLibDir_11019_);
lean_dec_ref(v_config_11012_);
v_log_11020_ = lean_ctor_get(v_a_11008_, 0);
v_action_11021_ = lean_ctor_get_uint8(v_a_11008_, sizeof(void*)*3);
v_wantsRebuild_11022_ = lean_ctor_get_uint8(v_a_11008_, sizeof(void*)*3 + 1);
v_trace_11023_ = lean_ctor_get(v_a_11008_, 1);
v_buildTime_11024_ = lean_ctor_get(v_a_11008_, 2);
v___x_11025_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__4));
v___x_11026_ = l_System_FilePath_normalize(v_buildDir_11018_);
v___x_11027_ = l_Lake_joinRelative(v_dir_11017_, v___x_11026_);
v___x_11028_ = l_System_FilePath_normalize(v_leanLibDir_11019_);
v___x_11029_ = l_Lake_joinRelative(v___x_11027_, v___x_11028_);
v___x_11030_ = l_Lean_modToFilePath(v___x_11029_, v_name_11013_, v___x_11025_);
lean_dec_ref(v___x_11029_);
v___x_11031_ = lean_io_metadata(v___x_11030_);
lean_dec_ref(v___x_11030_);
if (lean_obj_tag(v___x_11031_) == 0)
{
lean_object* v_a_11032_; lean_object* v_modified_11033_; lean_object* v___x_11034_; lean_object* v___x_11036_; 
v_a_11032_ = lean_ctor_get(v___x_11031_, 0);
lean_inc(v_a_11032_);
lean_dec_ref(v___x_11031_);
v_modified_11033_ = lean_ctor_get(v_a_11032_, 1);
lean_inc_ref(v_modified_11033_);
lean_dec(v_a_11032_);
v___x_11034_ = l___private_Lake_Build_Module_0__Lake_ModuleOutputArtifacts_setMTime(v_arts_11007_, v_modified_11033_);
if (v_isShared_11016_ == 0)
{
lean_ctor_set(v___x_11015_, 1, v_a_11008_);
lean_ctor_set(v___x_11015_, 0, v___x_11034_);
v___x_11036_ = v___x_11015_;
goto v_reusejp_11035_;
}
else
{
lean_object* v_reuseFailAlloc_11037_; 
v_reuseFailAlloc_11037_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_11037_, 0, v___x_11034_);
lean_ctor_set(v_reuseFailAlloc_11037_, 1, v_a_11008_);
v___x_11036_ = v_reuseFailAlloc_11037_;
goto v_reusejp_11035_;
}
v_reusejp_11035_:
{
return v___x_11036_;
}
}
else
{
lean_object* v_a_11038_; 
v_a_11038_ = lean_ctor_get(v___x_11031_, 0);
lean_inc(v_a_11038_);
lean_dec_ref(v___x_11031_);
if (lean_obj_tag(v_a_11038_) == 11)
{
lean_object* v___x_11040_; 
lean_dec_ref(v_a_11038_);
if (v_isShared_11016_ == 0)
{
lean_ctor_set(v___x_11015_, 1, v_a_11008_);
lean_ctor_set(v___x_11015_, 0, v_arts_11007_);
v___x_11040_ = v___x_11015_;
goto v_reusejp_11039_;
}
else
{
lean_object* v_reuseFailAlloc_11041_; 
v_reuseFailAlloc_11041_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_11041_, 0, v_arts_11007_);
lean_ctor_set(v_reuseFailAlloc_11041_, 1, v_a_11008_);
v___x_11040_ = v_reuseFailAlloc_11041_;
goto v_reusejp_11039_;
}
v_reusejp_11039_:
{
return v___x_11040_;
}
}
else
{
lean_object* v___x_11043_; uint8_t v_isShared_11044_; uint8_t v_isSharedCheck_11058_; 
lean_inc(v_buildTime_11024_);
lean_inc_ref(v_trace_11023_);
lean_inc_ref(v_log_11020_);
lean_dec_ref(v_arts_11007_);
v_isSharedCheck_11058_ = !lean_is_exclusive(v_a_11008_);
if (v_isSharedCheck_11058_ == 0)
{
lean_object* v_unused_11059_; lean_object* v_unused_11060_; lean_object* v_unused_11061_; 
v_unused_11059_ = lean_ctor_get(v_a_11008_, 2);
lean_dec(v_unused_11059_);
v_unused_11060_ = lean_ctor_get(v_a_11008_, 1);
lean_dec(v_unused_11060_);
v_unused_11061_ = lean_ctor_get(v_a_11008_, 0);
lean_dec(v_unused_11061_);
v___x_11043_ = v_a_11008_;
v_isShared_11044_ = v_isSharedCheck_11058_;
goto v_resetjp_11042_;
}
else
{
lean_dec(v_a_11008_);
v___x_11043_ = lean_box(0);
v_isShared_11044_ = v_isSharedCheck_11058_;
goto v_resetjp_11042_;
}
v_resetjp_11042_:
{
lean_object* v___x_11045_; lean_object* v___x_11046_; lean_object* v___x_11047_; uint8_t v___x_11048_; lean_object* v___x_11049_; lean_object* v___x_11050_; lean_object* v___x_11051_; lean_object* v___x_11053_; 
v___x_11045_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_adjustMTime___redArg___closed__0));
v___x_11046_ = lean_io_error_to_string(v_a_11038_);
v___x_11047_ = lean_string_append(v___x_11045_, v___x_11046_);
lean_dec_ref(v___x_11046_);
v___x_11048_ = 3;
v___x_11049_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_11049_, 0, v___x_11047_);
lean_ctor_set_uint8(v___x_11049_, sizeof(void*)*1, v___x_11048_);
v___x_11050_ = lean_array_get_size(v_log_11020_);
v___x_11051_ = lean_array_push(v_log_11020_, v___x_11049_);
if (v_isShared_11044_ == 0)
{
lean_ctor_set(v___x_11043_, 0, v___x_11051_);
v___x_11053_ = v___x_11043_;
goto v_reusejp_11052_;
}
else
{
lean_object* v_reuseFailAlloc_11057_; 
v_reuseFailAlloc_11057_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_11057_, 0, v___x_11051_);
lean_ctor_set(v_reuseFailAlloc_11057_, 1, v_trace_11023_);
lean_ctor_set(v_reuseFailAlloc_11057_, 2, v_buildTime_11024_);
lean_ctor_set_uint8(v_reuseFailAlloc_11057_, sizeof(void*)*3, v_action_11021_);
lean_ctor_set_uint8(v_reuseFailAlloc_11057_, sizeof(void*)*3 + 1, v_wantsRebuild_11022_);
v___x_11053_ = v_reuseFailAlloc_11057_;
goto v_reusejp_11052_;
}
v_reusejp_11052_:
{
lean_object* v___x_11055_; 
if (v_isShared_11016_ == 0)
{
lean_ctor_set_tag(v___x_11015_, 1);
lean_ctor_set(v___x_11015_, 1, v___x_11053_);
lean_ctor_set(v___x_11015_, 0, v___x_11050_);
v___x_11055_ = v___x_11015_;
goto v_reusejp_11054_;
}
else
{
lean_object* v_reuseFailAlloc_11056_; 
v_reuseFailAlloc_11056_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_11056_, 0, v___x_11050_);
lean_ctor_set(v_reuseFailAlloc_11056_, 1, v___x_11053_);
v___x_11055_ = v_reuseFailAlloc_11056_;
goto v_reusejp_11054_;
}
v_reusejp_11054_:
{
return v___x_11055_;
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_adjustMTime___redArg___boxed(lean_object* v_mod_11064_, lean_object* v_arts_11065_, lean_object* v_a_11066_, lean_object* v_a_11067_){
_start:
{
lean_object* v_res_11068_; 
v_res_11068_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_adjustMTime___redArg(v_mod_11064_, v_arts_11065_, v_a_11066_);
return v_res_11068_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_adjustMTime(lean_object* v_mod_11069_, lean_object* v_arts_11070_, lean_object* v_a_11071_, lean_object* v_a_11072_, lean_object* v_a_11073_, lean_object* v_a_11074_, lean_object* v_a_11075_, lean_object* v_a_11076_){
_start:
{
lean_object* v___x_11078_; 
v___x_11078_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_adjustMTime___redArg(v_mod_11069_, v_arts_11070_, v_a_11076_);
return v___x_11078_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_adjustMTime___boxed(lean_object* v_mod_11079_, lean_object* v_arts_11080_, lean_object* v_a_11081_, lean_object* v_a_11082_, lean_object* v_a_11083_, lean_object* v_a_11084_, lean_object* v_a_11085_, lean_object* v_a_11086_, lean_object* v_a_11087_){
_start:
{
lean_object* v_res_11088_; 
v_res_11088_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_adjustMTime(v_mod_11079_, v_arts_11080_, v_a_11081_, v_a_11082_, v_a_11083_, v_a_11084_, v_a_11085_, v_a_11086_);
lean_dec_ref(v_a_11085_);
lean_dec(v_a_11084_);
lean_dec(v_a_11083_);
lean_dec(v_a_11082_);
lean_dec_ref(v_a_11081_);
return v_res_11088_;
}
}
LEAN_EXPORT lean_object* l_List_foldl___at___00List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0_spec__0(lean_object* v_x_11090_, lean_object* v_x_11091_){
_start:
{
if (lean_obj_tag(v_x_11091_) == 0)
{
return v_x_11090_;
}
else
{
lean_object* v_head_11092_; lean_object* v_tail_11093_; lean_object* v___x_11094_; lean_object* v___x_11095_; lean_object* v___x_11096_; 
v_head_11092_ = lean_ctor_get(v_x_11091_, 0);
v_tail_11093_ = lean_ctor_get(v_x_11091_, 1);
v___x_11094_ = ((lean_object*)(l_List_foldl___at___00List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0_spec__0___closed__0));
v___x_11095_ = lean_string_append(v_x_11090_, v___x_11094_);
v___x_11096_ = lean_string_append(v___x_11095_, v_head_11092_);
v_x_11090_ = v___x_11096_;
v_x_11091_ = v_tail_11093_;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_List_foldl___at___00List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0_spec__0___boxed(lean_object* v_x_11098_, lean_object* v_x_11099_){
_start:
{
lean_object* v_res_11100_; 
v_res_11100_ = l_List_foldl___at___00List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0_spec__0(v_x_11098_, v_x_11099_);
lean_dec(v_x_11099_);
return v_res_11100_;
}
}
LEAN_EXPORT lean_object* l_List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0(lean_object* v_x_11103_){
_start:
{
if (lean_obj_tag(v_x_11103_) == 0)
{
lean_object* v___x_11104_; 
v___x_11104_ = ((lean_object*)(l_List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0___closed__0));
return v___x_11104_;
}
else
{
lean_object* v_tail_11105_; 
v_tail_11105_ = lean_ctor_get(v_x_11103_, 1);
if (lean_obj_tag(v_tail_11105_) == 0)
{
lean_object* v_head_11106_; lean_object* v___x_11107_; lean_object* v___x_11108_; lean_object* v___x_11109_; lean_object* v___x_11110_; 
v_head_11106_ = lean_ctor_get(v_x_11103_, 0);
v___x_11107_ = ((lean_object*)(l_List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0___closed__1));
v___x_11108_ = lean_string_append(v___x_11107_, v_head_11106_);
v___x_11109_ = ((lean_object*)(l_Array_repr___at___00__private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__4));
v___x_11110_ = lean_string_append(v___x_11108_, v___x_11109_);
return v___x_11110_;
}
else
{
lean_object* v_head_11111_; lean_object* v___x_11112_; lean_object* v___x_11113_; lean_object* v___x_11114_; uint32_t v___x_11115_; lean_object* v___x_11116_; 
v_head_11111_ = lean_ctor_get(v_x_11103_, 0);
v___x_11112_ = ((lean_object*)(l_List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0___closed__1));
v___x_11113_ = lean_string_append(v___x_11112_, v_head_11111_);
v___x_11114_ = l_List_foldl___at___00List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0_spec__0(v___x_11113_, v_tail_11105_);
v___x_11115_ = 93;
v___x_11116_ = lean_string_push(v___x_11114_, v___x_11115_);
return v___x_11116_;
}
}
}
}
LEAN_EXPORT lean_object* l_List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0___boxed(lean_object* v_x_11117_){
_start:
{
lean_object* v_res_11118_; 
v_res_11118_ = l_List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0(v_x_11117_);
lean_dec(v_x_11117_);
return v_res_11118_;
}
}
LEAN_EXPORT uint64_t l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__1(lean_object* v_as_11119_, size_t v_i_11120_, size_t v_stop_11121_, uint64_t v_b_11122_){
_start:
{
uint8_t v___x_11123_; 
v___x_11123_ = lean_usize_dec_eq(v_i_11120_, v_stop_11121_);
if (v___x_11123_ == 0)
{
lean_object* v___x_11124_; uint64_t v___x_11125_; uint64_t v___x_11126_; uint64_t v___x_11127_; uint64_t v___x_11128_; size_t v___x_11129_; size_t v___x_11130_; 
v___x_11124_ = lean_array_uget_borrowed(v_as_11119_, v_i_11120_);
v___x_11125_ = l_Lake_Hash_nil;
v___x_11126_ = lean_string_hash(v___x_11124_);
v___x_11127_ = lean_uint64_mix_hash(v___x_11125_, v___x_11126_);
v___x_11128_ = lean_uint64_mix_hash(v_b_11122_, v___x_11127_);
v___x_11129_ = ((size_t)1ULL);
v___x_11130_ = lean_usize_add(v_i_11120_, v___x_11129_);
v_i_11120_ = v___x_11130_;
v_b_11122_ = v___x_11128_;
goto _start;
}
else
{
return v_b_11122_;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__1___boxed(lean_object* v_as_11132_, lean_object* v_i_11133_, lean_object* v_stop_11134_, lean_object* v_b_11135_){
_start:
{
size_t v_i_boxed_11136_; size_t v_stop_boxed_11137_; uint64_t v_b_boxed_11138_; uint64_t v_res_11139_; lean_object* v_r_11140_; 
v_i_boxed_11136_ = lean_unbox_usize(v_i_11133_);
lean_dec(v_i_11133_);
v_stop_boxed_11137_ = lean_unbox_usize(v_stop_11134_);
lean_dec(v_stop_11134_);
v_b_boxed_11138_ = lean_unbox_uint64(v_b_11135_);
lean_dec_ref(v_b_11135_);
v_res_11139_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__1(v_as_11132_, v_i_boxed_11136_, v_stop_boxed_11137_, v_b_boxed_11138_);
lean_dec_ref(v_as_11132_);
v_r_11140_ = lean_box_uint64(v_res_11139_);
return v_r_11140_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0(lean_object* v_a_11152_, lean_object* v___x_11153_, lean_object* v_mod_11154_, lean_object* v_config_11155_, lean_object* v_config_11156_, lean_object* v_name_11157_, uint8_t v___x_11158_, lean_object* v_pkg_11159_, lean_object* v_setup_11160_, lean_object* v___y_11161_, lean_object* v___y_11162_, lean_object* v___y_11163_, lean_object* v___y_11164_, lean_object* v___y_11165_, lean_object* v___y_11166_){
_start:
{
lean_object* v_log_11168_; uint8_t v_action_11169_; uint8_t v_wantsRebuild_11170_; lean_object* v_trace_11171_; lean_object* v_buildTime_11172_; lean_object* v___x_11174_; uint8_t v_isShared_11175_; uint8_t v_isSharedCheck_11351_; 
v_log_11168_ = lean_ctor_get(v___y_11166_, 0);
v_action_11169_ = lean_ctor_get_uint8(v___y_11166_, sizeof(void*)*3);
v_wantsRebuild_11170_ = lean_ctor_get_uint8(v___y_11166_, sizeof(void*)*3 + 1);
v_trace_11171_ = lean_ctor_get(v___y_11166_, 1);
v_buildTime_11172_ = lean_ctor_get(v___y_11166_, 2);
v_isSharedCheck_11351_ = !lean_is_exclusive(v___y_11166_);
if (v_isSharedCheck_11351_ == 0)
{
v___x_11174_ = v___y_11166_;
v_isShared_11175_ = v_isSharedCheck_11351_;
goto v_resetjp_11173_;
}
else
{
lean_inc(v_buildTime_11172_);
lean_inc(v_trace_11171_);
lean_inc(v_log_11168_);
lean_dec(v___y_11166_);
v___x_11174_ = lean_box(0);
v_isShared_11175_ = v_isSharedCheck_11351_;
goto v_resetjp_11173_;
}
v_resetjp_11173_:
{
lean_object* v___x_11176_; lean_object* v_leanTrace_11177_; lean_object* v___x_11178_; 
lean_inc_ref(v_a_11152_);
v___x_11176_ = l_Lake_Job_await___redArg(v_a_11152_, v_log_11168_);
v_leanTrace_11177_ = lean_ctor_get(v___y_11165_, 2);
lean_inc_ref(v_leanTrace_11177_);
v___x_11178_ = l_Lake_BuildTrace_mix(v_trace_11171_, v_leanTrace_11177_);
if (lean_obj_tag(v___x_11176_) == 0)
{
lean_object* v_a_11179_; lean_object* v_a_11180_; lean_object* v___y_11182_; lean_object* v___y_11183_; lean_object* v___y_11184_; lean_object* v___y_11185_; lean_object* v___y_11186_; uint64_t v___y_11187_; lean_object* v___y_11220_; lean_object* v___y_11221_; lean_object* v___y_11222_; lean_object* v___y_11223_; lean_object* v___y_11224_; uint64_t v___y_11225_; uint8_t v___y_11226_; lean_object* v___y_11244_; uint64_t v___y_11245_; lean_object* v___y_11246_; lean_object* v___y_11247_; lean_object* v___y_11248_; lean_object* v___y_11249_; lean_object* v___y_11250_; uint64_t v___y_11251_; lean_object* v___y_11252_; lean_object* v___y_11262_; lean_object* v___y_11263_; lean_object* v___y_11264_; lean_object* v___y_11265_; lean_object* v___y_11266_; lean_object* v___y_11267_; uint64_t v___y_11268_; uint64_t v___y_11269_; lean_object* v___y_11280_; lean_object* v___y_11281_; lean_object* v___y_11282_; lean_object* v___y_11283_; lean_object* v___y_11284_; uint64_t v___y_11285_; uint64_t v___y_11286_; lean_object* v___y_11300_; lean_object* v___y_11301_; lean_object* v___y_11302_; uint64_t v___y_11303_; uint64_t v___y_11304_; lean_object* v___y_11305_; lean_object* v___y_11315_; lean_object* v___y_11316_; uint8_t v___y_11317_; uint64_t v___y_11318_; uint64_t v___y_11319_; lean_object* v___y_11325_; lean_object* v_task_11335_; lean_object* v___x_11336_; lean_object* v_a_11337_; lean_object* v_trace_11338_; 
v_a_11179_ = lean_ctor_get(v___x_11176_, 0);
lean_inc(v_a_11179_);
v_a_11180_ = lean_ctor_get(v___x_11176_, 1);
lean_inc(v_a_11180_);
lean_dec_ref(v___x_11176_);
v_task_11335_ = lean_ctor_get(v_a_11152_, 0);
lean_inc_ref(v_task_11335_);
lean_dec_ref(v_a_11152_);
v___x_11336_ = lean_task_get_own(v_task_11335_);
v_a_11337_ = lean_ctor_get(v___x_11336_, 1);
lean_inc(v_a_11337_);
lean_dec(v___x_11336_);
v_trace_11338_ = lean_ctor_get(v_a_11337_, 1);
lean_inc_ref(v_trace_11338_);
lean_dec(v_a_11337_);
v___y_11325_ = v_trace_11338_;
goto v___jp_11324_;
v___jp_11181_:
{
lean_object* v___x_11188_; lean_object* v___x_11189_; lean_object* v___x_11190_; lean_object* v___x_11191_; lean_object* v___x_11192_; lean_object* v___x_11193_; lean_object* v___x_11194_; lean_object* v___x_11195_; lean_object* v_inputs_11196_; uint64_t v_hash_11197_; lean_object* v_mtime_11198_; lean_object* v___x_11200_; uint8_t v_isShared_11201_; uint8_t v_isSharedCheck_11217_; 
v___x_11188_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__0));
v___x_11189_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__1));
v___x_11190_ = lean_array_to_list(v___y_11186_);
v___x_11191_ = l_List_toString___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0(v___x_11190_);
lean_dec(v___x_11190_);
v___x_11192_ = lean_string_append(v___x_11189_, v___x_11191_);
lean_dec_ref(v___x_11191_);
v___x_11193_ = lean_string_append(v___x_11188_, v___x_11192_);
lean_dec_ref(v___x_11192_);
v___x_11194_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v___x_11194_, 0, v___x_11193_);
lean_ctor_set(v___x_11194_, 1, v___y_11185_);
lean_ctor_set(v___x_11194_, 2, v___y_11184_);
lean_ctor_set_uint64(v___x_11194_, sizeof(void*)*3, v___y_11187_);
v___x_11195_ = l_Lake_BuildTrace_mix(v___y_11183_, v___x_11194_);
v_inputs_11196_ = lean_ctor_get(v___x_11195_, 1);
v_hash_11197_ = lean_ctor_get_uint64(v___x_11195_, sizeof(void*)*3);
v_mtime_11198_ = lean_ctor_get(v___x_11195_, 2);
v_isSharedCheck_11217_ = !lean_is_exclusive(v___x_11195_);
if (v_isSharedCheck_11217_ == 0)
{
lean_object* v_unused_11218_; 
v_unused_11218_ = lean_ctor_get(v___x_11195_, 0);
lean_dec(v_unused_11218_);
v___x_11200_ = v___x_11195_;
v_isShared_11201_ = v_isSharedCheck_11217_;
goto v_resetjp_11199_;
}
else
{
lean_inc(v_mtime_11198_);
lean_inc(v_inputs_11196_);
lean_dec(v___x_11195_);
v___x_11200_ = lean_box(0);
v_isShared_11201_ = v_isSharedCheck_11217_;
goto v_resetjp_11199_;
}
v_resetjp_11199_:
{
lean_object* v___x_11202_; lean_object* v___x_11203_; lean_object* v___x_11205_; 
v___x_11202_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__2));
v___x_11203_ = lean_string_append(v___x_11153_, v___x_11202_);
if (v_isShared_11201_ == 0)
{
lean_ctor_set(v___x_11200_, 0, v___x_11203_);
v___x_11205_ = v___x_11200_;
goto v_reusejp_11204_;
}
else
{
lean_object* v_reuseFailAlloc_11216_; 
v_reuseFailAlloc_11216_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v_reuseFailAlloc_11216_, 0, v___x_11203_);
lean_ctor_set(v_reuseFailAlloc_11216_, 1, v_inputs_11196_);
lean_ctor_set(v_reuseFailAlloc_11216_, 2, v_mtime_11198_);
lean_ctor_set_uint64(v_reuseFailAlloc_11216_, sizeof(void*)*3, v_hash_11197_);
v___x_11205_ = v_reuseFailAlloc_11216_;
goto v_reusejp_11204_;
}
v_reusejp_11204_:
{
lean_object* v___x_11207_; 
if (v_isShared_11175_ == 0)
{
lean_ctor_set(v___x_11174_, 1, v___x_11205_);
lean_ctor_set(v___x_11174_, 0, v_a_11180_);
v___x_11207_ = v___x_11174_;
goto v_reusejp_11206_;
}
else
{
lean_object* v_reuseFailAlloc_11215_; 
v_reuseFailAlloc_11215_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_11215_, 0, v_a_11180_);
lean_ctor_set(v_reuseFailAlloc_11215_, 1, v___x_11205_);
lean_ctor_set(v_reuseFailAlloc_11215_, 2, v_buildTime_11172_);
lean_ctor_set_uint8(v_reuseFailAlloc_11215_, sizeof(void*)*3, v_action_11169_);
lean_ctor_set_uint8(v_reuseFailAlloc_11215_, sizeof(void*)*3 + 1, v_wantsRebuild_11170_);
v___x_11207_ = v_reuseFailAlloc_11215_;
goto v_reusejp_11206_;
}
v_reusejp_11206_:
{
lean_object* v___x_11208_; 
lean_inc_ref(v___y_11165_);
lean_inc(v___y_11164_);
lean_inc(v___y_11163_);
lean_inc(v___y_11162_);
lean_inc_ref(v___y_11161_);
lean_inc_ref(v_mod_11154_);
v___x_11208_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_fetchCore(v_mod_11154_, v_setup_11160_, v_a_11179_, v___y_11182_, v___y_11161_, v___y_11162_, v___y_11163_, v___y_11164_, v___y_11165_, v___x_11207_);
lean_dec_ref(v___y_11182_);
if (lean_obj_tag(v___x_11208_) == 0)
{
lean_object* v_a_11209_; lean_object* v_a_11210_; lean_object* v___x_11211_; 
v_a_11209_ = lean_ctor_get(v___x_11208_, 0);
lean_inc(v_a_11209_);
v_a_11210_ = lean_ctor_get(v___x_11208_, 1);
lean_inc(v_a_11210_);
lean_dec_ref(v___x_11208_);
lean_inc_ref(v_mod_11154_);
v___x_11211_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_trackOutputsIfEnabled(v_mod_11154_, v_a_11209_, v___y_11161_, v___y_11162_, v___y_11163_, v___y_11164_, v___y_11165_, v_a_11210_);
lean_dec(v___y_11164_);
lean_dec(v___y_11163_);
lean_dec(v___y_11162_);
lean_dec_ref(v___y_11161_);
if (lean_obj_tag(v___x_11211_) == 0)
{
lean_object* v_a_11212_; lean_object* v_a_11213_; lean_object* v___x_11214_; 
v_a_11212_ = lean_ctor_get(v___x_11211_, 0);
lean_inc(v_a_11212_);
v_a_11213_ = lean_ctor_get(v___x_11211_, 1);
lean_inc(v_a_11213_);
lean_dec_ref(v___x_11211_);
v___x_11214_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_adjustMTime___redArg(v_mod_11154_, v_a_11212_, v_a_11213_);
return v___x_11214_;
}
else
{
lean_dec_ref(v_mod_11154_);
return v___x_11211_;
}
}
else
{
lean_dec_ref(v___y_11165_);
lean_dec(v___y_11164_);
lean_dec(v___y_11163_);
lean_dec(v___y_11162_);
lean_dec_ref(v___y_11161_);
lean_dec_ref(v_mod_11154_);
return v___x_11208_;
}
}
}
}
}
v___jp_11219_:
{
lean_object* v_toLeanConfig_11227_; lean_object* v_toLeanConfig_11228_; lean_object* v_moreLeanArgs_11229_; lean_object* v_moreLeanArgs_11230_; lean_object* v___x_11231_; lean_object* v___x_11232_; lean_object* v___x_11233_; lean_object* v___x_11234_; uint8_t v___x_11235_; 
v_toLeanConfig_11227_ = lean_ctor_get(v_config_11155_, 1);
v_toLeanConfig_11228_ = lean_ctor_get(v_config_11156_, 0);
v_moreLeanArgs_11229_ = lean_ctor_get(v_toLeanConfig_11227_, 1);
v_moreLeanArgs_11230_ = lean_ctor_get(v_toLeanConfig_11228_, 1);
v___x_11231_ = l_Lake_BuildType_leanArgs(v___y_11226_);
v___x_11232_ = l_Array_append___redArg(v___x_11231_, v_moreLeanArgs_11229_);
v___x_11233_ = l_Array_append___redArg(v___x_11232_, v_moreLeanArgs_11230_);
v___x_11234_ = lean_array_get_size(v___x_11233_);
v___x_11235_ = lean_nat_dec_lt(v___y_11221_, v___x_11234_);
if (v___x_11235_ == 0)
{
v___y_11182_ = v___y_11220_;
v___y_11183_ = v___y_11222_;
v___y_11184_ = v___y_11223_;
v___y_11185_ = v___y_11224_;
v___y_11186_ = v___x_11233_;
v___y_11187_ = v___y_11225_;
goto v___jp_11181_;
}
else
{
uint8_t v___x_11236_; 
v___x_11236_ = lean_nat_dec_le(v___x_11234_, v___x_11234_);
if (v___x_11236_ == 0)
{
if (v___x_11235_ == 0)
{
v___y_11182_ = v___y_11220_;
v___y_11183_ = v___y_11222_;
v___y_11184_ = v___y_11223_;
v___y_11185_ = v___y_11224_;
v___y_11186_ = v___x_11233_;
v___y_11187_ = v___y_11225_;
goto v___jp_11181_;
}
else
{
size_t v___x_11237_; size_t v___x_11238_; uint64_t v___x_11239_; 
v___x_11237_ = ((size_t)0ULL);
v___x_11238_ = lean_usize_of_nat(v___x_11234_);
v___x_11239_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__1(v___x_11233_, v___x_11237_, v___x_11238_, v___y_11225_);
v___y_11182_ = v___y_11220_;
v___y_11183_ = v___y_11222_;
v___y_11184_ = v___y_11223_;
v___y_11185_ = v___y_11224_;
v___y_11186_ = v___x_11233_;
v___y_11187_ = v___x_11239_;
goto v___jp_11181_;
}
}
else
{
size_t v___x_11240_; size_t v___x_11241_; uint64_t v___x_11242_; 
v___x_11240_ = ((size_t)0ULL);
v___x_11241_ = lean_usize_of_nat(v___x_11234_);
v___x_11242_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__1(v___x_11233_, v___x_11240_, v___x_11241_, v___y_11225_);
v___y_11182_ = v___y_11220_;
v___y_11183_ = v___y_11222_;
v___y_11184_ = v___y_11223_;
v___y_11185_ = v___y_11224_;
v___y_11186_ = v___x_11233_;
v___y_11187_ = v___x_11242_;
goto v___jp_11181_;
}
}
}
v___jp_11243_:
{
lean_object* v_toLeanConfig_11253_; lean_object* v_toLeanConfig_11254_; uint8_t v_buildType_11255_; uint8_t v_buildType_11256_; lean_object* v___x_11257_; lean_object* v___x_11258_; lean_object* v___x_11259_; uint8_t v___x_11260_; 
v_toLeanConfig_11253_ = lean_ctor_get(v_config_11155_, 1);
v_toLeanConfig_11254_ = lean_ctor_get(v_config_11156_, 0);
v_buildType_11255_ = lean_ctor_get_uint8(v_toLeanConfig_11253_, sizeof(void*)*13);
v_buildType_11256_ = lean_ctor_get_uint8(v_toLeanConfig_11254_, sizeof(void*)*13);
v___x_11257_ = lean_string_append(v___y_11248_, v___y_11252_);
lean_dec_ref(v___y_11252_);
lean_inc_ref(v___y_11249_);
lean_inc_ref(v___y_11250_);
v___x_11258_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v___x_11258_, 0, v___x_11257_);
lean_ctor_set(v___x_11258_, 1, v___y_11250_);
lean_ctor_set(v___x_11258_, 2, v___y_11249_);
lean_ctor_set_uint64(v___x_11258_, sizeof(void*)*3, v___y_11245_);
v___x_11259_ = l_Lake_BuildTrace_mix(v___y_11247_, v___x_11258_);
v___x_11260_ = l_Lake_instOrdBuildType_ord(v_buildType_11255_, v_buildType_11256_);
if (v___x_11260_ == 2)
{
v___y_11220_ = v___y_11244_;
v___y_11221_ = v___y_11246_;
v___y_11222_ = v___x_11259_;
v___y_11223_ = v___y_11249_;
v___y_11224_ = v___y_11250_;
v___y_11225_ = v___y_11251_;
v___y_11226_ = v_buildType_11256_;
goto v___jp_11219_;
}
else
{
v___y_11220_ = v___y_11244_;
v___y_11221_ = v___y_11246_;
v___y_11222_ = v___x_11259_;
v___y_11223_ = v___y_11249_;
v___y_11224_ = v___y_11250_;
v___y_11225_ = v___y_11251_;
v___y_11226_ = v_buildType_11255_;
goto v___jp_11219_;
}
}
v___jp_11261_:
{
uint64_t v___x_11270_; lean_object* v___x_11271_; 
v___x_11270_ = lean_uint64_mix_hash(v___y_11268_, v___y_11269_);
v___x_11271_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__3));
if (lean_obj_tag(v___y_11265_) == 0)
{
lean_object* v___x_11272_; 
v___x_11272_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__4));
v___y_11244_ = v___y_11262_;
v___y_11245_ = v___x_11270_;
v___y_11246_ = v___y_11264_;
v___y_11247_ = v___y_11263_;
v___y_11248_ = v___x_11271_;
v___y_11249_ = v___y_11266_;
v___y_11250_ = v___y_11267_;
v___y_11251_ = v___y_11268_;
v___y_11252_ = v___x_11272_;
goto v___jp_11243_;
}
else
{
lean_object* v_val_11273_; lean_object* v___x_11274_; lean_object* v___x_11275_; lean_object* v___x_11276_; lean_object* v___x_11277_; lean_object* v___x_11278_; 
v_val_11273_ = lean_ctor_get(v___y_11265_, 0);
lean_inc(v_val_11273_);
lean_dec_ref(v___y_11265_);
v___x_11274_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__5));
v___x_11275_ = l_addParenHeuristic(v_val_11273_);
v___x_11276_ = lean_string_append(v___x_11274_, v___x_11275_);
lean_dec_ref(v___x_11275_);
v___x_11277_ = ((lean_object*)(l___private_Init_Data_Nat_Fold_0__Nat_foldTR_loop___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__2___redArg___closed__2));
v___x_11278_ = lean_string_append(v___x_11276_, v___x_11277_);
v___y_11244_ = v___y_11262_;
v___y_11245_ = v___x_11270_;
v___y_11246_ = v___y_11264_;
v___y_11247_ = v___y_11263_;
v___y_11248_ = v___x_11271_;
v___y_11249_ = v___y_11266_;
v___y_11250_ = v___y_11267_;
v___y_11251_ = v___y_11268_;
v___y_11252_ = v___x_11278_;
goto v___jp_11243_;
}
}
v___jp_11279_:
{
uint64_t v___x_11287_; lean_object* v___x_11288_; lean_object* v___x_11289_; lean_object* v___x_11290_; lean_object* v___x_11291_; lean_object* v___x_11292_; lean_object* v___x_11293_; 
v___x_11287_ = lean_uint64_mix_hash(v___y_11285_, v___y_11286_);
v___x_11288_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__6));
v___x_11289_ = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(v_name_11157_, v___x_11158_);
v___x_11290_ = lean_string_append(v___x_11288_, v___x_11289_);
lean_dec_ref(v___x_11289_);
lean_inc_ref(v___y_11282_);
lean_inc_ref(v___y_11283_);
v___x_11291_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v___x_11291_, 0, v___x_11290_);
lean_ctor_set(v___x_11291_, 1, v___y_11283_);
lean_ctor_set(v___x_11291_, 2, v___y_11282_);
lean_ctor_set_uint64(v___x_11291_, sizeof(void*)*3, v___x_11287_);
v___x_11292_ = l_Lake_BuildTrace_mix(v___y_11284_, v___x_11291_);
v___x_11293_ = l_Lake_Package_id_x3f(v_pkg_11159_);
if (lean_obj_tag(v___x_11293_) == 0)
{
uint64_t v___x_11294_; 
v___x_11294_ = 11ULL;
v___y_11262_ = v___y_11280_;
v___y_11263_ = v___x_11292_;
v___y_11264_ = v___y_11281_;
v___y_11265_ = v___x_11293_;
v___y_11266_ = v___y_11282_;
v___y_11267_ = v___y_11283_;
v___y_11268_ = v___y_11285_;
v___y_11269_ = v___x_11294_;
goto v___jp_11261_;
}
else
{
lean_object* v_val_11295_; uint64_t v___x_11296_; uint64_t v___x_11297_; uint64_t v___x_11298_; 
v_val_11295_ = lean_ctor_get(v___x_11293_, 0);
lean_inc(v_val_11295_);
v___x_11296_ = lean_string_hash(v_val_11295_);
lean_dec(v_val_11295_);
v___x_11297_ = 13ULL;
v___x_11298_ = lean_uint64_mix_hash(v___x_11296_, v___x_11297_);
v___y_11262_ = v___y_11280_;
v___y_11263_ = v___x_11292_;
v___y_11264_ = v___y_11281_;
v___y_11265_ = v___x_11293_;
v___y_11266_ = v___y_11282_;
v___y_11267_ = v___y_11283_;
v___y_11268_ = v___y_11285_;
v___y_11269_ = v___x_11298_;
goto v___jp_11261_;
}
}
v___jp_11299_:
{
lean_object* v___x_11306_; lean_object* v___x_11307_; lean_object* v___x_11308_; lean_object* v___x_11309_; lean_object* v___x_11310_; lean_object* v___x_11311_; 
v___x_11306_ = lean_string_append(v___y_11302_, v___y_11305_);
lean_dec_ref(v___y_11305_);
v___x_11307_ = lean_unsigned_to_nat(0u);
v___x_11308_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0___closed__0));
v___x_11309_ = lean_obj_once(&l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__3, &l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__3_once, _init_l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00__private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__3);
v___x_11310_ = lean_alloc_ctor(0, 3, 8);
lean_ctor_set(v___x_11310_, 0, v___x_11306_);
lean_ctor_set(v___x_11310_, 1, v___x_11308_);
lean_ctor_set(v___x_11310_, 2, v___x_11309_);
lean_ctor_set_uint64(v___x_11310_, sizeof(void*)*3, v___y_11303_);
v___x_11311_ = l_Lake_BuildTrace_mix(v___y_11301_, v___x_11310_);
if (lean_obj_tag(v_name_11157_) == 0)
{
uint64_t v___x_11312_; 
v___x_11312_ = lean_uint64_once(&l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___redArg___closed__0, &l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___redArg___closed__0_once, _init_l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___redArg___closed__0);
v___y_11280_ = v___y_11300_;
v___y_11281_ = v___x_11307_;
v___y_11282_ = v___x_11309_;
v___y_11283_ = v___x_11308_;
v___y_11284_ = v___x_11311_;
v___y_11285_ = v___y_11304_;
v___y_11286_ = v___x_11312_;
goto v___jp_11279_;
}
else
{
uint64_t v_hash_11313_; 
v_hash_11313_ = lean_ctor_get_uint64(v_name_11157_, sizeof(void*)*2);
v___y_11280_ = v___y_11300_;
v___y_11281_ = v___x_11307_;
v___y_11282_ = v___x_11309_;
v___y_11283_ = v___x_11308_;
v___y_11284_ = v___x_11311_;
v___y_11285_ = v___y_11304_;
v___y_11286_ = v_hash_11313_;
goto v___jp_11279_;
}
}
v___jp_11314_:
{
uint64_t v___x_11320_; lean_object* v___x_11321_; 
v___x_11320_ = lean_uint64_mix_hash(v___y_11318_, v___y_11319_);
v___x_11321_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__7));
if (v___y_11317_ == 0)
{
lean_object* v___x_11322_; 
v___x_11322_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__8));
v___y_11300_ = v___y_11315_;
v___y_11301_ = v___y_11316_;
v___y_11302_ = v___x_11321_;
v___y_11303_ = v___x_11320_;
v___y_11304_ = v___y_11318_;
v___y_11305_ = v___x_11322_;
goto v___jp_11299_;
}
else
{
lean_object* v___x_11323_; 
v___x_11323_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__9));
v___y_11300_ = v___y_11315_;
v___y_11301_ = v___y_11316_;
v___y_11302_ = v___x_11321_;
v___y_11303_ = v___x_11320_;
v___y_11304_ = v___y_11318_;
v___y_11305_ = v___x_11323_;
goto v___jp_11299_;
}
}
v___jp_11324_:
{
uint8_t v_isModule_11326_; lean_object* v_options_11327_; lean_object* v___x_11328_; lean_object* v___x_11329_; lean_object* v___x_11330_; lean_object* v___x_11331_; uint64_t v___x_11332_; 
v_isModule_11326_ = lean_ctor_get_uint8(v_setup_11160_, sizeof(void*)*7);
v_options_11327_ = lean_ctor_get(v_setup_11160_, 6);
lean_inc_ref(v___y_11325_);
v___x_11328_ = l_Lake_BuildTrace_mix(v___x_11178_, v___y_11325_);
v___x_11329_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___closed__10));
lean_inc(v_options_11327_);
v___x_11330_ = l___private_Lake_Build_Module_0__Lake_traceOptions(v_options_11327_, v___x_11329_);
v___x_11331_ = l_Lake_BuildTrace_mix(v___x_11328_, v___x_11330_);
v___x_11332_ = l_Lake_Hash_nil;
if (v_isModule_11326_ == 0)
{
uint64_t v___x_11333_; 
v___x_11333_ = 13ULL;
v___y_11315_ = v___y_11325_;
v___y_11316_ = v___x_11331_;
v___y_11317_ = v_isModule_11326_;
v___y_11318_ = v___x_11332_;
v___y_11319_ = v___x_11333_;
goto v___jp_11314_;
}
else
{
uint64_t v___x_11334_; 
v___x_11334_ = 11ULL;
v___y_11315_ = v___y_11325_;
v___y_11316_ = v___x_11331_;
v___y_11317_ = v_isModule_11326_;
v___y_11318_ = v___x_11332_;
v___y_11319_ = v___x_11334_;
goto v___jp_11314_;
}
}
}
else
{
lean_object* v_a_11339_; lean_object* v_a_11340_; lean_object* v___x_11342_; uint8_t v_isShared_11343_; uint8_t v_isSharedCheck_11350_; 
lean_dec_ref(v___y_11165_);
lean_dec(v___y_11164_);
lean_dec(v___y_11163_);
lean_dec(v___y_11162_);
lean_dec_ref(v___y_11161_);
lean_dec_ref(v_setup_11160_);
lean_dec_ref(v_pkg_11159_);
lean_dec(v_name_11157_);
lean_dec_ref(v_mod_11154_);
lean_dec_ref(v___x_11153_);
lean_dec_ref(v_a_11152_);
v_a_11339_ = lean_ctor_get(v___x_11176_, 0);
v_a_11340_ = lean_ctor_get(v___x_11176_, 1);
v_isSharedCheck_11350_ = !lean_is_exclusive(v___x_11176_);
if (v_isSharedCheck_11350_ == 0)
{
v___x_11342_ = v___x_11176_;
v_isShared_11343_ = v_isSharedCheck_11350_;
goto v_resetjp_11341_;
}
else
{
lean_inc(v_a_11340_);
lean_inc(v_a_11339_);
lean_dec(v___x_11176_);
v___x_11342_ = lean_box(0);
v_isShared_11343_ = v_isSharedCheck_11350_;
goto v_resetjp_11341_;
}
v_resetjp_11341_:
{
lean_object* v___x_11345_; 
if (v_isShared_11175_ == 0)
{
lean_ctor_set(v___x_11174_, 1, v___x_11178_);
lean_ctor_set(v___x_11174_, 0, v_a_11340_);
v___x_11345_ = v___x_11174_;
goto v_reusejp_11344_;
}
else
{
lean_object* v_reuseFailAlloc_11349_; 
v_reuseFailAlloc_11349_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_11349_, 0, v_a_11340_);
lean_ctor_set(v_reuseFailAlloc_11349_, 1, v___x_11178_);
lean_ctor_set(v_reuseFailAlloc_11349_, 2, v_buildTime_11172_);
lean_ctor_set_uint8(v_reuseFailAlloc_11349_, sizeof(void*)*3, v_action_11169_);
lean_ctor_set_uint8(v_reuseFailAlloc_11349_, sizeof(void*)*3 + 1, v_wantsRebuild_11170_);
v___x_11345_ = v_reuseFailAlloc_11349_;
goto v_reusejp_11344_;
}
v_reusejp_11344_:
{
lean_object* v___x_11347_; 
if (v_isShared_11343_ == 0)
{
lean_ctor_set(v___x_11342_, 1, v___x_11345_);
v___x_11347_ = v___x_11342_;
goto v_reusejp_11346_;
}
else
{
lean_object* v_reuseFailAlloc_11348_; 
v_reuseFailAlloc_11348_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_11348_, 0, v_a_11339_);
lean_ctor_set(v_reuseFailAlloc_11348_, 1, v___x_11345_);
v___x_11347_ = v_reuseFailAlloc_11348_;
goto v_reusejp_11346_;
}
v_reusejp_11346_:
{
return v___x_11347_;
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___boxed(lean_object* v_a_11352_, lean_object* v___x_11353_, lean_object* v_mod_11354_, lean_object* v_config_11355_, lean_object* v_config_11356_, lean_object* v_name_11357_, lean_object* v___x_11358_, lean_object* v_pkg_11359_, lean_object* v_setup_11360_, lean_object* v___y_11361_, lean_object* v___y_11362_, lean_object* v___y_11363_, lean_object* v___y_11364_, lean_object* v___y_11365_, lean_object* v___y_11366_, lean_object* v___y_11367_){
_start:
{
uint8_t v___x_47048__boxed_11368_; lean_object* v_res_11369_; 
v___x_47048__boxed_11368_ = lean_unbox(v___x_11358_);
v_res_11369_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0(v_a_11352_, v___x_11353_, v_mod_11354_, v_config_11355_, v_config_11356_, v_name_11357_, v___x_47048__boxed_11368_, v_pkg_11359_, v_setup_11360_, v___y_11361_, v___y_11362_, v___y_11363_, v___y_11364_, v___y_11365_, v___y_11366_);
lean_dec(v_config_11356_);
lean_dec_ref(v_config_11355_);
return v_res_11369_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1(lean_object* v___x_11370_, lean_object* v___x_11371_, lean_object* v___x_11372_, lean_object* v_mod_11373_, lean_object* v___x_11374_, lean_object* v_config_11375_, lean_object* v_config_11376_, lean_object* v_name_11377_, uint8_t v___x_11378_, lean_object* v_pkg_11379_, lean_object* v___x_11380_, lean_object* v___y_11381_, lean_object* v___y_11382_, lean_object* v___y_11383_, lean_object* v___y_11384_, lean_object* v___y_11385_, lean_object* v___y_11386_){
_start:
{
lean_object* v___x_11388_; 
lean_inc_ref(v___y_11381_);
lean_inc_ref(v___y_11385_);
lean_inc(v___y_11384_);
lean_inc(v___y_11383_);
lean_inc(v___y_11382_);
v___x_11388_ = lean_apply_7(v___y_11381_, v___x_11370_, v___y_11382_, v___y_11383_, v___y_11384_, v___y_11385_, v___y_11386_, lean_box(0));
if (lean_obj_tag(v___x_11388_) == 0)
{
lean_object* v_a_11389_; lean_object* v_a_11390_; lean_object* v___x_11391_; lean_object* v___x_11392_; lean_object* v___x_11393_; 
v_a_11389_ = lean_ctor_get(v___x_11388_, 0);
lean_inc(v_a_11389_);
v_a_11390_ = lean_ctor_get(v___x_11388_, 1);
lean_inc(v_a_11390_);
lean_dec_ref(v___x_11388_);
v___x_11391_ = l_Lake_Module_leanFacet;
lean_inc_ref(v_mod_11373_);
v___x_11392_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_11392_, 0, v___x_11371_);
lean_ctor_set(v___x_11392_, 1, v___x_11372_);
lean_ctor_set(v___x_11392_, 2, v_mod_11373_);
lean_ctor_set(v___x_11392_, 3, v___x_11391_);
lean_inc_ref(v___y_11381_);
lean_inc_ref(v___y_11385_);
lean_inc(v___y_11384_);
lean_inc(v___y_11383_);
lean_inc(v___y_11382_);
v___x_11393_ = lean_apply_7(v___y_11381_, v___x_11392_, v___y_11382_, v___y_11383_, v___y_11384_, v___y_11385_, v_a_11390_, lean_box(0));
if (lean_obj_tag(v___x_11393_) == 0)
{
lean_object* v_a_11394_; lean_object* v_a_11395_; lean_object* v___x_11397_; uint8_t v_isShared_11398_; uint8_t v_isSharedCheck_11408_; 
v_a_11394_ = lean_ctor_get(v___x_11393_, 0);
v_a_11395_ = lean_ctor_get(v___x_11393_, 1);
v_isSharedCheck_11408_ = !lean_is_exclusive(v___x_11393_);
if (v_isSharedCheck_11408_ == 0)
{
v___x_11397_ = v___x_11393_;
v_isShared_11398_ = v_isSharedCheck_11408_;
goto v_resetjp_11396_;
}
else
{
lean_inc(v_a_11395_);
lean_inc(v_a_11394_);
lean_dec(v___x_11393_);
v___x_11397_ = lean_box(0);
v_isShared_11398_ = v_isSharedCheck_11408_;
goto v_resetjp_11396_;
}
v_resetjp_11396_:
{
lean_object* v___x_11399_; lean_object* v___f_11400_; lean_object* v___x_11401_; uint8_t v___x_11402_; lean_object* v___x_11403_; lean_object* v___x_11404_; lean_object* v___x_11406_; 
v___x_11399_ = lean_box(v___x_11378_);
v___f_11400_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0___boxed), 16, 8);
lean_closure_set(v___f_11400_, 0, v_a_11394_);
lean_closure_set(v___f_11400_, 1, v___x_11374_);
lean_closure_set(v___f_11400_, 2, v_mod_11373_);
lean_closure_set(v___f_11400_, 3, v_config_11375_);
lean_closure_set(v___f_11400_, 4, v_config_11376_);
lean_closure_set(v___f_11400_, 5, v_name_11377_);
lean_closure_set(v___f_11400_, 6, v___x_11399_);
lean_closure_set(v___f_11400_, 7, v_pkg_11379_);
v___x_11401_ = lean_unsigned_to_nat(0u);
v___x_11402_ = 0;
v___x_11403_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_11404_ = l_Lake_Job_mapM___redArg(v___x_11380_, v_a_11389_, v___f_11400_, v___x_11401_, v___x_11402_, v___y_11381_, v___y_11382_, v___y_11383_, v___y_11384_, v___y_11385_, v___x_11403_);
if (v_isShared_11398_ == 0)
{
lean_ctor_set(v___x_11397_, 0, v___x_11404_);
v___x_11406_ = v___x_11397_;
goto v_reusejp_11405_;
}
else
{
lean_object* v_reuseFailAlloc_11407_; 
v_reuseFailAlloc_11407_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_11407_, 0, v___x_11404_);
lean_ctor_set(v_reuseFailAlloc_11407_, 1, v_a_11395_);
v___x_11406_ = v_reuseFailAlloc_11407_;
goto v_reusejp_11405_;
}
v_reusejp_11405_:
{
return v___x_11406_;
}
}
}
else
{
lean_object* v_a_11409_; lean_object* v_a_11410_; lean_object* v___x_11412_; uint8_t v_isShared_11413_; uint8_t v_isSharedCheck_11417_; 
lean_dec(v_a_11389_);
lean_dec_ref(v___y_11385_);
lean_dec(v___y_11384_);
lean_dec(v___y_11383_);
lean_dec(v___y_11382_);
lean_dec_ref(v___y_11381_);
lean_dec(v___x_11380_);
lean_dec_ref(v_pkg_11379_);
lean_dec(v_name_11377_);
lean_dec(v_config_11376_);
lean_dec_ref(v_config_11375_);
lean_dec_ref(v___x_11374_);
lean_dec_ref(v_mod_11373_);
v_a_11409_ = lean_ctor_get(v___x_11393_, 0);
v_a_11410_ = lean_ctor_get(v___x_11393_, 1);
v_isSharedCheck_11417_ = !lean_is_exclusive(v___x_11393_);
if (v_isSharedCheck_11417_ == 0)
{
v___x_11412_ = v___x_11393_;
v_isShared_11413_ = v_isSharedCheck_11417_;
goto v_resetjp_11411_;
}
else
{
lean_inc(v_a_11410_);
lean_inc(v_a_11409_);
lean_dec(v___x_11393_);
v___x_11412_ = lean_box(0);
v_isShared_11413_ = v_isSharedCheck_11417_;
goto v_resetjp_11411_;
}
v_resetjp_11411_:
{
lean_object* v___x_11415_; 
if (v_isShared_11413_ == 0)
{
v___x_11415_ = v___x_11412_;
goto v_reusejp_11414_;
}
else
{
lean_object* v_reuseFailAlloc_11416_; 
v_reuseFailAlloc_11416_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_11416_, 0, v_a_11409_);
lean_ctor_set(v_reuseFailAlloc_11416_, 1, v_a_11410_);
v___x_11415_ = v_reuseFailAlloc_11416_;
goto v_reusejp_11414_;
}
v_reusejp_11414_:
{
return v___x_11415_;
}
}
}
}
else
{
lean_object* v_a_11418_; lean_object* v_a_11419_; lean_object* v___x_11421_; uint8_t v_isShared_11422_; uint8_t v_isSharedCheck_11426_; 
lean_dec_ref(v___y_11385_);
lean_dec(v___y_11384_);
lean_dec(v___y_11383_);
lean_dec(v___y_11382_);
lean_dec_ref(v___y_11381_);
lean_dec(v___x_11380_);
lean_dec_ref(v_pkg_11379_);
lean_dec(v_name_11377_);
lean_dec(v_config_11376_);
lean_dec_ref(v_config_11375_);
lean_dec_ref(v___x_11374_);
lean_dec_ref(v_mod_11373_);
lean_dec(v___x_11372_);
lean_dec_ref(v___x_11371_);
v_a_11418_ = lean_ctor_get(v___x_11388_, 0);
v_a_11419_ = lean_ctor_get(v___x_11388_, 1);
v_isSharedCheck_11426_ = !lean_is_exclusive(v___x_11388_);
if (v_isSharedCheck_11426_ == 0)
{
v___x_11421_ = v___x_11388_;
v_isShared_11422_ = v_isSharedCheck_11426_;
goto v_resetjp_11420_;
}
else
{
lean_inc(v_a_11419_);
lean_inc(v_a_11418_);
lean_dec(v___x_11388_);
v___x_11421_ = lean_box(0);
v_isShared_11422_ = v_isSharedCheck_11426_;
goto v_resetjp_11420_;
}
v_resetjp_11420_:
{
lean_object* v___x_11424_; 
if (v_isShared_11422_ == 0)
{
v___x_11424_ = v___x_11421_;
goto v_reusejp_11423_;
}
else
{
lean_object* v_reuseFailAlloc_11425_; 
v_reuseFailAlloc_11425_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_11425_, 0, v_a_11418_);
lean_ctor_set(v_reuseFailAlloc_11425_, 1, v_a_11419_);
v___x_11424_ = v_reuseFailAlloc_11425_;
goto v_reusejp_11423_;
}
v_reusejp_11423_:
{
return v___x_11424_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1___boxed(lean_object** _args){
lean_object* v___x_11427_ = _args[0];
lean_object* v___x_11428_ = _args[1];
lean_object* v___x_11429_ = _args[2];
lean_object* v_mod_11430_ = _args[3];
lean_object* v___x_11431_ = _args[4];
lean_object* v_config_11432_ = _args[5];
lean_object* v_config_11433_ = _args[6];
lean_object* v_name_11434_ = _args[7];
lean_object* v___x_11435_ = _args[8];
lean_object* v_pkg_11436_ = _args[9];
lean_object* v___x_11437_ = _args[10];
lean_object* v___y_11438_ = _args[11];
lean_object* v___y_11439_ = _args[12];
lean_object* v___y_11440_ = _args[13];
lean_object* v___y_11441_ = _args[14];
lean_object* v___y_11442_ = _args[15];
lean_object* v___y_11443_ = _args[16];
lean_object* v___y_11444_ = _args[17];
_start:
{
uint8_t v___x_47423__boxed_11445_; lean_object* v_res_11446_; 
v___x_47423__boxed_11445_ = lean_unbox(v___x_11435_);
v_res_11446_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1(v___x_11427_, v___x_11428_, v___x_11429_, v_mod_11430_, v___x_11431_, v_config_11432_, v_config_11433_, v_name_11434_, v___x_47423__boxed_11445_, v_pkg_11436_, v___x_11437_, v___y_11438_, v___y_11439_, v___y_11440_, v___y_11441_, v___y_11442_, v___y_11443_);
return v_res_11446_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean(lean_object* v_mod_11447_, lean_object* v_a_11448_, lean_object* v_a_11449_, lean_object* v_a_11450_, lean_object* v_a_11451_, lean_object* v_a_11452_, lean_object* v_a_11453_){
_start:
{
lean_object* v_lib_11455_; lean_object* v_pkg_11456_; lean_object* v_name_11457_; lean_object* v_config_11458_; lean_object* v_keyName_11459_; lean_object* v_config_11460_; lean_object* v___x_11461_; uint8_t v___x_11462_; lean_object* v___x_11463_; lean_object* v___x_11464_; lean_object* v___x_11465_; lean_object* v___x_11466_; lean_object* v___x_11467_; lean_object* v___x_11468_; lean_object* v___f_11469_; lean_object* v___x_11470_; 
v_lib_11455_ = lean_ctor_get(v_mod_11447_, 0);
v_pkg_11456_ = lean_ctor_get(v_lib_11455_, 0);
lean_inc_ref(v_pkg_11456_);
v_name_11457_ = lean_ctor_get(v_mod_11447_, 1);
lean_inc(v_name_11457_);
v_config_11458_ = lean_ctor_get(v_lib_11455_, 2);
lean_inc(v_config_11458_);
v_keyName_11459_ = lean_ctor_get(v_pkg_11456_, 2);
v_config_11460_ = lean_ctor_get(v_pkg_11456_, 6);
lean_inc_ref(v_config_11460_);
v___x_11461_ = lean_box(0);
v___x_11462_ = 1;
lean_inc(v_name_11457_);
v___x_11463_ = l_Lean_Name_toString(v_name_11457_, v___x_11462_);
v___x_11464_ = l_Lake_Module_setupFacet;
lean_inc(v_name_11457_);
lean_inc(v_keyName_11459_);
v___x_11465_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_11465_, 0, v_keyName_11459_);
lean_ctor_set(v___x_11465_, 1, v_name_11457_);
v___x_11466_ = l_Lake_Module_keyword;
lean_inc_ref(v_mod_11447_);
lean_inc_ref(v___x_11465_);
v___x_11467_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_11467_, 0, v___x_11465_);
lean_ctor_set(v___x_11467_, 1, v___x_11466_);
lean_ctor_set(v___x_11467_, 2, v_mod_11447_);
lean_ctor_set(v___x_11467_, 3, v___x_11464_);
v___x_11468_ = lean_box(v___x_11462_);
lean_inc_ref(v___x_11463_);
v___f_11469_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1___boxed), 18, 11);
lean_closure_set(v___f_11469_, 0, v___x_11467_);
lean_closure_set(v___f_11469_, 1, v___x_11465_);
lean_closure_set(v___f_11469_, 2, v___x_11466_);
lean_closure_set(v___f_11469_, 3, v_mod_11447_);
lean_closure_set(v___f_11469_, 4, v___x_11463_);
lean_closure_set(v___f_11469_, 5, v_config_11460_);
lean_closure_set(v___f_11469_, 6, v_config_11458_);
lean_closure_set(v___f_11469_, 7, v_name_11457_);
lean_closure_set(v___f_11469_, 8, v___x_11468_);
lean_closure_set(v___f_11469_, 9, v_pkg_11456_);
lean_closure_set(v___f_11469_, 10, v___x_11461_);
lean_inc_ref(v_a_11452_);
v___x_11470_ = l_Lake_ensureJob___redArg(v___x_11461_, v___f_11469_, v_a_11448_, v_a_11449_, v_a_11450_, v_a_11451_, v_a_11452_, v_a_11453_);
if (lean_obj_tag(v___x_11470_) == 0)
{
lean_object* v_a_11471_; lean_object* v_a_11472_; lean_object* v___x_11474_; uint8_t v_isShared_11475_; uint8_t v_isSharedCheck_11496_; 
v_a_11471_ = lean_ctor_get(v___x_11470_, 0);
v_a_11472_ = lean_ctor_get(v___x_11470_, 1);
v_isSharedCheck_11496_ = !lean_is_exclusive(v___x_11470_);
if (v_isSharedCheck_11496_ == 0)
{
v___x_11474_ = v___x_11470_;
v_isShared_11475_ = v_isSharedCheck_11496_;
goto v_resetjp_11473_;
}
else
{
lean_inc(v_a_11472_);
lean_inc(v_a_11471_);
lean_dec(v___x_11470_);
v___x_11474_ = lean_box(0);
v_isShared_11475_ = v_isSharedCheck_11496_;
goto v_resetjp_11473_;
}
v_resetjp_11473_:
{
lean_object* v_task_11476_; lean_object* v_kind_11477_; lean_object* v___x_11479_; uint8_t v_isShared_11480_; uint8_t v_isSharedCheck_11494_; 
v_task_11476_ = lean_ctor_get(v_a_11471_, 0);
v_kind_11477_ = lean_ctor_get(v_a_11471_, 1);
v_isSharedCheck_11494_ = !lean_is_exclusive(v_a_11471_);
if (v_isSharedCheck_11494_ == 0)
{
lean_object* v_unused_11495_; 
v_unused_11495_ = lean_ctor_get(v_a_11471_, 2);
lean_dec(v_unused_11495_);
v___x_11479_ = v_a_11471_;
v_isShared_11480_ = v_isSharedCheck_11494_;
goto v_resetjp_11478_;
}
else
{
lean_inc(v_kind_11477_);
lean_inc(v_task_11476_);
lean_dec(v_a_11471_);
v___x_11479_ = lean_box(0);
v_isShared_11480_ = v_isSharedCheck_11494_;
goto v_resetjp_11478_;
}
v_resetjp_11478_:
{
lean_object* v_registeredJobs_11481_; lean_object* v___x_11482_; uint8_t v___x_11483_; lean_object* v_job_11485_; 
v_registeredJobs_11481_ = lean_ctor_get(v_a_11452_, 3);
lean_inc(v_registeredJobs_11481_);
lean_dec_ref(v_a_11452_);
v___x_11482_ = lean_st_ref_take(v_registeredJobs_11481_);
v___x_11483_ = 0;
if (v_isShared_11480_ == 0)
{
lean_ctor_set(v___x_11479_, 2, v___x_11463_);
v_job_11485_ = v___x_11479_;
goto v_reusejp_11484_;
}
else
{
lean_object* v_reuseFailAlloc_11493_; 
v_reuseFailAlloc_11493_ = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(v_reuseFailAlloc_11493_, 0, v_task_11476_);
lean_ctor_set(v_reuseFailAlloc_11493_, 1, v_kind_11477_);
lean_ctor_set(v_reuseFailAlloc_11493_, 2, v___x_11463_);
v_job_11485_ = v_reuseFailAlloc_11493_;
goto v_reusejp_11484_;
}
v_reusejp_11484_:
{
lean_object* v___x_11486_; lean_object* v___x_11487_; lean_object* v___x_11488_; lean_object* v___x_11489_; lean_object* v___x_11491_; 
lean_ctor_set_uint8(v_job_11485_, sizeof(void*)*3, v___x_11483_);
lean_inc_ref(v_job_11485_);
v___x_11486_ = l_Lake_Job_toOpaque___redArg(v_job_11485_);
v___x_11487_ = lean_array_push(v___x_11482_, v___x_11486_);
v___x_11488_ = lean_st_ref_set(v_registeredJobs_11481_, v___x_11487_);
lean_dec(v_registeredJobs_11481_);
v___x_11489_ = l_Lake_Job_renew___redArg(v_job_11485_);
if (v_isShared_11475_ == 0)
{
lean_ctor_set(v___x_11474_, 0, v___x_11489_);
v___x_11491_ = v___x_11474_;
goto v_reusejp_11490_;
}
else
{
lean_object* v_reuseFailAlloc_11492_; 
v_reuseFailAlloc_11492_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_11492_, 0, v___x_11489_);
lean_ctor_set(v_reuseFailAlloc_11492_, 1, v_a_11472_);
v___x_11491_ = v_reuseFailAlloc_11492_;
goto v_reusejp_11490_;
}
v_reusejp_11490_:
{
return v___x_11491_;
}
}
}
}
}
else
{
lean_dec_ref(v___x_11463_);
lean_dec_ref(v_a_11452_);
return v___x_11470_;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___boxed(lean_object* v_mod_11497_, lean_object* v_a_11498_, lean_object* v_a_11499_, lean_object* v_a_11500_, lean_object* v_a_11501_, lean_object* v_a_11502_, lean_object* v_a_11503_, lean_object* v_a_11504_){
_start:
{
lean_object* v_res_11505_; 
v_res_11505_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean(v_mod_11497_, v_a_11498_, v_a_11499_, v_a_11500_, v_a_11501_, v_a_11502_, v_a_11503_);
return v_res_11505_;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_leanArtsFacetConfig_spec__0___redArg(uint8_t v_fmt_11506_){
_start:
{
if (v_fmt_11506_ == 0)
{
lean_object* v___x_11507_; 
v___x_11507_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1));
return v___x_11507_;
}
else
{
lean_object* v___x_11508_; 
v___x_11508_ = lean_obj_once(&l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg___closed__0, &l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg___closed__0_once, _init_l_Lake_formatQuery___at___00Lake_Module_inputFacetConfig_spec__0___redArg___closed__0);
return v___x_11508_;
}
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_leanArtsFacetConfig_spec__0___redArg___boxed(lean_object* v_fmt_11509_){
_start:
{
uint8_t v_fmt_boxed_11510_; lean_object* v_res_11511_; 
v_fmt_boxed_11510_ = lean_unbox(v_fmt_11509_);
v_res_11511_ = l_Lake_formatQuery___at___00Lake_Module_leanArtsFacetConfig_spec__0___redArg(v_fmt_boxed_11510_);
return v_res_11511_;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_leanArtsFacetConfig_spec__0(uint8_t v_fmt_11512_, lean_object* v_a_11513_){
_start:
{
lean_object* v___x_11514_; 
v___x_11514_ = l_Lake_formatQuery___at___00Lake_Module_leanArtsFacetConfig_spec__0___redArg(v_fmt_11512_);
return v___x_11514_;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_leanArtsFacetConfig_spec__0___boxed(lean_object* v_fmt_11515_, lean_object* v_a_11516_){
_start:
{
uint8_t v_fmt_boxed_11517_; lean_object* v_res_11518_; 
v_fmt_boxed_11517_ = lean_unbox(v_fmt_11515_);
v_res_11518_ = l_Lake_formatQuery___at___00Lake_Module_leanArtsFacetConfig_spec__0(v_fmt_boxed_11517_, v_a_11516_);
lean_dec_ref(v_a_11516_);
return v_res_11518_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_leanArtsFacetConfig___lam__0(uint8_t v___y_11519_, lean_object* v___y_11520_){
_start:
{
lean_object* v___x_11521_; 
v___x_11521_ = l_Lake_formatQuery___at___00Lake_Module_leanArtsFacetConfig_spec__0___redArg(v___y_11519_);
return v___x_11521_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_leanArtsFacetConfig___lam__0___boxed(lean_object* v___y_11522_, lean_object* v___y_11523_){
_start:
{
uint8_t v___y_64__boxed_11524_; lean_object* v_res_11525_; 
v___y_64__boxed_11524_ = lean_unbox(v___y_11522_);
v_res_11525_ = l_Lake_Module_leanArtsFacetConfig___lam__0(v___y_64__boxed_11524_, v___y_11523_);
lean_dec_ref(v___y_11523_);
return v_res_11525_;
}
}
static lean_object* _init_l_Lake_Module_leanArtsFacetConfig___closed__2(void){
_start:
{
lean_object* v___f_11528_; uint8_t v___x_11529_; lean_object* v___x_11530_; lean_object* v___x_11531_; lean_object* v___x_11532_; lean_object* v___x_11533_; 
v___f_11528_ = ((lean_object*)(l_Lake_Module_leanArtsFacetConfig___closed__0));
v___x_11529_ = 1;
v___x_11530_ = lean_box(0);
v___x_11531_ = ((lean_object*)(l_Lake_Module_leanArtsFacetConfig___closed__1));
v___x_11532_ = l_Lake_Module_keyword;
v___x_11533_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_11533_, 0, v___x_11532_);
lean_ctor_set(v___x_11533_, 1, v___x_11531_);
lean_ctor_set(v___x_11533_, 2, v___x_11530_);
lean_ctor_set(v___x_11533_, 3, v___f_11528_);
lean_ctor_set_uint8(v___x_11533_, sizeof(void*)*4, v___x_11529_);
lean_ctor_set_uint8(v___x_11533_, sizeof(void*)*4 + 1, v___x_11529_);
return v___x_11533_;
}
}
static lean_object* _init_l_Lake_Module_leanArtsFacetConfig(void){
_start:
{
lean_object* v___x_11534_; 
v___x_11534_ = lean_obj_once(&l_Lake_Module_leanArtsFacetConfig___closed__2, &l_Lake_Module_leanArtsFacetConfig___closed__2_once, _init_l_Lake_Module_leanArtsFacetConfig___closed__2);
return v___x_11534_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___lam__0(lean_object* v_f_11536_, lean_object* v_name_11537_, lean_object* v_facet_11538_, lean_object* v_errMsg_11539_, lean_object* v_arts_11540_, lean_object* v___y_11541_, lean_object* v___y_11542_, lean_object* v___y_11543_, lean_object* v___y_11544_, lean_object* v___y_11545_, lean_object* v___y_11546_){
_start:
{
lean_object* v___x_11548_; 
v___x_11548_ = lean_apply_1(v_f_11536_, v_arts_11540_);
if (lean_obj_tag(v___x_11548_) == 1)
{
lean_object* v_val_11549_; lean_object* v_log_11550_; uint8_t v_action_11551_; uint8_t v_wantsRebuild_11552_; lean_object* v_buildTime_11553_; lean_object* v___x_11555_; uint8_t v_isShared_11556_; uint8_t v_isSharedCheck_11570_; 
lean_dec_ref(v_errMsg_11539_);
v_val_11549_ = lean_ctor_get(v___x_11548_, 0);
lean_inc(v_val_11549_);
lean_dec_ref(v___x_11548_);
v_log_11550_ = lean_ctor_get(v___y_11546_, 0);
v_action_11551_ = lean_ctor_get_uint8(v___y_11546_, sizeof(void*)*3);
v_wantsRebuild_11552_ = lean_ctor_get_uint8(v___y_11546_, sizeof(void*)*3 + 1);
v_buildTime_11553_ = lean_ctor_get(v___y_11546_, 2);
v_isSharedCheck_11570_ = !lean_is_exclusive(v___y_11546_);
if (v_isSharedCheck_11570_ == 0)
{
lean_object* v_unused_11571_; 
v_unused_11571_ = lean_ctor_get(v___y_11546_, 1);
lean_dec(v_unused_11571_);
v___x_11555_ = v___y_11546_;
v_isShared_11556_ = v_isSharedCheck_11570_;
goto v_resetjp_11554_;
}
else
{
lean_inc(v_buildTime_11553_);
lean_inc(v_log_11550_);
lean_dec(v___y_11546_);
v___x_11555_ = lean_box(0);
v_isShared_11556_ = v_isSharedCheck_11570_;
goto v_resetjp_11554_;
}
v_resetjp_11554_:
{
lean_object* v_path_11557_; uint8_t v___x_11558_; lean_object* v___x_11559_; lean_object* v___x_11560_; lean_object* v___x_11561_; lean_object* v___x_11562_; lean_object* v___x_11563_; lean_object* v___x_11564_; lean_object* v___x_11565_; lean_object* v___x_11567_; 
v_path_11557_ = lean_ctor_get(v_val_11549_, 1);
lean_inc_ref(v_path_11557_);
v___x_11558_ = 1;
v___x_11559_ = l_Lean_Name_toString(v_name_11537_, v___x_11558_);
v___x_11560_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___lam__0___closed__0));
v___x_11561_ = lean_string_append(v___x_11559_, v___x_11560_);
v___x_11562_ = lean_string_append(v___x_11561_, v_facet_11538_);
v___x_11563_ = l_Lake_BuildTrace_nil(v___x_11562_);
v___x_11564_ = l_Lake_Artifact_trace(v_val_11549_);
lean_dec(v_val_11549_);
v___x_11565_ = l_Lake_BuildTrace_mix(v___x_11563_, v___x_11564_);
if (v_isShared_11556_ == 0)
{
lean_ctor_set(v___x_11555_, 1, v___x_11565_);
v___x_11567_ = v___x_11555_;
goto v_reusejp_11566_;
}
else
{
lean_object* v_reuseFailAlloc_11569_; 
v_reuseFailAlloc_11569_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_11569_, 0, v_log_11550_);
lean_ctor_set(v_reuseFailAlloc_11569_, 1, v___x_11565_);
lean_ctor_set(v_reuseFailAlloc_11569_, 2, v_buildTime_11553_);
lean_ctor_set_uint8(v_reuseFailAlloc_11569_, sizeof(void*)*3, v_action_11551_);
lean_ctor_set_uint8(v_reuseFailAlloc_11569_, sizeof(void*)*3 + 1, v_wantsRebuild_11552_);
v___x_11567_ = v_reuseFailAlloc_11569_;
goto v_reusejp_11566_;
}
v_reusejp_11566_:
{
lean_object* v___x_11568_; 
v___x_11568_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_11568_, 0, v_path_11557_);
lean_ctor_set(v___x_11568_, 1, v___x_11567_);
return v___x_11568_;
}
}
}
else
{
lean_object* v_log_11572_; uint8_t v_action_11573_; uint8_t v_wantsRebuild_11574_; lean_object* v_trace_11575_; lean_object* v_buildTime_11576_; lean_object* v___x_11578_; uint8_t v_isShared_11579_; uint8_t v_isSharedCheck_11588_; 
lean_dec(v___x_11548_);
lean_dec(v_name_11537_);
v_log_11572_ = lean_ctor_get(v___y_11546_, 0);
v_action_11573_ = lean_ctor_get_uint8(v___y_11546_, sizeof(void*)*3);
v_wantsRebuild_11574_ = lean_ctor_get_uint8(v___y_11546_, sizeof(void*)*3 + 1);
v_trace_11575_ = lean_ctor_get(v___y_11546_, 1);
v_buildTime_11576_ = lean_ctor_get(v___y_11546_, 2);
v_isSharedCheck_11588_ = !lean_is_exclusive(v___y_11546_);
if (v_isSharedCheck_11588_ == 0)
{
v___x_11578_ = v___y_11546_;
v_isShared_11579_ = v_isSharedCheck_11588_;
goto v_resetjp_11577_;
}
else
{
lean_inc(v_buildTime_11576_);
lean_inc(v_trace_11575_);
lean_inc(v_log_11572_);
lean_dec(v___y_11546_);
v___x_11578_ = lean_box(0);
v_isShared_11579_ = v_isSharedCheck_11588_;
goto v_resetjp_11577_;
}
v_resetjp_11577_:
{
uint8_t v___x_11580_; lean_object* v___x_11581_; lean_object* v___x_11582_; lean_object* v___x_11583_; lean_object* v___x_11585_; 
v___x_11580_ = 3;
v___x_11581_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_11581_, 0, v_errMsg_11539_);
lean_ctor_set_uint8(v___x_11581_, sizeof(void*)*1, v___x_11580_);
v___x_11582_ = lean_array_get_size(v_log_11572_);
v___x_11583_ = lean_array_push(v_log_11572_, v___x_11581_);
if (v_isShared_11579_ == 0)
{
lean_ctor_set(v___x_11578_, 0, v___x_11583_);
v___x_11585_ = v___x_11578_;
goto v_reusejp_11584_;
}
else
{
lean_object* v_reuseFailAlloc_11587_; 
v_reuseFailAlloc_11587_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_11587_, 0, v___x_11583_);
lean_ctor_set(v_reuseFailAlloc_11587_, 1, v_trace_11575_);
lean_ctor_set(v_reuseFailAlloc_11587_, 2, v_buildTime_11576_);
lean_ctor_set_uint8(v_reuseFailAlloc_11587_, sizeof(void*)*3, v_action_11573_);
lean_ctor_set_uint8(v_reuseFailAlloc_11587_, sizeof(void*)*3 + 1, v_wantsRebuild_11574_);
v___x_11585_ = v_reuseFailAlloc_11587_;
goto v_reusejp_11584_;
}
v_reusejp_11584_:
{
lean_object* v___x_11586_; 
v___x_11586_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_11586_, 0, v___x_11582_);
lean_ctor_set(v___x_11586_, 1, v___x_11585_);
return v___x_11586_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___lam__0___boxed(lean_object* v_f_11589_, lean_object* v_name_11590_, lean_object* v_facet_11591_, lean_object* v_errMsg_11592_, lean_object* v_arts_11593_, lean_object* v___y_11594_, lean_object* v___y_11595_, lean_object* v___y_11596_, lean_object* v___y_11597_, lean_object* v___y_11598_, lean_object* v___y_11599_, lean_object* v___y_11600_){
_start:
{
lean_object* v_res_11601_; 
v_res_11601_ = l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___lam__0(v_f_11589_, v_name_11590_, v_facet_11591_, v_errMsg_11592_, v_arts_11593_, v___y_11594_, v___y_11595_, v___y_11596_, v___y_11597_, v___y_11598_, v___y_11599_);
lean_dec_ref(v___y_11598_);
lean_dec(v___y_11597_);
lean_dec(v___y_11596_);
lean_dec(v___y_11595_);
lean_dec_ref(v___y_11594_);
lean_dec_ref(v_facet_11591_);
return v_res_11601_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore(lean_object* v_facet_11602_, lean_object* v_f_11603_, lean_object* v_errMsg_11604_, lean_object* v_mod_11605_, lean_object* v_a_11606_, lean_object* v_a_11607_, lean_object* v_a_11608_, lean_object* v_a_11609_, lean_object* v_a_11610_, lean_object* v_a_11611_){
_start:
{
lean_object* v_lib_11613_; lean_object* v_pkg_11614_; lean_object* v_name_11615_; lean_object* v_keyName_11616_; lean_object* v___x_11617_; lean_object* v___x_11618_; lean_object* v___x_11619_; lean_object* v___x_11620_; lean_object* v___x_11621_; 
v_lib_11613_ = lean_ctor_get(v_mod_11605_, 0);
v_pkg_11614_ = lean_ctor_get(v_lib_11613_, 0);
v_name_11615_ = lean_ctor_get(v_mod_11605_, 1);
lean_inc(v_name_11615_);
v_keyName_11616_ = lean_ctor_get(v_pkg_11614_, 2);
v___x_11617_ = l_Lake_Module_leanArtsFacet;
lean_inc(v_name_11615_);
lean_inc(v_keyName_11616_);
v___x_11618_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_11618_, 0, v_keyName_11616_);
lean_ctor_set(v___x_11618_, 1, v_name_11615_);
v___x_11619_ = l_Lake_Module_keyword;
v___x_11620_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_11620_, 0, v___x_11618_);
lean_ctor_set(v___x_11620_, 1, v___x_11619_);
lean_ctor_set(v___x_11620_, 2, v_mod_11605_);
lean_ctor_set(v___x_11620_, 3, v___x_11617_);
lean_inc_ref(v_a_11606_);
lean_inc_ref(v_a_11610_);
lean_inc(v_a_11609_);
lean_inc(v_a_11608_);
lean_inc(v_a_11607_);
v___x_11621_ = lean_apply_7(v_a_11606_, v___x_11620_, v_a_11607_, v_a_11608_, v_a_11609_, v_a_11610_, v_a_11611_, lean_box(0));
if (lean_obj_tag(v___x_11621_) == 0)
{
lean_object* v_a_11622_; lean_object* v_a_11623_; lean_object* v___x_11625_; uint8_t v_isShared_11626_; uint8_t v_isSharedCheck_11636_; 
v_a_11622_ = lean_ctor_get(v___x_11621_, 0);
v_a_11623_ = lean_ctor_get(v___x_11621_, 1);
v_isSharedCheck_11636_ = !lean_is_exclusive(v___x_11621_);
if (v_isSharedCheck_11636_ == 0)
{
v___x_11625_ = v___x_11621_;
v_isShared_11626_ = v_isSharedCheck_11636_;
goto v_resetjp_11624_;
}
else
{
lean_inc(v_a_11623_);
lean_inc(v_a_11622_);
lean_dec(v___x_11621_);
v___x_11625_ = lean_box(0);
v_isShared_11626_ = v_isSharedCheck_11636_;
goto v_resetjp_11624_;
}
v_resetjp_11624_:
{
lean_object* v___f_11627_; lean_object* v___x_11628_; lean_object* v___x_11629_; uint8_t v___x_11630_; lean_object* v___x_11631_; lean_object* v___x_11632_; lean_object* v___x_11634_; 
v___f_11627_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___lam__0___boxed), 12, 4);
lean_closure_set(v___f_11627_, 0, v_f_11603_);
lean_closure_set(v___f_11627_, 1, v_name_11615_);
lean_closure_set(v___f_11627_, 2, v_facet_11602_);
lean_closure_set(v___f_11627_, 3, v_errMsg_11604_);
v___x_11628_ = l_Lake_instDataKindFilePath;
v___x_11629_ = lean_unsigned_to_nat(0u);
v___x_11630_ = 1;
v___x_11631_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_11632_ = l_Lake_Job_mapM___redArg(v___x_11628_, v_a_11622_, v___f_11627_, v___x_11629_, v___x_11630_, v_a_11606_, v_a_11607_, v_a_11608_, v_a_11609_, v_a_11610_, v___x_11631_);
if (v_isShared_11626_ == 0)
{
lean_ctor_set(v___x_11625_, 0, v___x_11632_);
v___x_11634_ = v___x_11625_;
goto v_reusejp_11633_;
}
else
{
lean_object* v_reuseFailAlloc_11635_; 
v_reuseFailAlloc_11635_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_11635_, 0, v___x_11632_);
lean_ctor_set(v_reuseFailAlloc_11635_, 1, v_a_11623_);
v___x_11634_ = v_reuseFailAlloc_11635_;
goto v_reusejp_11633_;
}
v_reusejp_11633_:
{
return v___x_11634_;
}
}
}
else
{
lean_object* v_a_11637_; lean_object* v_a_11638_; lean_object* v___x_11640_; uint8_t v_isShared_11641_; uint8_t v_isSharedCheck_11645_; 
lean_dec(v_name_11615_);
lean_dec_ref(v_a_11610_);
lean_dec(v_a_11609_);
lean_dec(v_a_11608_);
lean_dec(v_a_11607_);
lean_dec_ref(v_a_11606_);
lean_dec_ref(v_errMsg_11604_);
lean_dec_ref(v_f_11603_);
lean_dec_ref(v_facet_11602_);
v_a_11637_ = lean_ctor_get(v___x_11621_, 0);
v_a_11638_ = lean_ctor_get(v___x_11621_, 1);
v_isSharedCheck_11645_ = !lean_is_exclusive(v___x_11621_);
if (v_isSharedCheck_11645_ == 0)
{
v___x_11640_ = v___x_11621_;
v_isShared_11641_ = v_isSharedCheck_11645_;
goto v_resetjp_11639_;
}
else
{
lean_inc(v_a_11638_);
lean_inc(v_a_11637_);
lean_dec(v___x_11621_);
v___x_11640_ = lean_box(0);
v_isShared_11641_ = v_isSharedCheck_11645_;
goto v_resetjp_11639_;
}
v_resetjp_11639_:
{
lean_object* v___x_11643_; 
if (v_isShared_11641_ == 0)
{
v___x_11643_ = v___x_11640_;
goto v_reusejp_11642_;
}
else
{
lean_object* v_reuseFailAlloc_11644_; 
v_reuseFailAlloc_11644_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_11644_, 0, v_a_11637_);
lean_ctor_set(v_reuseFailAlloc_11644_, 1, v_a_11638_);
v___x_11643_ = v_reuseFailAlloc_11644_;
goto v_reusejp_11642_;
}
v_reusejp_11642_:
{
return v___x_11643_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___boxed(lean_object* v_facet_11646_, lean_object* v_f_11647_, lean_object* v_errMsg_11648_, lean_object* v_mod_11649_, lean_object* v_a_11650_, lean_object* v_a_11651_, lean_object* v_a_11652_, lean_object* v_a_11653_, lean_object* v_a_11654_, lean_object* v_a_11655_, lean_object* v_a_11656_){
_start:
{
lean_object* v_res_11657_; 
v_res_11657_ = l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore(v_facet_11646_, v_f_11647_, v_errMsg_11648_, v_mod_11649_, v_a_11650_, v_a_11651_, v_a_11652_, v_a_11653_, v_a_11654_, v_a_11655_);
return v_res_11657_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_oleanFacetConfig___lam__0(lean_object* v_name_11658_, lean_object* v___x_11659_, lean_object* v_arts_11660_, lean_object* v___y_11661_, lean_object* v___y_11662_, lean_object* v___y_11663_, lean_object* v___y_11664_, lean_object* v___y_11665_, lean_object* v___y_11666_){
_start:
{
lean_object* v_olean_11668_; lean_object* v_log_11669_; uint8_t v_action_11670_; uint8_t v_wantsRebuild_11671_; lean_object* v_buildTime_11672_; lean_object* v___x_11674_; uint8_t v_isShared_11675_; uint8_t v_isSharedCheck_11689_; 
v_olean_11668_ = lean_ctor_get(v_arts_11660_, 0);
v_log_11669_ = lean_ctor_get(v___y_11666_, 0);
v_action_11670_ = lean_ctor_get_uint8(v___y_11666_, sizeof(void*)*3);
v_wantsRebuild_11671_ = lean_ctor_get_uint8(v___y_11666_, sizeof(void*)*3 + 1);
v_buildTime_11672_ = lean_ctor_get(v___y_11666_, 2);
v_isSharedCheck_11689_ = !lean_is_exclusive(v___y_11666_);
if (v_isSharedCheck_11689_ == 0)
{
lean_object* v_unused_11690_; 
v_unused_11690_ = lean_ctor_get(v___y_11666_, 1);
lean_dec(v_unused_11690_);
v___x_11674_ = v___y_11666_;
v_isShared_11675_ = v_isSharedCheck_11689_;
goto v_resetjp_11673_;
}
else
{
lean_inc(v_buildTime_11672_);
lean_inc(v_log_11669_);
lean_dec(v___y_11666_);
v___x_11674_ = lean_box(0);
v_isShared_11675_ = v_isSharedCheck_11689_;
goto v_resetjp_11673_;
}
v_resetjp_11673_:
{
lean_object* v_path_11676_; uint8_t v___x_11677_; lean_object* v___x_11678_; lean_object* v___x_11679_; lean_object* v___x_11680_; lean_object* v___x_11681_; lean_object* v___x_11682_; lean_object* v___x_11683_; lean_object* v___x_11684_; lean_object* v___x_11686_; 
v_path_11676_ = lean_ctor_get(v_olean_11668_, 1);
v___x_11677_ = 1;
v___x_11678_ = l_Lean_Name_toString(v_name_11658_, v___x_11677_);
v___x_11679_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___lam__0___closed__0));
v___x_11680_ = lean_string_append(v___x_11678_, v___x_11679_);
v___x_11681_ = lean_string_append(v___x_11680_, v___x_11659_);
v___x_11682_ = l_Lake_BuildTrace_nil(v___x_11681_);
v___x_11683_ = l_Lake_Artifact_trace(v_olean_11668_);
v___x_11684_ = l_Lake_BuildTrace_mix(v___x_11682_, v___x_11683_);
if (v_isShared_11675_ == 0)
{
lean_ctor_set(v___x_11674_, 1, v___x_11684_);
v___x_11686_ = v___x_11674_;
goto v_reusejp_11685_;
}
else
{
lean_object* v_reuseFailAlloc_11688_; 
v_reuseFailAlloc_11688_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_11688_, 0, v_log_11669_);
lean_ctor_set(v_reuseFailAlloc_11688_, 1, v___x_11684_);
lean_ctor_set(v_reuseFailAlloc_11688_, 2, v_buildTime_11672_);
lean_ctor_set_uint8(v_reuseFailAlloc_11688_, sizeof(void*)*3, v_action_11670_);
lean_ctor_set_uint8(v_reuseFailAlloc_11688_, sizeof(void*)*3 + 1, v_wantsRebuild_11671_);
v___x_11686_ = v_reuseFailAlloc_11688_;
goto v_reusejp_11685_;
}
v_reusejp_11685_:
{
lean_object* v___x_11687_; 
lean_inc_ref(v_path_11676_);
v___x_11687_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_11687_, 0, v_path_11676_);
lean_ctor_set(v___x_11687_, 1, v___x_11686_);
return v___x_11687_;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_oleanFacetConfig___lam__0___boxed(lean_object* v_name_11691_, lean_object* v___x_11692_, lean_object* v_arts_11693_, lean_object* v___y_11694_, lean_object* v___y_11695_, lean_object* v___y_11696_, lean_object* v___y_11697_, lean_object* v___y_11698_, lean_object* v___y_11699_, lean_object* v___y_11700_){
_start:
{
lean_object* v_res_11701_; 
v_res_11701_ = l_Lake_Module_oleanFacetConfig___lam__0(v_name_11691_, v___x_11692_, v_arts_11693_, v___y_11694_, v___y_11695_, v___y_11696_, v___y_11697_, v___y_11698_, v___y_11699_);
lean_dec_ref(v___y_11698_);
lean_dec(v___y_11697_);
lean_dec(v___y_11696_);
lean_dec(v___y_11695_);
lean_dec_ref(v___y_11694_);
lean_dec_ref(v_arts_11693_);
lean_dec_ref(v___x_11692_);
return v_res_11701_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_oleanFacetConfig___lam__1(lean_object* v___x_11702_, lean_object* v___x_11703_, lean_object* v___x_11704_, lean_object* v___y_11705_, lean_object* v___y_11706_, lean_object* v___y_11707_, lean_object* v___y_11708_, lean_object* v___y_11709_, lean_object* v___y_11710_, lean_object* v___y_11711_){
_start:
{
lean_object* v_lib_11713_; lean_object* v_pkg_11714_; lean_object* v_name_11715_; lean_object* v_keyName_11716_; lean_object* v___x_11717_; lean_object* v___x_11718_; lean_object* v___x_11719_; lean_object* v___x_11720_; 
v_lib_11713_ = lean_ctor_get(v___y_11705_, 0);
v_pkg_11714_ = lean_ctor_get(v_lib_11713_, 0);
v_name_11715_ = lean_ctor_get(v___y_11705_, 1);
lean_inc(v_name_11715_);
v_keyName_11716_ = lean_ctor_get(v_pkg_11714_, 2);
v___x_11717_ = l_Lake_Module_leanArtsFacet;
lean_inc(v_name_11715_);
lean_inc(v_keyName_11716_);
v___x_11718_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_11718_, 0, v_keyName_11716_);
lean_ctor_set(v___x_11718_, 1, v_name_11715_);
v___x_11719_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_11719_, 0, v___x_11718_);
lean_ctor_set(v___x_11719_, 1, v___x_11702_);
lean_ctor_set(v___x_11719_, 2, v___y_11705_);
lean_ctor_set(v___x_11719_, 3, v___x_11717_);
lean_inc_ref(v___y_11706_);
lean_inc_ref(v___y_11710_);
lean_inc(v___y_11709_);
lean_inc(v___y_11708_);
lean_inc(v___y_11707_);
v___x_11720_ = lean_apply_7(v___y_11706_, v___x_11719_, v___y_11707_, v___y_11708_, v___y_11709_, v___y_11710_, v___y_11711_, lean_box(0));
if (lean_obj_tag(v___x_11720_) == 0)
{
lean_object* v_a_11721_; lean_object* v_a_11722_; lean_object* v___x_11724_; uint8_t v_isShared_11725_; uint8_t v_isSharedCheck_11734_; 
v_a_11721_ = lean_ctor_get(v___x_11720_, 0);
v_a_11722_ = lean_ctor_get(v___x_11720_, 1);
v_isSharedCheck_11734_ = !lean_is_exclusive(v___x_11720_);
if (v_isSharedCheck_11734_ == 0)
{
v___x_11724_ = v___x_11720_;
v_isShared_11725_ = v_isSharedCheck_11734_;
goto v_resetjp_11723_;
}
else
{
lean_inc(v_a_11722_);
lean_inc(v_a_11721_);
lean_dec(v___x_11720_);
v___x_11724_ = lean_box(0);
v_isShared_11725_ = v_isSharedCheck_11734_;
goto v_resetjp_11723_;
}
v_resetjp_11723_:
{
lean_object* v___f_11726_; lean_object* v___x_11727_; uint8_t v___x_11728_; lean_object* v___x_11729_; lean_object* v___x_11730_; lean_object* v___x_11732_; 
v___f_11726_ = lean_alloc_closure((void*)(l_Lake_Module_oleanFacetConfig___lam__0___boxed), 10, 2);
lean_closure_set(v___f_11726_, 0, v_name_11715_);
lean_closure_set(v___f_11726_, 1, v___x_11703_);
v___x_11727_ = lean_unsigned_to_nat(0u);
v___x_11728_ = 1;
v___x_11729_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_11730_ = l_Lake_Job_mapM___redArg(v___x_11704_, v_a_11721_, v___f_11726_, v___x_11727_, v___x_11728_, v___y_11706_, v___y_11707_, v___y_11708_, v___y_11709_, v___y_11710_, v___x_11729_);
if (v_isShared_11725_ == 0)
{
lean_ctor_set(v___x_11724_, 0, v___x_11730_);
v___x_11732_ = v___x_11724_;
goto v_reusejp_11731_;
}
else
{
lean_object* v_reuseFailAlloc_11733_; 
v_reuseFailAlloc_11733_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_11733_, 0, v___x_11730_);
lean_ctor_set(v_reuseFailAlloc_11733_, 1, v_a_11722_);
v___x_11732_ = v_reuseFailAlloc_11733_;
goto v_reusejp_11731_;
}
v_reusejp_11731_:
{
return v___x_11732_;
}
}
}
else
{
lean_object* v_a_11735_; lean_object* v_a_11736_; lean_object* v___x_11738_; uint8_t v_isShared_11739_; uint8_t v_isSharedCheck_11743_; 
lean_dec(v_name_11715_);
lean_dec_ref(v___y_11710_);
lean_dec(v___y_11709_);
lean_dec(v___y_11708_);
lean_dec(v___y_11707_);
lean_dec_ref(v___y_11706_);
lean_dec(v___x_11704_);
lean_dec_ref(v___x_11703_);
v_a_11735_ = lean_ctor_get(v___x_11720_, 0);
v_a_11736_ = lean_ctor_get(v___x_11720_, 1);
v_isSharedCheck_11743_ = !lean_is_exclusive(v___x_11720_);
if (v_isSharedCheck_11743_ == 0)
{
v___x_11738_ = v___x_11720_;
v_isShared_11739_ = v_isSharedCheck_11743_;
goto v_resetjp_11737_;
}
else
{
lean_inc(v_a_11736_);
lean_inc(v_a_11735_);
lean_dec(v___x_11720_);
v___x_11738_ = lean_box(0);
v_isShared_11739_ = v_isSharedCheck_11743_;
goto v_resetjp_11737_;
}
v_resetjp_11737_:
{
lean_object* v___x_11741_; 
if (v_isShared_11739_ == 0)
{
v___x_11741_ = v___x_11738_;
goto v_reusejp_11740_;
}
else
{
lean_object* v_reuseFailAlloc_11742_; 
v_reuseFailAlloc_11742_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_11742_, 0, v_a_11735_);
lean_ctor_set(v_reuseFailAlloc_11742_, 1, v_a_11736_);
v___x_11741_ = v_reuseFailAlloc_11742_;
goto v_reusejp_11740_;
}
v_reusejp_11740_:
{
return v___x_11741_;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_oleanFacetConfig___lam__1___boxed(lean_object* v___x_11744_, lean_object* v___x_11745_, lean_object* v___x_11746_, lean_object* v___y_11747_, lean_object* v___y_11748_, lean_object* v___y_11749_, lean_object* v___y_11750_, lean_object* v___y_11751_, lean_object* v___y_11752_, lean_object* v___y_11753_, lean_object* v___y_11754_){
_start:
{
lean_object* v_res_11755_; 
v_res_11755_ = l_Lake_Module_oleanFacetConfig___lam__1(v___x_11744_, v___x_11745_, v___x_11746_, v___y_11747_, v___y_11748_, v___y_11749_, v___y_11750_, v___y_11751_, v___y_11752_, v___y_11753_);
return v_res_11755_;
}
}
static lean_object* _init_l_Lake_Module_oleanFacetConfig___closed__0(void){
_start:
{
lean_object* v___x_11756_; lean_object* v___x_11757_; lean_object* v___x_11758_; lean_object* v___f_11759_; 
v___x_11756_ = l_Lake_instDataKindFilePath;
v___x_11757_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__2));
v___x_11758_ = l_Lake_Module_keyword;
v___f_11759_ = lean_alloc_closure((void*)(l_Lake_Module_oleanFacetConfig___lam__1___boxed), 11, 3);
lean_closure_set(v___f_11759_, 0, v___x_11758_);
lean_closure_set(v___f_11759_, 1, v___x_11757_);
lean_closure_set(v___f_11759_, 2, v___x_11756_);
return v___f_11759_;
}
}
static lean_object* _init_l_Lake_Module_oleanFacetConfig___closed__1(void){
_start:
{
lean_object* v___f_11760_; uint8_t v___x_11761_; lean_object* v___x_11762_; lean_object* v___f_11763_; lean_object* v___x_11764_; lean_object* v___x_11765_; 
v___f_11760_ = ((lean_object*)(l_Lake_Module_leanFacetConfig___closed__0));
v___x_11761_ = 1;
v___x_11762_ = l_Lake_instDataKindFilePath;
v___f_11763_ = lean_obj_once(&l_Lake_Module_oleanFacetConfig___closed__0, &l_Lake_Module_oleanFacetConfig___closed__0_once, _init_l_Lake_Module_oleanFacetConfig___closed__0);
v___x_11764_ = l_Lake_Module_keyword;
v___x_11765_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_11765_, 0, v___x_11764_);
lean_ctor_set(v___x_11765_, 1, v___f_11763_);
lean_ctor_set(v___x_11765_, 2, v___x_11762_);
lean_ctor_set(v___x_11765_, 3, v___f_11760_);
lean_ctor_set_uint8(v___x_11765_, sizeof(void*)*4, v___x_11761_);
lean_ctor_set_uint8(v___x_11765_, sizeof(void*)*4 + 1, v___x_11761_);
return v___x_11765_;
}
}
static lean_object* _init_l_Lake_Module_oleanFacetConfig(void){
_start:
{
lean_object* v___x_11766_; 
v___x_11766_ = lean_obj_once(&l_Lake_Module_oleanFacetConfig___closed__1, &l_Lake_Module_oleanFacetConfig___closed__1_once, _init_l_Lake_Module_oleanFacetConfig___closed__1);
return v___x_11766_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_oleanServerFacetConfig___lam__0(lean_object* v_name_11767_, lean_object* v___x_11768_, lean_object* v___x_11769_, lean_object* v_arts_11770_, lean_object* v___y_11771_, lean_object* v___y_11772_, lean_object* v___y_11773_, lean_object* v___y_11774_, lean_object* v___y_11775_, lean_object* v___y_11776_){
_start:
{
lean_object* v_oleanServer_x3f_11778_; 
v_oleanServer_x3f_11778_ = lean_ctor_get(v_arts_11770_, 1);
if (lean_obj_tag(v_oleanServer_x3f_11778_) == 1)
{
lean_object* v_val_11779_; lean_object* v_log_11780_; uint8_t v_action_11781_; uint8_t v_wantsRebuild_11782_; lean_object* v_buildTime_11783_; lean_object* v___x_11785_; uint8_t v_isShared_11786_; uint8_t v_isSharedCheck_11800_; 
lean_dec_ref(v___x_11769_);
v_val_11779_ = lean_ctor_get(v_oleanServer_x3f_11778_, 0);
v_log_11780_ = lean_ctor_get(v___y_11776_, 0);
v_action_11781_ = lean_ctor_get_uint8(v___y_11776_, sizeof(void*)*3);
v_wantsRebuild_11782_ = lean_ctor_get_uint8(v___y_11776_, sizeof(void*)*3 + 1);
v_buildTime_11783_ = lean_ctor_get(v___y_11776_, 2);
v_isSharedCheck_11800_ = !lean_is_exclusive(v___y_11776_);
if (v_isSharedCheck_11800_ == 0)
{
lean_object* v_unused_11801_; 
v_unused_11801_ = lean_ctor_get(v___y_11776_, 1);
lean_dec(v_unused_11801_);
v___x_11785_ = v___y_11776_;
v_isShared_11786_ = v_isSharedCheck_11800_;
goto v_resetjp_11784_;
}
else
{
lean_inc(v_buildTime_11783_);
lean_inc(v_log_11780_);
lean_dec(v___y_11776_);
v___x_11785_ = lean_box(0);
v_isShared_11786_ = v_isSharedCheck_11800_;
goto v_resetjp_11784_;
}
v_resetjp_11784_:
{
lean_object* v_path_11787_; uint8_t v___x_11788_; lean_object* v___x_11789_; lean_object* v___x_11790_; lean_object* v___x_11791_; lean_object* v___x_11792_; lean_object* v___x_11793_; lean_object* v___x_11794_; lean_object* v___x_11795_; lean_object* v___x_11797_; 
v_path_11787_ = lean_ctor_get(v_val_11779_, 1);
v___x_11788_ = 1;
v___x_11789_ = l_Lean_Name_toString(v_name_11767_, v___x_11788_);
v___x_11790_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___lam__0___closed__0));
v___x_11791_ = lean_string_append(v___x_11789_, v___x_11790_);
v___x_11792_ = lean_string_append(v___x_11791_, v___x_11768_);
v___x_11793_ = l_Lake_BuildTrace_nil(v___x_11792_);
v___x_11794_ = l_Lake_Artifact_trace(v_val_11779_);
v___x_11795_ = l_Lake_BuildTrace_mix(v___x_11793_, v___x_11794_);
if (v_isShared_11786_ == 0)
{
lean_ctor_set(v___x_11785_, 1, v___x_11795_);
v___x_11797_ = v___x_11785_;
goto v_reusejp_11796_;
}
else
{
lean_object* v_reuseFailAlloc_11799_; 
v_reuseFailAlloc_11799_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_11799_, 0, v_log_11780_);
lean_ctor_set(v_reuseFailAlloc_11799_, 1, v___x_11795_);
lean_ctor_set(v_reuseFailAlloc_11799_, 2, v_buildTime_11783_);
lean_ctor_set_uint8(v_reuseFailAlloc_11799_, sizeof(void*)*3, v_action_11781_);
lean_ctor_set_uint8(v_reuseFailAlloc_11799_, sizeof(void*)*3 + 1, v_wantsRebuild_11782_);
v___x_11797_ = v_reuseFailAlloc_11799_;
goto v_reusejp_11796_;
}
v_reusejp_11796_:
{
lean_object* v___x_11798_; 
lean_inc_ref(v_path_11787_);
v___x_11798_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_11798_, 0, v_path_11787_);
lean_ctor_set(v___x_11798_, 1, v___x_11797_);
return v___x_11798_;
}
}
}
else
{
lean_object* v_log_11802_; uint8_t v_action_11803_; uint8_t v_wantsRebuild_11804_; lean_object* v_trace_11805_; lean_object* v_buildTime_11806_; lean_object* v___x_11808_; uint8_t v_isShared_11809_; uint8_t v_isSharedCheck_11818_; 
lean_dec(v_name_11767_);
v_log_11802_ = lean_ctor_get(v___y_11776_, 0);
v_action_11803_ = lean_ctor_get_uint8(v___y_11776_, sizeof(void*)*3);
v_wantsRebuild_11804_ = lean_ctor_get_uint8(v___y_11776_, sizeof(void*)*3 + 1);
v_trace_11805_ = lean_ctor_get(v___y_11776_, 1);
v_buildTime_11806_ = lean_ctor_get(v___y_11776_, 2);
v_isSharedCheck_11818_ = !lean_is_exclusive(v___y_11776_);
if (v_isSharedCheck_11818_ == 0)
{
v___x_11808_ = v___y_11776_;
v_isShared_11809_ = v_isSharedCheck_11818_;
goto v_resetjp_11807_;
}
else
{
lean_inc(v_buildTime_11806_);
lean_inc(v_trace_11805_);
lean_inc(v_log_11802_);
lean_dec(v___y_11776_);
v___x_11808_ = lean_box(0);
v_isShared_11809_ = v_isSharedCheck_11818_;
goto v_resetjp_11807_;
}
v_resetjp_11807_:
{
uint8_t v___x_11810_; lean_object* v___x_11811_; lean_object* v___x_11812_; lean_object* v___x_11813_; lean_object* v___x_11815_; 
v___x_11810_ = 3;
v___x_11811_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_11811_, 0, v___x_11769_);
lean_ctor_set_uint8(v___x_11811_, sizeof(void*)*1, v___x_11810_);
v___x_11812_ = lean_array_get_size(v_log_11802_);
v___x_11813_ = lean_array_push(v_log_11802_, v___x_11811_);
if (v_isShared_11809_ == 0)
{
lean_ctor_set(v___x_11808_, 0, v___x_11813_);
v___x_11815_ = v___x_11808_;
goto v_reusejp_11814_;
}
else
{
lean_object* v_reuseFailAlloc_11817_; 
v_reuseFailAlloc_11817_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_11817_, 0, v___x_11813_);
lean_ctor_set(v_reuseFailAlloc_11817_, 1, v_trace_11805_);
lean_ctor_set(v_reuseFailAlloc_11817_, 2, v_buildTime_11806_);
lean_ctor_set_uint8(v_reuseFailAlloc_11817_, sizeof(void*)*3, v_action_11803_);
lean_ctor_set_uint8(v_reuseFailAlloc_11817_, sizeof(void*)*3 + 1, v_wantsRebuild_11804_);
v___x_11815_ = v_reuseFailAlloc_11817_;
goto v_reusejp_11814_;
}
v_reusejp_11814_:
{
lean_object* v___x_11816_; 
v___x_11816_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_11816_, 0, v___x_11812_);
lean_ctor_set(v___x_11816_, 1, v___x_11815_);
return v___x_11816_;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_oleanServerFacetConfig___lam__0___boxed(lean_object* v_name_11819_, lean_object* v___x_11820_, lean_object* v___x_11821_, lean_object* v_arts_11822_, lean_object* v___y_11823_, lean_object* v___y_11824_, lean_object* v___y_11825_, lean_object* v___y_11826_, lean_object* v___y_11827_, lean_object* v___y_11828_, lean_object* v___y_11829_){
_start:
{
lean_object* v_res_11830_; 
v_res_11830_ = l_Lake_Module_oleanServerFacetConfig___lam__0(v_name_11819_, v___x_11820_, v___x_11821_, v_arts_11822_, v___y_11823_, v___y_11824_, v___y_11825_, v___y_11826_, v___y_11827_, v___y_11828_);
lean_dec_ref(v___y_11827_);
lean_dec(v___y_11826_);
lean_dec(v___y_11825_);
lean_dec(v___y_11824_);
lean_dec_ref(v___y_11823_);
lean_dec_ref(v_arts_11822_);
lean_dec_ref(v___x_11820_);
return v_res_11830_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_oleanServerFacetConfig___lam__1(lean_object* v___x_11831_, lean_object* v___x_11832_, lean_object* v___x_11833_, lean_object* v___x_11834_, lean_object* v___y_11835_, lean_object* v___y_11836_, lean_object* v___y_11837_, lean_object* v___y_11838_, lean_object* v___y_11839_, lean_object* v___y_11840_, lean_object* v___y_11841_){
_start:
{
lean_object* v_lib_11843_; lean_object* v_pkg_11844_; lean_object* v_name_11845_; lean_object* v_keyName_11846_; lean_object* v___x_11847_; lean_object* v___x_11848_; lean_object* v___x_11849_; lean_object* v___x_11850_; 
v_lib_11843_ = lean_ctor_get(v___y_11835_, 0);
v_pkg_11844_ = lean_ctor_get(v_lib_11843_, 0);
v_name_11845_ = lean_ctor_get(v___y_11835_, 1);
lean_inc(v_name_11845_);
v_keyName_11846_ = lean_ctor_get(v_pkg_11844_, 2);
v___x_11847_ = l_Lake_Module_leanArtsFacet;
lean_inc(v_name_11845_);
lean_inc(v_keyName_11846_);
v___x_11848_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_11848_, 0, v_keyName_11846_);
lean_ctor_set(v___x_11848_, 1, v_name_11845_);
v___x_11849_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_11849_, 0, v___x_11848_);
lean_ctor_set(v___x_11849_, 1, v___x_11831_);
lean_ctor_set(v___x_11849_, 2, v___y_11835_);
lean_ctor_set(v___x_11849_, 3, v___x_11847_);
lean_inc_ref(v___y_11836_);
lean_inc_ref(v___y_11840_);
lean_inc(v___y_11839_);
lean_inc(v___y_11838_);
lean_inc(v___y_11837_);
v___x_11850_ = lean_apply_7(v___y_11836_, v___x_11849_, v___y_11837_, v___y_11838_, v___y_11839_, v___y_11840_, v___y_11841_, lean_box(0));
if (lean_obj_tag(v___x_11850_) == 0)
{
lean_object* v_a_11851_; lean_object* v_a_11852_; lean_object* v___x_11854_; uint8_t v_isShared_11855_; uint8_t v_isSharedCheck_11864_; 
v_a_11851_ = lean_ctor_get(v___x_11850_, 0);
v_a_11852_ = lean_ctor_get(v___x_11850_, 1);
v_isSharedCheck_11864_ = !lean_is_exclusive(v___x_11850_);
if (v_isSharedCheck_11864_ == 0)
{
v___x_11854_ = v___x_11850_;
v_isShared_11855_ = v_isSharedCheck_11864_;
goto v_resetjp_11853_;
}
else
{
lean_inc(v_a_11852_);
lean_inc(v_a_11851_);
lean_dec(v___x_11850_);
v___x_11854_ = lean_box(0);
v_isShared_11855_ = v_isSharedCheck_11864_;
goto v_resetjp_11853_;
}
v_resetjp_11853_:
{
lean_object* v___f_11856_; lean_object* v___x_11857_; uint8_t v___x_11858_; lean_object* v___x_11859_; lean_object* v___x_11860_; lean_object* v___x_11862_; 
v___f_11856_ = lean_alloc_closure((void*)(l_Lake_Module_oleanServerFacetConfig___lam__0___boxed), 11, 3);
lean_closure_set(v___f_11856_, 0, v_name_11845_);
lean_closure_set(v___f_11856_, 1, v___x_11832_);
lean_closure_set(v___f_11856_, 2, v___x_11833_);
v___x_11857_ = lean_unsigned_to_nat(0u);
v___x_11858_ = 1;
v___x_11859_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_11860_ = l_Lake_Job_mapM___redArg(v___x_11834_, v_a_11851_, v___f_11856_, v___x_11857_, v___x_11858_, v___y_11836_, v___y_11837_, v___y_11838_, v___y_11839_, v___y_11840_, v___x_11859_);
if (v_isShared_11855_ == 0)
{
lean_ctor_set(v___x_11854_, 0, v___x_11860_);
v___x_11862_ = v___x_11854_;
goto v_reusejp_11861_;
}
else
{
lean_object* v_reuseFailAlloc_11863_; 
v_reuseFailAlloc_11863_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_11863_, 0, v___x_11860_);
lean_ctor_set(v_reuseFailAlloc_11863_, 1, v_a_11852_);
v___x_11862_ = v_reuseFailAlloc_11863_;
goto v_reusejp_11861_;
}
v_reusejp_11861_:
{
return v___x_11862_;
}
}
}
else
{
lean_object* v_a_11865_; lean_object* v_a_11866_; lean_object* v___x_11868_; uint8_t v_isShared_11869_; uint8_t v_isSharedCheck_11873_; 
lean_dec(v_name_11845_);
lean_dec_ref(v___y_11840_);
lean_dec(v___y_11839_);
lean_dec(v___y_11838_);
lean_dec(v___y_11837_);
lean_dec_ref(v___y_11836_);
lean_dec(v___x_11834_);
lean_dec_ref(v___x_11833_);
lean_dec_ref(v___x_11832_);
v_a_11865_ = lean_ctor_get(v___x_11850_, 0);
v_a_11866_ = lean_ctor_get(v___x_11850_, 1);
v_isSharedCheck_11873_ = !lean_is_exclusive(v___x_11850_);
if (v_isSharedCheck_11873_ == 0)
{
v___x_11868_ = v___x_11850_;
v_isShared_11869_ = v_isSharedCheck_11873_;
goto v_resetjp_11867_;
}
else
{
lean_inc(v_a_11866_);
lean_inc(v_a_11865_);
lean_dec(v___x_11850_);
v___x_11868_ = lean_box(0);
v_isShared_11869_ = v_isSharedCheck_11873_;
goto v_resetjp_11867_;
}
v_resetjp_11867_:
{
lean_object* v___x_11871_; 
if (v_isShared_11869_ == 0)
{
v___x_11871_ = v___x_11868_;
goto v_reusejp_11870_;
}
else
{
lean_object* v_reuseFailAlloc_11872_; 
v_reuseFailAlloc_11872_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_11872_, 0, v_a_11865_);
lean_ctor_set(v_reuseFailAlloc_11872_, 1, v_a_11866_);
v___x_11871_ = v_reuseFailAlloc_11872_;
goto v_reusejp_11870_;
}
v_reusejp_11870_:
{
return v___x_11871_;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_oleanServerFacetConfig___lam__1___boxed(lean_object* v___x_11874_, lean_object* v___x_11875_, lean_object* v___x_11876_, lean_object* v___x_11877_, lean_object* v___y_11878_, lean_object* v___y_11879_, lean_object* v___y_11880_, lean_object* v___y_11881_, lean_object* v___y_11882_, lean_object* v___y_11883_, lean_object* v___y_11884_, lean_object* v___y_11885_){
_start:
{
lean_object* v_res_11886_; 
v_res_11886_ = l_Lake_Module_oleanServerFacetConfig___lam__1(v___x_11874_, v___x_11875_, v___x_11876_, v___x_11877_, v___y_11878_, v___y_11879_, v___y_11880_, v___y_11881_, v___y_11882_, v___y_11883_, v___y_11884_);
return v_res_11886_;
}
}
static lean_object* _init_l_Lake_Module_oleanServerFacetConfig___closed__0(void){
_start:
{
lean_object* v___x_11887_; lean_object* v___x_11888_; lean_object* v___x_11889_; lean_object* v___x_11890_; lean_object* v___f_11891_; 
v___x_11887_ = l_Lake_instDataKindFilePath;
v___x_11888_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_noServerOLeanError___closed__0));
v___x_11889_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__3));
v___x_11890_ = l_Lake_Module_keyword;
v___f_11891_ = lean_alloc_closure((void*)(l_Lake_Module_oleanServerFacetConfig___lam__1___boxed), 12, 4);
lean_closure_set(v___f_11891_, 0, v___x_11890_);
lean_closure_set(v___f_11891_, 1, v___x_11889_);
lean_closure_set(v___f_11891_, 2, v___x_11888_);
lean_closure_set(v___f_11891_, 3, v___x_11887_);
return v___f_11891_;
}
}
static lean_object* _init_l_Lake_Module_oleanServerFacetConfig___closed__1(void){
_start:
{
lean_object* v___f_11892_; uint8_t v___x_11893_; lean_object* v___x_11894_; lean_object* v___f_11895_; lean_object* v___x_11896_; lean_object* v___x_11897_; 
v___f_11892_ = ((lean_object*)(l_Lake_Module_leanFacetConfig___closed__0));
v___x_11893_ = 1;
v___x_11894_ = l_Lake_instDataKindFilePath;
v___f_11895_ = lean_obj_once(&l_Lake_Module_oleanServerFacetConfig___closed__0, &l_Lake_Module_oleanServerFacetConfig___closed__0_once, _init_l_Lake_Module_oleanServerFacetConfig___closed__0);
v___x_11896_ = l_Lake_Module_keyword;
v___x_11897_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_11897_, 0, v___x_11896_);
lean_ctor_set(v___x_11897_, 1, v___f_11895_);
lean_ctor_set(v___x_11897_, 2, v___x_11894_);
lean_ctor_set(v___x_11897_, 3, v___f_11892_);
lean_ctor_set_uint8(v___x_11897_, sizeof(void*)*4, v___x_11893_);
lean_ctor_set_uint8(v___x_11897_, sizeof(void*)*4 + 1, v___x_11893_);
return v___x_11897_;
}
}
static lean_object* _init_l_Lake_Module_oleanServerFacetConfig(void){
_start:
{
lean_object* v___x_11898_; 
v___x_11898_ = lean_obj_once(&l_Lake_Module_oleanServerFacetConfig___closed__1, &l_Lake_Module_oleanServerFacetConfig___closed__1_once, _init_l_Lake_Module_oleanServerFacetConfig___closed__1);
return v___x_11898_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_oleanPrivateFacetConfig___lam__0(lean_object* v_name_11899_, lean_object* v___x_11900_, lean_object* v___x_11901_, lean_object* v_arts_11902_, lean_object* v___y_11903_, lean_object* v___y_11904_, lean_object* v___y_11905_, lean_object* v___y_11906_, lean_object* v___y_11907_, lean_object* v___y_11908_){
_start:
{
lean_object* v_oleanPrivate_x3f_11910_; 
v_oleanPrivate_x3f_11910_ = lean_ctor_get(v_arts_11902_, 2);
if (lean_obj_tag(v_oleanPrivate_x3f_11910_) == 1)
{
lean_object* v_val_11911_; lean_object* v_log_11912_; uint8_t v_action_11913_; uint8_t v_wantsRebuild_11914_; lean_object* v_buildTime_11915_; lean_object* v___x_11917_; uint8_t v_isShared_11918_; uint8_t v_isSharedCheck_11932_; 
lean_dec_ref(v___x_11901_);
v_val_11911_ = lean_ctor_get(v_oleanPrivate_x3f_11910_, 0);
v_log_11912_ = lean_ctor_get(v___y_11908_, 0);
v_action_11913_ = lean_ctor_get_uint8(v___y_11908_, sizeof(void*)*3);
v_wantsRebuild_11914_ = lean_ctor_get_uint8(v___y_11908_, sizeof(void*)*3 + 1);
v_buildTime_11915_ = lean_ctor_get(v___y_11908_, 2);
v_isSharedCheck_11932_ = !lean_is_exclusive(v___y_11908_);
if (v_isSharedCheck_11932_ == 0)
{
lean_object* v_unused_11933_; 
v_unused_11933_ = lean_ctor_get(v___y_11908_, 1);
lean_dec(v_unused_11933_);
v___x_11917_ = v___y_11908_;
v_isShared_11918_ = v_isSharedCheck_11932_;
goto v_resetjp_11916_;
}
else
{
lean_inc(v_buildTime_11915_);
lean_inc(v_log_11912_);
lean_dec(v___y_11908_);
v___x_11917_ = lean_box(0);
v_isShared_11918_ = v_isSharedCheck_11932_;
goto v_resetjp_11916_;
}
v_resetjp_11916_:
{
lean_object* v_path_11919_; uint8_t v___x_11920_; lean_object* v___x_11921_; lean_object* v___x_11922_; lean_object* v___x_11923_; lean_object* v___x_11924_; lean_object* v___x_11925_; lean_object* v___x_11926_; lean_object* v___x_11927_; lean_object* v___x_11929_; 
v_path_11919_ = lean_ctor_get(v_val_11911_, 1);
v___x_11920_ = 1;
v___x_11921_ = l_Lean_Name_toString(v_name_11899_, v___x_11920_);
v___x_11922_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___lam__0___closed__0));
v___x_11923_ = lean_string_append(v___x_11921_, v___x_11922_);
v___x_11924_ = lean_string_append(v___x_11923_, v___x_11900_);
v___x_11925_ = l_Lake_BuildTrace_nil(v___x_11924_);
v___x_11926_ = l_Lake_Artifact_trace(v_val_11911_);
v___x_11927_ = l_Lake_BuildTrace_mix(v___x_11925_, v___x_11926_);
if (v_isShared_11918_ == 0)
{
lean_ctor_set(v___x_11917_, 1, v___x_11927_);
v___x_11929_ = v___x_11917_;
goto v_reusejp_11928_;
}
else
{
lean_object* v_reuseFailAlloc_11931_; 
v_reuseFailAlloc_11931_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_11931_, 0, v_log_11912_);
lean_ctor_set(v_reuseFailAlloc_11931_, 1, v___x_11927_);
lean_ctor_set(v_reuseFailAlloc_11931_, 2, v_buildTime_11915_);
lean_ctor_set_uint8(v_reuseFailAlloc_11931_, sizeof(void*)*3, v_action_11913_);
lean_ctor_set_uint8(v_reuseFailAlloc_11931_, sizeof(void*)*3 + 1, v_wantsRebuild_11914_);
v___x_11929_ = v_reuseFailAlloc_11931_;
goto v_reusejp_11928_;
}
v_reusejp_11928_:
{
lean_object* v___x_11930_; 
lean_inc_ref(v_path_11919_);
v___x_11930_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_11930_, 0, v_path_11919_);
lean_ctor_set(v___x_11930_, 1, v___x_11929_);
return v___x_11930_;
}
}
}
else
{
lean_object* v_log_11934_; uint8_t v_action_11935_; uint8_t v_wantsRebuild_11936_; lean_object* v_trace_11937_; lean_object* v_buildTime_11938_; lean_object* v___x_11940_; uint8_t v_isShared_11941_; uint8_t v_isSharedCheck_11950_; 
lean_dec(v_name_11899_);
v_log_11934_ = lean_ctor_get(v___y_11908_, 0);
v_action_11935_ = lean_ctor_get_uint8(v___y_11908_, sizeof(void*)*3);
v_wantsRebuild_11936_ = lean_ctor_get_uint8(v___y_11908_, sizeof(void*)*3 + 1);
v_trace_11937_ = lean_ctor_get(v___y_11908_, 1);
v_buildTime_11938_ = lean_ctor_get(v___y_11908_, 2);
v_isSharedCheck_11950_ = !lean_is_exclusive(v___y_11908_);
if (v_isSharedCheck_11950_ == 0)
{
v___x_11940_ = v___y_11908_;
v_isShared_11941_ = v_isSharedCheck_11950_;
goto v_resetjp_11939_;
}
else
{
lean_inc(v_buildTime_11938_);
lean_inc(v_trace_11937_);
lean_inc(v_log_11934_);
lean_dec(v___y_11908_);
v___x_11940_ = lean_box(0);
v_isShared_11941_ = v_isSharedCheck_11950_;
goto v_resetjp_11939_;
}
v_resetjp_11939_:
{
uint8_t v___x_11942_; lean_object* v___x_11943_; lean_object* v___x_11944_; lean_object* v___x_11945_; lean_object* v___x_11947_; 
v___x_11942_ = 3;
v___x_11943_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_11943_, 0, v___x_11901_);
lean_ctor_set_uint8(v___x_11943_, sizeof(void*)*1, v___x_11942_);
v___x_11944_ = lean_array_get_size(v_log_11934_);
v___x_11945_ = lean_array_push(v_log_11934_, v___x_11943_);
if (v_isShared_11941_ == 0)
{
lean_ctor_set(v___x_11940_, 0, v___x_11945_);
v___x_11947_ = v___x_11940_;
goto v_reusejp_11946_;
}
else
{
lean_object* v_reuseFailAlloc_11949_; 
v_reuseFailAlloc_11949_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_11949_, 0, v___x_11945_);
lean_ctor_set(v_reuseFailAlloc_11949_, 1, v_trace_11937_);
lean_ctor_set(v_reuseFailAlloc_11949_, 2, v_buildTime_11938_);
lean_ctor_set_uint8(v_reuseFailAlloc_11949_, sizeof(void*)*3, v_action_11935_);
lean_ctor_set_uint8(v_reuseFailAlloc_11949_, sizeof(void*)*3 + 1, v_wantsRebuild_11936_);
v___x_11947_ = v_reuseFailAlloc_11949_;
goto v_reusejp_11946_;
}
v_reusejp_11946_:
{
lean_object* v___x_11948_; 
v___x_11948_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_11948_, 0, v___x_11944_);
lean_ctor_set(v___x_11948_, 1, v___x_11947_);
return v___x_11948_;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_oleanPrivateFacetConfig___lam__0___boxed(lean_object* v_name_11951_, lean_object* v___x_11952_, lean_object* v___x_11953_, lean_object* v_arts_11954_, lean_object* v___y_11955_, lean_object* v___y_11956_, lean_object* v___y_11957_, lean_object* v___y_11958_, lean_object* v___y_11959_, lean_object* v___y_11960_, lean_object* v___y_11961_){
_start:
{
lean_object* v_res_11962_; 
v_res_11962_ = l_Lake_Module_oleanPrivateFacetConfig___lam__0(v_name_11951_, v___x_11952_, v___x_11953_, v_arts_11954_, v___y_11955_, v___y_11956_, v___y_11957_, v___y_11958_, v___y_11959_, v___y_11960_);
lean_dec_ref(v___y_11959_);
lean_dec(v___y_11958_);
lean_dec(v___y_11957_);
lean_dec(v___y_11956_);
lean_dec_ref(v___y_11955_);
lean_dec_ref(v_arts_11954_);
lean_dec_ref(v___x_11952_);
return v_res_11962_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_oleanPrivateFacetConfig___lam__1(lean_object* v___x_11963_, lean_object* v___x_11964_, lean_object* v___x_11965_, lean_object* v___x_11966_, lean_object* v___y_11967_, lean_object* v___y_11968_, lean_object* v___y_11969_, lean_object* v___y_11970_, lean_object* v___y_11971_, lean_object* v___y_11972_, lean_object* v___y_11973_){
_start:
{
lean_object* v_lib_11975_; lean_object* v_pkg_11976_; lean_object* v_name_11977_; lean_object* v_keyName_11978_; lean_object* v___x_11979_; lean_object* v___x_11980_; lean_object* v___x_11981_; lean_object* v___x_11982_; 
v_lib_11975_ = lean_ctor_get(v___y_11967_, 0);
v_pkg_11976_ = lean_ctor_get(v_lib_11975_, 0);
v_name_11977_ = lean_ctor_get(v___y_11967_, 1);
lean_inc(v_name_11977_);
v_keyName_11978_ = lean_ctor_get(v_pkg_11976_, 2);
v___x_11979_ = l_Lake_Module_leanArtsFacet;
lean_inc(v_name_11977_);
lean_inc(v_keyName_11978_);
v___x_11980_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_11980_, 0, v_keyName_11978_);
lean_ctor_set(v___x_11980_, 1, v_name_11977_);
v___x_11981_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_11981_, 0, v___x_11980_);
lean_ctor_set(v___x_11981_, 1, v___x_11963_);
lean_ctor_set(v___x_11981_, 2, v___y_11967_);
lean_ctor_set(v___x_11981_, 3, v___x_11979_);
lean_inc_ref(v___y_11968_);
lean_inc_ref(v___y_11972_);
lean_inc(v___y_11971_);
lean_inc(v___y_11970_);
lean_inc(v___y_11969_);
v___x_11982_ = lean_apply_7(v___y_11968_, v___x_11981_, v___y_11969_, v___y_11970_, v___y_11971_, v___y_11972_, v___y_11973_, lean_box(0));
if (lean_obj_tag(v___x_11982_) == 0)
{
lean_object* v_a_11983_; lean_object* v_a_11984_; lean_object* v___x_11986_; uint8_t v_isShared_11987_; uint8_t v_isSharedCheck_11996_; 
v_a_11983_ = lean_ctor_get(v___x_11982_, 0);
v_a_11984_ = lean_ctor_get(v___x_11982_, 1);
v_isSharedCheck_11996_ = !lean_is_exclusive(v___x_11982_);
if (v_isSharedCheck_11996_ == 0)
{
v___x_11986_ = v___x_11982_;
v_isShared_11987_ = v_isSharedCheck_11996_;
goto v_resetjp_11985_;
}
else
{
lean_inc(v_a_11984_);
lean_inc(v_a_11983_);
lean_dec(v___x_11982_);
v___x_11986_ = lean_box(0);
v_isShared_11987_ = v_isSharedCheck_11996_;
goto v_resetjp_11985_;
}
v_resetjp_11985_:
{
lean_object* v___f_11988_; lean_object* v___x_11989_; uint8_t v___x_11990_; lean_object* v___x_11991_; lean_object* v___x_11992_; lean_object* v___x_11994_; 
v___f_11988_ = lean_alloc_closure((void*)(l_Lake_Module_oleanPrivateFacetConfig___lam__0___boxed), 11, 3);
lean_closure_set(v___f_11988_, 0, v_name_11977_);
lean_closure_set(v___f_11988_, 1, v___x_11964_);
lean_closure_set(v___f_11988_, 2, v___x_11965_);
v___x_11989_ = lean_unsigned_to_nat(0u);
v___x_11990_ = 1;
v___x_11991_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_11992_ = l_Lake_Job_mapM___redArg(v___x_11966_, v_a_11983_, v___f_11988_, v___x_11989_, v___x_11990_, v___y_11968_, v___y_11969_, v___y_11970_, v___y_11971_, v___y_11972_, v___x_11991_);
if (v_isShared_11987_ == 0)
{
lean_ctor_set(v___x_11986_, 0, v___x_11992_);
v___x_11994_ = v___x_11986_;
goto v_reusejp_11993_;
}
else
{
lean_object* v_reuseFailAlloc_11995_; 
v_reuseFailAlloc_11995_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_11995_, 0, v___x_11992_);
lean_ctor_set(v_reuseFailAlloc_11995_, 1, v_a_11984_);
v___x_11994_ = v_reuseFailAlloc_11995_;
goto v_reusejp_11993_;
}
v_reusejp_11993_:
{
return v___x_11994_;
}
}
}
else
{
lean_object* v_a_11997_; lean_object* v_a_11998_; lean_object* v___x_12000_; uint8_t v_isShared_12001_; uint8_t v_isSharedCheck_12005_; 
lean_dec(v_name_11977_);
lean_dec_ref(v___y_11972_);
lean_dec(v___y_11971_);
lean_dec(v___y_11970_);
lean_dec(v___y_11969_);
lean_dec_ref(v___y_11968_);
lean_dec(v___x_11966_);
lean_dec_ref(v___x_11965_);
lean_dec_ref(v___x_11964_);
v_a_11997_ = lean_ctor_get(v___x_11982_, 0);
v_a_11998_ = lean_ctor_get(v___x_11982_, 1);
v_isSharedCheck_12005_ = !lean_is_exclusive(v___x_11982_);
if (v_isSharedCheck_12005_ == 0)
{
v___x_12000_ = v___x_11982_;
v_isShared_12001_ = v_isSharedCheck_12005_;
goto v_resetjp_11999_;
}
else
{
lean_inc(v_a_11998_);
lean_inc(v_a_11997_);
lean_dec(v___x_11982_);
v___x_12000_ = lean_box(0);
v_isShared_12001_ = v_isSharedCheck_12005_;
goto v_resetjp_11999_;
}
v_resetjp_11999_:
{
lean_object* v___x_12003_; 
if (v_isShared_12001_ == 0)
{
v___x_12003_ = v___x_12000_;
goto v_reusejp_12002_;
}
else
{
lean_object* v_reuseFailAlloc_12004_; 
v_reuseFailAlloc_12004_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_12004_, 0, v_a_11997_);
lean_ctor_set(v_reuseFailAlloc_12004_, 1, v_a_11998_);
v___x_12003_ = v_reuseFailAlloc_12004_;
goto v_reusejp_12002_;
}
v_reusejp_12002_:
{
return v___x_12003_;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_oleanPrivateFacetConfig___lam__1___boxed(lean_object* v___x_12006_, lean_object* v___x_12007_, lean_object* v___x_12008_, lean_object* v___x_12009_, lean_object* v___y_12010_, lean_object* v___y_12011_, lean_object* v___y_12012_, lean_object* v___y_12013_, lean_object* v___y_12014_, lean_object* v___y_12015_, lean_object* v___y_12016_, lean_object* v___y_12017_){
_start:
{
lean_object* v_res_12018_; 
v_res_12018_ = l_Lake_Module_oleanPrivateFacetConfig___lam__1(v___x_12006_, v___x_12007_, v___x_12008_, v___x_12009_, v___y_12010_, v___y_12011_, v___y_12012_, v___y_12013_, v___y_12014_, v___y_12015_, v___y_12016_);
return v_res_12018_;
}
}
static lean_object* _init_l_Lake_Module_oleanPrivateFacetConfig___closed__0(void){
_start:
{
lean_object* v___x_12019_; lean_object* v___x_12020_; lean_object* v___x_12021_; lean_object* v___x_12022_; lean_object* v___f_12023_; 
v___x_12019_ = l_Lake_instDataKindFilePath;
v___x_12020_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_noPrivateOLeanError___closed__0));
v___x_12021_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__4));
v___x_12022_ = l_Lake_Module_keyword;
v___f_12023_ = lean_alloc_closure((void*)(l_Lake_Module_oleanPrivateFacetConfig___lam__1___boxed), 12, 4);
lean_closure_set(v___f_12023_, 0, v___x_12022_);
lean_closure_set(v___f_12023_, 1, v___x_12021_);
lean_closure_set(v___f_12023_, 2, v___x_12020_);
lean_closure_set(v___f_12023_, 3, v___x_12019_);
return v___f_12023_;
}
}
static lean_object* _init_l_Lake_Module_oleanPrivateFacetConfig___closed__1(void){
_start:
{
lean_object* v___f_12024_; uint8_t v___x_12025_; lean_object* v___x_12026_; lean_object* v___f_12027_; lean_object* v___x_12028_; lean_object* v___x_12029_; 
v___f_12024_ = ((lean_object*)(l_Lake_Module_leanFacetConfig___closed__0));
v___x_12025_ = 1;
v___x_12026_ = l_Lake_instDataKindFilePath;
v___f_12027_ = lean_obj_once(&l_Lake_Module_oleanPrivateFacetConfig___closed__0, &l_Lake_Module_oleanPrivateFacetConfig___closed__0_once, _init_l_Lake_Module_oleanPrivateFacetConfig___closed__0);
v___x_12028_ = l_Lake_Module_keyword;
v___x_12029_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_12029_, 0, v___x_12028_);
lean_ctor_set(v___x_12029_, 1, v___f_12027_);
lean_ctor_set(v___x_12029_, 2, v___x_12026_);
lean_ctor_set(v___x_12029_, 3, v___f_12024_);
lean_ctor_set_uint8(v___x_12029_, sizeof(void*)*4, v___x_12025_);
lean_ctor_set_uint8(v___x_12029_, sizeof(void*)*4 + 1, v___x_12025_);
return v___x_12029_;
}
}
static lean_object* _init_l_Lake_Module_oleanPrivateFacetConfig(void){
_start:
{
lean_object* v___x_12030_; 
v___x_12030_ = lean_obj_once(&l_Lake_Module_oleanPrivateFacetConfig___closed__1, &l_Lake_Module_oleanPrivateFacetConfig___closed__1_once, _init_l_Lake_Module_oleanPrivateFacetConfig___closed__1);
return v___x_12030_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_ileanFacetConfig___lam__0(lean_object* v_name_12032_, lean_object* v_arts_12033_, lean_object* v___y_12034_, lean_object* v___y_12035_, lean_object* v___y_12036_, lean_object* v___y_12037_, lean_object* v___y_12038_, lean_object* v___y_12039_){
_start:
{
lean_object* v_ilean_12041_; lean_object* v_log_12042_; uint8_t v_action_12043_; uint8_t v_wantsRebuild_12044_; lean_object* v_buildTime_12045_; lean_object* v___x_12047_; uint8_t v_isShared_12048_; uint8_t v_isSharedCheck_12061_; 
v_ilean_12041_ = lean_ctor_get(v_arts_12033_, 3);
v_log_12042_ = lean_ctor_get(v___y_12039_, 0);
v_action_12043_ = lean_ctor_get_uint8(v___y_12039_, sizeof(void*)*3);
v_wantsRebuild_12044_ = lean_ctor_get_uint8(v___y_12039_, sizeof(void*)*3 + 1);
v_buildTime_12045_ = lean_ctor_get(v___y_12039_, 2);
v_isSharedCheck_12061_ = !lean_is_exclusive(v___y_12039_);
if (v_isSharedCheck_12061_ == 0)
{
lean_object* v_unused_12062_; 
v_unused_12062_ = lean_ctor_get(v___y_12039_, 1);
lean_dec(v_unused_12062_);
v___x_12047_ = v___y_12039_;
v_isShared_12048_ = v_isSharedCheck_12061_;
goto v_resetjp_12046_;
}
else
{
lean_inc(v_buildTime_12045_);
lean_inc(v_log_12042_);
lean_dec(v___y_12039_);
v___x_12047_ = lean_box(0);
v_isShared_12048_ = v_isSharedCheck_12061_;
goto v_resetjp_12046_;
}
v_resetjp_12046_:
{
lean_object* v_path_12049_; uint8_t v___x_12050_; lean_object* v___x_12051_; lean_object* v___x_12052_; lean_object* v___x_12053_; lean_object* v___x_12054_; lean_object* v___x_12055_; lean_object* v___x_12056_; lean_object* v___x_12058_; 
v_path_12049_ = lean_ctor_get(v_ilean_12041_, 1);
v___x_12050_ = 1;
v___x_12051_ = l_Lean_Name_toString(v_name_12032_, v___x_12050_);
v___x_12052_ = ((lean_object*)(l_Lake_Module_ileanFacetConfig___lam__0___closed__0));
v___x_12053_ = lean_string_append(v___x_12051_, v___x_12052_);
v___x_12054_ = l_Lake_BuildTrace_nil(v___x_12053_);
v___x_12055_ = l_Lake_Artifact_trace(v_ilean_12041_);
v___x_12056_ = l_Lake_BuildTrace_mix(v___x_12054_, v___x_12055_);
if (v_isShared_12048_ == 0)
{
lean_ctor_set(v___x_12047_, 1, v___x_12056_);
v___x_12058_ = v___x_12047_;
goto v_reusejp_12057_;
}
else
{
lean_object* v_reuseFailAlloc_12060_; 
v_reuseFailAlloc_12060_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_12060_, 0, v_log_12042_);
lean_ctor_set(v_reuseFailAlloc_12060_, 1, v___x_12056_);
lean_ctor_set(v_reuseFailAlloc_12060_, 2, v_buildTime_12045_);
lean_ctor_set_uint8(v_reuseFailAlloc_12060_, sizeof(void*)*3, v_action_12043_);
lean_ctor_set_uint8(v_reuseFailAlloc_12060_, sizeof(void*)*3 + 1, v_wantsRebuild_12044_);
v___x_12058_ = v_reuseFailAlloc_12060_;
goto v_reusejp_12057_;
}
v_reusejp_12057_:
{
lean_object* v___x_12059_; 
lean_inc_ref(v_path_12049_);
v___x_12059_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_12059_, 0, v_path_12049_);
lean_ctor_set(v___x_12059_, 1, v___x_12058_);
return v___x_12059_;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_ileanFacetConfig___lam__0___boxed(lean_object* v_name_12063_, lean_object* v_arts_12064_, lean_object* v___y_12065_, lean_object* v___y_12066_, lean_object* v___y_12067_, lean_object* v___y_12068_, lean_object* v___y_12069_, lean_object* v___y_12070_, lean_object* v___y_12071_){
_start:
{
lean_object* v_res_12072_; 
v_res_12072_ = l_Lake_Module_ileanFacetConfig___lam__0(v_name_12063_, v_arts_12064_, v___y_12065_, v___y_12066_, v___y_12067_, v___y_12068_, v___y_12069_, v___y_12070_);
lean_dec_ref(v___y_12069_);
lean_dec(v___y_12068_);
lean_dec(v___y_12067_);
lean_dec(v___y_12066_);
lean_dec_ref(v___y_12065_);
lean_dec_ref(v_arts_12064_);
return v_res_12072_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_ileanFacetConfig___lam__1(lean_object* v___x_12073_, lean_object* v_mod_12074_, lean_object* v___y_12075_, lean_object* v___y_12076_, lean_object* v___y_12077_, lean_object* v___y_12078_, lean_object* v___y_12079_, lean_object* v___y_12080_){
_start:
{
lean_object* v_lib_12082_; lean_object* v_pkg_12083_; lean_object* v_name_12084_; lean_object* v_keyName_12085_; lean_object* v___x_12086_; lean_object* v___x_12087_; lean_object* v___x_12088_; lean_object* v___x_12089_; lean_object* v___x_12090_; 
v_lib_12082_ = lean_ctor_get(v_mod_12074_, 0);
v_pkg_12083_ = lean_ctor_get(v_lib_12082_, 0);
v_name_12084_ = lean_ctor_get(v_mod_12074_, 1);
lean_inc(v_name_12084_);
v_keyName_12085_ = lean_ctor_get(v_pkg_12083_, 2);
v___x_12086_ = l_Lake_Module_leanArtsFacet;
lean_inc(v_name_12084_);
lean_inc(v_keyName_12085_);
v___x_12087_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_12087_, 0, v_keyName_12085_);
lean_ctor_set(v___x_12087_, 1, v_name_12084_);
v___x_12088_ = l_Lake_Module_keyword;
v___x_12089_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_12089_, 0, v___x_12087_);
lean_ctor_set(v___x_12089_, 1, v___x_12088_);
lean_ctor_set(v___x_12089_, 2, v_mod_12074_);
lean_ctor_set(v___x_12089_, 3, v___x_12086_);
lean_inc_ref(v___y_12075_);
lean_inc_ref(v___y_12079_);
lean_inc(v___y_12078_);
lean_inc(v___y_12077_);
lean_inc(v___y_12076_);
v___x_12090_ = lean_apply_7(v___y_12075_, v___x_12089_, v___y_12076_, v___y_12077_, v___y_12078_, v___y_12079_, v___y_12080_, lean_box(0));
if (lean_obj_tag(v___x_12090_) == 0)
{
lean_object* v_a_12091_; lean_object* v_a_12092_; lean_object* v___x_12094_; uint8_t v_isShared_12095_; uint8_t v_isSharedCheck_12104_; 
v_a_12091_ = lean_ctor_get(v___x_12090_, 0);
v_a_12092_ = lean_ctor_get(v___x_12090_, 1);
v_isSharedCheck_12104_ = !lean_is_exclusive(v___x_12090_);
if (v_isSharedCheck_12104_ == 0)
{
v___x_12094_ = v___x_12090_;
v_isShared_12095_ = v_isSharedCheck_12104_;
goto v_resetjp_12093_;
}
else
{
lean_inc(v_a_12092_);
lean_inc(v_a_12091_);
lean_dec(v___x_12090_);
v___x_12094_ = lean_box(0);
v_isShared_12095_ = v_isSharedCheck_12104_;
goto v_resetjp_12093_;
}
v_resetjp_12093_:
{
lean_object* v___f_12096_; lean_object* v___x_12097_; uint8_t v___x_12098_; lean_object* v___x_12099_; lean_object* v___x_12100_; lean_object* v___x_12102_; 
v___f_12096_ = lean_alloc_closure((void*)(l_Lake_Module_ileanFacetConfig___lam__0___boxed), 9, 1);
lean_closure_set(v___f_12096_, 0, v_name_12084_);
v___x_12097_ = lean_unsigned_to_nat(0u);
v___x_12098_ = 1;
v___x_12099_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_12100_ = l_Lake_Job_mapM___redArg(v___x_12073_, v_a_12091_, v___f_12096_, v___x_12097_, v___x_12098_, v___y_12075_, v___y_12076_, v___y_12077_, v___y_12078_, v___y_12079_, v___x_12099_);
if (v_isShared_12095_ == 0)
{
lean_ctor_set(v___x_12094_, 0, v___x_12100_);
v___x_12102_ = v___x_12094_;
goto v_reusejp_12101_;
}
else
{
lean_object* v_reuseFailAlloc_12103_; 
v_reuseFailAlloc_12103_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_12103_, 0, v___x_12100_);
lean_ctor_set(v_reuseFailAlloc_12103_, 1, v_a_12092_);
v___x_12102_ = v_reuseFailAlloc_12103_;
goto v_reusejp_12101_;
}
v_reusejp_12101_:
{
return v___x_12102_;
}
}
}
else
{
lean_object* v_a_12105_; lean_object* v_a_12106_; lean_object* v___x_12108_; uint8_t v_isShared_12109_; uint8_t v_isSharedCheck_12113_; 
lean_dec(v_name_12084_);
lean_dec_ref(v___y_12079_);
lean_dec(v___y_12078_);
lean_dec(v___y_12077_);
lean_dec(v___y_12076_);
lean_dec_ref(v___y_12075_);
lean_dec(v___x_12073_);
v_a_12105_ = lean_ctor_get(v___x_12090_, 0);
v_a_12106_ = lean_ctor_get(v___x_12090_, 1);
v_isSharedCheck_12113_ = !lean_is_exclusive(v___x_12090_);
if (v_isSharedCheck_12113_ == 0)
{
v___x_12108_ = v___x_12090_;
v_isShared_12109_ = v_isSharedCheck_12113_;
goto v_resetjp_12107_;
}
else
{
lean_inc(v_a_12106_);
lean_inc(v_a_12105_);
lean_dec(v___x_12090_);
v___x_12108_ = lean_box(0);
v_isShared_12109_ = v_isSharedCheck_12113_;
goto v_resetjp_12107_;
}
v_resetjp_12107_:
{
lean_object* v___x_12111_; 
if (v_isShared_12109_ == 0)
{
v___x_12111_ = v___x_12108_;
goto v_reusejp_12110_;
}
else
{
lean_object* v_reuseFailAlloc_12112_; 
v_reuseFailAlloc_12112_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_12112_, 0, v_a_12105_);
lean_ctor_set(v_reuseFailAlloc_12112_, 1, v_a_12106_);
v___x_12111_ = v_reuseFailAlloc_12112_;
goto v_reusejp_12110_;
}
v_reusejp_12110_:
{
return v___x_12111_;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_ileanFacetConfig___lam__1___boxed(lean_object* v___x_12114_, lean_object* v_mod_12115_, lean_object* v___y_12116_, lean_object* v___y_12117_, lean_object* v___y_12118_, lean_object* v___y_12119_, lean_object* v___y_12120_, lean_object* v___y_12121_, lean_object* v___y_12122_){
_start:
{
lean_object* v_res_12123_; 
v_res_12123_ = l_Lake_Module_ileanFacetConfig___lam__1(v___x_12114_, v_mod_12115_, v___y_12116_, v___y_12117_, v___y_12118_, v___y_12119_, v___y_12120_, v___y_12121_);
return v_res_12123_;
}
}
static lean_object* _init_l_Lake_Module_ileanFacetConfig___closed__0(void){
_start:
{
lean_object* v___x_12124_; lean_object* v___f_12125_; 
v___x_12124_ = l_Lake_instDataKindFilePath;
v___f_12125_ = lean_alloc_closure((void*)(l_Lake_Module_ileanFacetConfig___lam__1___boxed), 9, 1);
lean_closure_set(v___f_12125_, 0, v___x_12124_);
return v___f_12125_;
}
}
static lean_object* _init_l_Lake_Module_ileanFacetConfig___closed__1(void){
_start:
{
lean_object* v___f_12126_; uint8_t v___x_12127_; lean_object* v___x_12128_; lean_object* v___f_12129_; lean_object* v___x_12130_; lean_object* v___x_12131_; 
v___f_12126_ = ((lean_object*)(l_Lake_Module_leanFacetConfig___closed__0));
v___x_12127_ = 1;
v___x_12128_ = l_Lake_instDataKindFilePath;
v___f_12129_ = lean_obj_once(&l_Lake_Module_ileanFacetConfig___closed__0, &l_Lake_Module_ileanFacetConfig___closed__0_once, _init_l_Lake_Module_ileanFacetConfig___closed__0);
v___x_12130_ = l_Lake_Module_keyword;
v___x_12131_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_12131_, 0, v___x_12130_);
lean_ctor_set(v___x_12131_, 1, v___f_12129_);
lean_ctor_set(v___x_12131_, 2, v___x_12128_);
lean_ctor_set(v___x_12131_, 3, v___f_12126_);
lean_ctor_set_uint8(v___x_12131_, sizeof(void*)*4, v___x_12127_);
lean_ctor_set_uint8(v___x_12131_, sizeof(void*)*4 + 1, v___x_12127_);
return v___x_12131_;
}
}
static lean_object* _init_l_Lake_Module_ileanFacetConfig(void){
_start:
{
lean_object* v___x_12132_; 
v___x_12132_ = lean_obj_once(&l_Lake_Module_ileanFacetConfig___closed__1, &l_Lake_Module_ileanFacetConfig___closed__1_once, _init_l_Lake_Module_ileanFacetConfig___closed__1);
return v___x_12132_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_irFacetConfig___lam__0(lean_object* v_name_12133_, lean_object* v___x_12134_, lean_object* v___x_12135_, lean_object* v_arts_12136_, lean_object* v___y_12137_, lean_object* v___y_12138_, lean_object* v___y_12139_, lean_object* v___y_12140_, lean_object* v___y_12141_, lean_object* v___y_12142_){
_start:
{
lean_object* v_ir_x3f_12144_; 
v_ir_x3f_12144_ = lean_ctor_get(v_arts_12136_, 4);
if (lean_obj_tag(v_ir_x3f_12144_) == 1)
{
lean_object* v_val_12145_; lean_object* v_log_12146_; uint8_t v_action_12147_; uint8_t v_wantsRebuild_12148_; lean_object* v_buildTime_12149_; lean_object* v___x_12151_; uint8_t v_isShared_12152_; uint8_t v_isSharedCheck_12166_; 
lean_dec_ref(v___x_12135_);
v_val_12145_ = lean_ctor_get(v_ir_x3f_12144_, 0);
v_log_12146_ = lean_ctor_get(v___y_12142_, 0);
v_action_12147_ = lean_ctor_get_uint8(v___y_12142_, sizeof(void*)*3);
v_wantsRebuild_12148_ = lean_ctor_get_uint8(v___y_12142_, sizeof(void*)*3 + 1);
v_buildTime_12149_ = lean_ctor_get(v___y_12142_, 2);
v_isSharedCheck_12166_ = !lean_is_exclusive(v___y_12142_);
if (v_isSharedCheck_12166_ == 0)
{
lean_object* v_unused_12167_; 
v_unused_12167_ = lean_ctor_get(v___y_12142_, 1);
lean_dec(v_unused_12167_);
v___x_12151_ = v___y_12142_;
v_isShared_12152_ = v_isSharedCheck_12166_;
goto v_resetjp_12150_;
}
else
{
lean_inc(v_buildTime_12149_);
lean_inc(v_log_12146_);
lean_dec(v___y_12142_);
v___x_12151_ = lean_box(0);
v_isShared_12152_ = v_isSharedCheck_12166_;
goto v_resetjp_12150_;
}
v_resetjp_12150_:
{
lean_object* v_path_12153_; uint8_t v___x_12154_; lean_object* v___x_12155_; lean_object* v___x_12156_; lean_object* v___x_12157_; lean_object* v___x_12158_; lean_object* v___x_12159_; lean_object* v___x_12160_; lean_object* v___x_12161_; lean_object* v___x_12163_; 
v_path_12153_ = lean_ctor_get(v_val_12145_, 1);
v___x_12154_ = 1;
v___x_12155_ = l_Lean_Name_toString(v_name_12133_, v___x_12154_);
v___x_12156_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___lam__0___closed__0));
v___x_12157_ = lean_string_append(v___x_12155_, v___x_12156_);
v___x_12158_ = lean_string_append(v___x_12157_, v___x_12134_);
v___x_12159_ = l_Lake_BuildTrace_nil(v___x_12158_);
v___x_12160_ = l_Lake_Artifact_trace(v_val_12145_);
v___x_12161_ = l_Lake_BuildTrace_mix(v___x_12159_, v___x_12160_);
if (v_isShared_12152_ == 0)
{
lean_ctor_set(v___x_12151_, 1, v___x_12161_);
v___x_12163_ = v___x_12151_;
goto v_reusejp_12162_;
}
else
{
lean_object* v_reuseFailAlloc_12165_; 
v_reuseFailAlloc_12165_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_12165_, 0, v_log_12146_);
lean_ctor_set(v_reuseFailAlloc_12165_, 1, v___x_12161_);
lean_ctor_set(v_reuseFailAlloc_12165_, 2, v_buildTime_12149_);
lean_ctor_set_uint8(v_reuseFailAlloc_12165_, sizeof(void*)*3, v_action_12147_);
lean_ctor_set_uint8(v_reuseFailAlloc_12165_, sizeof(void*)*3 + 1, v_wantsRebuild_12148_);
v___x_12163_ = v_reuseFailAlloc_12165_;
goto v_reusejp_12162_;
}
v_reusejp_12162_:
{
lean_object* v___x_12164_; 
lean_inc_ref(v_path_12153_);
v___x_12164_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_12164_, 0, v_path_12153_);
lean_ctor_set(v___x_12164_, 1, v___x_12163_);
return v___x_12164_;
}
}
}
else
{
lean_object* v_log_12168_; uint8_t v_action_12169_; uint8_t v_wantsRebuild_12170_; lean_object* v_trace_12171_; lean_object* v_buildTime_12172_; lean_object* v___x_12174_; uint8_t v_isShared_12175_; uint8_t v_isSharedCheck_12184_; 
lean_dec(v_name_12133_);
v_log_12168_ = lean_ctor_get(v___y_12142_, 0);
v_action_12169_ = lean_ctor_get_uint8(v___y_12142_, sizeof(void*)*3);
v_wantsRebuild_12170_ = lean_ctor_get_uint8(v___y_12142_, sizeof(void*)*3 + 1);
v_trace_12171_ = lean_ctor_get(v___y_12142_, 1);
v_buildTime_12172_ = lean_ctor_get(v___y_12142_, 2);
v_isSharedCheck_12184_ = !lean_is_exclusive(v___y_12142_);
if (v_isSharedCheck_12184_ == 0)
{
v___x_12174_ = v___y_12142_;
v_isShared_12175_ = v_isSharedCheck_12184_;
goto v_resetjp_12173_;
}
else
{
lean_inc(v_buildTime_12172_);
lean_inc(v_trace_12171_);
lean_inc(v_log_12168_);
lean_dec(v___y_12142_);
v___x_12174_ = lean_box(0);
v_isShared_12175_ = v_isSharedCheck_12184_;
goto v_resetjp_12173_;
}
v_resetjp_12173_:
{
uint8_t v___x_12176_; lean_object* v___x_12177_; lean_object* v___x_12178_; lean_object* v___x_12179_; lean_object* v___x_12181_; 
v___x_12176_ = 3;
v___x_12177_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_12177_, 0, v___x_12135_);
lean_ctor_set_uint8(v___x_12177_, sizeof(void*)*1, v___x_12176_);
v___x_12178_ = lean_array_get_size(v_log_12168_);
v___x_12179_ = lean_array_push(v_log_12168_, v___x_12177_);
if (v_isShared_12175_ == 0)
{
lean_ctor_set(v___x_12174_, 0, v___x_12179_);
v___x_12181_ = v___x_12174_;
goto v_reusejp_12180_;
}
else
{
lean_object* v_reuseFailAlloc_12183_; 
v_reuseFailAlloc_12183_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_12183_, 0, v___x_12179_);
lean_ctor_set(v_reuseFailAlloc_12183_, 1, v_trace_12171_);
lean_ctor_set(v_reuseFailAlloc_12183_, 2, v_buildTime_12172_);
lean_ctor_set_uint8(v_reuseFailAlloc_12183_, sizeof(void*)*3, v_action_12169_);
lean_ctor_set_uint8(v_reuseFailAlloc_12183_, sizeof(void*)*3 + 1, v_wantsRebuild_12170_);
v___x_12181_ = v_reuseFailAlloc_12183_;
goto v_reusejp_12180_;
}
v_reusejp_12180_:
{
lean_object* v___x_12182_; 
v___x_12182_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_12182_, 0, v___x_12178_);
lean_ctor_set(v___x_12182_, 1, v___x_12181_);
return v___x_12182_;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_irFacetConfig___lam__0___boxed(lean_object* v_name_12185_, lean_object* v___x_12186_, lean_object* v___x_12187_, lean_object* v_arts_12188_, lean_object* v___y_12189_, lean_object* v___y_12190_, lean_object* v___y_12191_, lean_object* v___y_12192_, lean_object* v___y_12193_, lean_object* v___y_12194_, lean_object* v___y_12195_){
_start:
{
lean_object* v_res_12196_; 
v_res_12196_ = l_Lake_Module_irFacetConfig___lam__0(v_name_12185_, v___x_12186_, v___x_12187_, v_arts_12188_, v___y_12189_, v___y_12190_, v___y_12191_, v___y_12192_, v___y_12193_, v___y_12194_);
lean_dec_ref(v___y_12193_);
lean_dec(v___y_12192_);
lean_dec(v___y_12191_);
lean_dec(v___y_12190_);
lean_dec_ref(v___y_12189_);
lean_dec_ref(v_arts_12188_);
lean_dec_ref(v___x_12186_);
return v_res_12196_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_irFacetConfig___lam__1(lean_object* v___x_12197_, lean_object* v___x_12198_, lean_object* v___x_12199_, lean_object* v___x_12200_, lean_object* v___y_12201_, lean_object* v___y_12202_, lean_object* v___y_12203_, lean_object* v___y_12204_, lean_object* v___y_12205_, lean_object* v___y_12206_, lean_object* v___y_12207_){
_start:
{
lean_object* v_lib_12209_; lean_object* v_pkg_12210_; lean_object* v_name_12211_; lean_object* v_keyName_12212_; lean_object* v___x_12213_; lean_object* v___x_12214_; lean_object* v___x_12215_; lean_object* v___x_12216_; 
v_lib_12209_ = lean_ctor_get(v___y_12201_, 0);
v_pkg_12210_ = lean_ctor_get(v_lib_12209_, 0);
v_name_12211_ = lean_ctor_get(v___y_12201_, 1);
lean_inc(v_name_12211_);
v_keyName_12212_ = lean_ctor_get(v_pkg_12210_, 2);
v___x_12213_ = l_Lake_Module_leanArtsFacet;
lean_inc(v_name_12211_);
lean_inc(v_keyName_12212_);
v___x_12214_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_12214_, 0, v_keyName_12212_);
lean_ctor_set(v___x_12214_, 1, v_name_12211_);
v___x_12215_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_12215_, 0, v___x_12214_);
lean_ctor_set(v___x_12215_, 1, v___x_12197_);
lean_ctor_set(v___x_12215_, 2, v___y_12201_);
lean_ctor_set(v___x_12215_, 3, v___x_12213_);
lean_inc_ref(v___y_12202_);
lean_inc_ref(v___y_12206_);
lean_inc(v___y_12205_);
lean_inc(v___y_12204_);
lean_inc(v___y_12203_);
v___x_12216_ = lean_apply_7(v___y_12202_, v___x_12215_, v___y_12203_, v___y_12204_, v___y_12205_, v___y_12206_, v___y_12207_, lean_box(0));
if (lean_obj_tag(v___x_12216_) == 0)
{
lean_object* v_a_12217_; lean_object* v_a_12218_; lean_object* v___x_12220_; uint8_t v_isShared_12221_; uint8_t v_isSharedCheck_12230_; 
v_a_12217_ = lean_ctor_get(v___x_12216_, 0);
v_a_12218_ = lean_ctor_get(v___x_12216_, 1);
v_isSharedCheck_12230_ = !lean_is_exclusive(v___x_12216_);
if (v_isSharedCheck_12230_ == 0)
{
v___x_12220_ = v___x_12216_;
v_isShared_12221_ = v_isSharedCheck_12230_;
goto v_resetjp_12219_;
}
else
{
lean_inc(v_a_12218_);
lean_inc(v_a_12217_);
lean_dec(v___x_12216_);
v___x_12220_ = lean_box(0);
v_isShared_12221_ = v_isSharedCheck_12230_;
goto v_resetjp_12219_;
}
v_resetjp_12219_:
{
lean_object* v___f_12222_; lean_object* v___x_12223_; uint8_t v___x_12224_; lean_object* v___x_12225_; lean_object* v___x_12226_; lean_object* v___x_12228_; 
v___f_12222_ = lean_alloc_closure((void*)(l_Lake_Module_irFacetConfig___lam__0___boxed), 11, 3);
lean_closure_set(v___f_12222_, 0, v_name_12211_);
lean_closure_set(v___f_12222_, 1, v___x_12198_);
lean_closure_set(v___f_12222_, 2, v___x_12199_);
v___x_12223_ = lean_unsigned_to_nat(0u);
v___x_12224_ = 1;
v___x_12225_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_12226_ = l_Lake_Job_mapM___redArg(v___x_12200_, v_a_12217_, v___f_12222_, v___x_12223_, v___x_12224_, v___y_12202_, v___y_12203_, v___y_12204_, v___y_12205_, v___y_12206_, v___x_12225_);
if (v_isShared_12221_ == 0)
{
lean_ctor_set(v___x_12220_, 0, v___x_12226_);
v___x_12228_ = v___x_12220_;
goto v_reusejp_12227_;
}
else
{
lean_object* v_reuseFailAlloc_12229_; 
v_reuseFailAlloc_12229_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_12229_, 0, v___x_12226_);
lean_ctor_set(v_reuseFailAlloc_12229_, 1, v_a_12218_);
v___x_12228_ = v_reuseFailAlloc_12229_;
goto v_reusejp_12227_;
}
v_reusejp_12227_:
{
return v___x_12228_;
}
}
}
else
{
lean_object* v_a_12231_; lean_object* v_a_12232_; lean_object* v___x_12234_; uint8_t v_isShared_12235_; uint8_t v_isSharedCheck_12239_; 
lean_dec(v_name_12211_);
lean_dec_ref(v___y_12206_);
lean_dec(v___y_12205_);
lean_dec(v___y_12204_);
lean_dec(v___y_12203_);
lean_dec_ref(v___y_12202_);
lean_dec(v___x_12200_);
lean_dec_ref(v___x_12199_);
lean_dec_ref(v___x_12198_);
v_a_12231_ = lean_ctor_get(v___x_12216_, 0);
v_a_12232_ = lean_ctor_get(v___x_12216_, 1);
v_isSharedCheck_12239_ = !lean_is_exclusive(v___x_12216_);
if (v_isSharedCheck_12239_ == 0)
{
v___x_12234_ = v___x_12216_;
v_isShared_12235_ = v_isSharedCheck_12239_;
goto v_resetjp_12233_;
}
else
{
lean_inc(v_a_12232_);
lean_inc(v_a_12231_);
lean_dec(v___x_12216_);
v___x_12234_ = lean_box(0);
v_isShared_12235_ = v_isSharedCheck_12239_;
goto v_resetjp_12233_;
}
v_resetjp_12233_:
{
lean_object* v___x_12237_; 
if (v_isShared_12235_ == 0)
{
v___x_12237_ = v___x_12234_;
goto v_reusejp_12236_;
}
else
{
lean_object* v_reuseFailAlloc_12238_; 
v_reuseFailAlloc_12238_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_12238_, 0, v_a_12231_);
lean_ctor_set(v_reuseFailAlloc_12238_, 1, v_a_12232_);
v___x_12237_ = v_reuseFailAlloc_12238_;
goto v_reusejp_12236_;
}
v_reusejp_12236_:
{
return v___x_12237_;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_irFacetConfig___lam__1___boxed(lean_object* v___x_12240_, lean_object* v___x_12241_, lean_object* v___x_12242_, lean_object* v___x_12243_, lean_object* v___y_12244_, lean_object* v___y_12245_, lean_object* v___y_12246_, lean_object* v___y_12247_, lean_object* v___y_12248_, lean_object* v___y_12249_, lean_object* v___y_12250_, lean_object* v___y_12251_){
_start:
{
lean_object* v_res_12252_; 
v_res_12252_ = l_Lake_Module_irFacetConfig___lam__1(v___x_12240_, v___x_12241_, v___x_12242_, v___x_12243_, v___y_12244_, v___y_12245_, v___y_12246_, v___y_12247_, v___y_12248_, v___y_12249_, v___y_12250_);
return v_res_12252_;
}
}
static lean_object* _init_l_Lake_Module_irFacetConfig___closed__0(void){
_start:
{
lean_object* v___x_12253_; lean_object* v___x_12254_; lean_object* v___x_12255_; lean_object* v___x_12256_; lean_object* v___f_12257_; 
v___x_12253_ = l_Lake_instDataKindFilePath;
v___x_12254_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_noIRError___closed__0));
v___x_12255_ = ((lean_object*)(l_Lake_Module_clearOutputArtifacts___closed__6));
v___x_12256_ = l_Lake_Module_keyword;
v___f_12257_ = lean_alloc_closure((void*)(l_Lake_Module_irFacetConfig___lam__1___boxed), 12, 4);
lean_closure_set(v___f_12257_, 0, v___x_12256_);
lean_closure_set(v___f_12257_, 1, v___x_12255_);
lean_closure_set(v___f_12257_, 2, v___x_12254_);
lean_closure_set(v___f_12257_, 3, v___x_12253_);
return v___f_12257_;
}
}
static lean_object* _init_l_Lake_Module_irFacetConfig___closed__1(void){
_start:
{
lean_object* v___f_12258_; uint8_t v___x_12259_; lean_object* v___x_12260_; lean_object* v___f_12261_; lean_object* v___x_12262_; lean_object* v___x_12263_; 
v___f_12258_ = ((lean_object*)(l_Lake_Module_leanFacetConfig___closed__0));
v___x_12259_ = 1;
v___x_12260_ = l_Lake_instDataKindFilePath;
v___f_12261_ = lean_obj_once(&l_Lake_Module_irFacetConfig___closed__0, &l_Lake_Module_irFacetConfig___closed__0_once, _init_l_Lake_Module_irFacetConfig___closed__0);
v___x_12262_ = l_Lake_Module_keyword;
v___x_12263_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_12263_, 0, v___x_12262_);
lean_ctor_set(v___x_12263_, 1, v___f_12261_);
lean_ctor_set(v___x_12263_, 2, v___x_12260_);
lean_ctor_set(v___x_12263_, 3, v___f_12258_);
lean_ctor_set_uint8(v___x_12263_, sizeof(void*)*4, v___x_12259_);
lean_ctor_set_uint8(v___x_12263_, sizeof(void*)*4 + 1, v___x_12259_);
return v___x_12263_;
}
}
static lean_object* _init_l_Lake_Module_irFacetConfig(void){
_start:
{
lean_object* v___x_12264_; 
v___x_12264_ = lean_obj_once(&l_Lake_Module_irFacetConfig___closed__1, &l_Lake_Module_irFacetConfig___closed__1_once, _init_l_Lake_Module_irFacetConfig___closed__1);
return v___x_12264_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_cFacetConfig___lam__0(lean_object* v_name_12266_, lean_object* v_arts_12267_, lean_object* v___y_12268_, lean_object* v___y_12269_, lean_object* v___y_12270_, lean_object* v___y_12271_, lean_object* v___y_12272_, lean_object* v___y_12273_){
_start:
{
lean_object* v_c_12275_; lean_object* v_log_12276_; uint8_t v_action_12277_; uint8_t v_wantsRebuild_12278_; lean_object* v_buildTime_12279_; lean_object* v___x_12281_; uint8_t v_isShared_12282_; uint8_t v_isSharedCheck_12297_; 
v_c_12275_ = lean_ctor_get(v_arts_12267_, 5);
v_log_12276_ = lean_ctor_get(v___y_12273_, 0);
v_action_12277_ = lean_ctor_get_uint8(v___y_12273_, sizeof(void*)*3);
v_wantsRebuild_12278_ = lean_ctor_get_uint8(v___y_12273_, sizeof(void*)*3 + 1);
v_buildTime_12279_ = lean_ctor_get(v___y_12273_, 2);
v_isSharedCheck_12297_ = !lean_is_exclusive(v___y_12273_);
if (v_isSharedCheck_12297_ == 0)
{
lean_object* v_unused_12298_; 
v_unused_12298_ = lean_ctor_get(v___y_12273_, 1);
lean_dec(v_unused_12298_);
v___x_12281_ = v___y_12273_;
v_isShared_12282_ = v_isSharedCheck_12297_;
goto v_resetjp_12280_;
}
else
{
lean_inc(v_buildTime_12279_);
lean_inc(v_log_12276_);
lean_dec(v___y_12273_);
v___x_12281_ = lean_box(0);
v_isShared_12282_ = v_isSharedCheck_12297_;
goto v_resetjp_12280_;
}
v_resetjp_12280_:
{
lean_object* v_leanTrace_12283_; lean_object* v_path_12284_; uint8_t v___x_12285_; lean_object* v___x_12286_; lean_object* v___x_12287_; lean_object* v___x_12288_; lean_object* v___x_12289_; lean_object* v___x_12290_; lean_object* v___x_12291_; lean_object* v___x_12292_; lean_object* v___x_12294_; 
v_leanTrace_12283_ = lean_ctor_get(v___y_12272_, 2);
lean_inc_ref(v_leanTrace_12283_);
lean_dec_ref(v___y_12272_);
v_path_12284_ = lean_ctor_get(v_c_12275_, 1);
v___x_12285_ = 1;
v___x_12286_ = l_Lean_Name_toString(v_name_12266_, v___x_12285_);
v___x_12287_ = ((lean_object*)(l_Lake_Module_cFacetConfig___lam__0___closed__0));
v___x_12288_ = lean_string_append(v___x_12286_, v___x_12287_);
v___x_12289_ = l_Lake_BuildTrace_nil(v___x_12288_);
v___x_12290_ = l_Lake_Artifact_trace(v_c_12275_);
v___x_12291_ = l_Lake_BuildTrace_mix(v___x_12289_, v___x_12290_);
v___x_12292_ = l_Lake_BuildTrace_mix(v___x_12291_, v_leanTrace_12283_);
if (v_isShared_12282_ == 0)
{
lean_ctor_set(v___x_12281_, 1, v___x_12292_);
v___x_12294_ = v___x_12281_;
goto v_reusejp_12293_;
}
else
{
lean_object* v_reuseFailAlloc_12296_; 
v_reuseFailAlloc_12296_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_12296_, 0, v_log_12276_);
lean_ctor_set(v_reuseFailAlloc_12296_, 1, v___x_12292_);
lean_ctor_set(v_reuseFailAlloc_12296_, 2, v_buildTime_12279_);
lean_ctor_set_uint8(v_reuseFailAlloc_12296_, sizeof(void*)*3, v_action_12277_);
lean_ctor_set_uint8(v_reuseFailAlloc_12296_, sizeof(void*)*3 + 1, v_wantsRebuild_12278_);
v___x_12294_ = v_reuseFailAlloc_12296_;
goto v_reusejp_12293_;
}
v_reusejp_12293_:
{
lean_object* v___x_12295_; 
lean_inc_ref(v_path_12284_);
v___x_12295_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_12295_, 0, v_path_12284_);
lean_ctor_set(v___x_12295_, 1, v___x_12294_);
return v___x_12295_;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_cFacetConfig___lam__0___boxed(lean_object* v_name_12299_, lean_object* v_arts_12300_, lean_object* v___y_12301_, lean_object* v___y_12302_, lean_object* v___y_12303_, lean_object* v___y_12304_, lean_object* v___y_12305_, lean_object* v___y_12306_, lean_object* v___y_12307_){
_start:
{
lean_object* v_res_12308_; 
v_res_12308_ = l_Lake_Module_cFacetConfig___lam__0(v_name_12299_, v_arts_12300_, v___y_12301_, v___y_12302_, v___y_12303_, v___y_12304_, v___y_12305_, v___y_12306_);
lean_dec(v___y_12304_);
lean_dec(v___y_12303_);
lean_dec(v___y_12302_);
lean_dec_ref(v___y_12301_);
lean_dec_ref(v_arts_12300_);
return v_res_12308_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_cFacetConfig___lam__1(lean_object* v___x_12309_, lean_object* v_mod_12310_, lean_object* v___y_12311_, lean_object* v___y_12312_, lean_object* v___y_12313_, lean_object* v___y_12314_, lean_object* v___y_12315_, lean_object* v___y_12316_){
_start:
{
lean_object* v_lib_12318_; lean_object* v_pkg_12319_; lean_object* v_name_12320_; lean_object* v_keyName_12321_; lean_object* v___x_12322_; lean_object* v___x_12323_; lean_object* v___x_12324_; lean_object* v___x_12325_; lean_object* v___x_12326_; 
v_lib_12318_ = lean_ctor_get(v_mod_12310_, 0);
v_pkg_12319_ = lean_ctor_get(v_lib_12318_, 0);
v_name_12320_ = lean_ctor_get(v_mod_12310_, 1);
lean_inc(v_name_12320_);
v_keyName_12321_ = lean_ctor_get(v_pkg_12319_, 2);
v___x_12322_ = l_Lake_Module_leanArtsFacet;
lean_inc(v_name_12320_);
lean_inc(v_keyName_12321_);
v___x_12323_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_12323_, 0, v_keyName_12321_);
lean_ctor_set(v___x_12323_, 1, v_name_12320_);
v___x_12324_ = l_Lake_Module_keyword;
v___x_12325_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_12325_, 0, v___x_12323_);
lean_ctor_set(v___x_12325_, 1, v___x_12324_);
lean_ctor_set(v___x_12325_, 2, v_mod_12310_);
lean_ctor_set(v___x_12325_, 3, v___x_12322_);
lean_inc_ref(v___y_12311_);
lean_inc_ref(v___y_12315_);
lean_inc(v___y_12314_);
lean_inc(v___y_12313_);
lean_inc(v___y_12312_);
v___x_12326_ = lean_apply_7(v___y_12311_, v___x_12325_, v___y_12312_, v___y_12313_, v___y_12314_, v___y_12315_, v___y_12316_, lean_box(0));
if (lean_obj_tag(v___x_12326_) == 0)
{
lean_object* v_a_12327_; lean_object* v_a_12328_; lean_object* v___x_12330_; uint8_t v_isShared_12331_; uint8_t v_isSharedCheck_12340_; 
v_a_12327_ = lean_ctor_get(v___x_12326_, 0);
v_a_12328_ = lean_ctor_get(v___x_12326_, 1);
v_isSharedCheck_12340_ = !lean_is_exclusive(v___x_12326_);
if (v_isSharedCheck_12340_ == 0)
{
v___x_12330_ = v___x_12326_;
v_isShared_12331_ = v_isSharedCheck_12340_;
goto v_resetjp_12329_;
}
else
{
lean_inc(v_a_12328_);
lean_inc(v_a_12327_);
lean_dec(v___x_12326_);
v___x_12330_ = lean_box(0);
v_isShared_12331_ = v_isSharedCheck_12340_;
goto v_resetjp_12329_;
}
v_resetjp_12329_:
{
lean_object* v___f_12332_; lean_object* v___x_12333_; uint8_t v___x_12334_; lean_object* v___x_12335_; lean_object* v___x_12336_; lean_object* v___x_12338_; 
v___f_12332_ = lean_alloc_closure((void*)(l_Lake_Module_cFacetConfig___lam__0___boxed), 9, 1);
lean_closure_set(v___f_12332_, 0, v_name_12320_);
v___x_12333_ = lean_unsigned_to_nat(0u);
v___x_12334_ = 1;
v___x_12335_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_12336_ = l_Lake_Job_mapM___redArg(v___x_12309_, v_a_12327_, v___f_12332_, v___x_12333_, v___x_12334_, v___y_12311_, v___y_12312_, v___y_12313_, v___y_12314_, v___y_12315_, v___x_12335_);
if (v_isShared_12331_ == 0)
{
lean_ctor_set(v___x_12330_, 0, v___x_12336_);
v___x_12338_ = v___x_12330_;
goto v_reusejp_12337_;
}
else
{
lean_object* v_reuseFailAlloc_12339_; 
v_reuseFailAlloc_12339_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_12339_, 0, v___x_12336_);
lean_ctor_set(v_reuseFailAlloc_12339_, 1, v_a_12328_);
v___x_12338_ = v_reuseFailAlloc_12339_;
goto v_reusejp_12337_;
}
v_reusejp_12337_:
{
return v___x_12338_;
}
}
}
else
{
lean_object* v_a_12341_; lean_object* v_a_12342_; lean_object* v___x_12344_; uint8_t v_isShared_12345_; uint8_t v_isSharedCheck_12349_; 
lean_dec(v_name_12320_);
lean_dec_ref(v___y_12315_);
lean_dec(v___y_12314_);
lean_dec(v___y_12313_);
lean_dec(v___y_12312_);
lean_dec_ref(v___y_12311_);
lean_dec(v___x_12309_);
v_a_12341_ = lean_ctor_get(v___x_12326_, 0);
v_a_12342_ = lean_ctor_get(v___x_12326_, 1);
v_isSharedCheck_12349_ = !lean_is_exclusive(v___x_12326_);
if (v_isSharedCheck_12349_ == 0)
{
v___x_12344_ = v___x_12326_;
v_isShared_12345_ = v_isSharedCheck_12349_;
goto v_resetjp_12343_;
}
else
{
lean_inc(v_a_12342_);
lean_inc(v_a_12341_);
lean_dec(v___x_12326_);
v___x_12344_ = lean_box(0);
v_isShared_12345_ = v_isSharedCheck_12349_;
goto v_resetjp_12343_;
}
v_resetjp_12343_:
{
lean_object* v___x_12347_; 
if (v_isShared_12345_ == 0)
{
v___x_12347_ = v___x_12344_;
goto v_reusejp_12346_;
}
else
{
lean_object* v_reuseFailAlloc_12348_; 
v_reuseFailAlloc_12348_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_12348_, 0, v_a_12341_);
lean_ctor_set(v_reuseFailAlloc_12348_, 1, v_a_12342_);
v___x_12347_ = v_reuseFailAlloc_12348_;
goto v_reusejp_12346_;
}
v_reusejp_12346_:
{
return v___x_12347_;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_cFacetConfig___lam__1___boxed(lean_object* v___x_12350_, lean_object* v_mod_12351_, lean_object* v___y_12352_, lean_object* v___y_12353_, lean_object* v___y_12354_, lean_object* v___y_12355_, lean_object* v___y_12356_, lean_object* v___y_12357_, lean_object* v___y_12358_){
_start:
{
lean_object* v_res_12359_; 
v_res_12359_ = l_Lake_Module_cFacetConfig___lam__1(v___x_12350_, v_mod_12351_, v___y_12352_, v___y_12353_, v___y_12354_, v___y_12355_, v___y_12356_, v___y_12357_);
return v_res_12359_;
}
}
static lean_object* _init_l_Lake_Module_cFacetConfig___closed__0(void){
_start:
{
lean_object* v___x_12360_; lean_object* v___f_12361_; 
v___x_12360_ = l_Lake_instDataKindFilePath;
v___f_12361_ = lean_alloc_closure((void*)(l_Lake_Module_cFacetConfig___lam__1___boxed), 9, 1);
lean_closure_set(v___f_12361_, 0, v___x_12360_);
return v___f_12361_;
}
}
static lean_object* _init_l_Lake_Module_cFacetConfig___closed__1(void){
_start:
{
lean_object* v___f_12362_; uint8_t v___x_12363_; lean_object* v___x_12364_; lean_object* v___f_12365_; lean_object* v___x_12366_; lean_object* v___x_12367_; 
v___f_12362_ = ((lean_object*)(l_Lake_Module_leanFacetConfig___closed__0));
v___x_12363_ = 1;
v___x_12364_ = l_Lake_instDataKindFilePath;
v___f_12365_ = lean_obj_once(&l_Lake_Module_cFacetConfig___closed__0, &l_Lake_Module_cFacetConfig___closed__0_once, _init_l_Lake_Module_cFacetConfig___closed__0);
v___x_12366_ = l_Lake_Module_keyword;
v___x_12367_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_12367_, 0, v___x_12366_);
lean_ctor_set(v___x_12367_, 1, v___f_12365_);
lean_ctor_set(v___x_12367_, 2, v___x_12364_);
lean_ctor_set(v___x_12367_, 3, v___f_12362_);
lean_ctor_set_uint8(v___x_12367_, sizeof(void*)*4, v___x_12363_);
lean_ctor_set_uint8(v___x_12367_, sizeof(void*)*4 + 1, v___x_12363_);
return v___x_12367_;
}
}
static lean_object* _init_l_Lake_Module_cFacetConfig(void){
_start:
{
lean_object* v___x_12368_; 
v___x_12368_ = lean_obj_once(&l_Lake_Module_cFacetConfig___closed__1, &l_Lake_Module_cFacetConfig___closed__1_once, _init_l_Lake_Module_cFacetConfig___closed__1);
return v___x_12368_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_bcFacetConfig___lam__0(lean_object* v_name_12374_, lean_object* v_arts_12375_, lean_object* v___y_12376_, lean_object* v___y_12377_, lean_object* v___y_12378_, lean_object* v___y_12379_, lean_object* v___y_12380_, lean_object* v___y_12381_){
_start:
{
lean_object* v_bc_x3f_12383_; 
v_bc_x3f_12383_ = lean_ctor_get(v_arts_12375_, 6);
if (lean_obj_tag(v_bc_x3f_12383_) == 1)
{
lean_object* v_val_12384_; lean_object* v_log_12385_; uint8_t v_action_12386_; uint8_t v_wantsRebuild_12387_; lean_object* v_buildTime_12388_; lean_object* v___x_12390_; uint8_t v_isShared_12391_; uint8_t v_isSharedCheck_12404_; 
v_val_12384_ = lean_ctor_get(v_bc_x3f_12383_, 0);
v_log_12385_ = lean_ctor_get(v___y_12381_, 0);
v_action_12386_ = lean_ctor_get_uint8(v___y_12381_, sizeof(void*)*3);
v_wantsRebuild_12387_ = lean_ctor_get_uint8(v___y_12381_, sizeof(void*)*3 + 1);
v_buildTime_12388_ = lean_ctor_get(v___y_12381_, 2);
v_isSharedCheck_12404_ = !lean_is_exclusive(v___y_12381_);
if (v_isSharedCheck_12404_ == 0)
{
lean_object* v_unused_12405_; 
v_unused_12405_ = lean_ctor_get(v___y_12381_, 1);
lean_dec(v_unused_12405_);
v___x_12390_ = v___y_12381_;
v_isShared_12391_ = v_isSharedCheck_12404_;
goto v_resetjp_12389_;
}
else
{
lean_inc(v_buildTime_12388_);
lean_inc(v_log_12385_);
lean_dec(v___y_12381_);
v___x_12390_ = lean_box(0);
v_isShared_12391_ = v_isSharedCheck_12404_;
goto v_resetjp_12389_;
}
v_resetjp_12389_:
{
lean_object* v_path_12392_; uint8_t v___x_12393_; lean_object* v___x_12394_; lean_object* v___x_12395_; lean_object* v___x_12396_; lean_object* v___x_12397_; lean_object* v___x_12398_; lean_object* v___x_12399_; lean_object* v___x_12401_; 
v_path_12392_ = lean_ctor_get(v_val_12384_, 1);
v___x_12393_ = 1;
v___x_12394_ = l_Lean_Name_toString(v_name_12374_, v___x_12393_);
v___x_12395_ = ((lean_object*)(l_Lake_Module_bcFacetConfig___lam__0___closed__0));
v___x_12396_ = lean_string_append(v___x_12394_, v___x_12395_);
v___x_12397_ = l_Lake_BuildTrace_nil(v___x_12396_);
v___x_12398_ = l_Lake_Artifact_trace(v_val_12384_);
v___x_12399_ = l_Lake_BuildTrace_mix(v___x_12397_, v___x_12398_);
if (v_isShared_12391_ == 0)
{
lean_ctor_set(v___x_12390_, 1, v___x_12399_);
v___x_12401_ = v___x_12390_;
goto v_reusejp_12400_;
}
else
{
lean_object* v_reuseFailAlloc_12403_; 
v_reuseFailAlloc_12403_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_12403_, 0, v_log_12385_);
lean_ctor_set(v_reuseFailAlloc_12403_, 1, v___x_12399_);
lean_ctor_set(v_reuseFailAlloc_12403_, 2, v_buildTime_12388_);
lean_ctor_set_uint8(v_reuseFailAlloc_12403_, sizeof(void*)*3, v_action_12386_);
lean_ctor_set_uint8(v_reuseFailAlloc_12403_, sizeof(void*)*3 + 1, v_wantsRebuild_12387_);
v___x_12401_ = v_reuseFailAlloc_12403_;
goto v_reusejp_12400_;
}
v_reusejp_12400_:
{
lean_object* v___x_12402_; 
lean_inc_ref(v_path_12392_);
v___x_12402_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_12402_, 0, v_path_12392_);
lean_ctor_set(v___x_12402_, 1, v___x_12401_);
return v___x_12402_;
}
}
}
else
{
lean_object* v_log_12406_; uint8_t v_action_12407_; uint8_t v_wantsRebuild_12408_; lean_object* v_trace_12409_; lean_object* v_buildTime_12410_; lean_object* v___x_12412_; uint8_t v_isShared_12413_; uint8_t v_isSharedCheck_12421_; 
lean_dec(v_name_12374_);
v_log_12406_ = lean_ctor_get(v___y_12381_, 0);
v_action_12407_ = lean_ctor_get_uint8(v___y_12381_, sizeof(void*)*3);
v_wantsRebuild_12408_ = lean_ctor_get_uint8(v___y_12381_, sizeof(void*)*3 + 1);
v_trace_12409_ = lean_ctor_get(v___y_12381_, 1);
v_buildTime_12410_ = lean_ctor_get(v___y_12381_, 2);
v_isSharedCheck_12421_ = !lean_is_exclusive(v___y_12381_);
if (v_isSharedCheck_12421_ == 0)
{
v___x_12412_ = v___y_12381_;
v_isShared_12413_ = v_isSharedCheck_12421_;
goto v_resetjp_12411_;
}
else
{
lean_inc(v_buildTime_12410_);
lean_inc(v_trace_12409_);
lean_inc(v_log_12406_);
lean_dec(v___y_12381_);
v___x_12412_ = lean_box(0);
v_isShared_12413_ = v_isSharedCheck_12421_;
goto v_resetjp_12411_;
}
v_resetjp_12411_:
{
lean_object* v___x_12414_; lean_object* v___x_12415_; lean_object* v___x_12416_; lean_object* v___x_12418_; 
v___x_12414_ = ((lean_object*)(l_Lake_Module_bcFacetConfig___lam__0___closed__2));
v___x_12415_ = lean_array_get_size(v_log_12406_);
v___x_12416_ = lean_array_push(v_log_12406_, v___x_12414_);
if (v_isShared_12413_ == 0)
{
lean_ctor_set(v___x_12412_, 0, v___x_12416_);
v___x_12418_ = v___x_12412_;
goto v_reusejp_12417_;
}
else
{
lean_object* v_reuseFailAlloc_12420_; 
v_reuseFailAlloc_12420_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_12420_, 0, v___x_12416_);
lean_ctor_set(v_reuseFailAlloc_12420_, 1, v_trace_12409_);
lean_ctor_set(v_reuseFailAlloc_12420_, 2, v_buildTime_12410_);
lean_ctor_set_uint8(v_reuseFailAlloc_12420_, sizeof(void*)*3, v_action_12407_);
lean_ctor_set_uint8(v_reuseFailAlloc_12420_, sizeof(void*)*3 + 1, v_wantsRebuild_12408_);
v___x_12418_ = v_reuseFailAlloc_12420_;
goto v_reusejp_12417_;
}
v_reusejp_12417_:
{
lean_object* v___x_12419_; 
v___x_12419_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_12419_, 0, v___x_12415_);
lean_ctor_set(v___x_12419_, 1, v___x_12418_);
return v___x_12419_;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_bcFacetConfig___lam__0___boxed(lean_object* v_name_12422_, lean_object* v_arts_12423_, lean_object* v___y_12424_, lean_object* v___y_12425_, lean_object* v___y_12426_, lean_object* v___y_12427_, lean_object* v___y_12428_, lean_object* v___y_12429_, lean_object* v___y_12430_){
_start:
{
lean_object* v_res_12431_; 
v_res_12431_ = l_Lake_Module_bcFacetConfig___lam__0(v_name_12422_, v_arts_12423_, v___y_12424_, v___y_12425_, v___y_12426_, v___y_12427_, v___y_12428_, v___y_12429_);
lean_dec_ref(v___y_12428_);
lean_dec(v___y_12427_);
lean_dec(v___y_12426_);
lean_dec(v___y_12425_);
lean_dec_ref(v___y_12424_);
lean_dec_ref(v_arts_12423_);
return v_res_12431_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_bcFacetConfig___lam__1(lean_object* v___x_12432_, lean_object* v_mod_12433_, lean_object* v___y_12434_, lean_object* v___y_12435_, lean_object* v___y_12436_, lean_object* v___y_12437_, lean_object* v___y_12438_, lean_object* v___y_12439_){
_start:
{
lean_object* v_lib_12441_; lean_object* v_pkg_12442_; lean_object* v_name_12443_; lean_object* v_keyName_12444_; lean_object* v___x_12445_; lean_object* v___x_12446_; lean_object* v___x_12447_; lean_object* v___x_12448_; lean_object* v___x_12449_; 
v_lib_12441_ = lean_ctor_get(v_mod_12433_, 0);
v_pkg_12442_ = lean_ctor_get(v_lib_12441_, 0);
v_name_12443_ = lean_ctor_get(v_mod_12433_, 1);
lean_inc(v_name_12443_);
v_keyName_12444_ = lean_ctor_get(v_pkg_12442_, 2);
v___x_12445_ = l_Lake_Module_leanArtsFacet;
lean_inc(v_name_12443_);
lean_inc(v_keyName_12444_);
v___x_12446_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_12446_, 0, v_keyName_12444_);
lean_ctor_set(v___x_12446_, 1, v_name_12443_);
v___x_12447_ = l_Lake_Module_keyword;
v___x_12448_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_12448_, 0, v___x_12446_);
lean_ctor_set(v___x_12448_, 1, v___x_12447_);
lean_ctor_set(v___x_12448_, 2, v_mod_12433_);
lean_ctor_set(v___x_12448_, 3, v___x_12445_);
lean_inc_ref(v___y_12434_);
lean_inc_ref(v___y_12438_);
lean_inc(v___y_12437_);
lean_inc(v___y_12436_);
lean_inc(v___y_12435_);
v___x_12449_ = lean_apply_7(v___y_12434_, v___x_12448_, v___y_12435_, v___y_12436_, v___y_12437_, v___y_12438_, v___y_12439_, lean_box(0));
if (lean_obj_tag(v___x_12449_) == 0)
{
lean_object* v_a_12450_; lean_object* v_a_12451_; lean_object* v___x_12453_; uint8_t v_isShared_12454_; uint8_t v_isSharedCheck_12463_; 
v_a_12450_ = lean_ctor_get(v___x_12449_, 0);
v_a_12451_ = lean_ctor_get(v___x_12449_, 1);
v_isSharedCheck_12463_ = !lean_is_exclusive(v___x_12449_);
if (v_isSharedCheck_12463_ == 0)
{
v___x_12453_ = v___x_12449_;
v_isShared_12454_ = v_isSharedCheck_12463_;
goto v_resetjp_12452_;
}
else
{
lean_inc(v_a_12451_);
lean_inc(v_a_12450_);
lean_dec(v___x_12449_);
v___x_12453_ = lean_box(0);
v_isShared_12454_ = v_isSharedCheck_12463_;
goto v_resetjp_12452_;
}
v_resetjp_12452_:
{
lean_object* v___f_12455_; lean_object* v___x_12456_; uint8_t v___x_12457_; lean_object* v___x_12458_; lean_object* v___x_12459_; lean_object* v___x_12461_; 
v___f_12455_ = lean_alloc_closure((void*)(l_Lake_Module_bcFacetConfig___lam__0___boxed), 9, 1);
lean_closure_set(v___f_12455_, 0, v_name_12443_);
v___x_12456_ = lean_unsigned_to_nat(0u);
v___x_12457_ = 1;
v___x_12458_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_12459_ = l_Lake_Job_mapM___redArg(v___x_12432_, v_a_12450_, v___f_12455_, v___x_12456_, v___x_12457_, v___y_12434_, v___y_12435_, v___y_12436_, v___y_12437_, v___y_12438_, v___x_12458_);
if (v_isShared_12454_ == 0)
{
lean_ctor_set(v___x_12453_, 0, v___x_12459_);
v___x_12461_ = v___x_12453_;
goto v_reusejp_12460_;
}
else
{
lean_object* v_reuseFailAlloc_12462_; 
v_reuseFailAlloc_12462_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_12462_, 0, v___x_12459_);
lean_ctor_set(v_reuseFailAlloc_12462_, 1, v_a_12451_);
v___x_12461_ = v_reuseFailAlloc_12462_;
goto v_reusejp_12460_;
}
v_reusejp_12460_:
{
return v___x_12461_;
}
}
}
else
{
lean_object* v_a_12464_; lean_object* v_a_12465_; lean_object* v___x_12467_; uint8_t v_isShared_12468_; uint8_t v_isSharedCheck_12472_; 
lean_dec(v_name_12443_);
lean_dec_ref(v___y_12438_);
lean_dec(v___y_12437_);
lean_dec(v___y_12436_);
lean_dec(v___y_12435_);
lean_dec_ref(v___y_12434_);
lean_dec(v___x_12432_);
v_a_12464_ = lean_ctor_get(v___x_12449_, 0);
v_a_12465_ = lean_ctor_get(v___x_12449_, 1);
v_isSharedCheck_12472_ = !lean_is_exclusive(v___x_12449_);
if (v_isSharedCheck_12472_ == 0)
{
v___x_12467_ = v___x_12449_;
v_isShared_12468_ = v_isSharedCheck_12472_;
goto v_resetjp_12466_;
}
else
{
lean_inc(v_a_12465_);
lean_inc(v_a_12464_);
lean_dec(v___x_12449_);
v___x_12467_ = lean_box(0);
v_isShared_12468_ = v_isSharedCheck_12472_;
goto v_resetjp_12466_;
}
v_resetjp_12466_:
{
lean_object* v___x_12470_; 
if (v_isShared_12468_ == 0)
{
v___x_12470_ = v___x_12467_;
goto v_reusejp_12469_;
}
else
{
lean_object* v_reuseFailAlloc_12471_; 
v_reuseFailAlloc_12471_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_12471_, 0, v_a_12464_);
lean_ctor_set(v_reuseFailAlloc_12471_, 1, v_a_12465_);
v___x_12470_ = v_reuseFailAlloc_12471_;
goto v_reusejp_12469_;
}
v_reusejp_12469_:
{
return v___x_12470_;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_bcFacetConfig___lam__1___boxed(lean_object* v___x_12473_, lean_object* v_mod_12474_, lean_object* v___y_12475_, lean_object* v___y_12476_, lean_object* v___y_12477_, lean_object* v___y_12478_, lean_object* v___y_12479_, lean_object* v___y_12480_, lean_object* v___y_12481_){
_start:
{
lean_object* v_res_12482_; 
v_res_12482_ = l_Lake_Module_bcFacetConfig___lam__1(v___x_12473_, v_mod_12474_, v___y_12475_, v___y_12476_, v___y_12477_, v___y_12478_, v___y_12479_, v___y_12480_);
return v_res_12482_;
}
}
static lean_object* _init_l_Lake_Module_bcFacetConfig___closed__0(void){
_start:
{
lean_object* v___x_12483_; lean_object* v___f_12484_; 
v___x_12483_ = l_Lake_instDataKindFilePath;
v___f_12484_ = lean_alloc_closure((void*)(l_Lake_Module_bcFacetConfig___lam__1___boxed), 9, 1);
lean_closure_set(v___f_12484_, 0, v___x_12483_);
return v___f_12484_;
}
}
static lean_object* _init_l_Lake_Module_bcFacetConfig___closed__1(void){
_start:
{
lean_object* v___f_12485_; uint8_t v___x_12486_; lean_object* v___x_12487_; lean_object* v___f_12488_; lean_object* v___x_12489_; lean_object* v___x_12490_; 
v___f_12485_ = ((lean_object*)(l_Lake_Module_leanFacetConfig___closed__0));
v___x_12486_ = 1;
v___x_12487_ = l_Lake_instDataKindFilePath;
v___f_12488_ = lean_obj_once(&l_Lake_Module_bcFacetConfig___closed__0, &l_Lake_Module_bcFacetConfig___closed__0_once, _init_l_Lake_Module_bcFacetConfig___closed__0);
v___x_12489_ = l_Lake_Module_keyword;
v___x_12490_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_12490_, 0, v___x_12489_);
lean_ctor_set(v___x_12490_, 1, v___f_12488_);
lean_ctor_set(v___x_12490_, 2, v___x_12487_);
lean_ctor_set(v___x_12490_, 3, v___f_12485_);
lean_ctor_set_uint8(v___x_12490_, sizeof(void*)*4, v___x_12486_);
lean_ctor_set_uint8(v___x_12490_, sizeof(void*)*4 + 1, v___x_12486_);
return v___x_12490_;
}
}
static lean_object* _init_l_Lake_Module_bcFacetConfig(void){
_start:
{
lean_object* v___x_12491_; 
v___x_12491_ = lean_obj_once(&l_Lake_Module_bcFacetConfig___closed__1, &l_Lake_Module_bcFacetConfig___closed__1_once, _init_l_Lake_Module_bcFacetConfig___closed__1);
return v___x_12491_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___lam__0(lean_object* v___x_12494_, lean_object* v___x_12495_, lean_object* v_buildDir_12496_, lean_object* v_dir_12497_, lean_object* v_irDir_12498_, lean_object* v_name_12499_, lean_object* v_weakLeancArgs_12500_, lean_object* v_weakLeancArgs_12501_, lean_object* v___x_12502_, uint8_t v_bootstrap_12503_, lean_object* v___y_12504_, lean_object* v___y_12505_, lean_object* v___y_12506_, lean_object* v___y_12507_, lean_object* v___y_12508_, lean_object* v___y_12509_){
_start:
{
lean_object* v___x_12511_; 
lean_inc_ref(v___y_12504_);
lean_inc_ref(v___y_12508_);
lean_inc(v___y_12507_);
lean_inc(v___y_12506_);
lean_inc(v___x_12495_);
v___x_12511_ = lean_apply_7(v___y_12504_, v___x_12494_, v___x_12495_, v___y_12506_, v___y_12507_, v___y_12508_, v___y_12509_, lean_box(0));
if (lean_obj_tag(v___x_12511_) == 0)
{
lean_object* v_a_12512_; lean_object* v_a_12513_; lean_object* v___x_12515_; uint8_t v_isShared_12516_; uint8_t v_isSharedCheck_12535_; 
v_a_12512_ = lean_ctor_get(v___x_12511_, 0);
v_a_12513_ = lean_ctor_get(v___x_12511_, 1);
v_isSharedCheck_12535_ = !lean_is_exclusive(v___x_12511_);
if (v_isSharedCheck_12535_ == 0)
{
v___x_12515_ = v___x_12511_;
v_isShared_12516_ = v_isSharedCheck_12535_;
goto v_resetjp_12514_;
}
else
{
lean_inc(v_a_12513_);
lean_inc(v_a_12512_);
lean_dec(v___x_12511_);
v___x_12515_ = lean_box(0);
v_isShared_12516_ = v_isSharedCheck_12535_;
goto v_resetjp_12514_;
}
v_resetjp_12514_:
{
lean_object* v___x_12517_; lean_object* v___x_12518_; lean_object* v___x_12519_; lean_object* v___x_12520_; lean_object* v___x_12521_; lean_object* v___x_12522_; lean_object* v___x_12523_; lean_object* v___y_12525_; 
v___x_12517_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___lam__0___closed__0));
v___x_12518_ = l_System_FilePath_normalize(v_buildDir_12496_);
v___x_12519_ = l_Lake_joinRelative(v_dir_12497_, v___x_12518_);
v___x_12520_ = l_System_FilePath_normalize(v_irDir_12498_);
lean_inc_ref(v___x_12519_);
v___x_12521_ = l_Lake_joinRelative(v___x_12519_, v___x_12520_);
v___x_12522_ = l_Lean_modToFilePath(v___x_12521_, v_name_12499_, v___x_12517_);
lean_dec_ref(v___x_12521_);
v___x_12523_ = l_Array_append___redArg(v_weakLeancArgs_12500_, v_weakLeancArgs_12501_);
if (v_bootstrap_12503_ == 0)
{
lean_object* v___x_12531_; 
lean_dec_ref(v___x_12519_);
v___x_12531_ = lean_box(0);
v___y_12525_ = v___x_12531_;
goto v___jp_12524_;
}
else
{
lean_object* v___x_12532_; lean_object* v___x_12533_; lean_object* v___x_12534_; 
v___x_12532_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___lam__0___closed__1));
v___x_12533_ = l_Lake_joinRelative(v___x_12519_, v___x_12532_);
v___x_12534_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_12534_, 0, v___x_12533_);
v___y_12525_ = v___x_12534_;
goto v___jp_12524_;
}
v___jp_12524_:
{
lean_object* v___x_12526_; lean_object* v___x_12527_; lean_object* v___x_12529_; 
v___x_12526_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_12527_ = l_Lake_buildLeanO(v___x_12522_, v_a_12512_, v___x_12523_, v___x_12502_, v___y_12525_, v___y_12504_, v___x_12495_, v___y_12506_, v___y_12507_, v___y_12508_, v___x_12526_);
if (v_isShared_12516_ == 0)
{
lean_ctor_set(v___x_12515_, 0, v___x_12527_);
v___x_12529_ = v___x_12515_;
goto v_reusejp_12528_;
}
else
{
lean_object* v_reuseFailAlloc_12530_; 
v_reuseFailAlloc_12530_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_12530_, 0, v___x_12527_);
lean_ctor_set(v_reuseFailAlloc_12530_, 1, v_a_12513_);
v___x_12529_ = v_reuseFailAlloc_12530_;
goto v_reusejp_12528_;
}
v_reusejp_12528_:
{
return v___x_12529_;
}
}
}
}
else
{
lean_dec_ref(v___y_12508_);
lean_dec(v___y_12507_);
lean_dec(v___y_12506_);
lean_dec_ref(v___y_12504_);
lean_dec_ref(v___x_12502_);
lean_dec_ref(v_weakLeancArgs_12500_);
lean_dec(v_name_12499_);
lean_dec_ref(v_irDir_12498_);
lean_dec_ref(v_dir_12497_);
lean_dec_ref(v_buildDir_12496_);
lean_dec(v___x_12495_);
return v___x_12511_;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___lam__0___boxed(lean_object** _args){
lean_object* v___x_12536_ = _args[0];
lean_object* v___x_12537_ = _args[1];
lean_object* v_buildDir_12538_ = _args[2];
lean_object* v_dir_12539_ = _args[3];
lean_object* v_irDir_12540_ = _args[4];
lean_object* v_name_12541_ = _args[5];
lean_object* v_weakLeancArgs_12542_ = _args[6];
lean_object* v_weakLeancArgs_12543_ = _args[7];
lean_object* v___x_12544_ = _args[8];
lean_object* v_bootstrap_12545_ = _args[9];
lean_object* v___y_12546_ = _args[10];
lean_object* v___y_12547_ = _args[11];
lean_object* v___y_12548_ = _args[12];
lean_object* v___y_12549_ = _args[13];
lean_object* v___y_12550_ = _args[14];
lean_object* v___y_12551_ = _args[15];
lean_object* v___y_12552_ = _args[16];
_start:
{
uint8_t v_bootstrap_boxed_12553_; lean_object* v_res_12554_; 
v_bootstrap_boxed_12553_ = lean_unbox(v_bootstrap_12545_);
v_res_12554_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___lam__0(v___x_12536_, v___x_12537_, v_buildDir_12538_, v_dir_12539_, v_irDir_12540_, v_name_12541_, v_weakLeancArgs_12542_, v_weakLeancArgs_12543_, v___x_12544_, v_bootstrap_boxed_12553_, v___y_12546_, v___y_12547_, v___y_12548_, v___y_12549_, v___y_12550_, v___y_12551_);
lean_dec(v___y_12547_);
lean_dec_ref(v_weakLeancArgs_12543_);
return v_res_12554_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport(lean_object* v_self_12562_, lean_object* v_a_12563_, lean_object* v_a_12564_, lean_object* v_a_12565_, lean_object* v_a_12566_, lean_object* v_a_12567_, lean_object* v_a_12568_){
_start:
{
lean_object* v_toBuildConfig_12570_; lean_object* v_registeredJobs_12571_; uint8_t v_verbosity_12572_; lean_object* v___x_12573_; lean_object* v___y_12575_; lean_object* v___y_12576_; lean_object* v___y_12577_; lean_object* v___y_12578_; lean_object* v_keyName_12579_; lean_object* v_dir_12580_; lean_object* v_moreLeancArgs_12581_; lean_object* v_weakLeancArgs_12582_; uint8_t v_bootstrap_12583_; lean_object* v_buildDir_12584_; lean_object* v_irDir_12585_; lean_object* v_moreLeancArgs_12586_; lean_object* v_weakLeancArgs_12587_; uint8_t v___y_12588_; lean_object* v___y_12628_; uint8_t v___x_12653_; uint8_t v___x_12654_; 
v_toBuildConfig_12570_ = lean_ctor_get(v_a_12567_, 0);
v_registeredJobs_12571_ = lean_ctor_get(v_a_12567_, 3);
lean_inc(v_registeredJobs_12571_);
v_verbosity_12572_ = lean_ctor_get_uint8(v_toBuildConfig_12570_, sizeof(void*)*2 + 3);
v___x_12573_ = l_Lake_instDataKindFilePath;
v___x_12653_ = 2;
v___x_12654_ = l_Lake_instDecidableEqVerbosity(v_verbosity_12572_, v___x_12653_);
if (v___x_12654_ == 0)
{
lean_object* v___x_12655_; 
v___x_12655_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1));
v___y_12628_ = v___x_12655_;
goto v___jp_12627_;
}
else
{
lean_object* v___x_12656_; 
v___x_12656_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___closed__3));
v___y_12628_ = v___x_12656_;
goto v___jp_12627_;
}
v___jp_12574_:
{
lean_object* v___x_12589_; lean_object* v___x_12590_; lean_object* v___x_12591_; lean_object* v___x_12592_; lean_object* v___x_12593_; lean_object* v___x_12594_; lean_object* v___x_12595_; lean_object* v___x_12596_; lean_object* v___x_12597_; lean_object* v___x_12598_; lean_object* v___x_12599_; lean_object* v___f_12600_; lean_object* v___x_12601_; 
v___x_12589_ = l_Lake_BuildType_leancArgs(v___y_12588_);
v___x_12590_ = l_Array_append___redArg(v___x_12589_, v_moreLeancArgs_12581_);
lean_dec_ref(v_moreLeancArgs_12581_);
v___x_12591_ = l_Array_append___redArg(v___x_12590_, v_moreLeancArgs_12586_);
lean_dec_ref(v_moreLeancArgs_12586_);
v___x_12592_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___closed__1));
v___x_12593_ = l_Array_append___redArg(v___x_12591_, v___x_12592_);
v___x_12594_ = l_Lake_Module_cFacet;
v___x_12595_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_12595_, 0, v_keyName_12579_);
lean_ctor_set(v___x_12595_, 1, v___y_12577_);
v___x_12596_ = l_Lake_Module_keyword;
v___x_12597_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_12597_, 0, v___x_12595_);
lean_ctor_set(v___x_12597_, 1, v___x_12596_);
lean_ctor_set(v___x_12597_, 2, v_self_12562_);
lean_ctor_set(v___x_12597_, 3, v___x_12594_);
v___x_12598_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_12598_, 0, v___y_12578_);
v___x_12599_ = lean_box(v_bootstrap_12583_);
v___f_12600_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___lam__0___boxed), 17, 10);
lean_closure_set(v___f_12600_, 0, v___x_12597_);
lean_closure_set(v___f_12600_, 1, v___x_12598_);
lean_closure_set(v___f_12600_, 2, v_buildDir_12584_);
lean_closure_set(v___f_12600_, 3, v_dir_12580_);
lean_closure_set(v___f_12600_, 4, v_irDir_12585_);
lean_closure_set(v___f_12600_, 5, v___y_12575_);
lean_closure_set(v___f_12600_, 6, v_weakLeancArgs_12582_);
lean_closure_set(v___f_12600_, 7, v_weakLeancArgs_12587_);
lean_closure_set(v___f_12600_, 8, v___x_12593_);
lean_closure_set(v___f_12600_, 9, v___x_12599_);
v___x_12601_ = l_Lake_ensureJob___redArg(v___x_12573_, v___f_12600_, v_a_12563_, v_a_12564_, v_a_12565_, v_a_12566_, v_a_12567_, v_a_12568_);
if (lean_obj_tag(v___x_12601_) == 0)
{
lean_object* v_a_12602_; lean_object* v_a_12603_; lean_object* v___x_12605_; uint8_t v_isShared_12606_; uint8_t v_isSharedCheck_12626_; 
v_a_12602_ = lean_ctor_get(v___x_12601_, 0);
v_a_12603_ = lean_ctor_get(v___x_12601_, 1);
v_isSharedCheck_12626_ = !lean_is_exclusive(v___x_12601_);
if (v_isSharedCheck_12626_ == 0)
{
v___x_12605_ = v___x_12601_;
v_isShared_12606_ = v_isSharedCheck_12626_;
goto v_resetjp_12604_;
}
else
{
lean_inc(v_a_12603_);
lean_inc(v_a_12602_);
lean_dec(v___x_12601_);
v___x_12605_ = lean_box(0);
v_isShared_12606_ = v_isSharedCheck_12626_;
goto v_resetjp_12604_;
}
v_resetjp_12604_:
{
lean_object* v_task_12607_; lean_object* v_kind_12608_; lean_object* v___x_12610_; uint8_t v_isShared_12611_; uint8_t v_isSharedCheck_12624_; 
v_task_12607_ = lean_ctor_get(v_a_12602_, 0);
v_kind_12608_ = lean_ctor_get(v_a_12602_, 1);
v_isSharedCheck_12624_ = !lean_is_exclusive(v_a_12602_);
if (v_isSharedCheck_12624_ == 0)
{
lean_object* v_unused_12625_; 
v_unused_12625_ = lean_ctor_get(v_a_12602_, 2);
lean_dec(v_unused_12625_);
v___x_12610_ = v_a_12602_;
v_isShared_12611_ = v_isSharedCheck_12624_;
goto v_resetjp_12609_;
}
else
{
lean_inc(v_kind_12608_);
lean_inc(v_task_12607_);
lean_dec(v_a_12602_);
v___x_12610_ = lean_box(0);
v_isShared_12611_ = v_isSharedCheck_12624_;
goto v_resetjp_12609_;
}
v_resetjp_12609_:
{
lean_object* v___x_12612_; uint8_t v___x_12613_; lean_object* v_job_12615_; 
v___x_12612_ = lean_st_ref_take(v_registeredJobs_12571_);
v___x_12613_ = 0;
if (v_isShared_12611_ == 0)
{
lean_ctor_set(v___x_12610_, 2, v___y_12576_);
v_job_12615_ = v___x_12610_;
goto v_reusejp_12614_;
}
else
{
lean_object* v_reuseFailAlloc_12623_; 
v_reuseFailAlloc_12623_ = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(v_reuseFailAlloc_12623_, 0, v_task_12607_);
lean_ctor_set(v_reuseFailAlloc_12623_, 1, v_kind_12608_);
lean_ctor_set(v_reuseFailAlloc_12623_, 2, v___y_12576_);
v_job_12615_ = v_reuseFailAlloc_12623_;
goto v_reusejp_12614_;
}
v_reusejp_12614_:
{
lean_object* v___x_12616_; lean_object* v___x_12617_; lean_object* v___x_12618_; lean_object* v___x_12619_; lean_object* v___x_12621_; 
lean_ctor_set_uint8(v_job_12615_, sizeof(void*)*3, v___x_12613_);
lean_inc_ref(v_job_12615_);
v___x_12616_ = l_Lake_Job_toOpaque___redArg(v_job_12615_);
v___x_12617_ = lean_array_push(v___x_12612_, v___x_12616_);
v___x_12618_ = lean_st_ref_set(v_registeredJobs_12571_, v___x_12617_);
lean_dec(v_registeredJobs_12571_);
v___x_12619_ = l_Lake_Job_renew___redArg(v_job_12615_);
if (v_isShared_12606_ == 0)
{
lean_ctor_set(v___x_12605_, 0, v___x_12619_);
v___x_12621_ = v___x_12605_;
goto v_reusejp_12620_;
}
else
{
lean_object* v_reuseFailAlloc_12622_; 
v_reuseFailAlloc_12622_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_12622_, 0, v___x_12619_);
lean_ctor_set(v_reuseFailAlloc_12622_, 1, v_a_12603_);
v___x_12621_ = v_reuseFailAlloc_12622_;
goto v_reusejp_12620_;
}
v_reusejp_12620_:
{
return v___x_12621_;
}
}
}
}
}
else
{
lean_dec_ref(v___y_12576_);
lean_dec(v_registeredJobs_12571_);
return v___x_12601_;
}
}
v___jp_12627_:
{
lean_object* v_lib_12629_; lean_object* v_pkg_12630_; lean_object* v_config_12631_; lean_object* v_toLeanConfig_12632_; lean_object* v_config_12633_; lean_object* v_toLeanConfig_12634_; lean_object* v_name_12635_; lean_object* v_keyName_12636_; lean_object* v_dir_12637_; uint8_t v_bootstrap_12638_; lean_object* v_buildDir_12639_; lean_object* v_irDir_12640_; uint8_t v_buildType_12641_; lean_object* v_moreLeancArgs_12642_; lean_object* v_weakLeancArgs_12643_; uint8_t v_buildType_12644_; lean_object* v_moreLeancArgs_12645_; lean_object* v_weakLeancArgs_12646_; uint8_t v___x_12647_; lean_object* v___x_12648_; lean_object* v___x_12649_; lean_object* v___x_12650_; lean_object* v___x_12651_; uint8_t v___x_12652_; 
v_lib_12629_ = lean_ctor_get(v_self_12562_, 0);
v_pkg_12630_ = lean_ctor_get(v_lib_12629_, 0);
v_config_12631_ = lean_ctor_get(v_pkg_12630_, 6);
v_toLeanConfig_12632_ = lean_ctor_get(v_config_12631_, 1);
v_config_12633_ = lean_ctor_get(v_lib_12629_, 2);
v_toLeanConfig_12634_ = lean_ctor_get(v_config_12633_, 0);
v_name_12635_ = lean_ctor_get(v_self_12562_, 1);
v_keyName_12636_ = lean_ctor_get(v_pkg_12630_, 2);
v_dir_12637_ = lean_ctor_get(v_pkg_12630_, 4);
v_bootstrap_12638_ = lean_ctor_get_uint8(v_config_12631_, sizeof(void*)*27);
v_buildDir_12639_ = lean_ctor_get(v_config_12631_, 6);
v_irDir_12640_ = lean_ctor_get(v_config_12631_, 10);
v_buildType_12641_ = lean_ctor_get_uint8(v_toLeanConfig_12632_, sizeof(void*)*13);
v_moreLeancArgs_12642_ = lean_ctor_get(v_toLeanConfig_12632_, 3);
v_weakLeancArgs_12643_ = lean_ctor_get(v_toLeanConfig_12632_, 5);
v_buildType_12644_ = lean_ctor_get_uint8(v_toLeanConfig_12634_, sizeof(void*)*13);
v_moreLeancArgs_12645_ = lean_ctor_get(v_toLeanConfig_12634_, 3);
v_weakLeancArgs_12646_ = lean_ctor_get(v_toLeanConfig_12634_, 5);
v___x_12647_ = 1;
lean_inc(v_name_12635_);
v___x_12648_ = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(v_name_12635_, v___x_12647_);
v___x_12649_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___closed__2));
v___x_12650_ = lean_string_append(v___x_12648_, v___x_12649_);
v___x_12651_ = lean_string_append(v___x_12650_, v___y_12628_);
lean_dec_ref(v___y_12628_);
v___x_12652_ = l_Lake_instOrdBuildType_ord(v_buildType_12641_, v_buildType_12644_);
if (v___x_12652_ == 2)
{
lean_inc_ref(v_weakLeancArgs_12646_);
lean_inc_ref(v_moreLeancArgs_12645_);
lean_inc_ref(v_irDir_12640_);
lean_inc_ref(v_buildDir_12639_);
lean_inc_ref(v_weakLeancArgs_12643_);
lean_inc_ref(v_moreLeancArgs_12642_);
lean_inc_ref(v_dir_12637_);
lean_inc(v_keyName_12636_);
lean_inc_ref(v_pkg_12630_);
lean_inc_n(v_name_12635_, 2);
v___y_12575_ = v_name_12635_;
v___y_12576_ = v___x_12651_;
v___y_12577_ = v_name_12635_;
v___y_12578_ = v_pkg_12630_;
v_keyName_12579_ = v_keyName_12636_;
v_dir_12580_ = v_dir_12637_;
v_moreLeancArgs_12581_ = v_moreLeancArgs_12642_;
v_weakLeancArgs_12582_ = v_weakLeancArgs_12643_;
v_bootstrap_12583_ = v_bootstrap_12638_;
v_buildDir_12584_ = v_buildDir_12639_;
v_irDir_12585_ = v_irDir_12640_;
v_moreLeancArgs_12586_ = v_moreLeancArgs_12645_;
v_weakLeancArgs_12587_ = v_weakLeancArgs_12646_;
v___y_12588_ = v_buildType_12644_;
goto v___jp_12574_;
}
else
{
lean_inc_ref(v_weakLeancArgs_12646_);
lean_inc_ref(v_moreLeancArgs_12645_);
lean_inc_ref(v_irDir_12640_);
lean_inc_ref(v_buildDir_12639_);
lean_inc_ref(v_weakLeancArgs_12643_);
lean_inc_ref(v_moreLeancArgs_12642_);
lean_inc_ref(v_dir_12637_);
lean_inc(v_keyName_12636_);
lean_inc_ref(v_pkg_12630_);
lean_inc_n(v_name_12635_, 2);
v___y_12575_ = v_name_12635_;
v___y_12576_ = v___x_12651_;
v___y_12577_ = v_name_12635_;
v___y_12578_ = v_pkg_12630_;
v_keyName_12579_ = v_keyName_12636_;
v_dir_12580_ = v_dir_12637_;
v_moreLeancArgs_12581_ = v_moreLeancArgs_12642_;
v_weakLeancArgs_12582_ = v_weakLeancArgs_12643_;
v_bootstrap_12583_ = v_bootstrap_12638_;
v_buildDir_12584_ = v_buildDir_12639_;
v_irDir_12585_ = v_irDir_12640_;
v_moreLeancArgs_12586_ = v_moreLeancArgs_12645_;
v_weakLeancArgs_12587_ = v_weakLeancArgs_12646_;
v___y_12588_ = v_buildType_12641_;
goto v___jp_12574_;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___boxed(lean_object* v_self_12657_, lean_object* v_a_12658_, lean_object* v_a_12659_, lean_object* v_a_12660_, lean_object* v_a_12661_, lean_object* v_a_12662_, lean_object* v_a_12663_, lean_object* v_a_12664_){
_start:
{
lean_object* v_res_12665_; 
v_res_12665_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport(v_self_12657_, v_a_12658_, v_a_12659_, v_a_12660_, v_a_12661_, v_a_12662_, v_a_12663_);
return v_res_12665_;
}
}
static lean_object* _init_l_Lake_Module_coExportFacetConfig___closed__1(void){
_start:
{
lean_object* v___f_12667_; uint8_t v___x_12668_; lean_object* v___x_12669_; lean_object* v___x_12670_; lean_object* v___x_12671_; lean_object* v___x_12672_; 
v___f_12667_ = ((lean_object*)(l_Lake_Module_leanFacetConfig___closed__0));
v___x_12668_ = 1;
v___x_12669_ = l_Lake_instDataKindFilePath;
v___x_12670_ = ((lean_object*)(l_Lake_Module_coExportFacetConfig___closed__0));
v___x_12671_ = l_Lake_Module_keyword;
v___x_12672_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_12672_, 0, v___x_12671_);
lean_ctor_set(v___x_12672_, 1, v___x_12670_);
lean_ctor_set(v___x_12672_, 2, v___x_12669_);
lean_ctor_set(v___x_12672_, 3, v___f_12667_);
lean_ctor_set_uint8(v___x_12672_, sizeof(void*)*4, v___x_12668_);
lean_ctor_set_uint8(v___x_12672_, sizeof(void*)*4 + 1, v___x_12668_);
return v___x_12672_;
}
}
static lean_object* _init_l_Lake_Module_coExportFacetConfig(void){
_start:
{
lean_object* v___x_12673_; 
v___x_12673_ = lean_obj_once(&l_Lake_Module_coExportFacetConfig___closed__1, &l_Lake_Module_coExportFacetConfig___closed__1_once, _init_l_Lake_Module_coExportFacetConfig___closed__1);
return v___x_12673_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToONoExport___lam__0(lean_object* v___x_12675_, lean_object* v___x_12676_, lean_object* v_config_12677_, lean_object* v_config_12678_, lean_object* v_dir_12679_, lean_object* v_name_12680_, lean_object* v___y_12681_, lean_object* v___y_12682_, lean_object* v___y_12683_, lean_object* v___y_12684_, lean_object* v___y_12685_, lean_object* v___y_12686_){
_start:
{
lean_object* v___x_12688_; 
lean_inc_ref(v___y_12681_);
lean_inc_ref(v___y_12685_);
lean_inc(v___y_12684_);
lean_inc(v___y_12683_);
lean_inc(v___x_12676_);
v___x_12688_ = lean_apply_7(v___y_12681_, v___x_12675_, v___x_12676_, v___y_12683_, v___y_12684_, v___y_12685_, v___y_12686_, lean_box(0));
if (lean_obj_tag(v___x_12688_) == 0)
{
lean_object* v_toLeanConfig_12689_; lean_object* v_toLeanConfig_12690_; lean_object* v_a_12691_; lean_object* v_a_12692_; lean_object* v___x_12694_; uint8_t v_isShared_12695_; uint8_t v_isSharedCheck_12730_; 
v_toLeanConfig_12689_ = lean_ctor_get(v_config_12677_, 1);
lean_inc_ref(v_toLeanConfig_12689_);
v_toLeanConfig_12690_ = lean_ctor_get(v_config_12678_, 0);
v_a_12691_ = lean_ctor_get(v___x_12688_, 0);
v_a_12692_ = lean_ctor_get(v___x_12688_, 1);
v_isSharedCheck_12730_ = !lean_is_exclusive(v___x_12688_);
if (v_isSharedCheck_12730_ == 0)
{
v___x_12694_ = v___x_12688_;
v_isShared_12695_ = v_isSharedCheck_12730_;
goto v_resetjp_12693_;
}
else
{
lean_inc(v_a_12692_);
lean_inc(v_a_12691_);
lean_dec(v___x_12688_);
v___x_12694_ = lean_box(0);
v_isShared_12695_ = v_isSharedCheck_12730_;
goto v_resetjp_12693_;
}
v_resetjp_12693_:
{
uint8_t v_bootstrap_12696_; lean_object* v_buildDir_12697_; lean_object* v_irDir_12698_; uint8_t v_buildType_12699_; lean_object* v_moreLeancArgs_12700_; lean_object* v_weakLeancArgs_12701_; uint8_t v_buildType_12702_; lean_object* v_moreLeancArgs_12703_; lean_object* v_weakLeancArgs_12704_; lean_object* v___x_12705_; lean_object* v___x_12706_; lean_object* v___x_12707_; lean_object* v___x_12708_; lean_object* v___x_12709_; lean_object* v___x_12710_; lean_object* v___x_12711_; lean_object* v___y_12713_; lean_object* v___y_12714_; uint8_t v___y_12721_; uint8_t v___x_12729_; 
v_bootstrap_12696_ = lean_ctor_get_uint8(v_config_12677_, sizeof(void*)*27);
v_buildDir_12697_ = lean_ctor_get(v_config_12677_, 6);
lean_inc_ref(v_buildDir_12697_);
v_irDir_12698_ = lean_ctor_get(v_config_12677_, 10);
lean_inc_ref(v_irDir_12698_);
lean_dec_ref(v_config_12677_);
v_buildType_12699_ = lean_ctor_get_uint8(v_toLeanConfig_12689_, sizeof(void*)*13);
v_moreLeancArgs_12700_ = lean_ctor_get(v_toLeanConfig_12689_, 3);
lean_inc_ref(v_moreLeancArgs_12700_);
v_weakLeancArgs_12701_ = lean_ctor_get(v_toLeanConfig_12689_, 5);
lean_inc_ref(v_weakLeancArgs_12701_);
lean_dec_ref(v_toLeanConfig_12689_);
v_buildType_12702_ = lean_ctor_get_uint8(v_toLeanConfig_12690_, sizeof(void*)*13);
v_moreLeancArgs_12703_ = lean_ctor_get(v_toLeanConfig_12690_, 3);
v_weakLeancArgs_12704_ = lean_ctor_get(v_toLeanConfig_12690_, 5);
v___x_12705_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToONoExport___lam__0___closed__0));
v___x_12706_ = l_System_FilePath_normalize(v_buildDir_12697_);
v___x_12707_ = l_Lake_joinRelative(v_dir_12679_, v___x_12706_);
v___x_12708_ = l_System_FilePath_normalize(v_irDir_12698_);
lean_inc_ref(v___x_12707_);
v___x_12709_ = l_Lake_joinRelative(v___x_12707_, v___x_12708_);
v___x_12710_ = l_Lean_modToFilePath(v___x_12709_, v_name_12680_, v___x_12705_);
lean_dec_ref(v___x_12709_);
v___x_12711_ = l_Array_append___redArg(v_weakLeancArgs_12701_, v_weakLeancArgs_12704_);
v___x_12729_ = l_Lake_instOrdBuildType_ord(v_buildType_12699_, v_buildType_12702_);
if (v___x_12729_ == 2)
{
v___y_12721_ = v_buildType_12702_;
goto v___jp_12720_;
}
else
{
v___y_12721_ = v_buildType_12699_;
goto v___jp_12720_;
}
v___jp_12712_:
{
lean_object* v___x_12715_; lean_object* v___x_12716_; lean_object* v___x_12718_; 
v___x_12715_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_12716_ = l_Lake_buildLeanO(v___x_12710_, v_a_12691_, v___x_12711_, v___y_12713_, v___y_12714_, v___y_12681_, v___x_12676_, v___y_12683_, v___y_12684_, v___y_12685_, v___x_12715_);
if (v_isShared_12695_ == 0)
{
lean_ctor_set(v___x_12694_, 0, v___x_12716_);
v___x_12718_ = v___x_12694_;
goto v_reusejp_12717_;
}
else
{
lean_object* v_reuseFailAlloc_12719_; 
v_reuseFailAlloc_12719_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_12719_, 0, v___x_12716_);
lean_ctor_set(v_reuseFailAlloc_12719_, 1, v_a_12692_);
v___x_12718_ = v_reuseFailAlloc_12719_;
goto v_reusejp_12717_;
}
v_reusejp_12717_:
{
return v___x_12718_;
}
}
v___jp_12720_:
{
lean_object* v___x_12722_; lean_object* v___x_12723_; lean_object* v___x_12724_; 
v___x_12722_ = l_Lake_BuildType_leancArgs(v___y_12721_);
v___x_12723_ = l_Array_append___redArg(v___x_12722_, v_moreLeancArgs_12700_);
lean_dec_ref(v_moreLeancArgs_12700_);
v___x_12724_ = l_Array_append___redArg(v___x_12723_, v_moreLeancArgs_12703_);
if (v_bootstrap_12696_ == 0)
{
lean_object* v___x_12725_; 
lean_dec_ref(v___x_12707_);
v___x_12725_ = lean_box(0);
v___y_12713_ = v___x_12724_;
v___y_12714_ = v___x_12725_;
goto v___jp_12712_;
}
else
{
lean_object* v___x_12726_; lean_object* v___x_12727_; lean_object* v___x_12728_; 
v___x_12726_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___lam__0___closed__1));
v___x_12727_ = l_Lake_joinRelative(v___x_12707_, v___x_12726_);
v___x_12728_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_12728_, 0, v___x_12727_);
v___y_12713_ = v___x_12724_;
v___y_12714_ = v___x_12728_;
goto v___jp_12712_;
}
}
}
}
else
{
lean_dec_ref(v___y_12685_);
lean_dec(v___y_12684_);
lean_dec(v___y_12683_);
lean_dec_ref(v___y_12681_);
lean_dec(v_name_12680_);
lean_dec_ref(v_dir_12679_);
lean_dec_ref(v_config_12677_);
lean_dec(v___x_12676_);
return v___x_12688_;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToONoExport___lam__0___boxed(lean_object* v___x_12731_, lean_object* v___x_12732_, lean_object* v_config_12733_, lean_object* v_config_12734_, lean_object* v_dir_12735_, lean_object* v_name_12736_, lean_object* v___y_12737_, lean_object* v___y_12738_, lean_object* v___y_12739_, lean_object* v___y_12740_, lean_object* v___y_12741_, lean_object* v___y_12742_, lean_object* v___y_12743_){
_start:
{
lean_object* v_res_12744_; 
v_res_12744_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToONoExport___lam__0(v___x_12731_, v___x_12732_, v_config_12733_, v_config_12734_, v_dir_12735_, v_name_12736_, v___y_12737_, v___y_12738_, v___y_12739_, v___y_12740_, v___y_12741_, v___y_12742_);
lean_dec(v___y_12738_);
lean_dec(v_config_12734_);
return v_res_12744_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToONoExport(lean_object* v_self_12746_, lean_object* v_a_12747_, lean_object* v_a_12748_, lean_object* v_a_12749_, lean_object* v_a_12750_, lean_object* v_a_12751_, lean_object* v_a_12752_){
_start:
{
lean_object* v_toBuildConfig_12754_; lean_object* v_registeredJobs_12755_; uint8_t v_verbosity_12756_; lean_object* v___x_12757_; lean_object* v___y_12759_; uint8_t v___x_12804_; uint8_t v___x_12805_; 
v_toBuildConfig_12754_ = lean_ctor_get(v_a_12751_, 0);
v_registeredJobs_12755_ = lean_ctor_get(v_a_12751_, 3);
lean_inc(v_registeredJobs_12755_);
v_verbosity_12756_ = lean_ctor_get_uint8(v_toBuildConfig_12754_, sizeof(void*)*2 + 3);
v___x_12757_ = l_Lake_instDataKindFilePath;
v___x_12804_ = 2;
v___x_12805_ = l_Lake_instDecidableEqVerbosity(v_verbosity_12756_, v___x_12804_);
if (v___x_12805_ == 0)
{
lean_object* v___x_12806_; 
v___x_12806_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__1));
v___y_12759_ = v___x_12806_;
goto v___jp_12758_;
}
else
{
lean_object* v___x_12807_; 
v___x_12807_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToONoExport___closed__0));
v___y_12759_ = v___x_12807_;
goto v___jp_12758_;
}
v___jp_12758_:
{
lean_object* v_lib_12760_; lean_object* v_pkg_12761_; lean_object* v_name_12762_; lean_object* v_config_12763_; lean_object* v_keyName_12764_; lean_object* v_dir_12765_; lean_object* v_config_12766_; lean_object* v___x_12767_; lean_object* v___x_12768_; lean_object* v___x_12769_; lean_object* v___x_12770_; lean_object* v___x_12771_; lean_object* v___f_12772_; lean_object* v___x_12773_; 
v_lib_12760_ = lean_ctor_get(v_self_12746_, 0);
v_pkg_12761_ = lean_ctor_get(v_lib_12760_, 0);
lean_inc_ref(v_pkg_12761_);
v_name_12762_ = lean_ctor_get(v_self_12746_, 1);
lean_inc(v_name_12762_);
v_config_12763_ = lean_ctor_get(v_lib_12760_, 2);
lean_inc(v_config_12763_);
v_keyName_12764_ = lean_ctor_get(v_pkg_12761_, 2);
v_dir_12765_ = lean_ctor_get(v_pkg_12761_, 4);
lean_inc_ref(v_dir_12765_);
v_config_12766_ = lean_ctor_get(v_pkg_12761_, 6);
lean_inc_ref(v_config_12766_);
v___x_12767_ = l_Lake_Module_cFacet;
lean_inc(v_name_12762_);
lean_inc(v_keyName_12764_);
v___x_12768_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_12768_, 0, v_keyName_12764_);
lean_ctor_set(v___x_12768_, 1, v_name_12762_);
v___x_12769_ = l_Lake_Module_keyword;
v___x_12770_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_12770_, 0, v___x_12768_);
lean_ctor_set(v___x_12770_, 1, v___x_12769_);
lean_ctor_set(v___x_12770_, 2, v_self_12746_);
lean_ctor_set(v___x_12770_, 3, v___x_12767_);
v___x_12771_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_12771_, 0, v_pkg_12761_);
lean_inc(v_name_12762_);
v___f_12772_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToONoExport___lam__0___boxed), 13, 6);
lean_closure_set(v___f_12772_, 0, v___x_12770_);
lean_closure_set(v___f_12772_, 1, v___x_12771_);
lean_closure_set(v___f_12772_, 2, v_config_12766_);
lean_closure_set(v___f_12772_, 3, v_config_12763_);
lean_closure_set(v___f_12772_, 4, v_dir_12765_);
lean_closure_set(v___f_12772_, 5, v_name_12762_);
v___x_12773_ = l_Lake_ensureJob___redArg(v___x_12757_, v___f_12772_, v_a_12747_, v_a_12748_, v_a_12749_, v_a_12750_, v_a_12751_, v_a_12752_);
if (lean_obj_tag(v___x_12773_) == 0)
{
lean_object* v_a_12774_; lean_object* v_a_12775_; lean_object* v___x_12777_; uint8_t v_isShared_12778_; uint8_t v_isSharedCheck_12803_; 
v_a_12774_ = lean_ctor_get(v___x_12773_, 0);
v_a_12775_ = lean_ctor_get(v___x_12773_, 1);
v_isSharedCheck_12803_ = !lean_is_exclusive(v___x_12773_);
if (v_isSharedCheck_12803_ == 0)
{
v___x_12777_ = v___x_12773_;
v_isShared_12778_ = v_isSharedCheck_12803_;
goto v_resetjp_12776_;
}
else
{
lean_inc(v_a_12775_);
lean_inc(v_a_12774_);
lean_dec(v___x_12773_);
v___x_12777_ = lean_box(0);
v_isShared_12778_ = v_isSharedCheck_12803_;
goto v_resetjp_12776_;
}
v_resetjp_12776_:
{
lean_object* v_task_12779_; lean_object* v_kind_12780_; lean_object* v___x_12782_; uint8_t v_isShared_12783_; uint8_t v_isSharedCheck_12801_; 
v_task_12779_ = lean_ctor_get(v_a_12774_, 0);
v_kind_12780_ = lean_ctor_get(v_a_12774_, 1);
v_isSharedCheck_12801_ = !lean_is_exclusive(v_a_12774_);
if (v_isSharedCheck_12801_ == 0)
{
lean_object* v_unused_12802_; 
v_unused_12802_ = lean_ctor_get(v_a_12774_, 2);
lean_dec(v_unused_12802_);
v___x_12782_ = v_a_12774_;
v_isShared_12783_ = v_isSharedCheck_12801_;
goto v_resetjp_12781_;
}
else
{
lean_inc(v_kind_12780_);
lean_inc(v_task_12779_);
lean_dec(v_a_12774_);
v___x_12782_ = lean_box(0);
v_isShared_12783_ = v_isSharedCheck_12801_;
goto v_resetjp_12781_;
}
v_resetjp_12781_:
{
lean_object* v___x_12784_; uint8_t v___x_12785_; lean_object* v___x_12786_; lean_object* v___x_12787_; lean_object* v___x_12788_; lean_object* v___x_12789_; uint8_t v___x_12790_; lean_object* v_job_12792_; 
v___x_12784_ = lean_st_ref_take(v_registeredJobs_12755_);
v___x_12785_ = 1;
v___x_12786_ = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(v_name_12762_, v___x_12785_);
v___x_12787_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___closed__2));
v___x_12788_ = lean_string_append(v___x_12786_, v___x_12787_);
v___x_12789_ = lean_string_append(v___x_12788_, v___y_12759_);
lean_dec_ref(v___y_12759_);
v___x_12790_ = 0;
if (v_isShared_12783_ == 0)
{
lean_ctor_set(v___x_12782_, 2, v___x_12789_);
v_job_12792_ = v___x_12782_;
goto v_reusejp_12791_;
}
else
{
lean_object* v_reuseFailAlloc_12800_; 
v_reuseFailAlloc_12800_ = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(v_reuseFailAlloc_12800_, 0, v_task_12779_);
lean_ctor_set(v_reuseFailAlloc_12800_, 1, v_kind_12780_);
lean_ctor_set(v_reuseFailAlloc_12800_, 2, v___x_12789_);
v_job_12792_ = v_reuseFailAlloc_12800_;
goto v_reusejp_12791_;
}
v_reusejp_12791_:
{
lean_object* v___x_12793_; lean_object* v___x_12794_; lean_object* v___x_12795_; lean_object* v___x_12796_; lean_object* v___x_12798_; 
lean_ctor_set_uint8(v_job_12792_, sizeof(void*)*3, v___x_12790_);
lean_inc_ref(v_job_12792_);
v___x_12793_ = l_Lake_Job_toOpaque___redArg(v_job_12792_);
v___x_12794_ = lean_array_push(v___x_12784_, v___x_12793_);
v___x_12795_ = lean_st_ref_set(v_registeredJobs_12755_, v___x_12794_);
lean_dec(v_registeredJobs_12755_);
v___x_12796_ = l_Lake_Job_renew___redArg(v_job_12792_);
if (v_isShared_12778_ == 0)
{
lean_ctor_set(v___x_12777_, 0, v___x_12796_);
v___x_12798_ = v___x_12777_;
goto v_reusejp_12797_;
}
else
{
lean_object* v_reuseFailAlloc_12799_; 
v_reuseFailAlloc_12799_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_12799_, 0, v___x_12796_);
lean_ctor_set(v_reuseFailAlloc_12799_, 1, v_a_12775_);
v___x_12798_ = v_reuseFailAlloc_12799_;
goto v_reusejp_12797_;
}
v_reusejp_12797_:
{
return v___x_12798_;
}
}
}
}
}
else
{
lean_dec(v_name_12762_);
lean_dec_ref(v___y_12759_);
lean_dec(v_registeredJobs_12755_);
return v___x_12773_;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToONoExport___boxed(lean_object* v_self_12808_, lean_object* v_a_12809_, lean_object* v_a_12810_, lean_object* v_a_12811_, lean_object* v_a_12812_, lean_object* v_a_12813_, lean_object* v_a_12814_, lean_object* v_a_12815_){
_start:
{
lean_object* v_res_12816_; 
v_res_12816_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToONoExport(v_self_12808_, v_a_12809_, v_a_12810_, v_a_12811_, v_a_12812_, v_a_12813_, v_a_12814_);
return v_res_12816_;
}
}
static lean_object* _init_l_Lake_Module_coNoExportFacetConfig___closed__1(void){
_start:
{
lean_object* v___f_12818_; uint8_t v___x_12819_; lean_object* v___x_12820_; lean_object* v___x_12821_; lean_object* v___x_12822_; lean_object* v___x_12823_; 
v___f_12818_ = ((lean_object*)(l_Lake_Module_leanFacetConfig___closed__0));
v___x_12819_ = 1;
v___x_12820_ = l_Lake_instDataKindFilePath;
v___x_12821_ = ((lean_object*)(l_Lake_Module_coNoExportFacetConfig___closed__0));
v___x_12822_ = l_Lake_Module_keyword;
v___x_12823_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_12823_, 0, v___x_12822_);
lean_ctor_set(v___x_12823_, 1, v___x_12821_);
lean_ctor_set(v___x_12823_, 2, v___x_12820_);
lean_ctor_set(v___x_12823_, 3, v___f_12818_);
lean_ctor_set_uint8(v___x_12823_, sizeof(void*)*4, v___x_12819_);
lean_ctor_set_uint8(v___x_12823_, sizeof(void*)*4 + 1, v___x_12819_);
return v___x_12823_;
}
}
static lean_object* _init_l_Lake_Module_coNoExportFacetConfig(void){
_start:
{
lean_object* v___x_12824_; 
v___x_12824_ = lean_obj_once(&l_Lake_Module_coNoExportFacetConfig___closed__1, &l_Lake_Module_coNoExportFacetConfig___closed__1_once, _init_l_Lake_Module_coNoExportFacetConfig___closed__1);
return v___x_12824_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_coFacetConfig___lam__0(lean_object* v_mod_12825_, lean_object* v___y_12826_, lean_object* v___y_12827_, lean_object* v___y_12828_, lean_object* v___y_12829_, lean_object* v___y_12830_, lean_object* v___y_12831_){
_start:
{
uint8_t v___x_12833_; 
v___x_12833_ = l_System_Platform_isWindows;
if (v___x_12833_ == 0)
{
lean_object* v_lib_12834_; lean_object* v_pkg_12835_; lean_object* v_name_12836_; lean_object* v_keyName_12837_; lean_object* v___x_12838_; lean_object* v___x_12839_; lean_object* v___x_12840_; lean_object* v___x_12841_; lean_object* v___x_12842_; 
v_lib_12834_ = lean_ctor_get(v_mod_12825_, 0);
v_pkg_12835_ = lean_ctor_get(v_lib_12834_, 0);
v_name_12836_ = lean_ctor_get(v_mod_12825_, 1);
v_keyName_12837_ = lean_ctor_get(v_pkg_12835_, 2);
v___x_12838_ = l_Lake_Module_coExportFacet;
lean_inc(v_name_12836_);
lean_inc(v_keyName_12837_);
v___x_12839_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_12839_, 0, v_keyName_12837_);
lean_ctor_set(v___x_12839_, 1, v_name_12836_);
v___x_12840_ = l_Lake_Module_keyword;
v___x_12841_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_12841_, 0, v___x_12839_);
lean_ctor_set(v___x_12841_, 1, v___x_12840_);
lean_ctor_set(v___x_12841_, 2, v_mod_12825_);
lean_ctor_set(v___x_12841_, 3, v___x_12838_);
v___x_12842_ = lean_apply_7(v___y_12826_, v___x_12841_, v___y_12827_, v___y_12828_, v___y_12829_, v___y_12830_, v___y_12831_, lean_box(0));
return v___x_12842_;
}
else
{
lean_object* v_lib_12843_; lean_object* v_pkg_12844_; lean_object* v_name_12845_; lean_object* v_keyName_12846_; lean_object* v___x_12847_; lean_object* v___x_12848_; lean_object* v___x_12849_; lean_object* v___x_12850_; lean_object* v___x_12851_; 
v_lib_12843_ = lean_ctor_get(v_mod_12825_, 0);
v_pkg_12844_ = lean_ctor_get(v_lib_12843_, 0);
v_name_12845_ = lean_ctor_get(v_mod_12825_, 1);
v_keyName_12846_ = lean_ctor_get(v_pkg_12844_, 2);
v___x_12847_ = l_Lake_Module_coNoExportFacet;
lean_inc(v_name_12845_);
lean_inc(v_keyName_12846_);
v___x_12848_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_12848_, 0, v_keyName_12846_);
lean_ctor_set(v___x_12848_, 1, v_name_12845_);
v___x_12849_ = l_Lake_Module_keyword;
v___x_12850_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_12850_, 0, v___x_12848_);
lean_ctor_set(v___x_12850_, 1, v___x_12849_);
lean_ctor_set(v___x_12850_, 2, v_mod_12825_);
lean_ctor_set(v___x_12850_, 3, v___x_12847_);
v___x_12851_ = lean_apply_7(v___y_12826_, v___x_12850_, v___y_12827_, v___y_12828_, v___y_12829_, v___y_12830_, v___y_12831_, lean_box(0));
return v___x_12851_;
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_coFacetConfig___lam__0___boxed(lean_object* v_mod_12852_, lean_object* v___y_12853_, lean_object* v___y_12854_, lean_object* v___y_12855_, lean_object* v___y_12856_, lean_object* v___y_12857_, lean_object* v___y_12858_, lean_object* v___y_12859_){
_start:
{
lean_object* v_res_12860_; 
v_res_12860_ = l_Lake_Module_coFacetConfig___lam__0(v_mod_12852_, v___y_12853_, v___y_12854_, v___y_12855_, v___y_12856_, v___y_12857_, v___y_12858_);
return v_res_12860_;
}
}
static lean_object* _init_l_Lake_Module_coFacetConfig___closed__1(void){
_start:
{
uint8_t v___x_12862_; lean_object* v___f_12863_; uint8_t v___x_12864_; lean_object* v___x_12865_; lean_object* v___f_12866_; lean_object* v___x_12867_; lean_object* v___x_12868_; 
v___x_12862_ = 0;
v___f_12863_ = ((lean_object*)(l_Lake_Module_leanFacetConfig___closed__0));
v___x_12864_ = 1;
v___x_12865_ = l_Lake_instDataKindFilePath;
v___f_12866_ = ((lean_object*)(l_Lake_Module_coFacetConfig___closed__0));
v___x_12867_ = l_Lake_Module_keyword;
v___x_12868_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_12868_, 0, v___x_12867_);
lean_ctor_set(v___x_12868_, 1, v___f_12866_);
lean_ctor_set(v___x_12868_, 2, v___x_12865_);
lean_ctor_set(v___x_12868_, 3, v___f_12863_);
lean_ctor_set_uint8(v___x_12868_, sizeof(void*)*4, v___x_12864_);
lean_ctor_set_uint8(v___x_12868_, sizeof(void*)*4 + 1, v___x_12862_);
return v___x_12868_;
}
}
static lean_object* _init_l_Lake_Module_coFacetConfig(void){
_start:
{
lean_object* v___x_12869_; 
v___x_12869_ = lean_obj_once(&l_Lake_Module_coFacetConfig___closed__1, &l_Lake_Module_coFacetConfig___closed__1_once, _init_l_Lake_Module_coFacetConfig___closed__1);
return v___x_12869_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanBcToO___lam__0(lean_object* v___x_12871_, lean_object* v___x_12872_, lean_object* v_config_12873_, lean_object* v_config_12874_, lean_object* v_dir_12875_, lean_object* v_name_12876_, lean_object* v___y_12877_, lean_object* v___y_12878_, lean_object* v___y_12879_, lean_object* v___y_12880_, lean_object* v___y_12881_, lean_object* v___y_12882_){
_start:
{
lean_object* v___x_12884_; 
lean_inc_ref(v___y_12877_);
lean_inc_ref(v___y_12881_);
lean_inc(v___y_12880_);
lean_inc(v___y_12879_);
lean_inc(v___x_12872_);
v___x_12884_ = lean_apply_7(v___y_12877_, v___x_12871_, v___x_12872_, v___y_12879_, v___y_12880_, v___y_12881_, v___y_12882_, lean_box(0));
if (lean_obj_tag(v___x_12884_) == 0)
{
lean_object* v_toLeanConfig_12885_; lean_object* v_toLeanConfig_12886_; lean_object* v_a_12887_; lean_object* v_a_12888_; lean_object* v___x_12890_; uint8_t v_isShared_12891_; uint8_t v_isSharedCheck_12919_; 
v_toLeanConfig_12885_ = lean_ctor_get(v_config_12873_, 1);
lean_inc_ref(v_toLeanConfig_12885_);
v_toLeanConfig_12886_ = lean_ctor_get(v_config_12874_, 0);
v_a_12887_ = lean_ctor_get(v___x_12884_, 0);
v_a_12888_ = lean_ctor_get(v___x_12884_, 1);
v_isSharedCheck_12919_ = !lean_is_exclusive(v___x_12884_);
if (v_isSharedCheck_12919_ == 0)
{
v___x_12890_ = v___x_12884_;
v_isShared_12891_ = v_isSharedCheck_12919_;
goto v_resetjp_12889_;
}
else
{
lean_inc(v_a_12888_);
lean_inc(v_a_12887_);
lean_dec(v___x_12884_);
v___x_12890_ = lean_box(0);
v_isShared_12891_ = v_isSharedCheck_12919_;
goto v_resetjp_12889_;
}
v_resetjp_12889_:
{
lean_object* v_buildDir_12892_; lean_object* v_irDir_12893_; uint8_t v_buildType_12894_; lean_object* v_moreLeancArgs_12895_; lean_object* v_weakLeancArgs_12896_; uint8_t v_buildType_12897_; lean_object* v_moreLeancArgs_12898_; lean_object* v_weakLeancArgs_12899_; lean_object* v___x_12900_; lean_object* v___x_12901_; lean_object* v___x_12902_; lean_object* v___x_12903_; lean_object* v___x_12904_; lean_object* v___x_12905_; lean_object* v___x_12906_; uint8_t v___y_12908_; uint8_t v___x_12918_; 
v_buildDir_12892_ = lean_ctor_get(v_config_12873_, 6);
lean_inc_ref(v_buildDir_12892_);
v_irDir_12893_ = lean_ctor_get(v_config_12873_, 10);
lean_inc_ref(v_irDir_12893_);
lean_dec_ref(v_config_12873_);
v_buildType_12894_ = lean_ctor_get_uint8(v_toLeanConfig_12885_, sizeof(void*)*13);
v_moreLeancArgs_12895_ = lean_ctor_get(v_toLeanConfig_12885_, 3);
lean_inc_ref(v_moreLeancArgs_12895_);
v_weakLeancArgs_12896_ = lean_ctor_get(v_toLeanConfig_12885_, 5);
lean_inc_ref(v_weakLeancArgs_12896_);
lean_dec_ref(v_toLeanConfig_12885_);
v_buildType_12897_ = lean_ctor_get_uint8(v_toLeanConfig_12886_, sizeof(void*)*13);
v_moreLeancArgs_12898_ = lean_ctor_get(v_toLeanConfig_12886_, 3);
v_weakLeancArgs_12899_ = lean_ctor_get(v_toLeanConfig_12886_, 5);
v___x_12900_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanBcToO___lam__0___closed__0));
v___x_12901_ = l_System_FilePath_normalize(v_buildDir_12892_);
v___x_12902_ = l_Lake_joinRelative(v_dir_12875_, v___x_12901_);
v___x_12903_ = l_System_FilePath_normalize(v_irDir_12893_);
v___x_12904_ = l_Lake_joinRelative(v___x_12902_, v___x_12903_);
v___x_12905_ = l_Lean_modToFilePath(v___x_12904_, v_name_12876_, v___x_12900_);
lean_dec_ref(v___x_12904_);
v___x_12906_ = l_Array_append___redArg(v_weakLeancArgs_12896_, v_weakLeancArgs_12899_);
v___x_12918_ = l_Lake_instOrdBuildType_ord(v_buildType_12894_, v_buildType_12897_);
if (v___x_12918_ == 2)
{
v___y_12908_ = v_buildType_12897_;
goto v___jp_12907_;
}
else
{
v___y_12908_ = v_buildType_12894_;
goto v___jp_12907_;
}
v___jp_12907_:
{
lean_object* v___x_12909_; lean_object* v___x_12910_; lean_object* v___x_12911_; lean_object* v___x_12912_; lean_object* v___x_12913_; lean_object* v___x_12914_; lean_object* v___x_12916_; 
v___x_12909_ = l_Lake_BuildType_leancArgs(v___y_12908_);
v___x_12910_ = l_Array_append___redArg(v___x_12909_, v_moreLeancArgs_12895_);
lean_dec_ref(v_moreLeancArgs_12895_);
v___x_12911_ = l_Array_append___redArg(v___x_12910_, v_moreLeancArgs_12898_);
v___x_12912_ = lean_box(0);
v___x_12913_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_12914_ = l_Lake_buildLeanO(v___x_12905_, v_a_12887_, v___x_12906_, v___x_12911_, v___x_12912_, v___y_12877_, v___x_12872_, v___y_12879_, v___y_12880_, v___y_12881_, v___x_12913_);
if (v_isShared_12891_ == 0)
{
lean_ctor_set(v___x_12890_, 0, v___x_12914_);
v___x_12916_ = v___x_12890_;
goto v_reusejp_12915_;
}
else
{
lean_object* v_reuseFailAlloc_12917_; 
v_reuseFailAlloc_12917_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_12917_, 0, v___x_12914_);
lean_ctor_set(v_reuseFailAlloc_12917_, 1, v_a_12888_);
v___x_12916_ = v_reuseFailAlloc_12917_;
goto v_reusejp_12915_;
}
v_reusejp_12915_:
{
return v___x_12916_;
}
}
}
}
else
{
lean_dec_ref(v___y_12881_);
lean_dec(v___y_12880_);
lean_dec(v___y_12879_);
lean_dec_ref(v___y_12877_);
lean_dec(v_name_12876_);
lean_dec_ref(v_dir_12875_);
lean_dec_ref(v_config_12873_);
lean_dec(v___x_12872_);
return v___x_12884_;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanBcToO___lam__0___boxed(lean_object* v___x_12920_, lean_object* v___x_12921_, lean_object* v_config_12922_, lean_object* v_config_12923_, lean_object* v_dir_12924_, lean_object* v_name_12925_, lean_object* v___y_12926_, lean_object* v___y_12927_, lean_object* v___y_12928_, lean_object* v___y_12929_, lean_object* v___y_12930_, lean_object* v___y_12931_, lean_object* v___y_12932_){
_start:
{
lean_object* v_res_12933_; 
v_res_12933_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanBcToO___lam__0(v___x_12920_, v___x_12921_, v_config_12922_, v_config_12923_, v_dir_12924_, v_name_12925_, v___y_12926_, v___y_12927_, v___y_12928_, v___y_12929_, v___y_12930_, v___y_12931_);
lean_dec(v___y_12927_);
lean_dec(v_config_12923_);
return v_res_12933_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanBcToO(lean_object* v_self_12935_, lean_object* v_a_12936_, lean_object* v_a_12937_, lean_object* v_a_12938_, lean_object* v_a_12939_, lean_object* v_a_12940_, lean_object* v_a_12941_){
_start:
{
lean_object* v_lib_12943_; lean_object* v_pkg_12944_; lean_object* v_name_12945_; lean_object* v_config_12946_; lean_object* v_keyName_12947_; lean_object* v_dir_12948_; lean_object* v_config_12949_; lean_object* v___x_12950_; lean_object* v___x_12951_; lean_object* v___x_12952_; lean_object* v___x_12953_; lean_object* v___x_12954_; lean_object* v___x_12955_; lean_object* v___f_12956_; lean_object* v___x_12957_; 
v_lib_12943_ = lean_ctor_get(v_self_12935_, 0);
v_pkg_12944_ = lean_ctor_get(v_lib_12943_, 0);
lean_inc_ref(v_pkg_12944_);
v_name_12945_ = lean_ctor_get(v_self_12935_, 1);
lean_inc(v_name_12945_);
v_config_12946_ = lean_ctor_get(v_lib_12943_, 2);
lean_inc(v_config_12946_);
v_keyName_12947_ = lean_ctor_get(v_pkg_12944_, 2);
v_dir_12948_ = lean_ctor_get(v_pkg_12944_, 4);
lean_inc_ref(v_dir_12948_);
v_config_12949_ = lean_ctor_get(v_pkg_12944_, 6);
lean_inc_ref(v_config_12949_);
v___x_12950_ = l_Lake_instDataKindFilePath;
v___x_12951_ = l_Lake_Module_bcFacet;
lean_inc(v_name_12945_);
lean_inc(v_keyName_12947_);
v___x_12952_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_12952_, 0, v_keyName_12947_);
lean_ctor_set(v___x_12952_, 1, v_name_12945_);
v___x_12953_ = l_Lake_Module_keyword;
v___x_12954_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_12954_, 0, v___x_12952_);
lean_ctor_set(v___x_12954_, 1, v___x_12953_);
lean_ctor_set(v___x_12954_, 2, v_self_12935_);
lean_ctor_set(v___x_12954_, 3, v___x_12951_);
v___x_12955_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_12955_, 0, v_pkg_12944_);
lean_inc(v_name_12945_);
v___f_12956_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanBcToO___lam__0___boxed), 13, 6);
lean_closure_set(v___f_12956_, 0, v___x_12954_);
lean_closure_set(v___f_12956_, 1, v___x_12955_);
lean_closure_set(v___f_12956_, 2, v_config_12949_);
lean_closure_set(v___f_12956_, 3, v_config_12946_);
lean_closure_set(v___f_12956_, 4, v_dir_12948_);
lean_closure_set(v___f_12956_, 5, v_name_12945_);
lean_inc_ref(v_a_12940_);
v___x_12957_ = l_Lake_ensureJob___redArg(v___x_12950_, v___f_12956_, v_a_12936_, v_a_12937_, v_a_12938_, v_a_12939_, v_a_12940_, v_a_12941_);
if (lean_obj_tag(v___x_12957_) == 0)
{
lean_object* v_a_12958_; lean_object* v_a_12959_; lean_object* v___x_12961_; uint8_t v_isShared_12962_; uint8_t v_isSharedCheck_12987_; 
v_a_12958_ = lean_ctor_get(v___x_12957_, 0);
v_a_12959_ = lean_ctor_get(v___x_12957_, 1);
v_isSharedCheck_12987_ = !lean_is_exclusive(v___x_12957_);
if (v_isSharedCheck_12987_ == 0)
{
v___x_12961_ = v___x_12957_;
v_isShared_12962_ = v_isSharedCheck_12987_;
goto v_resetjp_12960_;
}
else
{
lean_inc(v_a_12959_);
lean_inc(v_a_12958_);
lean_dec(v___x_12957_);
v___x_12961_ = lean_box(0);
v_isShared_12962_ = v_isSharedCheck_12987_;
goto v_resetjp_12960_;
}
v_resetjp_12960_:
{
lean_object* v_task_12963_; lean_object* v_kind_12964_; lean_object* v___x_12966_; uint8_t v_isShared_12967_; uint8_t v_isSharedCheck_12985_; 
v_task_12963_ = lean_ctor_get(v_a_12958_, 0);
v_kind_12964_ = lean_ctor_get(v_a_12958_, 1);
v_isSharedCheck_12985_ = !lean_is_exclusive(v_a_12958_);
if (v_isSharedCheck_12985_ == 0)
{
lean_object* v_unused_12986_; 
v_unused_12986_ = lean_ctor_get(v_a_12958_, 2);
lean_dec(v_unused_12986_);
v___x_12966_ = v_a_12958_;
v_isShared_12967_ = v_isSharedCheck_12985_;
goto v_resetjp_12965_;
}
else
{
lean_inc(v_kind_12964_);
lean_inc(v_task_12963_);
lean_dec(v_a_12958_);
v___x_12966_ = lean_box(0);
v_isShared_12967_ = v_isSharedCheck_12985_;
goto v_resetjp_12965_;
}
v_resetjp_12965_:
{
lean_object* v_registeredJobs_12968_; lean_object* v___x_12969_; uint8_t v___x_12970_; lean_object* v___x_12971_; lean_object* v___x_12972_; lean_object* v___x_12973_; uint8_t v___x_12974_; lean_object* v_job_12976_; 
v_registeredJobs_12968_ = lean_ctor_get(v_a_12940_, 3);
lean_inc(v_registeredJobs_12968_);
lean_dec_ref(v_a_12940_);
v___x_12969_ = lean_st_ref_take(v_registeredJobs_12968_);
v___x_12970_ = 1;
v___x_12971_ = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(v_name_12945_, v___x_12970_);
v___x_12972_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanBcToO___closed__0));
v___x_12973_ = lean_string_append(v___x_12971_, v___x_12972_);
v___x_12974_ = 0;
if (v_isShared_12967_ == 0)
{
lean_ctor_set(v___x_12966_, 2, v___x_12973_);
v_job_12976_ = v___x_12966_;
goto v_reusejp_12975_;
}
else
{
lean_object* v_reuseFailAlloc_12984_; 
v_reuseFailAlloc_12984_ = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(v_reuseFailAlloc_12984_, 0, v_task_12963_);
lean_ctor_set(v_reuseFailAlloc_12984_, 1, v_kind_12964_);
lean_ctor_set(v_reuseFailAlloc_12984_, 2, v___x_12973_);
v_job_12976_ = v_reuseFailAlloc_12984_;
goto v_reusejp_12975_;
}
v_reusejp_12975_:
{
lean_object* v___x_12977_; lean_object* v___x_12978_; lean_object* v___x_12979_; lean_object* v___x_12980_; lean_object* v___x_12982_; 
lean_ctor_set_uint8(v_job_12976_, sizeof(void*)*3, v___x_12974_);
lean_inc_ref(v_job_12976_);
v___x_12977_ = l_Lake_Job_toOpaque___redArg(v_job_12976_);
v___x_12978_ = lean_array_push(v___x_12969_, v___x_12977_);
v___x_12979_ = lean_st_ref_set(v_registeredJobs_12968_, v___x_12978_);
lean_dec(v_registeredJobs_12968_);
v___x_12980_ = l_Lake_Job_renew___redArg(v_job_12976_);
if (v_isShared_12962_ == 0)
{
lean_ctor_set(v___x_12961_, 0, v___x_12980_);
v___x_12982_ = v___x_12961_;
goto v_reusejp_12981_;
}
else
{
lean_object* v_reuseFailAlloc_12983_; 
v_reuseFailAlloc_12983_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_12983_, 0, v___x_12980_);
lean_ctor_set(v_reuseFailAlloc_12983_, 1, v_a_12959_);
v___x_12982_ = v_reuseFailAlloc_12983_;
goto v_reusejp_12981_;
}
v_reusejp_12981_:
{
return v___x_12982_;
}
}
}
}
}
else
{
lean_dec(v_name_12945_);
lean_dec_ref(v_a_12940_);
return v___x_12957_;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanBcToO___boxed(lean_object* v_self_12988_, lean_object* v_a_12989_, lean_object* v_a_12990_, lean_object* v_a_12991_, lean_object* v_a_12992_, lean_object* v_a_12993_, lean_object* v_a_12994_, lean_object* v_a_12995_){
_start:
{
lean_object* v_res_12996_; 
v_res_12996_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanBcToO(v_self_12988_, v_a_12989_, v_a_12990_, v_a_12991_, v_a_12992_, v_a_12993_, v_a_12994_);
return v_res_12996_;
}
}
static lean_object* _init_l_Lake_Module_bcoFacetConfig___closed__1(void){
_start:
{
lean_object* v___f_12998_; uint8_t v___x_12999_; lean_object* v___x_13000_; lean_object* v___x_13001_; lean_object* v___x_13002_; lean_object* v___x_13003_; 
v___f_12998_ = ((lean_object*)(l_Lake_Module_leanFacetConfig___closed__0));
v___x_12999_ = 1;
v___x_13000_ = l_Lake_instDataKindFilePath;
v___x_13001_ = ((lean_object*)(l_Lake_Module_bcoFacetConfig___closed__0));
v___x_13002_ = l_Lake_Module_keyword;
v___x_13003_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_13003_, 0, v___x_13002_);
lean_ctor_set(v___x_13003_, 1, v___x_13001_);
lean_ctor_set(v___x_13003_, 2, v___x_13000_);
lean_ctor_set(v___x_13003_, 3, v___f_12998_);
lean_ctor_set_uint8(v___x_13003_, sizeof(void*)*4, v___x_12999_);
lean_ctor_set_uint8(v___x_13003_, sizeof(void*)*4 + 1, v___x_12999_);
return v___x_13003_;
}
}
static lean_object* _init_l_Lake_Module_bcoFacetConfig(void){
_start:
{
lean_object* v___x_13004_; 
v___x_13004_ = lean_obj_once(&l_Lake_Module_bcoFacetConfig___closed__1, &l_Lake_Module_bcoFacetConfig___closed__1_once, _init_l_Lake_Module_bcoFacetConfig___closed__1);
return v___x_13004_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_oExportFacetConfig___lam__0(lean_object* v_mod_13005_, lean_object* v___y_13006_, lean_object* v___y_13007_, lean_object* v___y_13008_, lean_object* v___y_13009_, lean_object* v___y_13010_, lean_object* v___y_13011_){
_start:
{
lean_object* v_lib_13013_; lean_object* v_config_13014_; lean_object* v_toLeanConfig_13015_; lean_object* v_pkg_13016_; lean_object* v_config_13017_; lean_object* v_toLeanConfig_13018_; lean_object* v_name_13019_; uint8_t v_backend_13020_; lean_object* v_keyName_13021_; uint8_t v_backend_13022_; uint8_t v___x_13023_; 
v_lib_13013_ = lean_ctor_get(v_mod_13005_, 0);
v_config_13014_ = lean_ctor_get(v_lib_13013_, 2);
v_toLeanConfig_13015_ = lean_ctor_get(v_config_13014_, 0);
v_pkg_13016_ = lean_ctor_get(v_lib_13013_, 0);
v_config_13017_ = lean_ctor_get(v_pkg_13016_, 6);
v_toLeanConfig_13018_ = lean_ctor_get(v_config_13017_, 1);
v_name_13019_ = lean_ctor_get(v_mod_13005_, 1);
v_backend_13020_ = lean_ctor_get_uint8(v_toLeanConfig_13015_, sizeof(void*)*13 + 1);
v_keyName_13021_ = lean_ctor_get(v_pkg_13016_, 2);
v_backend_13022_ = lean_ctor_get_uint8(v_toLeanConfig_13018_, sizeof(void*)*13 + 1);
v___x_13023_ = l_Lake_Backend_orPreferLeft(v_backend_13020_, v_backend_13022_);
if (v___x_13023_ == 1)
{
lean_object* v___x_13024_; lean_object* v___x_13025_; lean_object* v___x_13026_; lean_object* v___x_13027_; lean_object* v___x_13028_; 
v___x_13024_ = l_Lake_Module_bcoFacet;
lean_inc(v_name_13019_);
lean_inc(v_keyName_13021_);
v___x_13025_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_13025_, 0, v_keyName_13021_);
lean_ctor_set(v___x_13025_, 1, v_name_13019_);
v___x_13026_ = l_Lake_Module_keyword;
v___x_13027_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_13027_, 0, v___x_13025_);
lean_ctor_set(v___x_13027_, 1, v___x_13026_);
lean_ctor_set(v___x_13027_, 2, v_mod_13005_);
lean_ctor_set(v___x_13027_, 3, v___x_13024_);
v___x_13028_ = lean_apply_7(v___y_13006_, v___x_13027_, v___y_13007_, v___y_13008_, v___y_13009_, v___y_13010_, v___y_13011_, lean_box(0));
return v___x_13028_;
}
else
{
lean_object* v___x_13029_; lean_object* v___x_13030_; lean_object* v___x_13031_; lean_object* v___x_13032_; lean_object* v___x_13033_; 
v___x_13029_ = l_Lake_Module_coExportFacet;
lean_inc(v_name_13019_);
lean_inc(v_keyName_13021_);
v___x_13030_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_13030_, 0, v_keyName_13021_);
lean_ctor_set(v___x_13030_, 1, v_name_13019_);
v___x_13031_ = l_Lake_Module_keyword;
v___x_13032_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_13032_, 0, v___x_13030_);
lean_ctor_set(v___x_13032_, 1, v___x_13031_);
lean_ctor_set(v___x_13032_, 2, v_mod_13005_);
lean_ctor_set(v___x_13032_, 3, v___x_13029_);
v___x_13033_ = lean_apply_7(v___y_13006_, v___x_13032_, v___y_13007_, v___y_13008_, v___y_13009_, v___y_13010_, v___y_13011_, lean_box(0));
return v___x_13033_;
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_oExportFacetConfig___lam__0___boxed(lean_object* v_mod_13034_, lean_object* v___y_13035_, lean_object* v___y_13036_, lean_object* v___y_13037_, lean_object* v___y_13038_, lean_object* v___y_13039_, lean_object* v___y_13040_, lean_object* v___y_13041_){
_start:
{
lean_object* v_res_13042_; 
v_res_13042_ = l_Lake_Module_oExportFacetConfig___lam__0(v_mod_13034_, v___y_13035_, v___y_13036_, v___y_13037_, v___y_13038_, v___y_13039_, v___y_13040_);
return v_res_13042_;
}
}
static lean_object* _init_l_Lake_Module_oExportFacetConfig___closed__1(void){
_start:
{
uint8_t v___x_13044_; lean_object* v___f_13045_; uint8_t v___x_13046_; lean_object* v___x_13047_; lean_object* v___f_13048_; lean_object* v___x_13049_; lean_object* v___x_13050_; 
v___x_13044_ = 0;
v___f_13045_ = ((lean_object*)(l_Lake_Module_leanFacetConfig___closed__0));
v___x_13046_ = 1;
v___x_13047_ = l_Lake_instDataKindFilePath;
v___f_13048_ = ((lean_object*)(l_Lake_Module_oExportFacetConfig___closed__0));
v___x_13049_ = l_Lake_Module_keyword;
v___x_13050_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_13050_, 0, v___x_13049_);
lean_ctor_set(v___x_13050_, 1, v___f_13048_);
lean_ctor_set(v___x_13050_, 2, v___x_13047_);
lean_ctor_set(v___x_13050_, 3, v___f_13045_);
lean_ctor_set_uint8(v___x_13050_, sizeof(void*)*4, v___x_13046_);
lean_ctor_set_uint8(v___x_13050_, sizeof(void*)*4 + 1, v___x_13044_);
return v___x_13050_;
}
}
static lean_object* _init_l_Lake_Module_oExportFacetConfig(void){
_start:
{
lean_object* v___x_13051_; 
v___x_13051_ = lean_obj_once(&l_Lake_Module_oExportFacetConfig___closed__1, &l_Lake_Module_oExportFacetConfig___closed__1_once, _init_l_Lake_Module_oExportFacetConfig___closed__1);
return v___x_13051_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_oNoExportFacetConfig___lam__0(lean_object* v_mod_13056_, lean_object* v___y_13057_, lean_object* v___y_13058_, lean_object* v___y_13059_, lean_object* v___y_13060_, lean_object* v___y_13061_, lean_object* v___y_13062_){
_start:
{
lean_object* v_lib_13064_; lean_object* v_config_13065_; lean_object* v_toLeanConfig_13066_; lean_object* v_pkg_13067_; lean_object* v_config_13068_; lean_object* v_toLeanConfig_13069_; lean_object* v_name_13070_; uint8_t v_backend_13071_; lean_object* v_keyName_13072_; uint8_t v_backend_13073_; uint8_t v___x_13074_; 
v_lib_13064_ = lean_ctor_get(v_mod_13056_, 0);
v_config_13065_ = lean_ctor_get(v_lib_13064_, 2);
v_toLeanConfig_13066_ = lean_ctor_get(v_config_13065_, 0);
v_pkg_13067_ = lean_ctor_get(v_lib_13064_, 0);
v_config_13068_ = lean_ctor_get(v_pkg_13067_, 6);
v_toLeanConfig_13069_ = lean_ctor_get(v_config_13068_, 1);
v_name_13070_ = lean_ctor_get(v_mod_13056_, 1);
v_backend_13071_ = lean_ctor_get_uint8(v_toLeanConfig_13066_, sizeof(void*)*13 + 1);
v_keyName_13072_ = lean_ctor_get(v_pkg_13067_, 2);
v_backend_13073_ = lean_ctor_get_uint8(v_toLeanConfig_13069_, sizeof(void*)*13 + 1);
v___x_13074_ = l_Lake_Backend_orPreferLeft(v_backend_13071_, v_backend_13073_);
if (v___x_13074_ == 1)
{
lean_object* v___x_13076_; uint8_t v_isShared_13077_; uint8_t v_isSharedCheck_13084_; 
lean_dec_ref(v___y_13061_);
lean_dec(v___y_13060_);
lean_dec(v___y_13059_);
lean_dec(v___y_13058_);
lean_dec_ref(v___y_13057_);
v_isSharedCheck_13084_ = !lean_is_exclusive(v_mod_13056_);
if (v_isSharedCheck_13084_ == 0)
{
lean_object* v_unused_13085_; lean_object* v_unused_13086_; 
v_unused_13085_ = lean_ctor_get(v_mod_13056_, 1);
lean_dec(v_unused_13085_);
v_unused_13086_ = lean_ctor_get(v_mod_13056_, 0);
lean_dec(v_unused_13086_);
v___x_13076_ = v_mod_13056_;
v_isShared_13077_ = v_isSharedCheck_13084_;
goto v_resetjp_13075_;
}
else
{
lean_dec(v_mod_13056_);
v___x_13076_ = lean_box(0);
v_isShared_13077_ = v_isSharedCheck_13084_;
goto v_resetjp_13075_;
}
v_resetjp_13075_:
{
lean_object* v___x_13078_; lean_object* v___x_13079_; lean_object* v___x_13080_; lean_object* v___x_13082_; 
v___x_13078_ = ((lean_object*)(l_Lake_Module_oNoExportFacetConfig___lam__0___closed__1));
v___x_13079_ = lean_array_get_size(v___y_13062_);
v___x_13080_ = lean_array_push(v___y_13062_, v___x_13078_);
if (v_isShared_13077_ == 0)
{
lean_ctor_set_tag(v___x_13076_, 1);
lean_ctor_set(v___x_13076_, 1, v___x_13080_);
lean_ctor_set(v___x_13076_, 0, v___x_13079_);
v___x_13082_ = v___x_13076_;
goto v_reusejp_13081_;
}
else
{
lean_object* v_reuseFailAlloc_13083_; 
v_reuseFailAlloc_13083_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_13083_, 0, v___x_13079_);
lean_ctor_set(v_reuseFailAlloc_13083_, 1, v___x_13080_);
v___x_13082_ = v_reuseFailAlloc_13083_;
goto v_reusejp_13081_;
}
v_reusejp_13081_:
{
return v___x_13082_;
}
}
}
else
{
lean_object* v___x_13087_; lean_object* v___x_13088_; lean_object* v___x_13089_; lean_object* v___x_13090_; lean_object* v___x_13091_; 
v___x_13087_ = l_Lake_Module_coNoExportFacet;
lean_inc(v_name_13070_);
lean_inc(v_keyName_13072_);
v___x_13088_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_13088_, 0, v_keyName_13072_);
lean_ctor_set(v___x_13088_, 1, v_name_13070_);
v___x_13089_ = l_Lake_Module_keyword;
v___x_13090_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_13090_, 0, v___x_13088_);
lean_ctor_set(v___x_13090_, 1, v___x_13089_);
lean_ctor_set(v___x_13090_, 2, v_mod_13056_);
lean_ctor_set(v___x_13090_, 3, v___x_13087_);
v___x_13091_ = lean_apply_7(v___y_13057_, v___x_13090_, v___y_13058_, v___y_13059_, v___y_13060_, v___y_13061_, v___y_13062_, lean_box(0));
return v___x_13091_;
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_oNoExportFacetConfig___lam__0___boxed(lean_object* v_mod_13092_, lean_object* v___y_13093_, lean_object* v___y_13094_, lean_object* v___y_13095_, lean_object* v___y_13096_, lean_object* v___y_13097_, lean_object* v___y_13098_, lean_object* v___y_13099_){
_start:
{
lean_object* v_res_13100_; 
v_res_13100_ = l_Lake_Module_oNoExportFacetConfig___lam__0(v_mod_13092_, v___y_13093_, v___y_13094_, v___y_13095_, v___y_13096_, v___y_13097_, v___y_13098_);
return v_res_13100_;
}
}
static lean_object* _init_l_Lake_Module_oNoExportFacetConfig___closed__1(void){
_start:
{
uint8_t v___x_13102_; lean_object* v___f_13103_; uint8_t v___x_13104_; lean_object* v___x_13105_; lean_object* v___f_13106_; lean_object* v___x_13107_; lean_object* v___x_13108_; 
v___x_13102_ = 0;
v___f_13103_ = ((lean_object*)(l_Lake_Module_leanFacetConfig___closed__0));
v___x_13104_ = 1;
v___x_13105_ = l_Lake_instDataKindFilePath;
v___f_13106_ = ((lean_object*)(l_Lake_Module_oNoExportFacetConfig___closed__0));
v___x_13107_ = l_Lake_Module_keyword;
v___x_13108_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_13108_, 0, v___x_13107_);
lean_ctor_set(v___x_13108_, 1, v___f_13106_);
lean_ctor_set(v___x_13108_, 2, v___x_13105_);
lean_ctor_set(v___x_13108_, 3, v___f_13103_);
lean_ctor_set_uint8(v___x_13108_, sizeof(void*)*4, v___x_13104_);
lean_ctor_set_uint8(v___x_13108_, sizeof(void*)*4 + 1, v___x_13102_);
return v___x_13108_;
}
}
static lean_object* _init_l_Lake_Module_oNoExportFacetConfig(void){
_start:
{
lean_object* v___x_13109_; 
v___x_13109_ = lean_obj_once(&l_Lake_Module_oNoExportFacetConfig___closed__1, &l_Lake_Module_oNoExportFacetConfig___closed__1_once, _init_l_Lake_Module_oNoExportFacetConfig___closed__1);
return v___x_13109_;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_oFacetConfig___lam__0(lean_object* v_mod_13110_, lean_object* v___y_13111_, lean_object* v___y_13112_, lean_object* v___y_13113_, lean_object* v___y_13114_, lean_object* v___y_13115_, lean_object* v___y_13116_){
_start:
{
lean_object* v_lib_13118_; lean_object* v_config_13119_; lean_object* v_toLeanConfig_13120_; lean_object* v_pkg_13121_; lean_object* v_config_13122_; lean_object* v_toLeanConfig_13123_; lean_object* v_name_13124_; uint8_t v_backend_13125_; lean_object* v_keyName_13126_; uint8_t v_backend_13127_; uint8_t v___x_13128_; 
v_lib_13118_ = lean_ctor_get(v_mod_13110_, 0);
v_config_13119_ = lean_ctor_get(v_lib_13118_, 2);
v_toLeanConfig_13120_ = lean_ctor_get(v_config_13119_, 0);
v_pkg_13121_ = lean_ctor_get(v_lib_13118_, 0);
v_config_13122_ = lean_ctor_get(v_pkg_13121_, 6);
v_toLeanConfig_13123_ = lean_ctor_get(v_config_13122_, 1);
v_name_13124_ = lean_ctor_get(v_mod_13110_, 1);
v_backend_13125_ = lean_ctor_get_uint8(v_toLeanConfig_13120_, sizeof(void*)*13 + 1);
v_keyName_13126_ = lean_ctor_get(v_pkg_13121_, 2);
v_backend_13127_ = lean_ctor_get_uint8(v_toLeanConfig_13123_, sizeof(void*)*13 + 1);
v___x_13128_ = l_Lake_Backend_orPreferLeft(v_backend_13125_, v_backend_13127_);
if (v___x_13128_ == 1)
{
lean_object* v___x_13129_; lean_object* v___x_13130_; lean_object* v___x_13131_; lean_object* v___x_13132_; lean_object* v___x_13133_; 
v___x_13129_ = l_Lake_Module_bcoFacet;
lean_inc(v_name_13124_);
lean_inc(v_keyName_13126_);
v___x_13130_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_13130_, 0, v_keyName_13126_);
lean_ctor_set(v___x_13130_, 1, v_name_13124_);
v___x_13131_ = l_Lake_Module_keyword;
v___x_13132_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_13132_, 0, v___x_13130_);
lean_ctor_set(v___x_13132_, 1, v___x_13131_);
lean_ctor_set(v___x_13132_, 2, v_mod_13110_);
lean_ctor_set(v___x_13132_, 3, v___x_13129_);
v___x_13133_ = lean_apply_7(v___y_13111_, v___x_13132_, v___y_13112_, v___y_13113_, v___y_13114_, v___y_13115_, v___y_13116_, lean_box(0));
return v___x_13133_;
}
else
{
lean_object* v___x_13134_; lean_object* v___x_13135_; lean_object* v___x_13136_; lean_object* v___x_13137_; lean_object* v___x_13138_; 
v___x_13134_ = l_Lake_Module_coFacet;
lean_inc(v_name_13124_);
lean_inc(v_keyName_13126_);
v___x_13135_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_13135_, 0, v_keyName_13126_);
lean_ctor_set(v___x_13135_, 1, v_name_13124_);
v___x_13136_ = l_Lake_Module_keyword;
v___x_13137_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_13137_, 0, v___x_13135_);
lean_ctor_set(v___x_13137_, 1, v___x_13136_);
lean_ctor_set(v___x_13137_, 2, v_mod_13110_);
lean_ctor_set(v___x_13137_, 3, v___x_13134_);
v___x_13138_ = lean_apply_7(v___y_13111_, v___x_13137_, v___y_13112_, v___y_13113_, v___y_13114_, v___y_13115_, v___y_13116_, lean_box(0));
return v___x_13138_;
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_oFacetConfig___lam__0___boxed(lean_object* v_mod_13139_, lean_object* v___y_13140_, lean_object* v___y_13141_, lean_object* v___y_13142_, lean_object* v___y_13143_, lean_object* v___y_13144_, lean_object* v___y_13145_, lean_object* v___y_13146_){
_start:
{
lean_object* v_res_13147_; 
v_res_13147_ = l_Lake_Module_oFacetConfig___lam__0(v_mod_13139_, v___y_13140_, v___y_13141_, v___y_13142_, v___y_13143_, v___y_13144_, v___y_13145_);
return v_res_13147_;
}
}
static lean_object* _init_l_Lake_Module_oFacetConfig___closed__1(void){
_start:
{
uint8_t v___x_13149_; lean_object* v___f_13150_; uint8_t v___x_13151_; lean_object* v___x_13152_; lean_object* v___f_13153_; lean_object* v___x_13154_; lean_object* v___x_13155_; 
v___x_13149_ = 0;
v___f_13150_ = ((lean_object*)(l_Lake_Module_leanFacetConfig___closed__0));
v___x_13151_ = 1;
v___x_13152_ = l_Lake_instDataKindFilePath;
v___f_13153_ = ((lean_object*)(l_Lake_Module_oFacetConfig___closed__0));
v___x_13154_ = l_Lake_Module_keyword;
v___x_13155_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_13155_, 0, v___x_13154_);
lean_ctor_set(v___x_13155_, 1, v___f_13153_);
lean_ctor_set(v___x_13155_, 2, v___x_13152_);
lean_ctor_set(v___x_13155_, 3, v___f_13150_);
lean_ctor_set_uint8(v___x_13155_, sizeof(void*)*4, v___x_13151_);
lean_ctor_set_uint8(v___x_13155_, sizeof(void*)*4 + 1, v___x_13149_);
return v___x_13155_;
}
}
static lean_object* _init_l_Lake_Module_oFacetConfig(void){
_start:
{
lean_object* v___x_13156_; 
v___x_13156_ = lean_obj_once(&l_Lake_Module_oFacetConfig___closed__1, &l_Lake_Module_oFacetConfig___closed__1_once, _init_l_Lake_Module_oFacetConfig___closed__1);
return v___x_13156_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildDynlib_spec__0(lean_object* v_mod_13157_, size_t v_sz_13158_, size_t v_i_13159_, lean_object* v_bs_13160_, lean_object* v___y_13161_, lean_object* v___y_13162_, lean_object* v___y_13163_, lean_object* v___y_13164_, lean_object* v___y_13165_, lean_object* v___y_13166_){
_start:
{
uint8_t v___x_13168_; 
v___x_13168_ = lean_usize_dec_lt(v_i_13159_, v_sz_13158_);
if (v___x_13168_ == 0)
{
lean_object* v___x_13169_; 
lean_dec_ref(v___y_13165_);
lean_dec(v___y_13164_);
lean_dec(v___y_13163_);
lean_dec(v___y_13162_);
lean_dec_ref(v___y_13161_);
lean_dec_ref(v_mod_13157_);
v___x_13169_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_13169_, 0, v_bs_13160_);
lean_ctor_set(v___x_13169_, 1, v___y_13166_);
return v___x_13169_;
}
else
{
lean_object* v_v_13170_; lean_object* v___x_13171_; 
v_v_13170_ = lean_array_uget_borrowed(v_bs_13160_, v_i_13159_);
lean_inc_ref(v___y_13165_);
lean_inc(v___y_13164_);
lean_inc(v___y_13163_);
lean_inc(v___y_13162_);
lean_inc_ref(v___y_13161_);
lean_inc_ref(v_mod_13157_);
lean_inc(v_v_13170_);
v___x_13171_ = l_Lake_ModuleFacet_fetch___redArg(v_v_13170_, v_mod_13157_, v___y_13161_, v___y_13162_, v___y_13163_, v___y_13164_, v___y_13165_, v___y_13166_);
if (lean_obj_tag(v___x_13171_) == 0)
{
lean_object* v_a_13172_; lean_object* v_a_13173_; lean_object* v___x_13174_; lean_object* v_bs_x27_13175_; size_t v___x_13176_; size_t v___x_13177_; lean_object* v___x_13178_; 
v_a_13172_ = lean_ctor_get(v___x_13171_, 0);
lean_inc(v_a_13172_);
v_a_13173_ = lean_ctor_get(v___x_13171_, 1);
lean_inc(v_a_13173_);
lean_dec_ref(v___x_13171_);
v___x_13174_ = lean_unsigned_to_nat(0u);
v_bs_x27_13175_ = lean_array_uset(v_bs_13160_, v_i_13159_, v___x_13174_);
v___x_13176_ = ((size_t)1ULL);
v___x_13177_ = lean_usize_add(v_i_13159_, v___x_13176_);
v___x_13178_ = lean_array_uset(v_bs_x27_13175_, v_i_13159_, v_a_13172_);
v_i_13159_ = v___x_13177_;
v_bs_13160_ = v___x_13178_;
v___y_13166_ = v_a_13173_;
goto _start;
}
else
{
lean_object* v_a_13180_; lean_object* v_a_13181_; lean_object* v___x_13183_; uint8_t v_isShared_13184_; uint8_t v_isSharedCheck_13188_; 
lean_dec_ref(v___y_13165_);
lean_dec(v___y_13164_);
lean_dec(v___y_13163_);
lean_dec(v___y_13162_);
lean_dec_ref(v___y_13161_);
lean_dec_ref(v_bs_13160_);
lean_dec_ref(v_mod_13157_);
v_a_13180_ = lean_ctor_get(v___x_13171_, 0);
v_a_13181_ = lean_ctor_get(v___x_13171_, 1);
v_isSharedCheck_13188_ = !lean_is_exclusive(v___x_13171_);
if (v_isSharedCheck_13188_ == 0)
{
v___x_13183_ = v___x_13171_;
v_isShared_13184_ = v_isSharedCheck_13188_;
goto v_resetjp_13182_;
}
else
{
lean_inc(v_a_13181_);
lean_inc(v_a_13180_);
lean_dec(v___x_13171_);
v___x_13183_ = lean_box(0);
v_isShared_13184_ = v_isSharedCheck_13188_;
goto v_resetjp_13182_;
}
v_resetjp_13182_:
{
lean_object* v___x_13186_; 
if (v_isShared_13184_ == 0)
{
v___x_13186_ = v___x_13183_;
goto v_reusejp_13185_;
}
else
{
lean_object* v_reuseFailAlloc_13187_; 
v_reuseFailAlloc_13187_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_13187_, 0, v_a_13180_);
lean_ctor_set(v_reuseFailAlloc_13187_, 1, v_a_13181_);
v___x_13186_ = v_reuseFailAlloc_13187_;
goto v_reusejp_13185_;
}
v_reusejp_13185_:
{
return v___x_13186_;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildDynlib_spec__0___boxed(lean_object* v_mod_13189_, lean_object* v_sz_13190_, lean_object* v_i_13191_, lean_object* v_bs_13192_, lean_object* v___y_13193_, lean_object* v___y_13194_, lean_object* v___y_13195_, lean_object* v___y_13196_, lean_object* v___y_13197_, lean_object* v___y_13198_, lean_object* v___y_13199_){
_start:
{
size_t v_sz_boxed_13200_; size_t v_i_boxed_13201_; lean_object* v_res_13202_; 
v_sz_boxed_13200_ = lean_unbox_usize(v_sz_13190_);
lean_dec(v_sz_13190_);
v_i_boxed_13201_ = lean_unbox_usize(v_i_13191_);
lean_dec(v_i_13191_);
v_res_13202_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildDynlib_spec__0(v_mod_13189_, v_sz_boxed_13200_, v_i_boxed_13201_, v_bs_13192_, v___y_13193_, v___y_13194_, v___y_13195_, v___y_13196_, v___y_13197_, v___y_13198_);
return v_res_13202_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildDynlib_spec__2(lean_object* v___x_13203_, lean_object* v_as_13204_, size_t v_i_13205_, size_t v_stop_13206_, lean_object* v_b_13207_, lean_object* v___y_13208_, lean_object* v___y_13209_, lean_object* v___y_13210_, lean_object* v___y_13211_, lean_object* v___y_13212_, lean_object* v___y_13213_){
_start:
{
uint8_t v___x_13215_; 
v___x_13215_ = lean_usize_dec_eq(v_i_13205_, v_stop_13206_);
if (v___x_13215_ == 0)
{
lean_object* v___x_13216_; lean_object* v___x_13217_; 
v___x_13216_ = lean_array_uget_borrowed(v_as_13204_, v_i_13205_);
lean_inc_ref(v___y_13212_);
lean_inc(v___y_13211_);
lean_inc(v___y_13210_);
lean_inc(v___y_13209_);
lean_inc_ref(v___y_13208_);
lean_inc(v___x_13216_);
lean_inc_ref(v___x_13203_);
v___x_13217_ = l_Lake_Target_fetchIn___at___00Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0_spec__0(v___x_13203_, v___x_13216_, v___y_13208_, v___y_13209_, v___y_13210_, v___y_13211_, v___y_13212_, v___y_13213_);
if (lean_obj_tag(v___x_13217_) == 0)
{
lean_object* v_a_13218_; lean_object* v_a_13219_; lean_object* v___x_13220_; size_t v___x_13221_; size_t v___x_13222_; 
v_a_13218_ = lean_ctor_get(v___x_13217_, 0);
lean_inc(v_a_13218_);
v_a_13219_ = lean_ctor_get(v___x_13217_, 1);
lean_inc(v_a_13219_);
lean_dec_ref(v___x_13217_);
v___x_13220_ = lean_array_push(v_b_13207_, v_a_13218_);
v___x_13221_ = ((size_t)1ULL);
v___x_13222_ = lean_usize_add(v_i_13205_, v___x_13221_);
v_i_13205_ = v___x_13222_;
v_b_13207_ = v___x_13220_;
v___y_13213_ = v_a_13219_;
goto _start;
}
else
{
lean_object* v_a_13224_; lean_object* v_a_13225_; lean_object* v___x_13227_; uint8_t v_isShared_13228_; uint8_t v_isSharedCheck_13232_; 
lean_dec_ref(v___y_13212_);
lean_dec(v___y_13211_);
lean_dec(v___y_13210_);
lean_dec(v___y_13209_);
lean_dec_ref(v___y_13208_);
lean_dec_ref(v_b_13207_);
lean_dec_ref(v___x_13203_);
v_a_13224_ = lean_ctor_get(v___x_13217_, 0);
v_a_13225_ = lean_ctor_get(v___x_13217_, 1);
v_isSharedCheck_13232_ = !lean_is_exclusive(v___x_13217_);
if (v_isSharedCheck_13232_ == 0)
{
v___x_13227_ = v___x_13217_;
v_isShared_13228_ = v_isSharedCheck_13232_;
goto v_resetjp_13226_;
}
else
{
lean_inc(v_a_13225_);
lean_inc(v_a_13224_);
lean_dec(v___x_13217_);
v___x_13227_ = lean_box(0);
v_isShared_13228_ = v_isSharedCheck_13232_;
goto v_resetjp_13226_;
}
v_resetjp_13226_:
{
lean_object* v___x_13230_; 
if (v_isShared_13228_ == 0)
{
v___x_13230_ = v___x_13227_;
goto v_reusejp_13229_;
}
else
{
lean_object* v_reuseFailAlloc_13231_; 
v_reuseFailAlloc_13231_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_13231_, 0, v_a_13224_);
lean_ctor_set(v_reuseFailAlloc_13231_, 1, v_a_13225_);
v___x_13230_ = v_reuseFailAlloc_13231_;
goto v_reusejp_13229_;
}
v_reusejp_13229_:
{
return v___x_13230_;
}
}
}
}
else
{
lean_object* v___x_13233_; 
lean_dec_ref(v___y_13212_);
lean_dec(v___y_13211_);
lean_dec(v___y_13210_);
lean_dec(v___y_13209_);
lean_dec_ref(v___y_13208_);
lean_dec_ref(v___x_13203_);
v___x_13233_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_13233_, 0, v_b_13207_);
lean_ctor_set(v___x_13233_, 1, v___y_13213_);
return v___x_13233_;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildDynlib_spec__2___boxed(lean_object* v___x_13234_, lean_object* v_as_13235_, lean_object* v_i_13236_, lean_object* v_stop_13237_, lean_object* v_b_13238_, lean_object* v___y_13239_, lean_object* v___y_13240_, lean_object* v___y_13241_, lean_object* v___y_13242_, lean_object* v___y_13243_, lean_object* v___y_13244_, lean_object* v___y_13245_){
_start:
{
size_t v_i_boxed_13246_; size_t v_stop_boxed_13247_; lean_object* v_res_13248_; 
v_i_boxed_13246_ = lean_unbox_usize(v_i_13236_);
lean_dec(v_i_13236_);
v_stop_boxed_13247_ = lean_unbox_usize(v_stop_13237_);
lean_dec(v_stop_13237_);
v_res_13248_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildDynlib_spec__2(v___x_13234_, v_as_13235_, v_i_boxed_13246_, v_stop_boxed_13247_, v_b_13238_, v___y_13239_, v___y_13240_, v___y_13241_, v___y_13242_, v___y_13243_, v___y_13244_);
lean_dec_ref(v_as_13235_);
return v_res_13248_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildDynlib_spec__1(lean_object* v_as_13249_, size_t v_i_13250_, size_t v_stop_13251_, lean_object* v_b_13252_, lean_object* v___y_13253_, lean_object* v___y_13254_, lean_object* v___y_13255_, lean_object* v___y_13256_, lean_object* v___y_13257_, lean_object* v___y_13258_){
_start:
{
uint8_t v___x_13260_; 
v___x_13260_ = lean_usize_dec_eq(v_i_13250_, v_stop_13251_);
if (v___x_13260_ == 0)
{
lean_object* v___x_13261_; lean_object* v_pkg_13262_; lean_object* v_name_13263_; lean_object* v_keyName_13264_; lean_object* v___x_13265_; lean_object* v___x_13266_; lean_object* v___x_13267_; lean_object* v___x_13268_; lean_object* v___x_13269_; 
v___x_13261_ = lean_array_uget_borrowed(v_as_13249_, v_i_13250_);
v_pkg_13262_ = lean_ctor_get(v___x_13261_, 0);
v_name_13263_ = lean_ctor_get(v___x_13261_, 1);
v_keyName_13264_ = lean_ctor_get(v_pkg_13262_, 2);
v___x_13265_ = l_Lake_ExternLib_dynlibFacet;
lean_inc(v_name_13263_);
lean_inc(v_keyName_13264_);
v___x_13266_ = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(v___x_13266_, 0, v_keyName_13264_);
lean_ctor_set(v___x_13266_, 1, v_name_13263_);
v___x_13267_ = l_Lake_ExternLib_keyword;
lean_inc(v___x_13261_);
v___x_13268_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_13268_, 0, v___x_13266_);
lean_ctor_set(v___x_13268_, 1, v___x_13267_);
lean_ctor_set(v___x_13268_, 2, v___x_13261_);
lean_ctor_set(v___x_13268_, 3, v___x_13265_);
lean_inc_ref(v___y_13253_);
lean_inc_ref(v___y_13257_);
lean_inc(v___y_13256_);
lean_inc(v___y_13255_);
lean_inc(v___y_13254_);
v___x_13269_ = lean_apply_7(v___y_13253_, v___x_13268_, v___y_13254_, v___y_13255_, v___y_13256_, v___y_13257_, v___y_13258_, lean_box(0));
if (lean_obj_tag(v___x_13269_) == 0)
{
lean_object* v_a_13270_; lean_object* v_a_13271_; lean_object* v___x_13272_; size_t v___x_13273_; size_t v___x_13274_; 
v_a_13270_ = lean_ctor_get(v___x_13269_, 0);
lean_inc(v_a_13270_);
v_a_13271_ = lean_ctor_get(v___x_13269_, 1);
lean_inc(v_a_13271_);
lean_dec_ref(v___x_13269_);
v___x_13272_ = lean_array_push(v_b_13252_, v_a_13270_);
v___x_13273_ = ((size_t)1ULL);
v___x_13274_ = lean_usize_add(v_i_13250_, v___x_13273_);
v_i_13250_ = v___x_13274_;
v_b_13252_ = v___x_13272_;
v___y_13258_ = v_a_13271_;
goto _start;
}
else
{
lean_object* v_a_13276_; lean_object* v_a_13277_; lean_object* v___x_13279_; uint8_t v_isShared_13280_; uint8_t v_isSharedCheck_13284_; 
lean_dec_ref(v___y_13257_);
lean_dec(v___y_13256_);
lean_dec(v___y_13255_);
lean_dec(v___y_13254_);
lean_dec_ref(v___y_13253_);
lean_dec_ref(v_b_13252_);
v_a_13276_ = lean_ctor_get(v___x_13269_, 0);
v_a_13277_ = lean_ctor_get(v___x_13269_, 1);
v_isSharedCheck_13284_ = !lean_is_exclusive(v___x_13269_);
if (v_isSharedCheck_13284_ == 0)
{
v___x_13279_ = v___x_13269_;
v_isShared_13280_ = v_isSharedCheck_13284_;
goto v_resetjp_13278_;
}
else
{
lean_inc(v_a_13277_);
lean_inc(v_a_13276_);
lean_dec(v___x_13269_);
v___x_13279_ = lean_box(0);
v_isShared_13280_ = v_isSharedCheck_13284_;
goto v_resetjp_13278_;
}
v_resetjp_13278_:
{
lean_object* v___x_13282_; 
if (v_isShared_13280_ == 0)
{
v___x_13282_ = v___x_13279_;
goto v_reusejp_13281_;
}
else
{
lean_object* v_reuseFailAlloc_13283_; 
v_reuseFailAlloc_13283_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_13283_, 0, v_a_13276_);
lean_ctor_set(v_reuseFailAlloc_13283_, 1, v_a_13277_);
v___x_13282_ = v_reuseFailAlloc_13283_;
goto v_reusejp_13281_;
}
v_reusejp_13281_:
{
return v___x_13282_;
}
}
}
}
else
{
lean_object* v___x_13285_; 
lean_dec_ref(v___y_13257_);
lean_dec(v___y_13256_);
lean_dec(v___y_13255_);
lean_dec(v___y_13254_);
lean_dec_ref(v___y_13253_);
v___x_13285_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_13285_, 0, v_b_13252_);
lean_ctor_set(v___x_13285_, 1, v___y_13258_);
return v___x_13285_;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildDynlib_spec__1___boxed(lean_object* v_as_13286_, lean_object* v_i_13287_, lean_object* v_stop_13288_, lean_object* v_b_13289_, lean_object* v___y_13290_, lean_object* v___y_13291_, lean_object* v___y_13292_, lean_object* v___y_13293_, lean_object* v___y_13294_, lean_object* v___y_13295_, lean_object* v___y_13296_){
_start:
{
size_t v_i_boxed_13297_; size_t v_stop_boxed_13298_; lean_object* v_res_13299_; 
v_i_boxed_13297_ = lean_unbox_usize(v_i_13287_);
lean_dec(v_i_13287_);
v_stop_boxed_13298_ = lean_unbox_usize(v_stop_13288_);
lean_dec(v_stop_13288_);
v_res_13299_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildDynlib_spec__1(v_as_13286_, v_i_boxed_13297_, v_stop_boxed_13298_, v_b_13289_, v___y_13290_, v___y_13291_, v___y_13292_, v___y_13293_, v___y_13294_, v___y_13295_);
lean_dec_ref(v_as_13286_);
return v_res_13299_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildDynlib___lam__0(lean_object* v___x_13300_, lean_object* v_mod_13301_, lean_object* v___x_13302_, lean_object* v_pkg_13303_, lean_object* v_name_13304_, uint8_t v___x_13305_, lean_object* v_toLeanConfig_13306_, lean_object* v___y_13307_, lean_object* v___y_13308_, lean_object* v___y_13309_, lean_object* v___y_13310_, lean_object* v___y_13311_, lean_object* v___y_13312_){
_start:
{
lean_object* v_a_13315_; lean_object* v_a_13316_; size_t v_sz_13318_; size_t v___x_13319_; lean_object* v___x_13320_; 
v_sz_13318_ = lean_array_size(v___x_13300_);
v___x_13319_ = ((size_t)0ULL);
lean_inc_ref(v___y_13311_);
lean_inc(v___y_13310_);
lean_inc(v___y_13309_);
lean_inc(v___x_13302_);
lean_inc_ref(v___y_13307_);
lean_inc_ref(v_mod_13301_);
v___x_13320_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildDynlib_spec__0(v_mod_13301_, v_sz_13318_, v___x_13319_, v___x_13300_, v___y_13307_, v___x_13302_, v___y_13309_, v___y_13310_, v___y_13311_, v___y_13312_);
if (lean_obj_tag(v___x_13320_) == 0)
{
lean_object* v_a_13321_; lean_object* v_a_13322_; lean_object* v___x_13324_; uint8_t v_isShared_13325_; uint8_t v_isSharedCheck_13419_; 
v_a_13321_ = lean_ctor_get(v___x_13320_, 0);
v_a_13322_ = lean_ctor_get(v___x_13320_, 1);
v_isSharedCheck_13419_ = !lean_is_exclusive(v___x_13320_);
if (v_isSharedCheck_13419_ == 0)
{
v___x_13324_ = v___x_13320_;
v_isShared_13325_ = v_isSharedCheck_13419_;
goto v_resetjp_13323_;
}
else
{
lean_inc(v_a_13322_);
lean_inc(v_a_13321_);
lean_dec(v___x_13320_);
v___x_13324_ = lean_box(0);
v_isShared_13325_ = v_isSharedCheck_13419_;
goto v_resetjp_13323_;
}
v_resetjp_13323_:
{
lean_object* v_keyName_13326_; lean_object* v_dir_13327_; lean_object* v_config_13328_; lean_object* v_targetDecls_13329_; lean_object* v_a_13331_; lean_object* v_a_13332_; lean_object* v___y_13360_; lean_object* v___x_13365_; lean_object* v___x_13366_; lean_object* v___x_13367_; lean_object* v___x_13368_; lean_object* v___x_13369_; 
v_keyName_13326_ = lean_ctor_get(v_pkg_13303_, 2);
v_dir_13327_ = lean_ctor_get(v_pkg_13303_, 4);
lean_inc_ref(v_dir_13327_);
v_config_13328_ = lean_ctor_get(v_pkg_13303_, 6);
v_targetDecls_13329_ = lean_ctor_get(v_pkg_13303_, 13);
v___x_13365_ = l_Lake_Module_importsFacet;
lean_inc(v_name_13304_);
lean_inc(v_keyName_13326_);
v___x_13366_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_13366_, 0, v_keyName_13326_);
lean_ctor_set(v___x_13366_, 1, v_name_13304_);
v___x_13367_ = l_Lake_Module_keyword;
lean_inc_ref(v_mod_13301_);
v___x_13368_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_13368_, 0, v___x_13366_);
lean_ctor_set(v___x_13368_, 1, v___x_13367_);
lean_ctor_set(v___x_13368_, 2, v_mod_13301_);
lean_ctor_set(v___x_13368_, 3, v___x_13365_);
lean_inc_ref(v___y_13307_);
lean_inc_ref(v___y_13311_);
lean_inc(v___y_13310_);
lean_inc(v___y_13309_);
lean_inc(v___x_13302_);
v___x_13369_ = lean_apply_7(v___y_13307_, v___x_13368_, v___x_13302_, v___y_13309_, v___y_13310_, v___y_13311_, v_a_13322_, lean_box(0));
if (lean_obj_tag(v___x_13369_) == 0)
{
lean_object* v_a_13370_; lean_object* v_a_13371_; lean_object* v___x_13372_; 
v_a_13370_ = lean_ctor_get(v___x_13369_, 0);
lean_inc(v_a_13370_);
v_a_13371_ = lean_ctor_get(v___x_13369_, 1);
lean_inc(v_a_13371_);
lean_dec_ref(v___x_13369_);
v___x_13372_ = l_Lake_Job_await___redArg(v_a_13370_, v_a_13371_);
if (lean_obj_tag(v___x_13372_) == 0)
{
lean_object* v_a_13373_; lean_object* v_a_13374_; lean_object* v___x_13375_; 
v_a_13373_ = lean_ctor_get(v___x_13372_, 0);
lean_inc(v_a_13373_);
v_a_13374_ = lean_ctor_get(v___x_13372_, 1);
lean_inc(v_a_13374_);
lean_dec_ref(v___x_13372_);
lean_inc_ref(v___y_13311_);
lean_inc(v___y_13310_);
lean_inc(v___y_13309_);
lean_inc(v___x_13302_);
lean_inc_ref(v___y_13307_);
v___x_13375_ = l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs(v_mod_13301_, v_a_13373_, v___x_13305_, v___y_13307_, v___x_13302_, v___y_13309_, v___y_13310_, v___y_13311_, v_a_13374_);
lean_dec(v_a_13373_);
lean_dec_ref(v_mod_13301_);
if (lean_obj_tag(v___x_13375_) == 0)
{
lean_object* v_toLeanConfig_13376_; lean_object* v_a_13377_; lean_object* v_a_13378_; lean_object* v_moreLinkLibs_13379_; lean_object* v_moreLinkLibs_13380_; lean_object* v___x_13381_; lean_object* v___x_13382_; lean_object* v___y_13384_; lean_object* v___y_13385_; lean_object* v___y_13386_; lean_object* v___y_13395_; lean_object* v___x_13408_; uint8_t v___x_13409_; 
v_toLeanConfig_13376_ = lean_ctor_get(v_config_13328_, 1);
v_a_13377_ = lean_ctor_get(v___x_13375_, 0);
lean_inc(v_a_13377_);
v_a_13378_ = lean_ctor_get(v___x_13375_, 1);
lean_inc(v_a_13378_);
v_moreLinkLibs_13379_ = lean_ctor_get(v_toLeanConfig_13376_, 7);
v_moreLinkLibs_13380_ = lean_ctor_get(v_toLeanConfig_13306_, 7);
lean_inc_ref(v_moreLinkLibs_13379_);
v___x_13381_ = l_Array_append___redArg(v_moreLinkLibs_13379_, v_moreLinkLibs_13380_);
v___x_13382_ = lean_unsigned_to_nat(0u);
v___x_13408_ = lean_array_get_size(v___x_13381_);
v___x_13409_ = lean_nat_dec_lt(v___x_13382_, v___x_13408_);
if (v___x_13409_ == 0)
{
lean_dec_ref(v___x_13381_);
lean_dec(v_a_13378_);
lean_dec(v_a_13377_);
v___y_13395_ = v___x_13375_;
goto v___jp_13394_;
}
else
{
uint8_t v___x_13410_; 
v___x_13410_ = lean_nat_dec_le(v___x_13408_, v___x_13408_);
if (v___x_13410_ == 0)
{
if (v___x_13409_ == 0)
{
lean_dec_ref(v___x_13381_);
lean_dec(v_a_13378_);
lean_dec(v_a_13377_);
v___y_13395_ = v___x_13375_;
goto v___jp_13394_;
}
else
{
size_t v___x_13411_; lean_object* v___x_13412_; 
lean_dec_ref(v___x_13375_);
v___x_13411_ = lean_usize_of_nat(v___x_13408_);
lean_inc_ref(v___y_13311_);
lean_inc(v___y_13310_);
lean_inc(v___y_13309_);
lean_inc(v___x_13302_);
lean_inc_ref(v___y_13307_);
lean_inc_ref(v_pkg_13303_);
v___x_13412_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildDynlib_spec__2(v_pkg_13303_, v___x_13381_, v___x_13319_, v___x_13411_, v_a_13377_, v___y_13307_, v___x_13302_, v___y_13309_, v___y_13310_, v___y_13311_, v_a_13378_);
lean_dec_ref(v___x_13381_);
v___y_13395_ = v___x_13412_;
goto v___jp_13394_;
}
}
else
{
size_t v___x_13413_; lean_object* v___x_13414_; 
lean_dec_ref(v___x_13375_);
v___x_13413_ = lean_usize_of_nat(v___x_13408_);
lean_inc_ref(v___y_13311_);
lean_inc(v___y_13310_);
lean_inc(v___y_13309_);
lean_inc(v___x_13302_);
lean_inc_ref(v___y_13307_);
lean_inc_ref(v_pkg_13303_);
v___x_13414_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildDynlib_spec__2(v_pkg_13303_, v___x_13381_, v___x_13319_, v___x_13413_, v_a_13377_, v___y_13307_, v___x_13302_, v___y_13309_, v___y_13310_, v___y_13311_, v_a_13378_);
lean_dec_ref(v___x_13381_);
v___y_13395_ = v___x_13414_;
goto v___jp_13394_;
}
}
v___jp_13383_:
{
lean_object* v___x_13387_; uint8_t v___x_13388_; 
v___x_13387_ = lean_array_get_size(v___y_13386_);
v___x_13388_ = lean_nat_dec_lt(v___x_13382_, v___x_13387_);
if (v___x_13388_ == 0)
{
lean_dec_ref(v___y_13386_);
v_a_13331_ = v___y_13384_;
v_a_13332_ = v___y_13385_;
goto v___jp_13330_;
}
else
{
uint8_t v___x_13389_; 
v___x_13389_ = lean_nat_dec_le(v___x_13387_, v___x_13387_);
if (v___x_13389_ == 0)
{
if (v___x_13388_ == 0)
{
lean_dec_ref(v___y_13386_);
v_a_13331_ = v___y_13384_;
v_a_13332_ = v___y_13385_;
goto v___jp_13330_;
}
else
{
size_t v___x_13390_; lean_object* v___x_13391_; 
v___x_13390_ = lean_usize_of_nat(v___x_13387_);
lean_inc_ref(v___y_13311_);
lean_inc(v___y_13310_);
lean_inc(v___y_13309_);
lean_inc(v___x_13302_);
lean_inc_ref(v___y_13307_);
v___x_13391_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildDynlib_spec__1(v___y_13386_, v___x_13319_, v___x_13390_, v___y_13384_, v___y_13307_, v___x_13302_, v___y_13309_, v___y_13310_, v___y_13311_, v___y_13385_);
lean_dec_ref(v___y_13386_);
v___y_13360_ = v___x_13391_;
goto v___jp_13359_;
}
}
else
{
size_t v___x_13392_; lean_object* v___x_13393_; 
v___x_13392_ = lean_usize_of_nat(v___x_13387_);
lean_inc_ref(v___y_13311_);
lean_inc(v___y_13310_);
lean_inc(v___y_13309_);
lean_inc(v___x_13302_);
lean_inc_ref(v___y_13307_);
v___x_13393_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recBuildDynlib_spec__1(v___y_13386_, v___x_13319_, v___x_13392_, v___y_13384_, v___y_13307_, v___x_13302_, v___y_13309_, v___y_13310_, v___y_13311_, v___y_13385_);
lean_dec_ref(v___y_13386_);
v___y_13360_ = v___x_13393_;
goto v___jp_13359_;
}
}
}
v___jp_13394_:
{
if (lean_obj_tag(v___y_13395_) == 0)
{
lean_object* v_a_13396_; lean_object* v_a_13397_; lean_object* v___x_13398_; lean_object* v___x_13399_; uint8_t v___x_13400_; 
v_a_13396_ = lean_ctor_get(v___y_13395_, 0);
lean_inc(v_a_13396_);
v_a_13397_ = lean_ctor_get(v___y_13395_, 1);
lean_inc(v_a_13397_);
lean_dec_ref(v___y_13395_);
v___x_13398_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__3));
v___x_13399_ = lean_array_get_size(v_targetDecls_13329_);
v___x_13400_ = lean_nat_dec_lt(v___x_13382_, v___x_13399_);
if (v___x_13400_ == 0)
{
v___y_13384_ = v_a_13396_;
v___y_13385_ = v_a_13397_;
v___y_13386_ = v___x_13398_;
goto v___jp_13383_;
}
else
{
uint8_t v___x_13401_; 
v___x_13401_ = lean_nat_dec_le(v___x_13399_, v___x_13399_);
if (v___x_13401_ == 0)
{
if (v___x_13400_ == 0)
{
v___y_13384_ = v_a_13396_;
v___y_13385_ = v_a_13397_;
v___y_13386_ = v___x_13398_;
goto v___jp_13383_;
}
else
{
size_t v___x_13402_; lean_object* v___x_13403_; 
v___x_13402_ = lean_usize_of_nat(v___x_13399_);
lean_inc_ref(v_pkg_13303_);
v___x_13403_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__3(v_pkg_13303_, v_targetDecls_13329_, v___x_13319_, v___x_13402_, v___x_13398_);
v___y_13384_ = v_a_13396_;
v___y_13385_ = v_a_13397_;
v___y_13386_ = v___x_13403_;
goto v___jp_13383_;
}
}
else
{
size_t v___x_13404_; lean_object* v___x_13405_; 
v___x_13404_ = lean_usize_of_nat(v___x_13399_);
lean_inc_ref(v_pkg_13303_);
v___x_13405_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__3(v_pkg_13303_, v_targetDecls_13329_, v___x_13319_, v___x_13404_, v___x_13398_);
v___y_13384_ = v_a_13396_;
v___y_13385_ = v_a_13397_;
v___y_13386_ = v___x_13405_;
goto v___jp_13383_;
}
}
}
else
{
lean_object* v_a_13406_; lean_object* v_a_13407_; 
lean_dec_ref(v_dir_13327_);
lean_del_object(v___x_13324_);
lean_dec(v_a_13321_);
lean_dec_ref(v___y_13311_);
lean_dec(v___y_13310_);
lean_dec(v___y_13309_);
lean_dec_ref(v___y_13307_);
lean_dec(v_name_13304_);
lean_dec_ref(v_pkg_13303_);
lean_dec(v___x_13302_);
v_a_13406_ = lean_ctor_get(v___y_13395_, 0);
lean_inc(v_a_13406_);
v_a_13407_ = lean_ctor_get(v___y_13395_, 1);
lean_inc(v_a_13407_);
lean_dec_ref(v___y_13395_);
v_a_13315_ = v_a_13406_;
v_a_13316_ = v_a_13407_;
goto v___jp_13314_;
}
}
}
else
{
v___y_13360_ = v___x_13375_;
goto v___jp_13359_;
}
}
else
{
lean_object* v_a_13415_; lean_object* v_a_13416_; 
lean_dec_ref(v_dir_13327_);
lean_del_object(v___x_13324_);
lean_dec(v_a_13321_);
lean_dec_ref(v___y_13311_);
lean_dec(v___y_13310_);
lean_dec(v___y_13309_);
lean_dec_ref(v___y_13307_);
lean_dec(v_name_13304_);
lean_dec_ref(v_pkg_13303_);
lean_dec(v___x_13302_);
lean_dec_ref(v_mod_13301_);
v_a_13415_ = lean_ctor_get(v___x_13372_, 0);
lean_inc(v_a_13415_);
v_a_13416_ = lean_ctor_get(v___x_13372_, 1);
lean_inc(v_a_13416_);
lean_dec_ref(v___x_13372_);
v_a_13315_ = v_a_13415_;
v_a_13316_ = v_a_13416_;
goto v___jp_13314_;
}
}
else
{
lean_object* v_a_13417_; lean_object* v_a_13418_; 
lean_dec_ref(v_dir_13327_);
lean_del_object(v___x_13324_);
lean_dec(v_a_13321_);
lean_dec_ref(v___y_13311_);
lean_dec(v___y_13310_);
lean_dec(v___y_13309_);
lean_dec_ref(v___y_13307_);
lean_dec(v_name_13304_);
lean_dec_ref(v_pkg_13303_);
lean_dec(v___x_13302_);
lean_dec_ref(v_mod_13301_);
v_a_13417_ = lean_ctor_get(v___x_13369_, 0);
lean_inc(v_a_13417_);
v_a_13418_ = lean_ctor_get(v___x_13369_, 1);
lean_inc(v_a_13418_);
lean_dec_ref(v___x_13369_);
v_a_13315_ = v_a_13417_;
v_a_13316_ = v_a_13418_;
goto v___jp_13314_;
}
v___jp_13330_:
{
lean_object* v_toLeanConfig_13333_; lean_object* v_buildDir_13334_; lean_object* v_leanLibDir_13335_; lean_object* v_moreLinkArgs_13336_; lean_object* v_weakLinkArgs_13337_; lean_object* v_moreLinkArgs_13338_; lean_object* v_weakLinkArgs_13339_; lean_object* v___x_13340_; lean_object* v___x_13341_; lean_object* v___x_13342_; lean_object* v___x_13343_; lean_object* v___x_13344_; lean_object* v___x_13345_; lean_object* v___x_13346_; lean_object* v___x_13347_; lean_object* v___x_13348_; lean_object* v___x_13349_; lean_object* v___x_13350_; lean_object* v___x_13351_; lean_object* v___x_13352_; uint8_t v___x_13353_; lean_object* v___x_13354_; lean_object* v___x_13355_; lean_object* v___x_13357_; 
v_toLeanConfig_13333_ = lean_ctor_get(v_config_13328_, 1);
v_buildDir_13334_ = lean_ctor_get(v_config_13328_, 6);
lean_inc_ref(v_buildDir_13334_);
v_leanLibDir_13335_ = lean_ctor_get(v_config_13328_, 7);
lean_inc_ref(v_leanLibDir_13335_);
v_moreLinkArgs_13336_ = lean_ctor_get(v_toLeanConfig_13333_, 8);
lean_inc_ref(v_moreLinkArgs_13336_);
v_weakLinkArgs_13337_ = lean_ctor_get(v_toLeanConfig_13333_, 9);
lean_inc_ref(v_weakLinkArgs_13337_);
v_moreLinkArgs_13338_ = lean_ctor_get(v_toLeanConfig_13306_, 8);
v_weakLinkArgs_13339_ = lean_ctor_get(v_toLeanConfig_13306_, 9);
v___x_13340_ = l_Lake_Package_id_x3f(v_pkg_13303_);
v___x_13341_ = l_Lean_mkModuleInitializationStem(v_name_13304_, v___x_13340_);
lean_dec(v___x_13340_);
v___x_13342_ = l_System_FilePath_normalize(v_buildDir_13334_);
v___x_13343_ = l_Lake_joinRelative(v_dir_13327_, v___x_13342_);
v___x_13344_ = l_System_FilePath_normalize(v_leanLibDir_13335_);
v___x_13345_ = l_Lake_joinRelative(v___x_13343_, v___x_13344_);
v___x_13346_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildLean_trackOutputsIfEnabled___closed__0));
lean_inc_ref(v___x_13341_);
v___x_13347_ = lean_string_append(v___x_13341_, v___x_13346_);
v___x_13348_ = l_Lake_sharedLibExt;
v___x_13349_ = lean_string_append(v___x_13347_, v___x_13348_);
v___x_13350_ = l_Lake_joinRelative(v___x_13345_, v___x_13349_);
v___x_13351_ = l_Array_append___redArg(v_weakLinkArgs_13337_, v_weakLinkArgs_13339_);
v___x_13352_ = l_Array_append___redArg(v_moreLinkArgs_13336_, v_moreLinkArgs_13338_);
v___x_13353_ = l_System_Platform_isWindows;
v___x_13354_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_13355_ = l_Lake_buildLeanSharedLib(v___x_13341_, v___x_13350_, v_a_13321_, v_a_13331_, v___x_13351_, v___x_13352_, v___x_13305_, v___x_13353_, v___y_13307_, v___x_13302_, v___y_13309_, v___y_13310_, v___y_13311_, v___x_13354_);
lean_dec(v_a_13321_);
if (v_isShared_13325_ == 0)
{
lean_ctor_set(v___x_13324_, 1, v_a_13332_);
lean_ctor_set(v___x_13324_, 0, v___x_13355_);
v___x_13357_ = v___x_13324_;
goto v_reusejp_13356_;
}
else
{
lean_object* v_reuseFailAlloc_13358_; 
v_reuseFailAlloc_13358_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_13358_, 0, v___x_13355_);
lean_ctor_set(v_reuseFailAlloc_13358_, 1, v_a_13332_);
v___x_13357_ = v_reuseFailAlloc_13358_;
goto v_reusejp_13356_;
}
v_reusejp_13356_:
{
return v___x_13357_;
}
}
v___jp_13359_:
{
if (lean_obj_tag(v___y_13360_) == 0)
{
lean_object* v_a_13361_; lean_object* v_a_13362_; 
v_a_13361_ = lean_ctor_get(v___y_13360_, 0);
lean_inc(v_a_13361_);
v_a_13362_ = lean_ctor_get(v___y_13360_, 1);
lean_inc(v_a_13362_);
lean_dec_ref(v___y_13360_);
v_a_13331_ = v_a_13361_;
v_a_13332_ = v_a_13362_;
goto v___jp_13330_;
}
else
{
lean_object* v_a_13363_; lean_object* v_a_13364_; 
lean_dec_ref(v_dir_13327_);
lean_del_object(v___x_13324_);
lean_dec(v_a_13321_);
lean_dec_ref(v___y_13311_);
lean_dec(v___y_13310_);
lean_dec(v___y_13309_);
lean_dec_ref(v___y_13307_);
lean_dec(v_name_13304_);
lean_dec_ref(v_pkg_13303_);
lean_dec(v___x_13302_);
v_a_13363_ = lean_ctor_get(v___y_13360_, 0);
lean_inc(v_a_13363_);
v_a_13364_ = lean_ctor_get(v___y_13360_, 1);
lean_inc(v_a_13364_);
lean_dec_ref(v___y_13360_);
v_a_13315_ = v_a_13363_;
v_a_13316_ = v_a_13364_;
goto v___jp_13314_;
}
}
}
}
else
{
lean_object* v_a_13420_; lean_object* v_a_13421_; lean_object* v___x_13423_; uint8_t v_isShared_13424_; uint8_t v_isSharedCheck_13428_; 
lean_dec_ref(v___y_13311_);
lean_dec(v___y_13310_);
lean_dec(v___y_13309_);
lean_dec_ref(v___y_13307_);
lean_dec(v_name_13304_);
lean_dec_ref(v_pkg_13303_);
lean_dec(v___x_13302_);
lean_dec_ref(v_mod_13301_);
v_a_13420_ = lean_ctor_get(v___x_13320_, 0);
v_a_13421_ = lean_ctor_get(v___x_13320_, 1);
v_isSharedCheck_13428_ = !lean_is_exclusive(v___x_13320_);
if (v_isSharedCheck_13428_ == 0)
{
v___x_13423_ = v___x_13320_;
v_isShared_13424_ = v_isSharedCheck_13428_;
goto v_resetjp_13422_;
}
else
{
lean_inc(v_a_13421_);
lean_inc(v_a_13420_);
lean_dec(v___x_13320_);
v___x_13423_ = lean_box(0);
v_isShared_13424_ = v_isSharedCheck_13428_;
goto v_resetjp_13422_;
}
v_resetjp_13422_:
{
lean_object* v___x_13426_; 
if (v_isShared_13424_ == 0)
{
v___x_13426_ = v___x_13423_;
goto v_reusejp_13425_;
}
else
{
lean_object* v_reuseFailAlloc_13427_; 
v_reuseFailAlloc_13427_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_13427_, 0, v_a_13420_);
lean_ctor_set(v_reuseFailAlloc_13427_, 1, v_a_13421_);
v___x_13426_ = v_reuseFailAlloc_13427_;
goto v_reusejp_13425_;
}
v_reusejp_13425_:
{
return v___x_13426_;
}
}
}
v___jp_13314_:
{
lean_object* v___x_13317_; 
v___x_13317_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_13317_, 0, v_a_13315_);
lean_ctor_set(v___x_13317_, 1, v_a_13316_);
return v___x_13317_;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildDynlib___lam__0___boxed(lean_object* v___x_13429_, lean_object* v_mod_13430_, lean_object* v___x_13431_, lean_object* v_pkg_13432_, lean_object* v_name_13433_, lean_object* v___x_13434_, lean_object* v_toLeanConfig_13435_, lean_object* v___y_13436_, lean_object* v___y_13437_, lean_object* v___y_13438_, lean_object* v___y_13439_, lean_object* v___y_13440_, lean_object* v___y_13441_, lean_object* v___y_13442_){
_start:
{
uint8_t v___x_33031__boxed_13443_; lean_object* v_res_13444_; 
v___x_33031__boxed_13443_ = lean_unbox(v___x_13434_);
v_res_13444_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildDynlib___lam__0(v___x_13429_, v_mod_13430_, v___x_13431_, v_pkg_13432_, v_name_13433_, v___x_33031__boxed_13443_, v_toLeanConfig_13435_, v___y_13436_, v___y_13437_, v___y_13438_, v___y_13439_, v___y_13440_, v___y_13441_);
lean_dec(v___y_13437_);
lean_dec_ref(v_toLeanConfig_13435_);
return v_res_13444_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildDynlib(lean_object* v_mod_13446_, lean_object* v_a_13447_, lean_object* v_a_13448_, lean_object* v_a_13449_, lean_object* v_a_13450_, lean_object* v_a_13451_, lean_object* v_a_13452_){
_start:
{
lean_object* v_lib_13454_; lean_object* v_config_13455_; lean_object* v_name_13456_; lean_object* v_pkg_13457_; lean_object* v_toLeanConfig_13458_; lean_object* v_nativeFacets_13459_; lean_object* v___x_13460_; uint8_t v___x_13461_; lean_object* v___x_13462_; lean_object* v___x_13463_; lean_object* v___x_13464_; lean_object* v___x_13465_; lean_object* v___f_13466_; lean_object* v___x_13467_; 
v_lib_13454_ = lean_ctor_get(v_mod_13446_, 0);
v_config_13455_ = lean_ctor_get(v_lib_13454_, 2);
v_name_13456_ = lean_ctor_get(v_mod_13446_, 1);
lean_inc(v_name_13456_);
v_pkg_13457_ = lean_ctor_get(v_lib_13454_, 0);
lean_inc_ref(v_pkg_13457_);
v_toLeanConfig_13458_ = lean_ctor_get(v_config_13455_, 0);
lean_inc_ref(v_toLeanConfig_13458_);
v_nativeFacets_13459_ = lean_ctor_get(v_config_13455_, 8);
v___x_13460_ = l_Lake_instDataKindDynlib;
v___x_13461_ = 1;
v___x_13462_ = lean_box(v___x_13461_);
lean_inc_ref(v_nativeFacets_13459_);
v___x_13463_ = lean_apply_1(v_nativeFacets_13459_, v___x_13462_);
lean_inc_ref(v_pkg_13457_);
v___x_13464_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_13464_, 0, v_pkg_13457_);
v___x_13465_ = lean_box(v___x_13461_);
lean_inc(v_name_13456_);
v___f_13466_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildDynlib___lam__0___boxed), 14, 7);
lean_closure_set(v___f_13466_, 0, v___x_13463_);
lean_closure_set(v___f_13466_, 1, v_mod_13446_);
lean_closure_set(v___f_13466_, 2, v___x_13464_);
lean_closure_set(v___f_13466_, 3, v_pkg_13457_);
lean_closure_set(v___f_13466_, 4, v_name_13456_);
lean_closure_set(v___f_13466_, 5, v___x_13465_);
lean_closure_set(v___f_13466_, 6, v_toLeanConfig_13458_);
lean_inc_ref(v_a_13451_);
v___x_13467_ = l_Lake_ensureJob___redArg(v___x_13460_, v___f_13466_, v_a_13447_, v_a_13448_, v_a_13449_, v_a_13450_, v_a_13451_, v_a_13452_);
if (lean_obj_tag(v___x_13467_) == 0)
{
lean_object* v_a_13468_; lean_object* v_a_13469_; lean_object* v___x_13471_; uint8_t v_isShared_13472_; uint8_t v_isSharedCheck_13496_; 
v_a_13468_ = lean_ctor_get(v___x_13467_, 0);
v_a_13469_ = lean_ctor_get(v___x_13467_, 1);
v_isSharedCheck_13496_ = !lean_is_exclusive(v___x_13467_);
if (v_isSharedCheck_13496_ == 0)
{
v___x_13471_ = v___x_13467_;
v_isShared_13472_ = v_isSharedCheck_13496_;
goto v_resetjp_13470_;
}
else
{
lean_inc(v_a_13469_);
lean_inc(v_a_13468_);
lean_dec(v___x_13467_);
v___x_13471_ = lean_box(0);
v_isShared_13472_ = v_isSharedCheck_13496_;
goto v_resetjp_13470_;
}
v_resetjp_13470_:
{
lean_object* v_task_13473_; lean_object* v_kind_13474_; lean_object* v___x_13476_; uint8_t v_isShared_13477_; uint8_t v_isSharedCheck_13494_; 
v_task_13473_ = lean_ctor_get(v_a_13468_, 0);
v_kind_13474_ = lean_ctor_get(v_a_13468_, 1);
v_isSharedCheck_13494_ = !lean_is_exclusive(v_a_13468_);
if (v_isSharedCheck_13494_ == 0)
{
lean_object* v_unused_13495_; 
v_unused_13495_ = lean_ctor_get(v_a_13468_, 2);
lean_dec(v_unused_13495_);
v___x_13476_ = v_a_13468_;
v_isShared_13477_ = v_isSharedCheck_13494_;
goto v_resetjp_13475_;
}
else
{
lean_inc(v_kind_13474_);
lean_inc(v_task_13473_);
lean_dec(v_a_13468_);
v___x_13476_ = lean_box(0);
v_isShared_13477_ = v_isSharedCheck_13494_;
goto v_resetjp_13475_;
}
v_resetjp_13475_:
{
lean_object* v_registeredJobs_13478_; lean_object* v___x_13479_; lean_object* v___x_13480_; lean_object* v___x_13481_; lean_object* v___x_13482_; uint8_t v___x_13483_; lean_object* v_job_13485_; 
v_registeredJobs_13478_ = lean_ctor_get(v_a_13451_, 3);
lean_inc(v_registeredJobs_13478_);
lean_dec_ref(v_a_13451_);
v___x_13479_ = lean_st_ref_take(v_registeredJobs_13478_);
v___x_13480_ = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(v_name_13456_, v___x_13461_);
v___x_13481_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recBuildDynlib___closed__0));
v___x_13482_ = lean_string_append(v___x_13480_, v___x_13481_);
v___x_13483_ = 0;
if (v_isShared_13477_ == 0)
{
lean_ctor_set(v___x_13476_, 2, v___x_13482_);
v_job_13485_ = v___x_13476_;
goto v_reusejp_13484_;
}
else
{
lean_object* v_reuseFailAlloc_13493_; 
v_reuseFailAlloc_13493_ = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(v_reuseFailAlloc_13493_, 0, v_task_13473_);
lean_ctor_set(v_reuseFailAlloc_13493_, 1, v_kind_13474_);
lean_ctor_set(v_reuseFailAlloc_13493_, 2, v___x_13482_);
v_job_13485_ = v_reuseFailAlloc_13493_;
goto v_reusejp_13484_;
}
v_reusejp_13484_:
{
lean_object* v___x_13486_; lean_object* v___x_13487_; lean_object* v___x_13488_; lean_object* v___x_13489_; lean_object* v___x_13491_; 
lean_ctor_set_uint8(v_job_13485_, sizeof(void*)*3, v___x_13483_);
lean_inc_ref(v_job_13485_);
v___x_13486_ = l_Lake_Job_toOpaque___redArg(v_job_13485_);
v___x_13487_ = lean_array_push(v___x_13479_, v___x_13486_);
v___x_13488_ = lean_st_ref_set(v_registeredJobs_13478_, v___x_13487_);
lean_dec(v_registeredJobs_13478_);
v___x_13489_ = l_Lake_Job_renew___redArg(v_job_13485_);
if (v_isShared_13472_ == 0)
{
lean_ctor_set(v___x_13471_, 0, v___x_13489_);
v___x_13491_ = v___x_13471_;
goto v_reusejp_13490_;
}
else
{
lean_object* v_reuseFailAlloc_13492_; 
v_reuseFailAlloc_13492_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_13492_, 0, v___x_13489_);
lean_ctor_set(v_reuseFailAlloc_13492_, 1, v_a_13469_);
v___x_13491_ = v_reuseFailAlloc_13492_;
goto v_reusejp_13490_;
}
v_reusejp_13490_:
{
return v___x_13491_;
}
}
}
}
}
else
{
lean_dec(v_name_13456_);
lean_dec_ref(v_a_13451_);
return v___x_13467_;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildDynlib___boxed(lean_object* v_mod_13497_, lean_object* v_a_13498_, lean_object* v_a_13499_, lean_object* v_a_13500_, lean_object* v_a_13501_, lean_object* v_a_13502_, lean_object* v_a_13503_, lean_object* v_a_13504_){
_start:
{
lean_object* v_res_13505_; 
v_res_13505_ = l___private_Lake_Build_Module_0__Lake_Module_recBuildDynlib(v_mod_13497_, v_a_13498_, v_a_13499_, v_a_13500_, v_a_13501_, v_a_13502_, v_a_13503_);
return v_res_13505_;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_dynlibFacetConfig_spec__0(uint8_t v_fmt_13506_, lean_object* v_a_13507_){
_start:
{
if (v_fmt_13506_ == 0)
{
lean_object* v_path_13508_; 
v_path_13508_ = lean_ctor_get(v_a_13507_, 0);
lean_inc_ref(v_path_13508_);
return v_path_13508_;
}
else
{
lean_object* v_path_13509_; lean_object* v___x_13510_; lean_object* v___x_13511_; 
v_path_13509_ = lean_ctor_get(v_a_13507_, 0);
lean_inc_ref(v_path_13509_);
v___x_13510_ = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(v___x_13510_, 0, v_path_13509_);
v___x_13511_ = l_Lean_Json_compress(v___x_13510_);
return v___x_13511_;
}
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Module_dynlibFacetConfig_spec__0___boxed(lean_object* v_fmt_13512_, lean_object* v_a_13513_){
_start:
{
uint8_t v_fmt_boxed_13514_; lean_object* v_res_13515_; 
v_fmt_boxed_13514_ = lean_unbox(v_fmt_13512_);
v_res_13515_ = l_Lake_formatQuery___at___00Lake_Module_dynlibFacetConfig_spec__0(v_fmt_boxed_13514_, v_a_13513_);
lean_dec_ref(v_a_13513_);
return v_res_13515_;
}
}
static lean_object* _init_l_Lake_Module_dynlibFacetConfig___closed__2(void){
_start:
{
lean_object* v___f_13518_; uint8_t v___x_13519_; lean_object* v___x_13520_; lean_object* v___x_13521_; lean_object* v___x_13522_; lean_object* v___x_13523_; 
v___f_13518_ = ((lean_object*)(l_Lake_Module_dynlibFacetConfig___closed__0));
v___x_13519_ = 1;
v___x_13520_ = l_Lake_instDataKindDynlib;
v___x_13521_ = ((lean_object*)(l_Lake_Module_dynlibFacetConfig___closed__1));
v___x_13522_ = l_Lake_Module_keyword;
v___x_13523_ = lean_alloc_ctor(0, 4, 2);
lean_ctor_set(v___x_13523_, 0, v___x_13522_);
lean_ctor_set(v___x_13523_, 1, v___x_13521_);
lean_ctor_set(v___x_13523_, 2, v___x_13520_);
lean_ctor_set(v___x_13523_, 3, v___f_13518_);
lean_ctor_set_uint8(v___x_13523_, sizeof(void*)*4, v___x_13519_);
lean_ctor_set_uint8(v___x_13523_, sizeof(void*)*4 + 1, v___x_13519_);
return v___x_13523_;
}
}
static lean_object* _init_l_Lake_Module_dynlibFacetConfig(void){
_start:
{
lean_object* v___x_13524_; 
v___x_13524_ = lean_obj_once(&l_Lake_Module_dynlibFacetConfig___closed__2, &l_Lake_Module_dynlibFacetConfig___closed__2_once, _init_l_Lake_Module_dynlibFacetConfig___closed__2);
return v___x_13524_;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(lean_object* v_k_13525_, lean_object* v_v_13526_, lean_object* v_t_13527_){
_start:
{
if (lean_obj_tag(v_t_13527_) == 0)
{
lean_object* v_size_13528_; lean_object* v_k_13529_; lean_object* v_v_13530_; lean_object* v_l_13531_; lean_object* v_r_13532_; lean_object* v___x_13534_; uint8_t v_isShared_13535_; uint8_t v_isSharedCheck_13812_; 
v_size_13528_ = lean_ctor_get(v_t_13527_, 0);
v_k_13529_ = lean_ctor_get(v_t_13527_, 1);
v_v_13530_ = lean_ctor_get(v_t_13527_, 2);
v_l_13531_ = lean_ctor_get(v_t_13527_, 3);
v_r_13532_ = lean_ctor_get(v_t_13527_, 4);
v_isSharedCheck_13812_ = !lean_is_exclusive(v_t_13527_);
if (v_isSharedCheck_13812_ == 0)
{
v___x_13534_ = v_t_13527_;
v_isShared_13535_ = v_isSharedCheck_13812_;
goto v_resetjp_13533_;
}
else
{
lean_inc(v_r_13532_);
lean_inc(v_l_13531_);
lean_inc(v_v_13530_);
lean_inc(v_k_13529_);
lean_inc(v_size_13528_);
lean_dec(v_t_13527_);
v___x_13534_ = lean_box(0);
v_isShared_13535_ = v_isSharedCheck_13812_;
goto v_resetjp_13533_;
}
v_resetjp_13533_:
{
uint8_t v___x_13536_; 
v___x_13536_ = l___private_Lean_Data_Name_0__Lean_Name_quickCmpImpl(v_k_13525_, v_k_13529_);
switch(v___x_13536_)
{
case 0:
{
lean_object* v_impl_13537_; lean_object* v___x_13538_; 
lean_dec(v_size_13528_);
v_impl_13537_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v_k_13525_, v_v_13526_, v_l_13531_);
v___x_13538_ = lean_unsigned_to_nat(1u);
if (lean_obj_tag(v_r_13532_) == 0)
{
lean_object* v_size_13539_; lean_object* v_size_13540_; lean_object* v_k_13541_; lean_object* v_v_13542_; lean_object* v_l_13543_; lean_object* v_r_13544_; lean_object* v___x_13545_; lean_object* v___x_13546_; uint8_t v___x_13547_; 
v_size_13539_ = lean_ctor_get(v_r_13532_, 0);
v_size_13540_ = lean_ctor_get(v_impl_13537_, 0);
lean_inc(v_size_13540_);
v_k_13541_ = lean_ctor_get(v_impl_13537_, 1);
lean_inc(v_k_13541_);
v_v_13542_ = lean_ctor_get(v_impl_13537_, 2);
lean_inc(v_v_13542_);
v_l_13543_ = lean_ctor_get(v_impl_13537_, 3);
lean_inc(v_l_13543_);
v_r_13544_ = lean_ctor_get(v_impl_13537_, 4);
lean_inc(v_r_13544_);
v___x_13545_ = lean_unsigned_to_nat(3u);
v___x_13546_ = lean_nat_mul(v___x_13545_, v_size_13539_);
v___x_13547_ = lean_nat_dec_lt(v___x_13546_, v_size_13540_);
lean_dec(v___x_13546_);
if (v___x_13547_ == 0)
{
lean_object* v___x_13548_; lean_object* v___x_13549_; lean_object* v___x_13551_; 
lean_dec(v_r_13544_);
lean_dec(v_l_13543_);
lean_dec(v_v_13542_);
lean_dec(v_k_13541_);
v___x_13548_ = lean_nat_add(v___x_13538_, v_size_13540_);
lean_dec(v_size_13540_);
v___x_13549_ = lean_nat_add(v___x_13548_, v_size_13539_);
lean_dec(v___x_13548_);
if (v_isShared_13535_ == 0)
{
lean_ctor_set(v___x_13534_, 3, v_impl_13537_);
lean_ctor_set(v___x_13534_, 0, v___x_13549_);
v___x_13551_ = v___x_13534_;
goto v_reusejp_13550_;
}
else
{
lean_object* v_reuseFailAlloc_13552_; 
v_reuseFailAlloc_13552_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13552_, 0, v___x_13549_);
lean_ctor_set(v_reuseFailAlloc_13552_, 1, v_k_13529_);
lean_ctor_set(v_reuseFailAlloc_13552_, 2, v_v_13530_);
lean_ctor_set(v_reuseFailAlloc_13552_, 3, v_impl_13537_);
lean_ctor_set(v_reuseFailAlloc_13552_, 4, v_r_13532_);
v___x_13551_ = v_reuseFailAlloc_13552_;
goto v_reusejp_13550_;
}
v_reusejp_13550_:
{
return v___x_13551_;
}
}
else
{
lean_object* v___x_13554_; uint8_t v_isShared_13555_; uint8_t v_isSharedCheck_13618_; 
v_isSharedCheck_13618_ = !lean_is_exclusive(v_impl_13537_);
if (v_isSharedCheck_13618_ == 0)
{
lean_object* v_unused_13619_; lean_object* v_unused_13620_; lean_object* v_unused_13621_; lean_object* v_unused_13622_; lean_object* v_unused_13623_; 
v_unused_13619_ = lean_ctor_get(v_impl_13537_, 4);
lean_dec(v_unused_13619_);
v_unused_13620_ = lean_ctor_get(v_impl_13537_, 3);
lean_dec(v_unused_13620_);
v_unused_13621_ = lean_ctor_get(v_impl_13537_, 2);
lean_dec(v_unused_13621_);
v_unused_13622_ = lean_ctor_get(v_impl_13537_, 1);
lean_dec(v_unused_13622_);
v_unused_13623_ = lean_ctor_get(v_impl_13537_, 0);
lean_dec(v_unused_13623_);
v___x_13554_ = v_impl_13537_;
v_isShared_13555_ = v_isSharedCheck_13618_;
goto v_resetjp_13553_;
}
else
{
lean_dec(v_impl_13537_);
v___x_13554_ = lean_box(0);
v_isShared_13555_ = v_isSharedCheck_13618_;
goto v_resetjp_13553_;
}
v_resetjp_13553_:
{
lean_object* v_size_13556_; lean_object* v_size_13557_; lean_object* v_k_13558_; lean_object* v_v_13559_; lean_object* v_l_13560_; lean_object* v_r_13561_; lean_object* v___x_13562_; lean_object* v___x_13563_; uint8_t v___x_13564_; 
v_size_13556_ = lean_ctor_get(v_l_13543_, 0);
v_size_13557_ = lean_ctor_get(v_r_13544_, 0);
v_k_13558_ = lean_ctor_get(v_r_13544_, 1);
v_v_13559_ = lean_ctor_get(v_r_13544_, 2);
v_l_13560_ = lean_ctor_get(v_r_13544_, 3);
v_r_13561_ = lean_ctor_get(v_r_13544_, 4);
v___x_13562_ = lean_unsigned_to_nat(2u);
v___x_13563_ = lean_nat_mul(v___x_13562_, v_size_13556_);
v___x_13564_ = lean_nat_dec_lt(v_size_13557_, v___x_13563_);
lean_dec(v___x_13563_);
if (v___x_13564_ == 0)
{
lean_object* v___x_13566_; uint8_t v_isShared_13567_; uint8_t v_isSharedCheck_13593_; 
lean_inc(v_r_13561_);
lean_inc(v_l_13560_);
lean_inc(v_v_13559_);
lean_inc(v_k_13558_);
v_isSharedCheck_13593_ = !lean_is_exclusive(v_r_13544_);
if (v_isSharedCheck_13593_ == 0)
{
lean_object* v_unused_13594_; lean_object* v_unused_13595_; lean_object* v_unused_13596_; lean_object* v_unused_13597_; lean_object* v_unused_13598_; 
v_unused_13594_ = lean_ctor_get(v_r_13544_, 4);
lean_dec(v_unused_13594_);
v_unused_13595_ = lean_ctor_get(v_r_13544_, 3);
lean_dec(v_unused_13595_);
v_unused_13596_ = lean_ctor_get(v_r_13544_, 2);
lean_dec(v_unused_13596_);
v_unused_13597_ = lean_ctor_get(v_r_13544_, 1);
lean_dec(v_unused_13597_);
v_unused_13598_ = lean_ctor_get(v_r_13544_, 0);
lean_dec(v_unused_13598_);
v___x_13566_ = v_r_13544_;
v_isShared_13567_ = v_isSharedCheck_13593_;
goto v_resetjp_13565_;
}
else
{
lean_dec(v_r_13544_);
v___x_13566_ = lean_box(0);
v_isShared_13567_ = v_isSharedCheck_13593_;
goto v_resetjp_13565_;
}
v_resetjp_13565_:
{
lean_object* v___x_13568_; lean_object* v___x_13569_; lean_object* v___y_13571_; lean_object* v___y_13572_; lean_object* v___y_13573_; lean_object* v___x_13581_; lean_object* v___y_13583_; 
v___x_13568_ = lean_nat_add(v___x_13538_, v_size_13540_);
lean_dec(v_size_13540_);
v___x_13569_ = lean_nat_add(v___x_13568_, v_size_13539_);
lean_dec(v___x_13568_);
v___x_13581_ = lean_nat_add(v___x_13538_, v_size_13556_);
if (lean_obj_tag(v_l_13560_) == 0)
{
lean_object* v_size_13591_; 
v_size_13591_ = lean_ctor_get(v_l_13560_, 0);
lean_inc(v_size_13591_);
v___y_13583_ = v_size_13591_;
goto v___jp_13582_;
}
else
{
lean_object* v___x_13592_; 
v___x_13592_ = lean_unsigned_to_nat(0u);
v___y_13583_ = v___x_13592_;
goto v___jp_13582_;
}
v___jp_13570_:
{
lean_object* v___x_13574_; lean_object* v___x_13576_; 
v___x_13574_ = lean_nat_add(v___y_13572_, v___y_13573_);
lean_dec(v___y_13573_);
lean_dec(v___y_13572_);
if (v_isShared_13567_ == 0)
{
lean_ctor_set(v___x_13566_, 4, v_r_13532_);
lean_ctor_set(v___x_13566_, 3, v_r_13561_);
lean_ctor_set(v___x_13566_, 2, v_v_13530_);
lean_ctor_set(v___x_13566_, 1, v_k_13529_);
lean_ctor_set(v___x_13566_, 0, v___x_13574_);
v___x_13576_ = v___x_13566_;
goto v_reusejp_13575_;
}
else
{
lean_object* v_reuseFailAlloc_13580_; 
v_reuseFailAlloc_13580_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13580_, 0, v___x_13574_);
lean_ctor_set(v_reuseFailAlloc_13580_, 1, v_k_13529_);
lean_ctor_set(v_reuseFailAlloc_13580_, 2, v_v_13530_);
lean_ctor_set(v_reuseFailAlloc_13580_, 3, v_r_13561_);
lean_ctor_set(v_reuseFailAlloc_13580_, 4, v_r_13532_);
v___x_13576_ = v_reuseFailAlloc_13580_;
goto v_reusejp_13575_;
}
v_reusejp_13575_:
{
lean_object* v___x_13578_; 
if (v_isShared_13555_ == 0)
{
lean_ctor_set(v___x_13554_, 4, v___x_13576_);
lean_ctor_set(v___x_13554_, 3, v___y_13571_);
lean_ctor_set(v___x_13554_, 2, v_v_13559_);
lean_ctor_set(v___x_13554_, 1, v_k_13558_);
lean_ctor_set(v___x_13554_, 0, v___x_13569_);
v___x_13578_ = v___x_13554_;
goto v_reusejp_13577_;
}
else
{
lean_object* v_reuseFailAlloc_13579_; 
v_reuseFailAlloc_13579_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13579_, 0, v___x_13569_);
lean_ctor_set(v_reuseFailAlloc_13579_, 1, v_k_13558_);
lean_ctor_set(v_reuseFailAlloc_13579_, 2, v_v_13559_);
lean_ctor_set(v_reuseFailAlloc_13579_, 3, v___y_13571_);
lean_ctor_set(v_reuseFailAlloc_13579_, 4, v___x_13576_);
v___x_13578_ = v_reuseFailAlloc_13579_;
goto v_reusejp_13577_;
}
v_reusejp_13577_:
{
return v___x_13578_;
}
}
}
v___jp_13582_:
{
lean_object* v___x_13584_; lean_object* v___x_13586_; 
v___x_13584_ = lean_nat_add(v___x_13581_, v___y_13583_);
lean_dec(v___y_13583_);
lean_dec(v___x_13581_);
if (v_isShared_13535_ == 0)
{
lean_ctor_set(v___x_13534_, 4, v_l_13560_);
lean_ctor_set(v___x_13534_, 3, v_l_13543_);
lean_ctor_set(v___x_13534_, 2, v_v_13542_);
lean_ctor_set(v___x_13534_, 1, v_k_13541_);
lean_ctor_set(v___x_13534_, 0, v___x_13584_);
v___x_13586_ = v___x_13534_;
goto v_reusejp_13585_;
}
else
{
lean_object* v_reuseFailAlloc_13590_; 
v_reuseFailAlloc_13590_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13590_, 0, v___x_13584_);
lean_ctor_set(v_reuseFailAlloc_13590_, 1, v_k_13541_);
lean_ctor_set(v_reuseFailAlloc_13590_, 2, v_v_13542_);
lean_ctor_set(v_reuseFailAlloc_13590_, 3, v_l_13543_);
lean_ctor_set(v_reuseFailAlloc_13590_, 4, v_l_13560_);
v___x_13586_ = v_reuseFailAlloc_13590_;
goto v_reusejp_13585_;
}
v_reusejp_13585_:
{
lean_object* v___x_13587_; 
v___x_13587_ = lean_nat_add(v___x_13538_, v_size_13539_);
if (lean_obj_tag(v_r_13561_) == 0)
{
lean_object* v_size_13588_; 
v_size_13588_ = lean_ctor_get(v_r_13561_, 0);
lean_inc(v_size_13588_);
v___y_13571_ = v___x_13586_;
v___y_13572_ = v___x_13587_;
v___y_13573_ = v_size_13588_;
goto v___jp_13570_;
}
else
{
lean_object* v___x_13589_; 
v___x_13589_ = lean_unsigned_to_nat(0u);
v___y_13571_ = v___x_13586_;
v___y_13572_ = v___x_13587_;
v___y_13573_ = v___x_13589_;
goto v___jp_13570_;
}
}
}
}
}
else
{
lean_object* v___x_13599_; lean_object* v___x_13600_; lean_object* v___x_13601_; lean_object* v___x_13602_; lean_object* v___x_13604_; 
lean_del_object(v___x_13534_);
v___x_13599_ = lean_nat_add(v___x_13538_, v_size_13540_);
lean_dec(v_size_13540_);
v___x_13600_ = lean_nat_add(v___x_13599_, v_size_13539_);
lean_dec(v___x_13599_);
v___x_13601_ = lean_nat_add(v___x_13538_, v_size_13539_);
v___x_13602_ = lean_nat_add(v___x_13601_, v_size_13557_);
lean_dec(v___x_13601_);
lean_inc_ref(v_r_13532_);
if (v_isShared_13555_ == 0)
{
lean_ctor_set(v___x_13554_, 4, v_r_13532_);
lean_ctor_set(v___x_13554_, 3, v_r_13544_);
lean_ctor_set(v___x_13554_, 2, v_v_13530_);
lean_ctor_set(v___x_13554_, 1, v_k_13529_);
lean_ctor_set(v___x_13554_, 0, v___x_13602_);
v___x_13604_ = v___x_13554_;
goto v_reusejp_13603_;
}
else
{
lean_object* v_reuseFailAlloc_13617_; 
v_reuseFailAlloc_13617_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13617_, 0, v___x_13602_);
lean_ctor_set(v_reuseFailAlloc_13617_, 1, v_k_13529_);
lean_ctor_set(v_reuseFailAlloc_13617_, 2, v_v_13530_);
lean_ctor_set(v_reuseFailAlloc_13617_, 3, v_r_13544_);
lean_ctor_set(v_reuseFailAlloc_13617_, 4, v_r_13532_);
v___x_13604_ = v_reuseFailAlloc_13617_;
goto v_reusejp_13603_;
}
v_reusejp_13603_:
{
lean_object* v___x_13606_; uint8_t v_isShared_13607_; uint8_t v_isSharedCheck_13611_; 
v_isSharedCheck_13611_ = !lean_is_exclusive(v_r_13532_);
if (v_isSharedCheck_13611_ == 0)
{
lean_object* v_unused_13612_; lean_object* v_unused_13613_; lean_object* v_unused_13614_; lean_object* v_unused_13615_; lean_object* v_unused_13616_; 
v_unused_13612_ = lean_ctor_get(v_r_13532_, 4);
lean_dec(v_unused_13612_);
v_unused_13613_ = lean_ctor_get(v_r_13532_, 3);
lean_dec(v_unused_13613_);
v_unused_13614_ = lean_ctor_get(v_r_13532_, 2);
lean_dec(v_unused_13614_);
v_unused_13615_ = lean_ctor_get(v_r_13532_, 1);
lean_dec(v_unused_13615_);
v_unused_13616_ = lean_ctor_get(v_r_13532_, 0);
lean_dec(v_unused_13616_);
v___x_13606_ = v_r_13532_;
v_isShared_13607_ = v_isSharedCheck_13611_;
goto v_resetjp_13605_;
}
else
{
lean_dec(v_r_13532_);
v___x_13606_ = lean_box(0);
v_isShared_13607_ = v_isSharedCheck_13611_;
goto v_resetjp_13605_;
}
v_resetjp_13605_:
{
lean_object* v___x_13609_; 
if (v_isShared_13607_ == 0)
{
lean_ctor_set(v___x_13606_, 4, v___x_13604_);
lean_ctor_set(v___x_13606_, 3, v_l_13543_);
lean_ctor_set(v___x_13606_, 2, v_v_13542_);
lean_ctor_set(v___x_13606_, 1, v_k_13541_);
lean_ctor_set(v___x_13606_, 0, v___x_13600_);
v___x_13609_ = v___x_13606_;
goto v_reusejp_13608_;
}
else
{
lean_object* v_reuseFailAlloc_13610_; 
v_reuseFailAlloc_13610_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13610_, 0, v___x_13600_);
lean_ctor_set(v_reuseFailAlloc_13610_, 1, v_k_13541_);
lean_ctor_set(v_reuseFailAlloc_13610_, 2, v_v_13542_);
lean_ctor_set(v_reuseFailAlloc_13610_, 3, v_l_13543_);
lean_ctor_set(v_reuseFailAlloc_13610_, 4, v___x_13604_);
v___x_13609_ = v_reuseFailAlloc_13610_;
goto v_reusejp_13608_;
}
v_reusejp_13608_:
{
return v___x_13609_;
}
}
}
}
}
}
}
else
{
lean_object* v_l_13624_; 
v_l_13624_ = lean_ctor_get(v_impl_13537_, 3);
lean_inc(v_l_13624_);
if (lean_obj_tag(v_l_13624_) == 0)
{
lean_object* v_r_13625_; lean_object* v_k_13626_; lean_object* v_v_13627_; lean_object* v___x_13629_; uint8_t v_isShared_13630_; uint8_t v_isSharedCheck_13638_; 
v_r_13625_ = lean_ctor_get(v_impl_13537_, 4);
v_k_13626_ = lean_ctor_get(v_impl_13537_, 1);
v_v_13627_ = lean_ctor_get(v_impl_13537_, 2);
v_isSharedCheck_13638_ = !lean_is_exclusive(v_impl_13537_);
if (v_isSharedCheck_13638_ == 0)
{
lean_object* v_unused_13639_; lean_object* v_unused_13640_; 
v_unused_13639_ = lean_ctor_get(v_impl_13537_, 3);
lean_dec(v_unused_13639_);
v_unused_13640_ = lean_ctor_get(v_impl_13537_, 0);
lean_dec(v_unused_13640_);
v___x_13629_ = v_impl_13537_;
v_isShared_13630_ = v_isSharedCheck_13638_;
goto v_resetjp_13628_;
}
else
{
lean_inc(v_r_13625_);
lean_inc(v_v_13627_);
lean_inc(v_k_13626_);
lean_dec(v_impl_13537_);
v___x_13629_ = lean_box(0);
v_isShared_13630_ = v_isSharedCheck_13638_;
goto v_resetjp_13628_;
}
v_resetjp_13628_:
{
lean_object* v___x_13631_; lean_object* v___x_13633_; 
v___x_13631_ = lean_unsigned_to_nat(3u);
lean_inc(v_r_13625_);
if (v_isShared_13630_ == 0)
{
lean_ctor_set(v___x_13629_, 3, v_r_13625_);
lean_ctor_set(v___x_13629_, 2, v_v_13530_);
lean_ctor_set(v___x_13629_, 1, v_k_13529_);
lean_ctor_set(v___x_13629_, 0, v___x_13538_);
v___x_13633_ = v___x_13629_;
goto v_reusejp_13632_;
}
else
{
lean_object* v_reuseFailAlloc_13637_; 
v_reuseFailAlloc_13637_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13637_, 0, v___x_13538_);
lean_ctor_set(v_reuseFailAlloc_13637_, 1, v_k_13529_);
lean_ctor_set(v_reuseFailAlloc_13637_, 2, v_v_13530_);
lean_ctor_set(v_reuseFailAlloc_13637_, 3, v_r_13625_);
lean_ctor_set(v_reuseFailAlloc_13637_, 4, v_r_13625_);
v___x_13633_ = v_reuseFailAlloc_13637_;
goto v_reusejp_13632_;
}
v_reusejp_13632_:
{
lean_object* v___x_13635_; 
if (v_isShared_13535_ == 0)
{
lean_ctor_set(v___x_13534_, 4, v___x_13633_);
lean_ctor_set(v___x_13534_, 3, v_l_13624_);
lean_ctor_set(v___x_13534_, 2, v_v_13627_);
lean_ctor_set(v___x_13534_, 1, v_k_13626_);
lean_ctor_set(v___x_13534_, 0, v___x_13631_);
v___x_13635_ = v___x_13534_;
goto v_reusejp_13634_;
}
else
{
lean_object* v_reuseFailAlloc_13636_; 
v_reuseFailAlloc_13636_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13636_, 0, v___x_13631_);
lean_ctor_set(v_reuseFailAlloc_13636_, 1, v_k_13626_);
lean_ctor_set(v_reuseFailAlloc_13636_, 2, v_v_13627_);
lean_ctor_set(v_reuseFailAlloc_13636_, 3, v_l_13624_);
lean_ctor_set(v_reuseFailAlloc_13636_, 4, v___x_13633_);
v___x_13635_ = v_reuseFailAlloc_13636_;
goto v_reusejp_13634_;
}
v_reusejp_13634_:
{
return v___x_13635_;
}
}
}
}
else
{
lean_object* v_r_13641_; 
v_r_13641_ = lean_ctor_get(v_impl_13537_, 4);
lean_inc(v_r_13641_);
if (lean_obj_tag(v_r_13641_) == 0)
{
lean_object* v_k_13642_; lean_object* v_v_13643_; lean_object* v___x_13645_; uint8_t v_isShared_13646_; uint8_t v_isSharedCheck_13666_; 
v_k_13642_ = lean_ctor_get(v_impl_13537_, 1);
v_v_13643_ = lean_ctor_get(v_impl_13537_, 2);
v_isSharedCheck_13666_ = !lean_is_exclusive(v_impl_13537_);
if (v_isSharedCheck_13666_ == 0)
{
lean_object* v_unused_13667_; lean_object* v_unused_13668_; lean_object* v_unused_13669_; 
v_unused_13667_ = lean_ctor_get(v_impl_13537_, 4);
lean_dec(v_unused_13667_);
v_unused_13668_ = lean_ctor_get(v_impl_13537_, 3);
lean_dec(v_unused_13668_);
v_unused_13669_ = lean_ctor_get(v_impl_13537_, 0);
lean_dec(v_unused_13669_);
v___x_13645_ = v_impl_13537_;
v_isShared_13646_ = v_isSharedCheck_13666_;
goto v_resetjp_13644_;
}
else
{
lean_inc(v_v_13643_);
lean_inc(v_k_13642_);
lean_dec(v_impl_13537_);
v___x_13645_ = lean_box(0);
v_isShared_13646_ = v_isSharedCheck_13666_;
goto v_resetjp_13644_;
}
v_resetjp_13644_:
{
lean_object* v_k_13647_; lean_object* v_v_13648_; lean_object* v___x_13650_; uint8_t v_isShared_13651_; uint8_t v_isSharedCheck_13662_; 
v_k_13647_ = lean_ctor_get(v_r_13641_, 1);
v_v_13648_ = lean_ctor_get(v_r_13641_, 2);
v_isSharedCheck_13662_ = !lean_is_exclusive(v_r_13641_);
if (v_isSharedCheck_13662_ == 0)
{
lean_object* v_unused_13663_; lean_object* v_unused_13664_; lean_object* v_unused_13665_; 
v_unused_13663_ = lean_ctor_get(v_r_13641_, 4);
lean_dec(v_unused_13663_);
v_unused_13664_ = lean_ctor_get(v_r_13641_, 3);
lean_dec(v_unused_13664_);
v_unused_13665_ = lean_ctor_get(v_r_13641_, 0);
lean_dec(v_unused_13665_);
v___x_13650_ = v_r_13641_;
v_isShared_13651_ = v_isSharedCheck_13662_;
goto v_resetjp_13649_;
}
else
{
lean_inc(v_v_13648_);
lean_inc(v_k_13647_);
lean_dec(v_r_13641_);
v___x_13650_ = lean_box(0);
v_isShared_13651_ = v_isSharedCheck_13662_;
goto v_resetjp_13649_;
}
v_resetjp_13649_:
{
lean_object* v___x_13652_; lean_object* v___x_13654_; 
v___x_13652_ = lean_unsigned_to_nat(3u);
if (v_isShared_13651_ == 0)
{
lean_ctor_set(v___x_13650_, 4, v_l_13624_);
lean_ctor_set(v___x_13650_, 3, v_l_13624_);
lean_ctor_set(v___x_13650_, 2, v_v_13643_);
lean_ctor_set(v___x_13650_, 1, v_k_13642_);
lean_ctor_set(v___x_13650_, 0, v___x_13538_);
v___x_13654_ = v___x_13650_;
goto v_reusejp_13653_;
}
else
{
lean_object* v_reuseFailAlloc_13661_; 
v_reuseFailAlloc_13661_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13661_, 0, v___x_13538_);
lean_ctor_set(v_reuseFailAlloc_13661_, 1, v_k_13642_);
lean_ctor_set(v_reuseFailAlloc_13661_, 2, v_v_13643_);
lean_ctor_set(v_reuseFailAlloc_13661_, 3, v_l_13624_);
lean_ctor_set(v_reuseFailAlloc_13661_, 4, v_l_13624_);
v___x_13654_ = v_reuseFailAlloc_13661_;
goto v_reusejp_13653_;
}
v_reusejp_13653_:
{
lean_object* v___x_13656_; 
if (v_isShared_13646_ == 0)
{
lean_ctor_set(v___x_13645_, 4, v_l_13624_);
lean_ctor_set(v___x_13645_, 2, v_v_13530_);
lean_ctor_set(v___x_13645_, 1, v_k_13529_);
lean_ctor_set(v___x_13645_, 0, v___x_13538_);
v___x_13656_ = v___x_13645_;
goto v_reusejp_13655_;
}
else
{
lean_object* v_reuseFailAlloc_13660_; 
v_reuseFailAlloc_13660_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13660_, 0, v___x_13538_);
lean_ctor_set(v_reuseFailAlloc_13660_, 1, v_k_13529_);
lean_ctor_set(v_reuseFailAlloc_13660_, 2, v_v_13530_);
lean_ctor_set(v_reuseFailAlloc_13660_, 3, v_l_13624_);
lean_ctor_set(v_reuseFailAlloc_13660_, 4, v_l_13624_);
v___x_13656_ = v_reuseFailAlloc_13660_;
goto v_reusejp_13655_;
}
v_reusejp_13655_:
{
lean_object* v___x_13658_; 
if (v_isShared_13535_ == 0)
{
lean_ctor_set(v___x_13534_, 4, v___x_13656_);
lean_ctor_set(v___x_13534_, 3, v___x_13654_);
lean_ctor_set(v___x_13534_, 2, v_v_13648_);
lean_ctor_set(v___x_13534_, 1, v_k_13647_);
lean_ctor_set(v___x_13534_, 0, v___x_13652_);
v___x_13658_ = v___x_13534_;
goto v_reusejp_13657_;
}
else
{
lean_object* v_reuseFailAlloc_13659_; 
v_reuseFailAlloc_13659_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13659_, 0, v___x_13652_);
lean_ctor_set(v_reuseFailAlloc_13659_, 1, v_k_13647_);
lean_ctor_set(v_reuseFailAlloc_13659_, 2, v_v_13648_);
lean_ctor_set(v_reuseFailAlloc_13659_, 3, v___x_13654_);
lean_ctor_set(v_reuseFailAlloc_13659_, 4, v___x_13656_);
v___x_13658_ = v_reuseFailAlloc_13659_;
goto v_reusejp_13657_;
}
v_reusejp_13657_:
{
return v___x_13658_;
}
}
}
}
}
}
else
{
lean_object* v___x_13670_; lean_object* v___x_13672_; 
v___x_13670_ = lean_unsigned_to_nat(2u);
if (v_isShared_13535_ == 0)
{
lean_ctor_set(v___x_13534_, 4, v_r_13641_);
lean_ctor_set(v___x_13534_, 3, v_impl_13537_);
lean_ctor_set(v___x_13534_, 0, v___x_13670_);
v___x_13672_ = v___x_13534_;
goto v_reusejp_13671_;
}
else
{
lean_object* v_reuseFailAlloc_13673_; 
v_reuseFailAlloc_13673_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13673_, 0, v___x_13670_);
lean_ctor_set(v_reuseFailAlloc_13673_, 1, v_k_13529_);
lean_ctor_set(v_reuseFailAlloc_13673_, 2, v_v_13530_);
lean_ctor_set(v_reuseFailAlloc_13673_, 3, v_impl_13537_);
lean_ctor_set(v_reuseFailAlloc_13673_, 4, v_r_13641_);
v___x_13672_ = v_reuseFailAlloc_13673_;
goto v_reusejp_13671_;
}
v_reusejp_13671_:
{
return v___x_13672_;
}
}
}
}
}
case 1:
{
lean_object* v___x_13675_; 
lean_dec(v_v_13530_);
lean_dec(v_k_13529_);
if (v_isShared_13535_ == 0)
{
lean_ctor_set(v___x_13534_, 2, v_v_13526_);
lean_ctor_set(v___x_13534_, 1, v_k_13525_);
v___x_13675_ = v___x_13534_;
goto v_reusejp_13674_;
}
else
{
lean_object* v_reuseFailAlloc_13676_; 
v_reuseFailAlloc_13676_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13676_, 0, v_size_13528_);
lean_ctor_set(v_reuseFailAlloc_13676_, 1, v_k_13525_);
lean_ctor_set(v_reuseFailAlloc_13676_, 2, v_v_13526_);
lean_ctor_set(v_reuseFailAlloc_13676_, 3, v_l_13531_);
lean_ctor_set(v_reuseFailAlloc_13676_, 4, v_r_13532_);
v___x_13675_ = v_reuseFailAlloc_13676_;
goto v_reusejp_13674_;
}
v_reusejp_13674_:
{
return v___x_13675_;
}
}
default: 
{
lean_object* v_impl_13677_; lean_object* v___x_13678_; 
lean_dec(v_size_13528_);
v_impl_13677_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v_k_13525_, v_v_13526_, v_r_13532_);
v___x_13678_ = lean_unsigned_to_nat(1u);
if (lean_obj_tag(v_l_13531_) == 0)
{
lean_object* v_size_13679_; lean_object* v_size_13680_; lean_object* v_k_13681_; lean_object* v_v_13682_; lean_object* v_l_13683_; lean_object* v_r_13684_; lean_object* v___x_13685_; lean_object* v___x_13686_; uint8_t v___x_13687_; 
v_size_13679_ = lean_ctor_get(v_l_13531_, 0);
v_size_13680_ = lean_ctor_get(v_impl_13677_, 0);
lean_inc(v_size_13680_);
v_k_13681_ = lean_ctor_get(v_impl_13677_, 1);
lean_inc(v_k_13681_);
v_v_13682_ = lean_ctor_get(v_impl_13677_, 2);
lean_inc(v_v_13682_);
v_l_13683_ = lean_ctor_get(v_impl_13677_, 3);
lean_inc(v_l_13683_);
v_r_13684_ = lean_ctor_get(v_impl_13677_, 4);
lean_inc(v_r_13684_);
v___x_13685_ = lean_unsigned_to_nat(3u);
v___x_13686_ = lean_nat_mul(v___x_13685_, v_size_13679_);
v___x_13687_ = lean_nat_dec_lt(v___x_13686_, v_size_13680_);
lean_dec(v___x_13686_);
if (v___x_13687_ == 0)
{
lean_object* v___x_13688_; lean_object* v___x_13689_; lean_object* v___x_13691_; 
lean_dec(v_r_13684_);
lean_dec(v_l_13683_);
lean_dec(v_v_13682_);
lean_dec(v_k_13681_);
v___x_13688_ = lean_nat_add(v___x_13678_, v_size_13679_);
v___x_13689_ = lean_nat_add(v___x_13688_, v_size_13680_);
lean_dec(v_size_13680_);
lean_dec(v___x_13688_);
if (v_isShared_13535_ == 0)
{
lean_ctor_set(v___x_13534_, 4, v_impl_13677_);
lean_ctor_set(v___x_13534_, 0, v___x_13689_);
v___x_13691_ = v___x_13534_;
goto v_reusejp_13690_;
}
else
{
lean_object* v_reuseFailAlloc_13692_; 
v_reuseFailAlloc_13692_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13692_, 0, v___x_13689_);
lean_ctor_set(v_reuseFailAlloc_13692_, 1, v_k_13529_);
lean_ctor_set(v_reuseFailAlloc_13692_, 2, v_v_13530_);
lean_ctor_set(v_reuseFailAlloc_13692_, 3, v_l_13531_);
lean_ctor_set(v_reuseFailAlloc_13692_, 4, v_impl_13677_);
v___x_13691_ = v_reuseFailAlloc_13692_;
goto v_reusejp_13690_;
}
v_reusejp_13690_:
{
return v___x_13691_;
}
}
else
{
lean_object* v___x_13694_; uint8_t v_isShared_13695_; uint8_t v_isSharedCheck_13756_; 
v_isSharedCheck_13756_ = !lean_is_exclusive(v_impl_13677_);
if (v_isSharedCheck_13756_ == 0)
{
lean_object* v_unused_13757_; lean_object* v_unused_13758_; lean_object* v_unused_13759_; lean_object* v_unused_13760_; lean_object* v_unused_13761_; 
v_unused_13757_ = lean_ctor_get(v_impl_13677_, 4);
lean_dec(v_unused_13757_);
v_unused_13758_ = lean_ctor_get(v_impl_13677_, 3);
lean_dec(v_unused_13758_);
v_unused_13759_ = lean_ctor_get(v_impl_13677_, 2);
lean_dec(v_unused_13759_);
v_unused_13760_ = lean_ctor_get(v_impl_13677_, 1);
lean_dec(v_unused_13760_);
v_unused_13761_ = lean_ctor_get(v_impl_13677_, 0);
lean_dec(v_unused_13761_);
v___x_13694_ = v_impl_13677_;
v_isShared_13695_ = v_isSharedCheck_13756_;
goto v_resetjp_13693_;
}
else
{
lean_dec(v_impl_13677_);
v___x_13694_ = lean_box(0);
v_isShared_13695_ = v_isSharedCheck_13756_;
goto v_resetjp_13693_;
}
v_resetjp_13693_:
{
lean_object* v_size_13696_; lean_object* v_k_13697_; lean_object* v_v_13698_; lean_object* v_l_13699_; lean_object* v_r_13700_; lean_object* v_size_13701_; lean_object* v___x_13702_; lean_object* v___x_13703_; uint8_t v___x_13704_; 
v_size_13696_ = lean_ctor_get(v_l_13683_, 0);
v_k_13697_ = lean_ctor_get(v_l_13683_, 1);
v_v_13698_ = lean_ctor_get(v_l_13683_, 2);
v_l_13699_ = lean_ctor_get(v_l_13683_, 3);
v_r_13700_ = lean_ctor_get(v_l_13683_, 4);
v_size_13701_ = lean_ctor_get(v_r_13684_, 0);
v___x_13702_ = lean_unsigned_to_nat(2u);
v___x_13703_ = lean_nat_mul(v___x_13702_, v_size_13701_);
v___x_13704_ = lean_nat_dec_lt(v_size_13696_, v___x_13703_);
lean_dec(v___x_13703_);
if (v___x_13704_ == 0)
{
lean_object* v___x_13706_; uint8_t v_isShared_13707_; uint8_t v_isSharedCheck_13732_; 
lean_inc(v_r_13700_);
lean_inc(v_l_13699_);
lean_inc(v_v_13698_);
lean_inc(v_k_13697_);
v_isSharedCheck_13732_ = !lean_is_exclusive(v_l_13683_);
if (v_isSharedCheck_13732_ == 0)
{
lean_object* v_unused_13733_; lean_object* v_unused_13734_; lean_object* v_unused_13735_; lean_object* v_unused_13736_; lean_object* v_unused_13737_; 
v_unused_13733_ = lean_ctor_get(v_l_13683_, 4);
lean_dec(v_unused_13733_);
v_unused_13734_ = lean_ctor_get(v_l_13683_, 3);
lean_dec(v_unused_13734_);
v_unused_13735_ = lean_ctor_get(v_l_13683_, 2);
lean_dec(v_unused_13735_);
v_unused_13736_ = lean_ctor_get(v_l_13683_, 1);
lean_dec(v_unused_13736_);
v_unused_13737_ = lean_ctor_get(v_l_13683_, 0);
lean_dec(v_unused_13737_);
v___x_13706_ = v_l_13683_;
v_isShared_13707_ = v_isSharedCheck_13732_;
goto v_resetjp_13705_;
}
else
{
lean_dec(v_l_13683_);
v___x_13706_ = lean_box(0);
v_isShared_13707_ = v_isSharedCheck_13732_;
goto v_resetjp_13705_;
}
v_resetjp_13705_:
{
lean_object* v___x_13708_; lean_object* v___x_13709_; lean_object* v___y_13711_; lean_object* v___y_13712_; lean_object* v___y_13713_; lean_object* v___y_13722_; 
v___x_13708_ = lean_nat_add(v___x_13678_, v_size_13679_);
v___x_13709_ = lean_nat_add(v___x_13708_, v_size_13680_);
lean_dec(v_size_13680_);
if (lean_obj_tag(v_l_13699_) == 0)
{
lean_object* v_size_13730_; 
v_size_13730_ = lean_ctor_get(v_l_13699_, 0);
lean_inc(v_size_13730_);
v___y_13722_ = v_size_13730_;
goto v___jp_13721_;
}
else
{
lean_object* v___x_13731_; 
v___x_13731_ = lean_unsigned_to_nat(0u);
v___y_13722_ = v___x_13731_;
goto v___jp_13721_;
}
v___jp_13710_:
{
lean_object* v___x_13714_; lean_object* v___x_13716_; 
v___x_13714_ = lean_nat_add(v___y_13711_, v___y_13713_);
lean_dec(v___y_13713_);
lean_dec(v___y_13711_);
if (v_isShared_13707_ == 0)
{
lean_ctor_set(v___x_13706_, 4, v_r_13684_);
lean_ctor_set(v___x_13706_, 3, v_r_13700_);
lean_ctor_set(v___x_13706_, 2, v_v_13682_);
lean_ctor_set(v___x_13706_, 1, v_k_13681_);
lean_ctor_set(v___x_13706_, 0, v___x_13714_);
v___x_13716_ = v___x_13706_;
goto v_reusejp_13715_;
}
else
{
lean_object* v_reuseFailAlloc_13720_; 
v_reuseFailAlloc_13720_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13720_, 0, v___x_13714_);
lean_ctor_set(v_reuseFailAlloc_13720_, 1, v_k_13681_);
lean_ctor_set(v_reuseFailAlloc_13720_, 2, v_v_13682_);
lean_ctor_set(v_reuseFailAlloc_13720_, 3, v_r_13700_);
lean_ctor_set(v_reuseFailAlloc_13720_, 4, v_r_13684_);
v___x_13716_ = v_reuseFailAlloc_13720_;
goto v_reusejp_13715_;
}
v_reusejp_13715_:
{
lean_object* v___x_13718_; 
if (v_isShared_13695_ == 0)
{
lean_ctor_set(v___x_13694_, 4, v___x_13716_);
lean_ctor_set(v___x_13694_, 3, v___y_13712_);
lean_ctor_set(v___x_13694_, 2, v_v_13698_);
lean_ctor_set(v___x_13694_, 1, v_k_13697_);
lean_ctor_set(v___x_13694_, 0, v___x_13709_);
v___x_13718_ = v___x_13694_;
goto v_reusejp_13717_;
}
else
{
lean_object* v_reuseFailAlloc_13719_; 
v_reuseFailAlloc_13719_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13719_, 0, v___x_13709_);
lean_ctor_set(v_reuseFailAlloc_13719_, 1, v_k_13697_);
lean_ctor_set(v_reuseFailAlloc_13719_, 2, v_v_13698_);
lean_ctor_set(v_reuseFailAlloc_13719_, 3, v___y_13712_);
lean_ctor_set(v_reuseFailAlloc_13719_, 4, v___x_13716_);
v___x_13718_ = v_reuseFailAlloc_13719_;
goto v_reusejp_13717_;
}
v_reusejp_13717_:
{
return v___x_13718_;
}
}
}
v___jp_13721_:
{
lean_object* v___x_13723_; lean_object* v___x_13725_; 
v___x_13723_ = lean_nat_add(v___x_13708_, v___y_13722_);
lean_dec(v___y_13722_);
lean_dec(v___x_13708_);
if (v_isShared_13535_ == 0)
{
lean_ctor_set(v___x_13534_, 4, v_l_13699_);
lean_ctor_set(v___x_13534_, 0, v___x_13723_);
v___x_13725_ = v___x_13534_;
goto v_reusejp_13724_;
}
else
{
lean_object* v_reuseFailAlloc_13729_; 
v_reuseFailAlloc_13729_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13729_, 0, v___x_13723_);
lean_ctor_set(v_reuseFailAlloc_13729_, 1, v_k_13529_);
lean_ctor_set(v_reuseFailAlloc_13729_, 2, v_v_13530_);
lean_ctor_set(v_reuseFailAlloc_13729_, 3, v_l_13531_);
lean_ctor_set(v_reuseFailAlloc_13729_, 4, v_l_13699_);
v___x_13725_ = v_reuseFailAlloc_13729_;
goto v_reusejp_13724_;
}
v_reusejp_13724_:
{
lean_object* v___x_13726_; 
v___x_13726_ = lean_nat_add(v___x_13678_, v_size_13701_);
if (lean_obj_tag(v_r_13700_) == 0)
{
lean_object* v_size_13727_; 
v_size_13727_ = lean_ctor_get(v_r_13700_, 0);
lean_inc(v_size_13727_);
v___y_13711_ = v___x_13726_;
v___y_13712_ = v___x_13725_;
v___y_13713_ = v_size_13727_;
goto v___jp_13710_;
}
else
{
lean_object* v___x_13728_; 
v___x_13728_ = lean_unsigned_to_nat(0u);
v___y_13711_ = v___x_13726_;
v___y_13712_ = v___x_13725_;
v___y_13713_ = v___x_13728_;
goto v___jp_13710_;
}
}
}
}
}
else
{
lean_object* v___x_13738_; lean_object* v___x_13739_; lean_object* v___x_13740_; lean_object* v___x_13742_; 
lean_del_object(v___x_13534_);
v___x_13738_ = lean_nat_add(v___x_13678_, v_size_13679_);
v___x_13739_ = lean_nat_add(v___x_13738_, v_size_13680_);
lean_dec(v_size_13680_);
v___x_13740_ = lean_nat_add(v___x_13738_, v_size_13696_);
lean_dec(v___x_13738_);
lean_inc_ref(v_l_13531_);
if (v_isShared_13695_ == 0)
{
lean_ctor_set(v___x_13694_, 4, v_l_13683_);
lean_ctor_set(v___x_13694_, 3, v_l_13531_);
lean_ctor_set(v___x_13694_, 2, v_v_13530_);
lean_ctor_set(v___x_13694_, 1, v_k_13529_);
lean_ctor_set(v___x_13694_, 0, v___x_13740_);
v___x_13742_ = v___x_13694_;
goto v_reusejp_13741_;
}
else
{
lean_object* v_reuseFailAlloc_13755_; 
v_reuseFailAlloc_13755_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13755_, 0, v___x_13740_);
lean_ctor_set(v_reuseFailAlloc_13755_, 1, v_k_13529_);
lean_ctor_set(v_reuseFailAlloc_13755_, 2, v_v_13530_);
lean_ctor_set(v_reuseFailAlloc_13755_, 3, v_l_13531_);
lean_ctor_set(v_reuseFailAlloc_13755_, 4, v_l_13683_);
v___x_13742_ = v_reuseFailAlloc_13755_;
goto v_reusejp_13741_;
}
v_reusejp_13741_:
{
lean_object* v___x_13744_; uint8_t v_isShared_13745_; uint8_t v_isSharedCheck_13749_; 
v_isSharedCheck_13749_ = !lean_is_exclusive(v_l_13531_);
if (v_isSharedCheck_13749_ == 0)
{
lean_object* v_unused_13750_; lean_object* v_unused_13751_; lean_object* v_unused_13752_; lean_object* v_unused_13753_; lean_object* v_unused_13754_; 
v_unused_13750_ = lean_ctor_get(v_l_13531_, 4);
lean_dec(v_unused_13750_);
v_unused_13751_ = lean_ctor_get(v_l_13531_, 3);
lean_dec(v_unused_13751_);
v_unused_13752_ = lean_ctor_get(v_l_13531_, 2);
lean_dec(v_unused_13752_);
v_unused_13753_ = lean_ctor_get(v_l_13531_, 1);
lean_dec(v_unused_13753_);
v_unused_13754_ = lean_ctor_get(v_l_13531_, 0);
lean_dec(v_unused_13754_);
v___x_13744_ = v_l_13531_;
v_isShared_13745_ = v_isSharedCheck_13749_;
goto v_resetjp_13743_;
}
else
{
lean_dec(v_l_13531_);
v___x_13744_ = lean_box(0);
v_isShared_13745_ = v_isSharedCheck_13749_;
goto v_resetjp_13743_;
}
v_resetjp_13743_:
{
lean_object* v___x_13747_; 
if (v_isShared_13745_ == 0)
{
lean_ctor_set(v___x_13744_, 4, v_r_13684_);
lean_ctor_set(v___x_13744_, 3, v___x_13742_);
lean_ctor_set(v___x_13744_, 2, v_v_13682_);
lean_ctor_set(v___x_13744_, 1, v_k_13681_);
lean_ctor_set(v___x_13744_, 0, v___x_13739_);
v___x_13747_ = v___x_13744_;
goto v_reusejp_13746_;
}
else
{
lean_object* v_reuseFailAlloc_13748_; 
v_reuseFailAlloc_13748_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13748_, 0, v___x_13739_);
lean_ctor_set(v_reuseFailAlloc_13748_, 1, v_k_13681_);
lean_ctor_set(v_reuseFailAlloc_13748_, 2, v_v_13682_);
lean_ctor_set(v_reuseFailAlloc_13748_, 3, v___x_13742_);
lean_ctor_set(v_reuseFailAlloc_13748_, 4, v_r_13684_);
v___x_13747_ = v_reuseFailAlloc_13748_;
goto v_reusejp_13746_;
}
v_reusejp_13746_:
{
return v___x_13747_;
}
}
}
}
}
}
}
else
{
lean_object* v_l_13762_; 
v_l_13762_ = lean_ctor_get(v_impl_13677_, 3);
lean_inc(v_l_13762_);
if (lean_obj_tag(v_l_13762_) == 0)
{
lean_object* v_r_13763_; lean_object* v_k_13764_; lean_object* v_v_13765_; lean_object* v___x_13767_; uint8_t v_isShared_13768_; uint8_t v_isSharedCheck_13788_; 
v_r_13763_ = lean_ctor_get(v_impl_13677_, 4);
v_k_13764_ = lean_ctor_get(v_impl_13677_, 1);
v_v_13765_ = lean_ctor_get(v_impl_13677_, 2);
v_isSharedCheck_13788_ = !lean_is_exclusive(v_impl_13677_);
if (v_isSharedCheck_13788_ == 0)
{
lean_object* v_unused_13789_; lean_object* v_unused_13790_; 
v_unused_13789_ = lean_ctor_get(v_impl_13677_, 3);
lean_dec(v_unused_13789_);
v_unused_13790_ = lean_ctor_get(v_impl_13677_, 0);
lean_dec(v_unused_13790_);
v___x_13767_ = v_impl_13677_;
v_isShared_13768_ = v_isSharedCheck_13788_;
goto v_resetjp_13766_;
}
else
{
lean_inc(v_r_13763_);
lean_inc(v_v_13765_);
lean_inc(v_k_13764_);
lean_dec(v_impl_13677_);
v___x_13767_ = lean_box(0);
v_isShared_13768_ = v_isSharedCheck_13788_;
goto v_resetjp_13766_;
}
v_resetjp_13766_:
{
lean_object* v_k_13769_; lean_object* v_v_13770_; lean_object* v___x_13772_; uint8_t v_isShared_13773_; uint8_t v_isSharedCheck_13784_; 
v_k_13769_ = lean_ctor_get(v_l_13762_, 1);
v_v_13770_ = lean_ctor_get(v_l_13762_, 2);
v_isSharedCheck_13784_ = !lean_is_exclusive(v_l_13762_);
if (v_isSharedCheck_13784_ == 0)
{
lean_object* v_unused_13785_; lean_object* v_unused_13786_; lean_object* v_unused_13787_; 
v_unused_13785_ = lean_ctor_get(v_l_13762_, 4);
lean_dec(v_unused_13785_);
v_unused_13786_ = lean_ctor_get(v_l_13762_, 3);
lean_dec(v_unused_13786_);
v_unused_13787_ = lean_ctor_get(v_l_13762_, 0);
lean_dec(v_unused_13787_);
v___x_13772_ = v_l_13762_;
v_isShared_13773_ = v_isSharedCheck_13784_;
goto v_resetjp_13771_;
}
else
{
lean_inc(v_v_13770_);
lean_inc(v_k_13769_);
lean_dec(v_l_13762_);
v___x_13772_ = lean_box(0);
v_isShared_13773_ = v_isSharedCheck_13784_;
goto v_resetjp_13771_;
}
v_resetjp_13771_:
{
lean_object* v___x_13774_; lean_object* v___x_13776_; 
v___x_13774_ = lean_unsigned_to_nat(3u);
lean_inc_n(v_r_13763_, 2);
if (v_isShared_13773_ == 0)
{
lean_ctor_set(v___x_13772_, 4, v_r_13763_);
lean_ctor_set(v___x_13772_, 3, v_r_13763_);
lean_ctor_set(v___x_13772_, 2, v_v_13530_);
lean_ctor_set(v___x_13772_, 1, v_k_13529_);
lean_ctor_set(v___x_13772_, 0, v___x_13678_);
v___x_13776_ = v___x_13772_;
goto v_reusejp_13775_;
}
else
{
lean_object* v_reuseFailAlloc_13783_; 
v_reuseFailAlloc_13783_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13783_, 0, v___x_13678_);
lean_ctor_set(v_reuseFailAlloc_13783_, 1, v_k_13529_);
lean_ctor_set(v_reuseFailAlloc_13783_, 2, v_v_13530_);
lean_ctor_set(v_reuseFailAlloc_13783_, 3, v_r_13763_);
lean_ctor_set(v_reuseFailAlloc_13783_, 4, v_r_13763_);
v___x_13776_ = v_reuseFailAlloc_13783_;
goto v_reusejp_13775_;
}
v_reusejp_13775_:
{
lean_object* v___x_13778_; 
lean_inc(v_r_13763_);
if (v_isShared_13768_ == 0)
{
lean_ctor_set(v___x_13767_, 3, v_r_13763_);
lean_ctor_set(v___x_13767_, 0, v___x_13678_);
v___x_13778_ = v___x_13767_;
goto v_reusejp_13777_;
}
else
{
lean_object* v_reuseFailAlloc_13782_; 
v_reuseFailAlloc_13782_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13782_, 0, v___x_13678_);
lean_ctor_set(v_reuseFailAlloc_13782_, 1, v_k_13764_);
lean_ctor_set(v_reuseFailAlloc_13782_, 2, v_v_13765_);
lean_ctor_set(v_reuseFailAlloc_13782_, 3, v_r_13763_);
lean_ctor_set(v_reuseFailAlloc_13782_, 4, v_r_13763_);
v___x_13778_ = v_reuseFailAlloc_13782_;
goto v_reusejp_13777_;
}
v_reusejp_13777_:
{
lean_object* v___x_13780_; 
if (v_isShared_13535_ == 0)
{
lean_ctor_set(v___x_13534_, 4, v___x_13778_);
lean_ctor_set(v___x_13534_, 3, v___x_13776_);
lean_ctor_set(v___x_13534_, 2, v_v_13770_);
lean_ctor_set(v___x_13534_, 1, v_k_13769_);
lean_ctor_set(v___x_13534_, 0, v___x_13774_);
v___x_13780_ = v___x_13534_;
goto v_reusejp_13779_;
}
else
{
lean_object* v_reuseFailAlloc_13781_; 
v_reuseFailAlloc_13781_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13781_, 0, v___x_13774_);
lean_ctor_set(v_reuseFailAlloc_13781_, 1, v_k_13769_);
lean_ctor_set(v_reuseFailAlloc_13781_, 2, v_v_13770_);
lean_ctor_set(v_reuseFailAlloc_13781_, 3, v___x_13776_);
lean_ctor_set(v_reuseFailAlloc_13781_, 4, v___x_13778_);
v___x_13780_ = v_reuseFailAlloc_13781_;
goto v_reusejp_13779_;
}
v_reusejp_13779_:
{
return v___x_13780_;
}
}
}
}
}
}
else
{
lean_object* v_r_13791_; 
v_r_13791_ = lean_ctor_get(v_impl_13677_, 4);
lean_inc(v_r_13791_);
if (lean_obj_tag(v_r_13791_) == 0)
{
lean_object* v_k_13792_; lean_object* v_v_13793_; lean_object* v___x_13795_; uint8_t v_isShared_13796_; uint8_t v_isSharedCheck_13804_; 
v_k_13792_ = lean_ctor_get(v_impl_13677_, 1);
v_v_13793_ = lean_ctor_get(v_impl_13677_, 2);
v_isSharedCheck_13804_ = !lean_is_exclusive(v_impl_13677_);
if (v_isSharedCheck_13804_ == 0)
{
lean_object* v_unused_13805_; lean_object* v_unused_13806_; lean_object* v_unused_13807_; 
v_unused_13805_ = lean_ctor_get(v_impl_13677_, 4);
lean_dec(v_unused_13805_);
v_unused_13806_ = lean_ctor_get(v_impl_13677_, 3);
lean_dec(v_unused_13806_);
v_unused_13807_ = lean_ctor_get(v_impl_13677_, 0);
lean_dec(v_unused_13807_);
v___x_13795_ = v_impl_13677_;
v_isShared_13796_ = v_isSharedCheck_13804_;
goto v_resetjp_13794_;
}
else
{
lean_inc(v_v_13793_);
lean_inc(v_k_13792_);
lean_dec(v_impl_13677_);
v___x_13795_ = lean_box(0);
v_isShared_13796_ = v_isSharedCheck_13804_;
goto v_resetjp_13794_;
}
v_resetjp_13794_:
{
lean_object* v___x_13797_; lean_object* v___x_13799_; 
v___x_13797_ = lean_unsigned_to_nat(3u);
if (v_isShared_13796_ == 0)
{
lean_ctor_set(v___x_13795_, 4, v_l_13762_);
lean_ctor_set(v___x_13795_, 2, v_v_13530_);
lean_ctor_set(v___x_13795_, 1, v_k_13529_);
lean_ctor_set(v___x_13795_, 0, v___x_13678_);
v___x_13799_ = v___x_13795_;
goto v_reusejp_13798_;
}
else
{
lean_object* v_reuseFailAlloc_13803_; 
v_reuseFailAlloc_13803_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13803_, 0, v___x_13678_);
lean_ctor_set(v_reuseFailAlloc_13803_, 1, v_k_13529_);
lean_ctor_set(v_reuseFailAlloc_13803_, 2, v_v_13530_);
lean_ctor_set(v_reuseFailAlloc_13803_, 3, v_l_13762_);
lean_ctor_set(v_reuseFailAlloc_13803_, 4, v_l_13762_);
v___x_13799_ = v_reuseFailAlloc_13803_;
goto v_reusejp_13798_;
}
v_reusejp_13798_:
{
lean_object* v___x_13801_; 
if (v_isShared_13535_ == 0)
{
lean_ctor_set(v___x_13534_, 4, v_r_13791_);
lean_ctor_set(v___x_13534_, 3, v___x_13799_);
lean_ctor_set(v___x_13534_, 2, v_v_13793_);
lean_ctor_set(v___x_13534_, 1, v_k_13792_);
lean_ctor_set(v___x_13534_, 0, v___x_13797_);
v___x_13801_ = v___x_13534_;
goto v_reusejp_13800_;
}
else
{
lean_object* v_reuseFailAlloc_13802_; 
v_reuseFailAlloc_13802_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13802_, 0, v___x_13797_);
lean_ctor_set(v_reuseFailAlloc_13802_, 1, v_k_13792_);
lean_ctor_set(v_reuseFailAlloc_13802_, 2, v_v_13793_);
lean_ctor_set(v_reuseFailAlloc_13802_, 3, v___x_13799_);
lean_ctor_set(v_reuseFailAlloc_13802_, 4, v_r_13791_);
v___x_13801_ = v_reuseFailAlloc_13802_;
goto v_reusejp_13800_;
}
v_reusejp_13800_:
{
return v___x_13801_;
}
}
}
}
else
{
lean_object* v___x_13808_; lean_object* v___x_13810_; 
v___x_13808_ = lean_unsigned_to_nat(2u);
if (v_isShared_13535_ == 0)
{
lean_ctor_set(v___x_13534_, 4, v_impl_13677_);
lean_ctor_set(v___x_13534_, 3, v_r_13791_);
lean_ctor_set(v___x_13534_, 0, v___x_13808_);
v___x_13810_ = v___x_13534_;
goto v_reusejp_13809_;
}
else
{
lean_object* v_reuseFailAlloc_13811_; 
v_reuseFailAlloc_13811_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v_reuseFailAlloc_13811_, 0, v___x_13808_);
lean_ctor_set(v_reuseFailAlloc_13811_, 1, v_k_13529_);
lean_ctor_set(v_reuseFailAlloc_13811_, 2, v_v_13530_);
lean_ctor_set(v_reuseFailAlloc_13811_, 3, v_r_13791_);
lean_ctor_set(v_reuseFailAlloc_13811_, 4, v_impl_13677_);
v___x_13810_ = v_reuseFailAlloc_13811_;
goto v_reusejp_13809_;
}
v_reusejp_13809_:
{
return v___x_13810_;
}
}
}
}
}
}
}
}
else
{
lean_object* v___x_13813_; lean_object* v___x_13814_; 
v___x_13813_ = lean_unsigned_to_nat(1u);
v___x_13814_ = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(v___x_13814_, 0, v___x_13813_);
lean_ctor_set(v___x_13814_, 1, v_k_13525_);
lean_ctor_set(v___x_13814_, 2, v_v_13526_);
lean_ctor_set(v___x_13814_, 3, v_t_13527_);
lean_ctor_set(v___x_13814_, 4, v_t_13527_);
return v___x_13814_;
}
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__0(void){
_start:
{
lean_object* v___x_13815_; lean_object* v___x_13816_; lean_object* v___x_13817_; lean_object* v___x_13818_; 
v___x_13815_ = lean_box(1);
v___x_13816_ = l_Lake_Module_inputFacetConfig;
v___x_13817_ = l_Lake_Module_inputFacet;
v___x_13818_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13817_, v___x_13816_, v___x_13815_);
return v___x_13818_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__1(void){
_start:
{
lean_object* v___x_13819_; lean_object* v___x_13820_; lean_object* v___x_13821_; lean_object* v___x_13822_; 
v___x_13819_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__0, &l_Lake_Module_initFacetConfigs___closed__0_once, _init_l_Lake_Module_initFacetConfigs___closed__0);
v___x_13820_ = l_Lake_Module_leanFacetConfig;
v___x_13821_ = l_Lake_Module_leanFacet;
v___x_13822_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13821_, v___x_13820_, v___x_13819_);
return v___x_13822_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__2(void){
_start:
{
lean_object* v___x_13823_; lean_object* v___x_13824_; lean_object* v___x_13825_; lean_object* v___x_13826_; 
v___x_13823_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__1, &l_Lake_Module_initFacetConfigs___closed__1_once, _init_l_Lake_Module_initFacetConfigs___closed__1);
v___x_13824_ = l_Lake_Module_headerFacetConfig;
v___x_13825_ = l_Lake_Module_headerFacet;
v___x_13826_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13825_, v___x_13824_, v___x_13823_);
return v___x_13826_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__3(void){
_start:
{
lean_object* v___x_13827_; lean_object* v___x_13828_; lean_object* v___x_13829_; lean_object* v___x_13830_; 
v___x_13827_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__2, &l_Lake_Module_initFacetConfigs___closed__2_once, _init_l_Lake_Module_initFacetConfigs___closed__2);
v___x_13828_ = l_Lake_Module_importsFacetConfig;
v___x_13829_ = l_Lake_Module_importsFacet;
v___x_13830_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13829_, v___x_13828_, v___x_13827_);
return v___x_13830_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__4(void){
_start:
{
lean_object* v___x_13831_; lean_object* v___x_13832_; lean_object* v___x_13833_; lean_object* v___x_13834_; 
v___x_13831_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__3, &l_Lake_Module_initFacetConfigs___closed__3_once, _init_l_Lake_Module_initFacetConfigs___closed__3);
v___x_13832_ = l_Lake_Module_transImportsFacetConfig;
v___x_13833_ = l_Lake_Module_transImportsFacet;
v___x_13834_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13833_, v___x_13832_, v___x_13831_);
return v___x_13834_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__5(void){
_start:
{
lean_object* v___x_13835_; lean_object* v___x_13836_; lean_object* v___x_13837_; lean_object* v___x_13838_; 
v___x_13835_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__4, &l_Lake_Module_initFacetConfigs___closed__4_once, _init_l_Lake_Module_initFacetConfigs___closed__4);
v___x_13836_ = l_Lake_Module_precompileImportsFacetConfig;
v___x_13837_ = l_Lake_Module_precompileImportsFacet;
v___x_13838_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13837_, v___x_13836_, v___x_13835_);
return v___x_13838_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__6(void){
_start:
{
lean_object* v___x_13839_; lean_object* v___x_13840_; lean_object* v___x_13841_; lean_object* v___x_13842_; 
v___x_13839_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__5, &l_Lake_Module_initFacetConfigs___closed__5_once, _init_l_Lake_Module_initFacetConfigs___closed__5);
v___x_13840_ = l_Lake_Module_importInfoFacetConfig;
v___x_13841_ = l_Lake_Module_importInfoFacet;
v___x_13842_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13841_, v___x_13840_, v___x_13839_);
return v___x_13842_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__7(void){
_start:
{
lean_object* v___x_13843_; lean_object* v___x_13844_; lean_object* v___x_13845_; lean_object* v___x_13846_; 
v___x_13843_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__6, &l_Lake_Module_initFacetConfigs___closed__6_once, _init_l_Lake_Module_initFacetConfigs___closed__6);
v___x_13844_ = l_Lake_Module_setupFacetConfig;
v___x_13845_ = l_Lake_Module_setupFacet;
v___x_13846_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13845_, v___x_13844_, v___x_13843_);
return v___x_13846_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__8(void){
_start:
{
lean_object* v___x_13847_; lean_object* v___x_13848_; lean_object* v___x_13849_; lean_object* v___x_13850_; 
v___x_13847_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__7, &l_Lake_Module_initFacetConfigs___closed__7_once, _init_l_Lake_Module_initFacetConfigs___closed__7);
v___x_13848_ = l_Lake_Module_depsFacetConfig;
v___x_13849_ = l_Lake_Module_depsFacet;
v___x_13850_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13849_, v___x_13848_, v___x_13847_);
return v___x_13850_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__9(void){
_start:
{
lean_object* v___x_13851_; lean_object* v___x_13852_; lean_object* v___x_13853_; lean_object* v___x_13854_; 
v___x_13851_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__8, &l_Lake_Module_initFacetConfigs___closed__8_once, _init_l_Lake_Module_initFacetConfigs___closed__8);
v___x_13852_ = l_Lake_Module_leanArtsFacetConfig;
v___x_13853_ = l_Lake_Module_leanArtsFacet;
v___x_13854_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13853_, v___x_13852_, v___x_13851_);
return v___x_13854_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__10(void){
_start:
{
lean_object* v___x_13855_; lean_object* v___x_13856_; lean_object* v___x_13857_; lean_object* v___x_13858_; 
v___x_13855_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__9, &l_Lake_Module_initFacetConfigs___closed__9_once, _init_l_Lake_Module_initFacetConfigs___closed__9);
v___x_13856_ = l_Lake_Module_importArtsFacetConfig;
v___x_13857_ = l_Lake_Module_importArtsFacet;
v___x_13858_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13857_, v___x_13856_, v___x_13855_);
return v___x_13858_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__11(void){
_start:
{
lean_object* v___x_13859_; lean_object* v___x_13860_; lean_object* v___x_13861_; lean_object* v___x_13862_; 
v___x_13859_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__10, &l_Lake_Module_initFacetConfigs___closed__10_once, _init_l_Lake_Module_initFacetConfigs___closed__10);
v___x_13860_ = l_Lake_Module_importAllArtsFacetConfig;
v___x_13861_ = l_Lake_Module_importAllArtsFacet;
v___x_13862_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13861_, v___x_13860_, v___x_13859_);
return v___x_13862_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__12(void){
_start:
{
lean_object* v___x_13863_; lean_object* v___x_13864_; lean_object* v___x_13865_; lean_object* v___x_13866_; 
v___x_13863_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__11, &l_Lake_Module_initFacetConfigs___closed__11_once, _init_l_Lake_Module_initFacetConfigs___closed__11);
v___x_13864_ = l_Lake_Module_exportInfoFacetConfig;
v___x_13865_ = l_Lake_Module_exportInfoFacet;
v___x_13866_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13865_, v___x_13864_, v___x_13863_);
return v___x_13866_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__13(void){
_start:
{
lean_object* v___x_13867_; lean_object* v___x_13868_; lean_object* v___x_13869_; lean_object* v___x_13870_; 
v___x_13867_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__12, &l_Lake_Module_initFacetConfigs___closed__12_once, _init_l_Lake_Module_initFacetConfigs___closed__12);
v___x_13868_ = l_Lake_Module_ltarFacetConfig;
v___x_13869_ = l_Lake_Module_ltarFacet;
v___x_13870_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13869_, v___x_13868_, v___x_13867_);
return v___x_13870_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__14(void){
_start:
{
lean_object* v___x_13871_; lean_object* v___x_13872_; lean_object* v___x_13873_; lean_object* v___x_13874_; 
v___x_13871_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__13, &l_Lake_Module_initFacetConfigs___closed__13_once, _init_l_Lake_Module_initFacetConfigs___closed__13);
v___x_13872_ = l_Lake_Module_oleanFacetConfig;
v___x_13873_ = l_Lake_Module_oleanFacet;
v___x_13874_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13873_, v___x_13872_, v___x_13871_);
return v___x_13874_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__15(void){
_start:
{
lean_object* v___x_13875_; lean_object* v___x_13876_; lean_object* v___x_13877_; lean_object* v___x_13878_; 
v___x_13875_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__14, &l_Lake_Module_initFacetConfigs___closed__14_once, _init_l_Lake_Module_initFacetConfigs___closed__14);
v___x_13876_ = l_Lake_Module_oleanServerFacetConfig;
v___x_13877_ = l_Lake_Module_oleanServerFacet;
v___x_13878_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13877_, v___x_13876_, v___x_13875_);
return v___x_13878_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__16(void){
_start:
{
lean_object* v___x_13879_; lean_object* v___x_13880_; lean_object* v___x_13881_; lean_object* v___x_13882_; 
v___x_13879_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__15, &l_Lake_Module_initFacetConfigs___closed__15_once, _init_l_Lake_Module_initFacetConfigs___closed__15);
v___x_13880_ = l_Lake_Module_oleanPrivateFacetConfig;
v___x_13881_ = l_Lake_Module_oleanPrivateFacet;
v___x_13882_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13881_, v___x_13880_, v___x_13879_);
return v___x_13882_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__17(void){
_start:
{
lean_object* v___x_13883_; lean_object* v___x_13884_; lean_object* v___x_13885_; lean_object* v___x_13886_; 
v___x_13883_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__16, &l_Lake_Module_initFacetConfigs___closed__16_once, _init_l_Lake_Module_initFacetConfigs___closed__16);
v___x_13884_ = l_Lake_Module_ileanFacetConfig;
v___x_13885_ = l_Lake_Module_ileanFacet;
v___x_13886_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13885_, v___x_13884_, v___x_13883_);
return v___x_13886_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__18(void){
_start:
{
lean_object* v___x_13887_; lean_object* v___x_13888_; lean_object* v___x_13889_; lean_object* v___x_13890_; 
v___x_13887_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__17, &l_Lake_Module_initFacetConfigs___closed__17_once, _init_l_Lake_Module_initFacetConfigs___closed__17);
v___x_13888_ = l_Lake_Module_irFacetConfig;
v___x_13889_ = l_Lake_Module_irFacet;
v___x_13890_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13889_, v___x_13888_, v___x_13887_);
return v___x_13890_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__19(void){
_start:
{
lean_object* v___x_13891_; lean_object* v___x_13892_; lean_object* v___x_13893_; lean_object* v___x_13894_; 
v___x_13891_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__18, &l_Lake_Module_initFacetConfigs___closed__18_once, _init_l_Lake_Module_initFacetConfigs___closed__18);
v___x_13892_ = l_Lake_Module_cFacetConfig;
v___x_13893_ = l_Lake_Module_cFacet;
v___x_13894_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13893_, v___x_13892_, v___x_13891_);
return v___x_13894_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__20(void){
_start:
{
lean_object* v___x_13895_; lean_object* v___x_13896_; lean_object* v___x_13897_; lean_object* v___x_13898_; 
v___x_13895_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__19, &l_Lake_Module_initFacetConfigs___closed__19_once, _init_l_Lake_Module_initFacetConfigs___closed__19);
v___x_13896_ = l_Lake_Module_bcFacetConfig;
v___x_13897_ = l_Lake_Module_bcFacet;
v___x_13898_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13897_, v___x_13896_, v___x_13895_);
return v___x_13898_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__21(void){
_start:
{
lean_object* v___x_13899_; lean_object* v___x_13900_; lean_object* v___x_13901_; lean_object* v___x_13902_; 
v___x_13899_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__20, &l_Lake_Module_initFacetConfigs___closed__20_once, _init_l_Lake_Module_initFacetConfigs___closed__20);
v___x_13900_ = l_Lake_Module_coFacetConfig;
v___x_13901_ = l_Lake_Module_coFacet;
v___x_13902_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13901_, v___x_13900_, v___x_13899_);
return v___x_13902_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__22(void){
_start:
{
lean_object* v___x_13903_; lean_object* v___x_13904_; lean_object* v___x_13905_; lean_object* v___x_13906_; 
v___x_13903_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__21, &l_Lake_Module_initFacetConfigs___closed__21_once, _init_l_Lake_Module_initFacetConfigs___closed__21);
v___x_13904_ = l_Lake_Module_coExportFacetConfig;
v___x_13905_ = l_Lake_Module_coExportFacet;
v___x_13906_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13905_, v___x_13904_, v___x_13903_);
return v___x_13906_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__23(void){
_start:
{
lean_object* v___x_13907_; lean_object* v___x_13908_; lean_object* v___x_13909_; lean_object* v___x_13910_; 
v___x_13907_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__22, &l_Lake_Module_initFacetConfigs___closed__22_once, _init_l_Lake_Module_initFacetConfigs___closed__22);
v___x_13908_ = l_Lake_Module_coNoExportFacetConfig;
v___x_13909_ = l_Lake_Module_coNoExportFacet;
v___x_13910_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13909_, v___x_13908_, v___x_13907_);
return v___x_13910_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__24(void){
_start:
{
lean_object* v___x_13911_; lean_object* v___x_13912_; lean_object* v___x_13913_; lean_object* v___x_13914_; 
v___x_13911_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__23, &l_Lake_Module_initFacetConfigs___closed__23_once, _init_l_Lake_Module_initFacetConfigs___closed__23);
v___x_13912_ = l_Lake_Module_bcoFacetConfig;
v___x_13913_ = l_Lake_Module_bcoFacet;
v___x_13914_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13913_, v___x_13912_, v___x_13911_);
return v___x_13914_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__25(void){
_start:
{
lean_object* v___x_13915_; lean_object* v___x_13916_; lean_object* v___x_13917_; lean_object* v___x_13918_; 
v___x_13915_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__24, &l_Lake_Module_initFacetConfigs___closed__24_once, _init_l_Lake_Module_initFacetConfigs___closed__24);
v___x_13916_ = l_Lake_Module_oFacetConfig;
v___x_13917_ = l_Lake_Module_oFacet;
v___x_13918_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13917_, v___x_13916_, v___x_13915_);
return v___x_13918_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__26(void){
_start:
{
lean_object* v___x_13919_; lean_object* v___x_13920_; lean_object* v___x_13921_; lean_object* v___x_13922_; 
v___x_13919_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__25, &l_Lake_Module_initFacetConfigs___closed__25_once, _init_l_Lake_Module_initFacetConfigs___closed__25);
v___x_13920_ = l_Lake_Module_oExportFacetConfig;
v___x_13921_ = l_Lake_Module_oExportFacet;
v___x_13922_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13921_, v___x_13920_, v___x_13919_);
return v___x_13922_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__27(void){
_start:
{
lean_object* v___x_13923_; lean_object* v___x_13924_; lean_object* v___x_13925_; lean_object* v___x_13926_; 
v___x_13923_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__26, &l_Lake_Module_initFacetConfigs___closed__26_once, _init_l_Lake_Module_initFacetConfigs___closed__26);
v___x_13924_ = l_Lake_Module_oNoExportFacetConfig;
v___x_13925_ = l_Lake_Module_oNoExportFacet;
v___x_13926_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13925_, v___x_13924_, v___x_13923_);
return v___x_13926_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs___closed__28(void){
_start:
{
lean_object* v___x_13927_; lean_object* v___x_13928_; lean_object* v___x_13929_; lean_object* v___x_13930_; 
v___x_13927_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__27, &l_Lake_Module_initFacetConfigs___closed__27_once, _init_l_Lake_Module_initFacetConfigs___closed__27);
v___x_13928_ = l_Lake_Module_dynlibFacetConfig;
v___x_13929_ = l_Lake_Module_dynlibFacet;
v___x_13930_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v___x_13929_, v___x_13928_, v___x_13927_);
return v___x_13930_;
}
}
static lean_object* _init_l_Lake_Module_initFacetConfigs(void){
_start:
{
lean_object* v___x_13931_; 
v___x_13931_ = lean_obj_once(&l_Lake_Module_initFacetConfigs___closed__28, &l_Lake_Module_initFacetConfigs___closed__28_once, _init_l_Lake_Module_initFacetConfigs___closed__28);
return v___x_13931_;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0(lean_object* v_00_u03b2_13932_, lean_object* v_k_13933_, lean_object* v_v_13934_, lean_object* v_t_13935_, lean_object* v_hl_13936_){
_start:
{
lean_object* v___x_13937_; 
v___x_13937_ = l_Std_DTreeMap_Internal_Impl_insert___at___00Lake_Module_initFacetConfigs_spec__0___redArg(v_k_13933_, v_v_13934_, v_t_13935_);
return v___x_13937_;
}
}
static lean_object* _init_l_Lake_initModuleFacetConfigs(void){
_start:
{
lean_object* v___x_13938_; 
v___x_13938_ = l_Lake_Module_initFacetConfigs;
return v___x_13938_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__0(lean_object* v_impLibs_13939_, lean_object* v_externLibs_13940_, lean_object* v_dynlibs_13941_, lean_object* v_info_13942_, lean_object* v_leanOptions_13943_, lean_object* v_leanOptions_13944_, lean_object* v_name_13945_, uint8_t v_isModule_13946_, lean_object* v_a_13947_, lean_object* v_pkg_13948_, size_t v___x_13949_, uint8_t v_buildType_13950_, uint8_t v_buildType_13951_, uint8_t v___x_13952_, lean_object* v_plugins_13953_, lean_object* v___y_13954_, lean_object* v___y_13955_, lean_object* v___y_13956_, lean_object* v___y_13957_, lean_object* v___y_13958_, lean_object* v___y_13959_){
_start:
{
lean_object* v___y_13962_; lean_object* v___y_13963_; lean_object* v___y_13964_; lean_object* v___y_13965_; lean_object* v___y_13966_; lean_object* v___y_13967_; uint8_t v___y_13968_; lean_object* v_log_13975_; uint8_t v_action_13976_; uint8_t v_wantsRebuild_13977_; lean_object* v_trace_13978_; lean_object* v_buildTime_13979_; lean_object* v___x_13981_; uint8_t v_isShared_13982_; uint8_t v_isSharedCheck_14029_; 
v_log_13975_ = lean_ctor_get(v___y_13959_, 0);
v_action_13976_ = lean_ctor_get_uint8(v___y_13959_, sizeof(void*)*3);
v_wantsRebuild_13977_ = lean_ctor_get_uint8(v___y_13959_, sizeof(void*)*3 + 1);
v_trace_13978_ = lean_ctor_get(v___y_13959_, 1);
v_buildTime_13979_ = lean_ctor_get(v___y_13959_, 2);
v_isSharedCheck_14029_ = !lean_is_exclusive(v___y_13959_);
if (v_isSharedCheck_14029_ == 0)
{
v___x_13981_ = v___y_13959_;
v_isShared_13982_ = v_isSharedCheck_14029_;
goto v_resetjp_13980_;
}
else
{
lean_inc(v_buildTime_13979_);
lean_inc(v_trace_13978_);
lean_inc(v_log_13975_);
lean_dec(v___y_13959_);
v___x_13981_ = lean_box(0);
v_isShared_13982_ = v_isSharedCheck_14029_;
goto v_resetjp_13980_;
}
v___jp_13961_:
{
lean_object* v___x_13969_; lean_object* v___x_13970_; lean_object* v___x_13971_; lean_object* v___x_13972_; lean_object* v___x_13973_; lean_object* v___x_13974_; 
v___x_13969_ = l_Lake_BuildType_leanOptions(v___y_13968_);
v___x_13970_ = l_Lean_LeanOptions_ofArray(v_leanOptions_13943_);
v___x_13971_ = l_Lean_LeanOptions_append(v___x_13969_, v___x_13970_);
v___x_13972_ = l_Lean_LeanOptions_appendArray(v___x_13971_, v_leanOptions_13944_);
v___x_13973_ = lean_alloc_ctor(0, 7, 1);
lean_ctor_set(v___x_13973_, 0, v_name_13945_);
lean_ctor_set(v___x_13973_, 1, v___y_13964_);
lean_ctor_set(v___x_13973_, 2, v___y_13963_);
lean_ctor_set(v___x_13973_, 3, v___y_13962_);
lean_ctor_set(v___x_13973_, 4, v___y_13967_);
lean_ctor_set(v___x_13973_, 5, v___y_13966_);
lean_ctor_set(v___x_13973_, 6, v___x_13972_);
lean_ctor_set_uint8(v___x_13973_, sizeof(void*)*7, v_isModule_13946_);
v___x_13974_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_13974_, 0, v___x_13973_);
lean_ctor_set(v___x_13974_, 1, v___y_13965_);
return v___x_13974_;
}
v_resetjp_13980_:
{
lean_object* v___x_13983_; 
lean_inc_ref(v___y_13958_);
v___x_13983_ = l___private_Lake_Build_Module_0__Lake_computeModuleDeps(v_impLibs_13939_, v_externLibs_13940_, v_dynlibs_13941_, v_plugins_13953_, v___y_13954_, v___y_13955_, v___y_13956_, v___y_13957_, v___y_13958_, v_log_13975_);
if (lean_obj_tag(v___x_13983_) == 0)
{
lean_object* v_a_13984_; lean_object* v_a_13985_; lean_object* v_dynlibs_13986_; lean_object* v_plugins_13987_; lean_object* v_directArts_13988_; uint8_t v___y_13990_; 
v_a_13984_ = lean_ctor_get(v___x_13983_, 0);
lean_inc(v_a_13984_);
v_a_13985_ = lean_ctor_get(v___x_13983_, 1);
lean_inc(v_a_13985_);
lean_dec_ref(v___x_13983_);
v_dynlibs_13986_ = lean_ctor_get(v_a_13984_, 0);
lean_inc_ref(v_dynlibs_13986_);
v_plugins_13987_ = lean_ctor_get(v_a_13984_, 1);
lean_inc_ref(v_plugins_13987_);
lean_dec(v_a_13984_);
v_directArts_13988_ = lean_ctor_get(v_info_13942_, 0);
lean_inc(v_directArts_13988_);
lean_dec_ref(v_info_13942_);
if (v_isModule_13946_ == 0)
{
v___y_13990_ = v___x_13952_;
goto v___jp_13989_;
}
else
{
uint8_t v___x_14016_; 
v___x_14016_ = 0;
v___y_13990_ = v___x_14016_;
goto v___jp_13989_;
}
v___jp_13989_:
{
lean_object* v___x_13991_; 
v___x_13991_ = l___private_Lake_Build_Module_0__Lake_fetchTransImportArts(v_a_13947_, v_directArts_13988_, v___y_13990_, v___y_13954_, v___y_13955_, v___y_13956_, v___y_13957_, v___y_13958_, v_a_13985_);
if (lean_obj_tag(v___x_13991_) == 0)
{
lean_object* v_a_13992_; lean_object* v_a_13993_; lean_object* v___x_13995_; 
v_a_13992_ = lean_ctor_get(v___x_13991_, 0);
lean_inc(v_a_13992_);
v_a_13993_ = lean_ctor_get(v___x_13991_, 1);
lean_inc(v_a_13993_);
lean_dec_ref(v___x_13991_);
if (v_isShared_13982_ == 0)
{
lean_ctor_set(v___x_13981_, 0, v_a_13993_);
v___x_13995_ = v___x_13981_;
goto v_reusejp_13994_;
}
else
{
lean_object* v_reuseFailAlloc_14003_; 
v_reuseFailAlloc_14003_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_14003_, 0, v_a_13993_);
lean_ctor_set(v_reuseFailAlloc_14003_, 1, v_trace_13978_);
lean_ctor_set(v_reuseFailAlloc_14003_, 2, v_buildTime_13979_);
lean_ctor_set_uint8(v_reuseFailAlloc_14003_, sizeof(void*)*3, v_action_13976_);
lean_ctor_set_uint8(v_reuseFailAlloc_14003_, sizeof(void*)*3 + 1, v_wantsRebuild_13977_);
v___x_13995_ = v_reuseFailAlloc_14003_;
goto v_reusejp_13994_;
}
v_reusejp_13994_:
{
lean_object* v___x_13996_; lean_object* v___x_13997_; size_t v_sz_13998_; lean_object* v___x_13999_; size_t v_sz_14000_; lean_object* v___x_14001_; uint8_t v___x_14002_; 
v___x_13996_ = l_Lake_Package_id_x3f(v_pkg_13948_);
v___x_13997_ = lean_box(0);
v_sz_13998_ = lean_array_size(v_dynlibs_13986_);
v___x_13999_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__1(v_sz_13998_, v___x_13949_, v_dynlibs_13986_);
v_sz_14000_ = lean_array_size(v_plugins_13987_);
v___x_14001_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__1(v_sz_14000_, v___x_13949_, v_plugins_13987_);
v___x_14002_ = l_Lake_instOrdBuildType_ord(v_buildType_13950_, v_buildType_13951_);
if (v___x_14002_ == 2)
{
v___y_13962_ = v_a_13992_;
v___y_13963_ = v___x_13997_;
v___y_13964_ = v___x_13996_;
v___y_13965_ = v___x_13995_;
v___y_13966_ = v___x_14001_;
v___y_13967_ = v___x_13999_;
v___y_13968_ = v_buildType_13951_;
goto v___jp_13961_;
}
else
{
v___y_13962_ = v_a_13992_;
v___y_13963_ = v___x_13997_;
v___y_13964_ = v___x_13996_;
v___y_13965_ = v___x_13995_;
v___y_13966_ = v___x_14001_;
v___y_13967_ = v___x_13999_;
v___y_13968_ = v_buildType_13950_;
goto v___jp_13961_;
}
}
}
else
{
lean_object* v_a_14004_; lean_object* v_a_14005_; lean_object* v___x_14007_; uint8_t v_isShared_14008_; uint8_t v_isSharedCheck_14015_; 
lean_dec_ref(v_plugins_13987_);
lean_dec_ref(v_dynlibs_13986_);
lean_dec_ref(v_pkg_13948_);
lean_dec(v_name_13945_);
v_a_14004_ = lean_ctor_get(v___x_13991_, 0);
v_a_14005_ = lean_ctor_get(v___x_13991_, 1);
v_isSharedCheck_14015_ = !lean_is_exclusive(v___x_13991_);
if (v_isSharedCheck_14015_ == 0)
{
v___x_14007_ = v___x_13991_;
v_isShared_14008_ = v_isSharedCheck_14015_;
goto v_resetjp_14006_;
}
else
{
lean_inc(v_a_14005_);
lean_inc(v_a_14004_);
lean_dec(v___x_13991_);
v___x_14007_ = lean_box(0);
v_isShared_14008_ = v_isSharedCheck_14015_;
goto v_resetjp_14006_;
}
v_resetjp_14006_:
{
lean_object* v___x_14010_; 
if (v_isShared_13982_ == 0)
{
lean_ctor_set(v___x_13981_, 0, v_a_14005_);
v___x_14010_ = v___x_13981_;
goto v_reusejp_14009_;
}
else
{
lean_object* v_reuseFailAlloc_14014_; 
v_reuseFailAlloc_14014_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_14014_, 0, v_a_14005_);
lean_ctor_set(v_reuseFailAlloc_14014_, 1, v_trace_13978_);
lean_ctor_set(v_reuseFailAlloc_14014_, 2, v_buildTime_13979_);
lean_ctor_set_uint8(v_reuseFailAlloc_14014_, sizeof(void*)*3, v_action_13976_);
lean_ctor_set_uint8(v_reuseFailAlloc_14014_, sizeof(void*)*3 + 1, v_wantsRebuild_13977_);
v___x_14010_ = v_reuseFailAlloc_14014_;
goto v_reusejp_14009_;
}
v_reusejp_14009_:
{
lean_object* v___x_14012_; 
if (v_isShared_14008_ == 0)
{
lean_ctor_set(v___x_14007_, 1, v___x_14010_);
v___x_14012_ = v___x_14007_;
goto v_reusejp_14011_;
}
else
{
lean_object* v_reuseFailAlloc_14013_; 
v_reuseFailAlloc_14013_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_14013_, 0, v_a_14004_);
lean_ctor_set(v_reuseFailAlloc_14013_, 1, v___x_14010_);
v___x_14012_ = v_reuseFailAlloc_14013_;
goto v_reusejp_14011_;
}
v_reusejp_14011_:
{
return v___x_14012_;
}
}
}
}
}
}
else
{
lean_object* v_a_14017_; lean_object* v_a_14018_; lean_object* v___x_14020_; uint8_t v_isShared_14021_; uint8_t v_isSharedCheck_14028_; 
lean_dec_ref(v___y_13958_);
lean_dec(v___y_13957_);
lean_dec(v___y_13956_);
lean_dec(v___y_13955_);
lean_dec_ref(v___y_13954_);
lean_dec_ref(v_pkg_13948_);
lean_dec(v_name_13945_);
lean_dec_ref(v_info_13942_);
v_a_14017_ = lean_ctor_get(v___x_13983_, 0);
v_a_14018_ = lean_ctor_get(v___x_13983_, 1);
v_isSharedCheck_14028_ = !lean_is_exclusive(v___x_13983_);
if (v_isSharedCheck_14028_ == 0)
{
v___x_14020_ = v___x_13983_;
v_isShared_14021_ = v_isSharedCheck_14028_;
goto v_resetjp_14019_;
}
else
{
lean_inc(v_a_14018_);
lean_inc(v_a_14017_);
lean_dec(v___x_13983_);
v___x_14020_ = lean_box(0);
v_isShared_14021_ = v_isSharedCheck_14028_;
goto v_resetjp_14019_;
}
v_resetjp_14019_:
{
lean_object* v___x_14023_; 
if (v_isShared_13982_ == 0)
{
lean_ctor_set(v___x_13981_, 0, v_a_14018_);
v___x_14023_ = v___x_13981_;
goto v_reusejp_14022_;
}
else
{
lean_object* v_reuseFailAlloc_14027_; 
v_reuseFailAlloc_14027_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_14027_, 0, v_a_14018_);
lean_ctor_set(v_reuseFailAlloc_14027_, 1, v_trace_13978_);
lean_ctor_set(v_reuseFailAlloc_14027_, 2, v_buildTime_13979_);
lean_ctor_set_uint8(v_reuseFailAlloc_14027_, sizeof(void*)*3, v_action_13976_);
lean_ctor_set_uint8(v_reuseFailAlloc_14027_, sizeof(void*)*3 + 1, v_wantsRebuild_13977_);
v___x_14023_ = v_reuseFailAlloc_14027_;
goto v_reusejp_14022_;
}
v_reusejp_14022_:
{
lean_object* v___x_14025_; 
if (v_isShared_14021_ == 0)
{
lean_ctor_set(v___x_14020_, 1, v___x_14023_);
v___x_14025_ = v___x_14020_;
goto v_reusejp_14024_;
}
else
{
lean_object* v_reuseFailAlloc_14026_; 
v_reuseFailAlloc_14026_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_14026_, 0, v_a_14017_);
lean_ctor_set(v_reuseFailAlloc_14026_, 1, v___x_14023_);
v___x_14025_ = v_reuseFailAlloc_14026_;
goto v_reusejp_14024_;
}
v_reusejp_14024_:
{
return v___x_14025_;
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__0___boxed(lean_object** _args){
lean_object* v_impLibs_14030_ = _args[0];
lean_object* v_externLibs_14031_ = _args[1];
lean_object* v_dynlibs_14032_ = _args[2];
lean_object* v_info_14033_ = _args[3];
lean_object* v_leanOptions_14034_ = _args[4];
lean_object* v_leanOptions_14035_ = _args[5];
lean_object* v_name_14036_ = _args[6];
lean_object* v_isModule_14037_ = _args[7];
lean_object* v_a_14038_ = _args[8];
lean_object* v_pkg_14039_ = _args[9];
lean_object* v___x_14040_ = _args[10];
lean_object* v_buildType_14041_ = _args[11];
lean_object* v_buildType_14042_ = _args[12];
lean_object* v___x_14043_ = _args[13];
lean_object* v_plugins_14044_ = _args[14];
lean_object* v___y_14045_ = _args[15];
lean_object* v___y_14046_ = _args[16];
lean_object* v___y_14047_ = _args[17];
lean_object* v___y_14048_ = _args[18];
lean_object* v___y_14049_ = _args[19];
lean_object* v___y_14050_ = _args[20];
lean_object* v___y_14051_ = _args[21];
_start:
{
uint8_t v_isModule_boxed_14052_; size_t v___x_102752__boxed_14053_; uint8_t v_buildType_boxed_14054_; uint8_t v_buildType_boxed_14055_; uint8_t v___x_102753__boxed_14056_; lean_object* v_res_14057_; 
v_isModule_boxed_14052_ = lean_unbox(v_isModule_14037_);
v___x_102752__boxed_14053_ = lean_unbox_usize(v___x_14040_);
lean_dec(v___x_14040_);
v_buildType_boxed_14054_ = lean_unbox(v_buildType_14041_);
v_buildType_boxed_14055_ = lean_unbox(v_buildType_14042_);
v___x_102753__boxed_14056_ = lean_unbox(v___x_14043_);
v_res_14057_ = l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__0(v_impLibs_14030_, v_externLibs_14031_, v_dynlibs_14032_, v_info_14033_, v_leanOptions_14034_, v_leanOptions_14035_, v_name_14036_, v_isModule_boxed_14052_, v_a_14038_, v_pkg_14039_, v___x_102752__boxed_14053_, v_buildType_boxed_14054_, v_buildType_boxed_14055_, v___x_102753__boxed_14056_, v_plugins_14044_, v___y_14045_, v___y_14046_, v___y_14047_, v___y_14048_, v___y_14049_, v___y_14050_);
lean_dec_ref(v_a_14038_);
lean_dec_ref(v_leanOptions_14035_);
lean_dec_ref(v_leanOptions_14034_);
lean_dec_ref(v_dynlibs_14032_);
lean_dec_ref(v_impLibs_14030_);
return v_res_14057_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__1(lean_object* v_impLibs_14058_, lean_object* v_externLibs_14059_, lean_object* v_info_14060_, lean_object* v_leanOptions_14061_, lean_object* v_leanOptions_14062_, lean_object* v_name_14063_, uint8_t v_isModule_14064_, lean_object* v_a_14065_, lean_object* v_pkg_14066_, size_t v___x_14067_, uint8_t v_buildType_14068_, uint8_t v_buildType_14069_, uint8_t v___x_14070_, lean_object* v___x_14071_, lean_object* v_a_14072_, lean_object* v_dynlibs_14073_, lean_object* v___y_14074_, lean_object* v___y_14075_, lean_object* v___y_14076_, lean_object* v___y_14077_, lean_object* v___y_14078_, lean_object* v___y_14079_){
_start:
{
lean_object* v_trace_14081_; lean_object* v___x_14082_; lean_object* v___x_14083_; lean_object* v___x_14084_; lean_object* v___x_14085_; lean_object* v___x_14086_; lean_object* v___f_14087_; lean_object* v___x_14088_; uint8_t v___x_14089_; lean_object* v___x_14090_; lean_object* v___x_14091_; 
v_trace_14081_ = lean_ctor_get(v___y_14079_, 1);
v___x_14082_ = lean_box(v_isModule_14064_);
v___x_14083_ = lean_box_usize(v___x_14067_);
v___x_14084_ = lean_box(v_buildType_14068_);
v___x_14085_ = lean_box(v_buildType_14069_);
v___x_14086_ = lean_box(v___x_14070_);
v___f_14087_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__0___boxed), 22, 14);
lean_closure_set(v___f_14087_, 0, v_impLibs_14058_);
lean_closure_set(v___f_14087_, 1, v_externLibs_14059_);
lean_closure_set(v___f_14087_, 2, v_dynlibs_14073_);
lean_closure_set(v___f_14087_, 3, v_info_14060_);
lean_closure_set(v___f_14087_, 4, v_leanOptions_14061_);
lean_closure_set(v___f_14087_, 5, v_leanOptions_14062_);
lean_closure_set(v___f_14087_, 6, v_name_14063_);
lean_closure_set(v___f_14087_, 7, v___x_14082_);
lean_closure_set(v___f_14087_, 8, v_a_14065_);
lean_closure_set(v___f_14087_, 9, v_pkg_14066_);
lean_closure_set(v___f_14087_, 10, v___x_14083_);
lean_closure_set(v___f_14087_, 11, v___x_14084_);
lean_closure_set(v___f_14087_, 12, v___x_14085_);
lean_closure_set(v___f_14087_, 13, v___x_14086_);
v___x_14088_ = lean_unsigned_to_nat(0u);
v___x_14089_ = 0;
lean_inc_ref(v_trace_14081_);
v___x_14090_ = l_Lake_Job_mapM___redArg(v___x_14071_, v_a_14072_, v___f_14087_, v___x_14088_, v___x_14089_, v___y_14074_, v___y_14075_, v___y_14076_, v___y_14077_, v___y_14078_, v_trace_14081_);
v___x_14091_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_14091_, 0, v___x_14090_);
lean_ctor_set(v___x_14091_, 1, v___y_14079_);
return v___x_14091_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__1___boxed(lean_object** _args){
lean_object* v_impLibs_14092_ = _args[0];
lean_object* v_externLibs_14093_ = _args[1];
lean_object* v_info_14094_ = _args[2];
lean_object* v_leanOptions_14095_ = _args[3];
lean_object* v_leanOptions_14096_ = _args[4];
lean_object* v_name_14097_ = _args[5];
lean_object* v_isModule_14098_ = _args[6];
lean_object* v_a_14099_ = _args[7];
lean_object* v_pkg_14100_ = _args[8];
lean_object* v___x_14101_ = _args[9];
lean_object* v_buildType_14102_ = _args[10];
lean_object* v_buildType_14103_ = _args[11];
lean_object* v___x_14104_ = _args[12];
lean_object* v___x_14105_ = _args[13];
lean_object* v_a_14106_ = _args[14];
lean_object* v_dynlibs_14107_ = _args[15];
lean_object* v___y_14108_ = _args[16];
lean_object* v___y_14109_ = _args[17];
lean_object* v___y_14110_ = _args[18];
lean_object* v___y_14111_ = _args[19];
lean_object* v___y_14112_ = _args[20];
lean_object* v___y_14113_ = _args[21];
lean_object* v___y_14114_ = _args[22];
_start:
{
uint8_t v_isModule_boxed_14115_; size_t v___x_102904__boxed_14116_; uint8_t v_buildType_boxed_14117_; uint8_t v_buildType_boxed_14118_; uint8_t v___x_102905__boxed_14119_; lean_object* v_res_14120_; 
v_isModule_boxed_14115_ = lean_unbox(v_isModule_14098_);
v___x_102904__boxed_14116_ = lean_unbox_usize(v___x_14101_);
lean_dec(v___x_14101_);
v_buildType_boxed_14117_ = lean_unbox(v_buildType_14102_);
v_buildType_boxed_14118_ = lean_unbox(v_buildType_14103_);
v___x_102905__boxed_14119_ = lean_unbox(v___x_14104_);
v_res_14120_ = l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__1(v_impLibs_14092_, v_externLibs_14093_, v_info_14094_, v_leanOptions_14095_, v_leanOptions_14096_, v_name_14097_, v_isModule_boxed_14115_, v_a_14099_, v_pkg_14100_, v___x_102904__boxed_14116_, v_buildType_boxed_14117_, v_buildType_boxed_14118_, v___x_102905__boxed_14119_, v___x_14105_, v_a_14106_, v_dynlibs_14107_, v___y_14108_, v___y_14109_, v___y_14110_, v___y_14111_, v___y_14112_, v___y_14113_);
return v_res_14120_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__2(lean_object* v_impLibs_14121_, lean_object* v_info_14122_, lean_object* v_leanOptions_14123_, lean_object* v_leanOptions_14124_, lean_object* v_name_14125_, uint8_t v_isModule_14126_, lean_object* v_a_14127_, lean_object* v_pkg_14128_, size_t v___x_14129_, uint8_t v_buildType_14130_, uint8_t v_buildType_14131_, uint8_t v___x_14132_, lean_object* v___x_14133_, lean_object* v_a_14134_, lean_object* v_a_14135_, lean_object* v_externLibs_14136_, lean_object* v___y_14137_, lean_object* v___y_14138_, lean_object* v___y_14139_, lean_object* v___y_14140_, lean_object* v___y_14141_, lean_object* v___y_14142_){
_start:
{
lean_object* v_trace_14144_; lean_object* v___x_14145_; lean_object* v___x_14146_; lean_object* v___x_14147_; lean_object* v___x_14148_; lean_object* v___x_14149_; lean_object* v___f_14150_; lean_object* v___x_14151_; lean_object* v___x_14152_; lean_object* v___x_14153_; 
v_trace_14144_ = lean_ctor_get(v___y_14142_, 1);
v___x_14145_ = lean_box(v_isModule_14126_);
v___x_14146_ = lean_box_usize(v___x_14129_);
v___x_14147_ = lean_box(v_buildType_14130_);
v___x_14148_ = lean_box(v_buildType_14131_);
v___x_14149_ = lean_box(v___x_14132_);
lean_inc(v___x_14133_);
v___f_14150_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__1___boxed), 23, 15);
lean_closure_set(v___f_14150_, 0, v_impLibs_14121_);
lean_closure_set(v___f_14150_, 1, v_externLibs_14136_);
lean_closure_set(v___f_14150_, 2, v_info_14122_);
lean_closure_set(v___f_14150_, 3, v_leanOptions_14123_);
lean_closure_set(v___f_14150_, 4, v_leanOptions_14124_);
lean_closure_set(v___f_14150_, 5, v_name_14125_);
lean_closure_set(v___f_14150_, 6, v___x_14145_);
lean_closure_set(v___f_14150_, 7, v_a_14127_);
lean_closure_set(v___f_14150_, 8, v_pkg_14128_);
lean_closure_set(v___f_14150_, 9, v___x_14146_);
lean_closure_set(v___f_14150_, 10, v___x_14147_);
lean_closure_set(v___f_14150_, 11, v___x_14148_);
lean_closure_set(v___f_14150_, 12, v___x_14149_);
lean_closure_set(v___f_14150_, 13, v___x_14133_);
lean_closure_set(v___f_14150_, 14, v_a_14134_);
v___x_14151_ = lean_unsigned_to_nat(0u);
lean_inc_ref(v_trace_14144_);
v___x_14152_ = l_Lake_Job_bindM___redArg(v___x_14133_, v_a_14135_, v___f_14150_, v___x_14151_, v___x_14132_, v___y_14137_, v___y_14138_, v___y_14139_, v___y_14140_, v___y_14141_, v_trace_14144_);
v___x_14153_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_14153_, 0, v___x_14152_);
lean_ctor_set(v___x_14153_, 1, v___y_14142_);
return v___x_14153_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__2___boxed(lean_object** _args){
lean_object* v_impLibs_14154_ = _args[0];
lean_object* v_info_14155_ = _args[1];
lean_object* v_leanOptions_14156_ = _args[2];
lean_object* v_leanOptions_14157_ = _args[3];
lean_object* v_name_14158_ = _args[4];
lean_object* v_isModule_14159_ = _args[5];
lean_object* v_a_14160_ = _args[6];
lean_object* v_pkg_14161_ = _args[7];
lean_object* v___x_14162_ = _args[8];
lean_object* v_buildType_14163_ = _args[9];
lean_object* v_buildType_14164_ = _args[10];
lean_object* v___x_14165_ = _args[11];
lean_object* v___x_14166_ = _args[12];
lean_object* v_a_14167_ = _args[13];
lean_object* v_a_14168_ = _args[14];
lean_object* v_externLibs_14169_ = _args[15];
lean_object* v___y_14170_ = _args[16];
lean_object* v___y_14171_ = _args[17];
lean_object* v___y_14172_ = _args[18];
lean_object* v___y_14173_ = _args[19];
lean_object* v___y_14174_ = _args[20];
lean_object* v___y_14175_ = _args[21];
lean_object* v___y_14176_ = _args[22];
_start:
{
uint8_t v_isModule_boxed_14177_; size_t v___x_102960__boxed_14178_; uint8_t v_buildType_boxed_14179_; uint8_t v_buildType_boxed_14180_; uint8_t v___x_102961__boxed_14181_; lean_object* v_res_14182_; 
v_isModule_boxed_14177_ = lean_unbox(v_isModule_14159_);
v___x_102960__boxed_14178_ = lean_unbox_usize(v___x_14162_);
lean_dec(v___x_14162_);
v_buildType_boxed_14179_ = lean_unbox(v_buildType_14163_);
v_buildType_boxed_14180_ = lean_unbox(v_buildType_14164_);
v___x_102961__boxed_14181_ = lean_unbox(v___x_14165_);
v_res_14182_ = l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__2(v_impLibs_14154_, v_info_14155_, v_leanOptions_14156_, v_leanOptions_14157_, v_name_14158_, v_isModule_boxed_14177_, v_a_14160_, v_pkg_14161_, v___x_102960__boxed_14178_, v_buildType_boxed_14179_, v_buildType_boxed_14180_, v___x_102961__boxed_14181_, v___x_14166_, v_a_14167_, v_a_14168_, v_externLibs_14169_, v___y_14170_, v___y_14171_, v___y_14172_, v___y_14173_, v___y_14174_, v___y_14175_);
return v_res_14182_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__3(lean_object* v_info_14183_, lean_object* v_leanOptions_14184_, lean_object* v_leanOptions_14185_, lean_object* v_name_14186_, uint8_t v_isModule_14187_, lean_object* v_a_14188_, lean_object* v_pkg_14189_, size_t v___x_14190_, uint8_t v_buildType_14191_, uint8_t v_buildType_14192_, uint8_t v___x_14193_, lean_object* v___x_14194_, lean_object* v_a_14195_, lean_object* v_a_14196_, lean_object* v___x_14197_, lean_object* v_impLibs_14198_, lean_object* v___y_14199_, lean_object* v___y_14200_, lean_object* v___y_14201_, lean_object* v___y_14202_, lean_object* v___y_14203_, lean_object* v___y_14204_){
_start:
{
lean_object* v_trace_14206_; lean_object* v___x_14207_; lean_object* v___x_14208_; lean_object* v___x_14209_; lean_object* v___x_14210_; lean_object* v___x_14211_; lean_object* v___f_14212_; lean_object* v___x_14213_; lean_object* v___x_14214_; lean_object* v___x_14215_; 
v_trace_14206_ = lean_ctor_get(v___y_14204_, 1);
v___x_14207_ = lean_box(v_isModule_14187_);
v___x_14208_ = lean_box_usize(v___x_14190_);
v___x_14209_ = lean_box(v_buildType_14191_);
v___x_14210_ = lean_box(v_buildType_14192_);
v___x_14211_ = lean_box(v___x_14193_);
lean_inc(v___x_14194_);
v___f_14212_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__2___boxed), 23, 15);
lean_closure_set(v___f_14212_, 0, v_impLibs_14198_);
lean_closure_set(v___f_14212_, 1, v_info_14183_);
lean_closure_set(v___f_14212_, 2, v_leanOptions_14184_);
lean_closure_set(v___f_14212_, 3, v_leanOptions_14185_);
lean_closure_set(v___f_14212_, 4, v_name_14186_);
lean_closure_set(v___f_14212_, 5, v___x_14207_);
lean_closure_set(v___f_14212_, 6, v_a_14188_);
lean_closure_set(v___f_14212_, 7, v_pkg_14189_);
lean_closure_set(v___f_14212_, 8, v___x_14208_);
lean_closure_set(v___f_14212_, 9, v___x_14209_);
lean_closure_set(v___f_14212_, 10, v___x_14210_);
lean_closure_set(v___f_14212_, 11, v___x_14211_);
lean_closure_set(v___f_14212_, 12, v___x_14194_);
lean_closure_set(v___f_14212_, 13, v_a_14195_);
lean_closure_set(v___f_14212_, 14, v_a_14196_);
v___x_14213_ = lean_unsigned_to_nat(0u);
lean_inc_ref(v_trace_14206_);
v___x_14214_ = l_Lake_Job_bindM___redArg(v___x_14194_, v___x_14197_, v___f_14212_, v___x_14213_, v___x_14193_, v___y_14199_, v___y_14200_, v___y_14201_, v___y_14202_, v___y_14203_, v_trace_14206_);
v___x_14215_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_14215_, 0, v___x_14214_);
lean_ctor_set(v___x_14215_, 1, v___y_14204_);
return v___x_14215_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__3___boxed(lean_object** _args){
lean_object* v_info_14216_ = _args[0];
lean_object* v_leanOptions_14217_ = _args[1];
lean_object* v_leanOptions_14218_ = _args[2];
lean_object* v_name_14219_ = _args[3];
lean_object* v_isModule_14220_ = _args[4];
lean_object* v_a_14221_ = _args[5];
lean_object* v_pkg_14222_ = _args[6];
lean_object* v___x_14223_ = _args[7];
lean_object* v_buildType_14224_ = _args[8];
lean_object* v_buildType_14225_ = _args[9];
lean_object* v___x_14226_ = _args[10];
lean_object* v___x_14227_ = _args[11];
lean_object* v_a_14228_ = _args[12];
lean_object* v_a_14229_ = _args[13];
lean_object* v___x_14230_ = _args[14];
lean_object* v_impLibs_14231_ = _args[15];
lean_object* v___y_14232_ = _args[16];
lean_object* v___y_14233_ = _args[17];
lean_object* v___y_14234_ = _args[18];
lean_object* v___y_14235_ = _args[19];
lean_object* v___y_14236_ = _args[20];
lean_object* v___y_14237_ = _args[21];
lean_object* v___y_14238_ = _args[22];
_start:
{
uint8_t v_isModule_boxed_14239_; size_t v___x_103017__boxed_14240_; uint8_t v_buildType_boxed_14241_; uint8_t v_buildType_boxed_14242_; uint8_t v___x_103018__boxed_14243_; lean_object* v_res_14244_; 
v_isModule_boxed_14239_ = lean_unbox(v_isModule_14220_);
v___x_103017__boxed_14240_ = lean_unbox_usize(v___x_14223_);
lean_dec(v___x_14223_);
v_buildType_boxed_14241_ = lean_unbox(v_buildType_14224_);
v_buildType_boxed_14242_ = lean_unbox(v_buildType_14225_);
v___x_103018__boxed_14243_ = lean_unbox(v___x_14226_);
v_res_14244_ = l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__3(v_info_14216_, v_leanOptions_14217_, v_leanOptions_14218_, v_name_14219_, v_isModule_boxed_14239_, v_a_14221_, v_pkg_14222_, v___x_103017__boxed_14240_, v_buildType_boxed_14241_, v_buildType_boxed_14242_, v___x_103018__boxed_14243_, v___x_14227_, v_a_14228_, v_a_14229_, v___x_14230_, v_impLibs_14231_, v___y_14232_, v___y_14233_, v___y_14234_, v___y_14235_, v___y_14236_, v___y_14237_);
return v_res_14244_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__4(lean_object* v_leanOptions_14245_, lean_object* v_leanOptions_14246_, lean_object* v_name_14247_, uint8_t v_isModule_14248_, lean_object* v_a_14249_, lean_object* v_pkg_14250_, size_t v___x_14251_, uint8_t v_buildType_14252_, uint8_t v_buildType_14253_, uint8_t v___x_14254_, lean_object* v___x_14255_, lean_object* v_a_14256_, lean_object* v_a_14257_, lean_object* v___x_14258_, lean_object* v___x_14259_, lean_object* v_info_14260_, lean_object* v___y_14261_, lean_object* v___y_14262_, lean_object* v___y_14263_, lean_object* v___y_14264_, lean_object* v___y_14265_, lean_object* v___y_14266_){
_start:
{
lean_object* v_trace_14268_; lean_object* v___x_14269_; lean_object* v___x_14270_; lean_object* v___x_14271_; lean_object* v___x_14272_; lean_object* v___x_14273_; lean_object* v___f_14274_; lean_object* v___x_14275_; lean_object* v___x_14276_; lean_object* v___x_14277_; 
v_trace_14268_ = lean_ctor_get(v___y_14266_, 1);
v___x_14269_ = lean_box(v_isModule_14248_);
v___x_14270_ = lean_box_usize(v___x_14251_);
v___x_14271_ = lean_box(v_buildType_14252_);
v___x_14272_ = lean_box(v_buildType_14253_);
v___x_14273_ = lean_box(v___x_14254_);
lean_inc(v___x_14255_);
v___f_14274_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__3___boxed), 23, 15);
lean_closure_set(v___f_14274_, 0, v_info_14260_);
lean_closure_set(v___f_14274_, 1, v_leanOptions_14245_);
lean_closure_set(v___f_14274_, 2, v_leanOptions_14246_);
lean_closure_set(v___f_14274_, 3, v_name_14247_);
lean_closure_set(v___f_14274_, 4, v___x_14269_);
lean_closure_set(v___f_14274_, 5, v_a_14249_);
lean_closure_set(v___f_14274_, 6, v_pkg_14250_);
lean_closure_set(v___f_14274_, 7, v___x_14270_);
lean_closure_set(v___f_14274_, 8, v___x_14271_);
lean_closure_set(v___f_14274_, 9, v___x_14272_);
lean_closure_set(v___f_14274_, 10, v___x_14273_);
lean_closure_set(v___f_14274_, 11, v___x_14255_);
lean_closure_set(v___f_14274_, 12, v_a_14256_);
lean_closure_set(v___f_14274_, 13, v_a_14257_);
lean_closure_set(v___f_14274_, 14, v___x_14258_);
v___x_14275_ = lean_unsigned_to_nat(0u);
lean_inc_ref(v_trace_14268_);
v___x_14276_ = l_Lake_Job_bindM___redArg(v___x_14255_, v___x_14259_, v___f_14274_, v___x_14275_, v___x_14254_, v___y_14261_, v___y_14262_, v___y_14263_, v___y_14264_, v___y_14265_, v_trace_14268_);
v___x_14277_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_14277_, 0, v___x_14276_);
lean_ctor_set(v___x_14277_, 1, v___y_14266_);
return v___x_14277_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__4___boxed(lean_object** _args){
lean_object* v_leanOptions_14278_ = _args[0];
lean_object* v_leanOptions_14279_ = _args[1];
lean_object* v_name_14280_ = _args[2];
lean_object* v_isModule_14281_ = _args[3];
lean_object* v_a_14282_ = _args[4];
lean_object* v_pkg_14283_ = _args[5];
lean_object* v___x_14284_ = _args[6];
lean_object* v_buildType_14285_ = _args[7];
lean_object* v_buildType_14286_ = _args[8];
lean_object* v___x_14287_ = _args[9];
lean_object* v___x_14288_ = _args[10];
lean_object* v_a_14289_ = _args[11];
lean_object* v_a_14290_ = _args[12];
lean_object* v___x_14291_ = _args[13];
lean_object* v___x_14292_ = _args[14];
lean_object* v_info_14293_ = _args[15];
lean_object* v___y_14294_ = _args[16];
lean_object* v___y_14295_ = _args[17];
lean_object* v___y_14296_ = _args[18];
lean_object* v___y_14297_ = _args[19];
lean_object* v___y_14298_ = _args[20];
lean_object* v___y_14299_ = _args[21];
lean_object* v___y_14300_ = _args[22];
_start:
{
uint8_t v_isModule_boxed_14301_; size_t v___x_103077__boxed_14302_; uint8_t v_buildType_boxed_14303_; uint8_t v_buildType_boxed_14304_; uint8_t v___x_103078__boxed_14305_; lean_object* v_res_14306_; 
v_isModule_boxed_14301_ = lean_unbox(v_isModule_14281_);
v___x_103077__boxed_14302_ = lean_unbox_usize(v___x_14284_);
lean_dec(v___x_14284_);
v_buildType_boxed_14303_ = lean_unbox(v_buildType_14285_);
v_buildType_boxed_14304_ = lean_unbox(v_buildType_14286_);
v___x_103078__boxed_14305_ = lean_unbox(v___x_14287_);
v_res_14306_ = l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__4(v_leanOptions_14278_, v_leanOptions_14279_, v_name_14280_, v_isModule_boxed_14301_, v_a_14282_, v_pkg_14283_, v___x_103077__boxed_14302_, v_buildType_boxed_14303_, v_buildType_boxed_14304_, v___x_103078__boxed_14305_, v___x_14288_, v_a_14289_, v_a_14290_, v___x_14291_, v___x_14292_, v_info_14293_, v___y_14294_, v___y_14295_, v___y_14296_, v___y_14297_, v___y_14298_, v___y_14299_);
return v_res_14306_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__0___redArg(size_t v_sz_14307_, size_t v_i_14308_, lean_object* v_bs_14309_, lean_object* v___y_14310_, lean_object* v___y_14311_){
_start:
{
uint8_t v___x_14313_; 
v___x_14313_ = lean_usize_dec_lt(v_i_14308_, v_sz_14307_);
if (v___x_14313_ == 0)
{
lean_object* v___x_14314_; 
v___x_14314_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_14314_, 0, v_bs_14309_);
lean_ctor_set(v___x_14314_, 1, v___y_14311_);
return v___x_14314_;
}
else
{
lean_object* v_v_14315_; lean_object* v_module_14316_; lean_object* v_toContext_14317_; lean_object* v___x_14318_; lean_object* v_bs_x27_14319_; lean_object* v___x_14320_; lean_object* v___x_14321_; size_t v___x_14322_; size_t v___x_14323_; lean_object* v___x_14324_; 
v_v_14315_ = lean_array_uget(v_bs_14309_, v_i_14308_);
v_module_14316_ = lean_ctor_get(v_v_14315_, 0);
v_toContext_14317_ = lean_ctor_get(v___y_14310_, 1);
v___x_14318_ = lean_unsigned_to_nat(0u);
v_bs_x27_14319_ = lean_array_uset(v_bs_14309_, v_i_14308_, v___x_14318_);
lean_inc(v_module_14316_);
v___x_14320_ = l_Lake_Workspace_findModule_x3f(v_module_14316_, v_toContext_14317_);
v___x_14321_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_14321_, 0, v_v_14315_);
lean_ctor_set(v___x_14321_, 1, v___x_14320_);
v___x_14322_ = ((size_t)1ULL);
v___x_14323_ = lean_usize_add(v_i_14308_, v___x_14322_);
v___x_14324_ = lean_array_uset(v_bs_x27_14319_, v_i_14308_, v___x_14321_);
v_i_14308_ = v___x_14323_;
v_bs_14309_ = v___x_14324_;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__0___redArg___boxed(lean_object* v_sz_14326_, lean_object* v_i_14327_, lean_object* v_bs_14328_, lean_object* v___y_14329_, lean_object* v___y_14330_, lean_object* v___y_14331_){
_start:
{
size_t v_sz_boxed_14332_; size_t v_i_boxed_14333_; lean_object* v_res_14334_; 
v_sz_boxed_14332_ = lean_unbox_usize(v_sz_14326_);
lean_dec(v_sz_14326_);
v_i_boxed_14333_ = lean_unbox_usize(v_i_14327_);
lean_dec(v_i_14327_);
v_res_14334_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__0___redArg(v_sz_boxed_14332_, v_i_boxed_14333_, v_bs_14328_, v___y_14329_, v___y_14330_);
lean_dec_ref(v___y_14329_);
return v_res_14334_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Array_filterMapM___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__1_spec__1(lean_object* v_as_14335_, size_t v_i_14336_, size_t v_stop_14337_, lean_object* v_b_14338_){
_start:
{
lean_object* v___y_14340_; uint8_t v___x_14344_; 
v___x_14344_ = lean_usize_dec_eq(v_i_14336_, v_stop_14337_);
if (v___x_14344_ == 0)
{
lean_object* v___x_14345_; lean_object* v_module_x3f_14346_; 
v___x_14345_ = lean_array_uget_borrowed(v_as_14335_, v_i_14336_);
v_module_x3f_14346_ = lean_ctor_get(v___x_14345_, 1);
if (lean_obj_tag(v_module_x3f_14346_) == 0)
{
v___y_14340_ = v_b_14338_;
goto v___jp_14339_;
}
else
{
lean_object* v_val_14347_; lean_object* v___x_14348_; 
v_val_14347_ = lean_ctor_get(v_module_x3f_14346_, 0);
lean_inc(v_val_14347_);
v___x_14348_ = lean_array_push(v_b_14338_, v_val_14347_);
v___y_14340_ = v___x_14348_;
goto v___jp_14339_;
}
}
else
{
return v_b_14338_;
}
v___jp_14339_:
{
size_t v___x_14341_; size_t v___x_14342_; 
v___x_14341_ = ((size_t)1ULL);
v___x_14342_ = lean_usize_add(v_i_14336_, v___x_14341_);
v_i_14336_ = v___x_14342_;
v_b_14338_ = v___y_14340_;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Array_filterMapM___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__1_spec__1___boxed(lean_object* v_as_14349_, lean_object* v_i_14350_, lean_object* v_stop_14351_, lean_object* v_b_14352_){
_start:
{
size_t v_i_boxed_14353_; size_t v_stop_boxed_14354_; lean_object* v_res_14355_; 
v_i_boxed_14353_ = lean_unbox_usize(v_i_14350_);
lean_dec(v_i_14350_);
v_stop_boxed_14354_ = lean_unbox_usize(v_stop_14351_);
lean_dec(v_stop_14351_);
v_res_14355_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Array_filterMapM___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__1_spec__1(v_as_14349_, v_i_boxed_14353_, v_stop_boxed_14354_, v_b_14352_);
lean_dec_ref(v_as_14349_);
return v_res_14355_;
}
}
LEAN_EXPORT lean_object* l_Array_filterMapM___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__1(lean_object* v_as_14358_, lean_object* v_start_14359_, lean_object* v_stop_14360_){
_start:
{
lean_object* v___x_14361_; uint8_t v___x_14362_; 
v___x_14361_ = ((lean_object*)(l_Array_filterMapM___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__1___closed__0));
v___x_14362_ = lean_nat_dec_lt(v_start_14359_, v_stop_14360_);
if (v___x_14362_ == 0)
{
return v___x_14361_;
}
else
{
lean_object* v___x_14363_; uint8_t v___x_14364_; 
v___x_14363_ = lean_array_get_size(v_as_14358_);
v___x_14364_ = lean_nat_dec_le(v_stop_14360_, v___x_14363_);
if (v___x_14364_ == 0)
{
uint8_t v___x_14365_; 
v___x_14365_ = lean_nat_dec_lt(v_start_14359_, v___x_14363_);
if (v___x_14365_ == 0)
{
return v___x_14361_;
}
else
{
size_t v___x_14366_; size_t v___x_14367_; lean_object* v___x_14368_; 
v___x_14366_ = lean_usize_of_nat(v_start_14359_);
v___x_14367_ = lean_usize_of_nat(v___x_14363_);
v___x_14368_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Array_filterMapM___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__1_spec__1(v_as_14358_, v___x_14366_, v___x_14367_, v___x_14361_);
return v___x_14368_;
}
}
else
{
size_t v___x_14369_; size_t v___x_14370_; lean_object* v___x_14371_; 
v___x_14369_ = lean_usize_of_nat(v_start_14359_);
v___x_14370_ = lean_usize_of_nat(v_stop_14360_);
v___x_14371_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Array_filterMapM___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__1_spec__1(v_as_14358_, v___x_14369_, v___x_14370_, v___x_14361_);
return v___x_14371_;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_filterMapM___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__1___boxed(lean_object* v_as_14372_, lean_object* v_start_14373_, lean_object* v_stop_14374_){
_start:
{
lean_object* v_res_14375_; 
v_res_14375_ = l_Array_filterMapM___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__1(v_as_14372_, v_start_14373_, v_stop_14374_);
lean_dec(v_stop_14374_);
lean_dec(v_start_14373_);
lean_dec_ref(v_as_14372_);
return v_res_14375_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule(lean_object* v_mod_14378_, lean_object* v_header_14379_, lean_object* v_a_14380_, lean_object* v_a_14381_, lean_object* v_a_14382_, lean_object* v_a_14383_, lean_object* v_a_14384_, lean_object* v_a_14385_){
_start:
{
lean_object* v_lib_14387_; lean_object* v_pkg_14388_; lean_object* v_name_14389_; lean_object* v_name_14390_; lean_object* v_config_14391_; lean_object* v_keyName_14392_; lean_object* v_dir_14393_; lean_object* v_config_14394_; lean_object* v_targetDecls_14395_; lean_object* v___x_14396_; lean_object* v___x_14397_; lean_object* v___x_14398_; lean_object* v___x_14399_; lean_object* v___x_14400_; 
v_lib_14387_ = lean_ctor_get(v_mod_14378_, 0);
v_pkg_14388_ = lean_ctor_get(v_lib_14387_, 0);
lean_inc_ref(v_pkg_14388_);
v_name_14389_ = lean_ctor_get(v_mod_14378_, 1);
lean_inc(v_name_14389_);
v_name_14390_ = lean_ctor_get(v_lib_14387_, 1);
v_config_14391_ = lean_ctor_get(v_lib_14387_, 2);
v_keyName_14392_ = lean_ctor_get(v_pkg_14388_, 2);
v_dir_14393_ = lean_ctor_get(v_pkg_14388_, 4);
v_config_14394_ = lean_ctor_get(v_pkg_14388_, 6);
v_targetDecls_14395_ = lean_ctor_get(v_pkg_14388_, 13);
v___x_14396_ = l_Lake_LeanLib_extraDepFacet;
lean_inc(v_name_14390_);
lean_inc(v_keyName_14392_);
v___x_14397_ = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(v___x_14397_, 0, v_keyName_14392_);
lean_ctor_set(v___x_14397_, 1, v_name_14390_);
v___x_14398_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_fetchImportLibs_spec__0___closed__1));
lean_inc_ref(v_lib_14387_);
v___x_14399_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_14399_, 0, v___x_14397_);
lean_ctor_set(v___x_14399_, 1, v___x_14398_);
lean_ctor_set(v___x_14399_, 2, v_lib_14387_);
lean_ctor_set(v___x_14399_, 3, v___x_14396_);
lean_inc_ref(v_a_14380_);
lean_inc_ref(v_a_14384_);
lean_inc(v_a_14383_);
lean_inc(v_a_14382_);
lean_inc(v_a_14381_);
v___x_14400_ = lean_apply_7(v_a_14380_, v___x_14399_, v_a_14381_, v_a_14382_, v_a_14383_, v_a_14384_, v_a_14385_, lean_box(0));
if (lean_obj_tag(v___x_14400_) == 0)
{
lean_object* v_a_14401_; lean_object* v_a_14402_; lean_object* v_imports_14403_; uint8_t v_isModule_14404_; size_t v_sz_14405_; size_t v___x_14406_; lean_object* v___x_14407_; 
v_a_14401_ = lean_ctor_get(v___x_14400_, 0);
lean_inc(v_a_14401_);
v_a_14402_ = lean_ctor_get(v___x_14400_, 1);
lean_inc(v_a_14402_);
lean_dec_ref(v___x_14400_);
v_imports_14403_ = lean_ctor_get(v_header_14379_, 0);
v_isModule_14404_ = lean_ctor_get_uint8(v_header_14379_, sizeof(void*)*1);
v_sz_14405_ = lean_array_size(v_imports_14403_);
v___x_14406_ = ((size_t)0ULL);
lean_inc_ref(v_imports_14403_);
v___x_14407_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__0___redArg(v_sz_14405_, v___x_14406_, v_imports_14403_, v_a_14384_, v_a_14402_);
if (lean_obj_tag(v___x_14407_) == 0)
{
lean_object* v_a_14408_; lean_object* v_a_14409_; lean_object* v_toLeanConfig_14410_; uint8_t v_precompileModules_14411_; lean_object* v_srcDir_14412_; lean_object* v_toLeanConfig_14413_; lean_object* v_srcDir_14414_; uint8_t v_precompileModules_14415_; lean_object* v___x_14416_; lean_object* v___x_14417_; lean_object* v___x_14418_; lean_object* v___x_14419_; lean_object* v___x_14420_; lean_object* v___x_14421_; lean_object* v___x_14422_; lean_object* v___x_14423_; 
v_a_14408_ = lean_ctor_get(v___x_14407_, 0);
lean_inc(v_a_14408_);
v_a_14409_ = lean_ctor_get(v___x_14407_, 1);
lean_inc(v_a_14409_);
lean_dec_ref(v___x_14407_);
v_toLeanConfig_14410_ = lean_ctor_get(v_config_14394_, 1);
v_precompileModules_14411_ = lean_ctor_get_uint8(v_config_14394_, sizeof(void*)*27 + 1);
v_srcDir_14412_ = lean_ctor_get(v_config_14394_, 5);
v_toLeanConfig_14413_ = lean_ctor_get(v_config_14391_, 0);
lean_inc_ref(v_toLeanConfig_14413_);
v_srcDir_14414_ = lean_ctor_get(v_config_14391_, 1);
v_precompileModules_14415_ = lean_ctor_get_uint8(v_config_14391_, sizeof(void*)*9 + 1);
v___x_14416_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__0));
lean_inc_ref(v_srcDir_14412_);
v___x_14417_ = l_System_FilePath_normalize(v_srcDir_14412_);
lean_inc_ref(v_dir_14393_);
v___x_14418_ = l_Lake_joinRelative(v_dir_14393_, v___x_14417_);
lean_inc_ref(v_srcDir_14414_);
v___x_14419_ = l_System_FilePath_normalize(v_srcDir_14414_);
v___x_14420_ = l_Lake_joinRelative(v___x_14418_, v___x_14419_);
lean_inc(v_name_14389_);
v___x_14421_ = l_Lean_modToFilePath(v___x_14420_, v_name_14389_, v___x_14416_);
lean_dec_ref(v___x_14420_);
v___x_14422_ = l_Lake_relPathFrom(v_dir_14393_, v___x_14421_);
lean_inc_ref(v_a_14384_);
lean_inc(v_a_14383_);
lean_inc(v_a_14382_);
lean_inc(v_a_14381_);
lean_inc_ref(v_a_14380_);
lean_inc(v_name_14389_);
lean_inc_ref(v___x_14422_);
v___x_14423_ = l___private_Lake_Build_Module_0__Lake_fetchImportInfo___redArg(v___x_14422_, v_name_14389_, v_header_14379_, v_a_14380_, v_a_14381_, v_a_14382_, v_a_14383_, v_a_14384_, v_a_14409_);
lean_dec_ref(v_header_14379_);
if (lean_obj_tag(v___x_14423_) == 0)
{
lean_object* v_a_14424_; lean_object* v_a_14425_; lean_object* v___x_14426_; lean_object* v___y_14428_; uint8_t v___y_14429_; lean_object* v___y_14430_; lean_object* v___y_14431_; lean_object* v___y_14432_; uint8_t v___y_14433_; lean_object* v___y_14434_; lean_object* v___y_14435_; lean_object* v_a_14436_; lean_object* v_a_14437_; uint8_t v___y_14495_; lean_object* v___y_14496_; lean_object* v___y_14497_; lean_object* v___y_14498_; lean_object* v___y_14499_; uint8_t v___y_14500_; lean_object* v___y_14501_; lean_object* v___y_14502_; lean_object* v___y_14503_; lean_object* v___y_14516_; lean_object* v___y_14517_; lean_object* v___y_14518_; lean_object* v___y_14519_; lean_object* v___y_14520_; lean_object* v___y_14521_; lean_object* v___y_14522_; uint8_t v___y_14523_; lean_object* v_precompileImports_14558_; lean_object* v___y_14559_; lean_object* v___y_14560_; lean_object* v___y_14561_; lean_object* v___y_14562_; lean_object* v___y_14563_; lean_object* v___y_14564_; lean_object* v___x_14565_; lean_object* v___x_14566_; lean_object* v___x_14567_; 
v_a_14424_ = lean_ctor_get(v___x_14423_, 0);
lean_inc(v_a_14424_);
v_a_14425_ = lean_ctor_get(v___x_14423_, 1);
lean_inc(v_a_14425_);
lean_dec_ref(v___x_14423_);
v___x_14426_ = lean_box(0);
v___x_14565_ = lean_array_get_size(v_a_14408_);
v___x_14566_ = lean_unsigned_to_nat(0u);
v___x_14567_ = l_Array_filterMapM___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__1(v_a_14408_, v___x_14566_, v___x_14565_);
if (v_precompileModules_14411_ == 0)
{
if (v_precompileModules_14415_ == 0)
{
lean_object* v___x_14593_; 
lean_inc_ref(v_a_14384_);
lean_inc(v_a_14383_);
lean_inc(v_a_14382_);
lean_inc(v_a_14381_);
lean_inc_ref(v_a_14380_);
v___x_14593_ = l___private_Lake_Build_Module_0__Lake_computePrecompileImportsAux(v___x_14422_, v___x_14567_, v_a_14380_, v_a_14381_, v_a_14382_, v_a_14383_, v_a_14384_, v_a_14425_);
if (lean_obj_tag(v___x_14593_) == 0)
{
lean_object* v_a_14594_; lean_object* v_a_14595_; lean_object* v___x_14596_; 
v_a_14594_ = lean_ctor_get(v___x_14593_, 0);
lean_inc(v_a_14594_);
v_a_14595_ = lean_ctor_get(v___x_14593_, 1);
lean_inc(v_a_14595_);
lean_dec_ref(v___x_14593_);
v___x_14596_ = l_Lake_Job_await___redArg(v_a_14594_, v_a_14595_);
if (lean_obj_tag(v___x_14596_) == 0)
{
lean_object* v_a_14597_; lean_object* v_a_14598_; 
v_a_14597_ = lean_ctor_get(v___x_14596_, 0);
lean_inc(v_a_14597_);
v_a_14598_ = lean_ctor_get(v___x_14596_, 1);
lean_inc(v_a_14598_);
lean_dec_ref(v___x_14596_);
v_precompileImports_14558_ = v_a_14597_;
v___y_14559_ = v_a_14380_;
v___y_14560_ = v_a_14381_;
v___y_14561_ = v_a_14382_;
v___y_14562_ = v_a_14383_;
v___y_14563_ = v_a_14384_;
v___y_14564_ = v_a_14598_;
goto v___jp_14557_;
}
else
{
lean_object* v_a_14599_; lean_object* v_a_14600_; lean_object* v___x_14602_; uint8_t v_isShared_14603_; uint8_t v_isSharedCheck_14607_; 
lean_dec(v_a_14424_);
lean_dec_ref(v_toLeanConfig_14413_);
lean_dec(v_a_14408_);
lean_dec(v_a_14401_);
lean_dec(v_name_14389_);
lean_dec_ref(v_pkg_14388_);
lean_dec_ref(v_a_14384_);
lean_dec(v_a_14383_);
lean_dec(v_a_14382_);
lean_dec(v_a_14381_);
lean_dec_ref(v_a_14380_);
lean_dec_ref(v_mod_14378_);
v_a_14599_ = lean_ctor_get(v___x_14596_, 0);
v_a_14600_ = lean_ctor_get(v___x_14596_, 1);
v_isSharedCheck_14607_ = !lean_is_exclusive(v___x_14596_);
if (v_isSharedCheck_14607_ == 0)
{
v___x_14602_ = v___x_14596_;
v_isShared_14603_ = v_isSharedCheck_14607_;
goto v_resetjp_14601_;
}
else
{
lean_inc(v_a_14600_);
lean_inc(v_a_14599_);
lean_dec(v___x_14596_);
v___x_14602_ = lean_box(0);
v_isShared_14603_ = v_isSharedCheck_14607_;
goto v_resetjp_14601_;
}
v_resetjp_14601_:
{
lean_object* v___x_14605_; 
if (v_isShared_14603_ == 0)
{
v___x_14605_ = v___x_14602_;
goto v_reusejp_14604_;
}
else
{
lean_object* v_reuseFailAlloc_14606_; 
v_reuseFailAlloc_14606_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_14606_, 0, v_a_14599_);
lean_ctor_set(v_reuseFailAlloc_14606_, 1, v_a_14600_);
v___x_14605_ = v_reuseFailAlloc_14606_;
goto v_reusejp_14604_;
}
v_reusejp_14604_:
{
return v___x_14605_;
}
}
}
}
else
{
lean_object* v_a_14608_; lean_object* v_a_14609_; lean_object* v___x_14611_; uint8_t v_isShared_14612_; uint8_t v_isSharedCheck_14616_; 
lean_dec(v_a_14424_);
lean_dec_ref(v_toLeanConfig_14413_);
lean_dec(v_a_14408_);
lean_dec(v_a_14401_);
lean_dec(v_name_14389_);
lean_dec_ref(v_pkg_14388_);
lean_dec_ref(v_a_14384_);
lean_dec(v_a_14383_);
lean_dec(v_a_14382_);
lean_dec(v_a_14381_);
lean_dec_ref(v_a_14380_);
lean_dec_ref(v_mod_14378_);
v_a_14608_ = lean_ctor_get(v___x_14593_, 0);
v_a_14609_ = lean_ctor_get(v___x_14593_, 1);
v_isSharedCheck_14616_ = !lean_is_exclusive(v___x_14593_);
if (v_isSharedCheck_14616_ == 0)
{
v___x_14611_ = v___x_14593_;
v_isShared_14612_ = v_isSharedCheck_14616_;
goto v_resetjp_14610_;
}
else
{
lean_inc(v_a_14609_);
lean_inc(v_a_14608_);
lean_dec(v___x_14593_);
v___x_14611_ = lean_box(0);
v_isShared_14612_ = v_isSharedCheck_14616_;
goto v_resetjp_14610_;
}
v_resetjp_14610_:
{
lean_object* v___x_14614_; 
if (v_isShared_14612_ == 0)
{
v___x_14614_ = v___x_14611_;
goto v_reusejp_14613_;
}
else
{
lean_object* v_reuseFailAlloc_14615_; 
v_reuseFailAlloc_14615_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_14615_, 0, v_a_14608_);
lean_ctor_set(v_reuseFailAlloc_14615_, 1, v_a_14609_);
v___x_14614_ = v_reuseFailAlloc_14615_;
goto v_reusejp_14613_;
}
v_reusejp_14613_:
{
return v___x_14614_;
}
}
}
}
else
{
goto v___jp_14568_;
}
}
else
{
goto v___jp_14568_;
}
v___jp_14427_:
{
uint8_t v_buildType_14438_; lean_object* v_leanOptions_14439_; lean_object* v_dynlibs_14440_; lean_object* v_plugins_14441_; uint8_t v_buildType_14442_; lean_object* v_leanOptions_14443_; lean_object* v_dynlibs_14444_; lean_object* v_plugins_14445_; lean_object* v___x_14446_; lean_object* v___x_14447_; lean_object* v___x_14448_; 
v_buildType_14438_ = lean_ctor_get_uint8(v_toLeanConfig_14410_, sizeof(void*)*13);
v_leanOptions_14439_ = lean_ctor_get(v_toLeanConfig_14410_, 0);
lean_inc_ref(v_leanOptions_14439_);
v_dynlibs_14440_ = lean_ctor_get(v_toLeanConfig_14410_, 11);
v_plugins_14441_ = lean_ctor_get(v_toLeanConfig_14410_, 12);
v_buildType_14442_ = lean_ctor_get_uint8(v_toLeanConfig_14413_, sizeof(void*)*13);
v_leanOptions_14443_ = lean_ctor_get(v_toLeanConfig_14413_, 0);
lean_inc_ref(v_leanOptions_14443_);
v_dynlibs_14444_ = lean_ctor_get(v_toLeanConfig_14413_, 11);
lean_inc_ref(v_dynlibs_14444_);
v_plugins_14445_ = lean_ctor_get(v_toLeanConfig_14413_, 12);
lean_inc_ref(v_plugins_14445_);
lean_dec_ref(v_toLeanConfig_14413_);
lean_inc_ref(v_dynlibs_14440_);
v___x_14446_ = l_Array_append___redArg(v_dynlibs_14440_, v_dynlibs_14444_);
lean_dec_ref(v_dynlibs_14444_);
v___x_14447_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__0));
lean_inc_ref(v___y_14434_);
lean_inc(v___y_14431_);
lean_inc(v___y_14435_);
lean_inc(v___y_14430_);
lean_inc_ref(v___y_14432_);
lean_inc_ref(v_pkg_14388_);
v___x_14448_ = l_Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0(v_pkg_14388_, v___x_14446_, v___x_14447_, v___y_14432_, v___y_14430_, v___y_14435_, v___y_14431_, v___y_14434_, v_a_14437_);
if (lean_obj_tag(v___x_14448_) == 0)
{
lean_object* v_a_14449_; lean_object* v_a_14450_; lean_object* v___x_14451_; lean_object* v___x_14452_; lean_object* v___x_14453_; 
v_a_14449_ = lean_ctor_get(v___x_14448_, 0);
lean_inc(v_a_14449_);
v_a_14450_ = lean_ctor_get(v___x_14448_, 1);
lean_inc(v_a_14450_);
lean_dec_ref(v___x_14448_);
lean_inc_ref(v_plugins_14441_);
v___x_14451_ = l_Array_append___redArg(v_plugins_14441_, v_plugins_14445_);
lean_dec_ref(v_plugins_14445_);
v___x_14452_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__1));
lean_inc_ref(v___y_14434_);
lean_inc(v___y_14431_);
lean_inc(v___y_14435_);
lean_inc(v___y_14430_);
lean_inc_ref(v___y_14432_);
lean_inc_ref(v_pkg_14388_);
v___x_14453_ = l_Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0(v_pkg_14388_, v___x_14451_, v___x_14452_, v___y_14432_, v___y_14430_, v___y_14435_, v___y_14431_, v___y_14434_, v_a_14450_);
if (lean_obj_tag(v___x_14453_) == 0)
{
lean_object* v_a_14454_; lean_object* v_a_14455_; lean_object* v___x_14457_; uint8_t v_isShared_14458_; uint8_t v_isSharedCheck_14475_; 
v_a_14454_ = lean_ctor_get(v___x_14453_, 0);
v_a_14455_ = lean_ctor_get(v___x_14453_, 1);
v_isSharedCheck_14475_ = !lean_is_exclusive(v___x_14453_);
if (v_isSharedCheck_14475_ == 0)
{
v___x_14457_ = v___x_14453_;
v_isShared_14458_ = v_isSharedCheck_14475_;
goto v_resetjp_14456_;
}
else
{
lean_inc(v_a_14455_);
lean_inc(v_a_14454_);
lean_dec(v___x_14453_);
v___x_14457_ = lean_box(0);
v_isShared_14458_ = v_isSharedCheck_14475_;
goto v_resetjp_14456_;
}
v_resetjp_14456_:
{
lean_object* v___x_14459_; lean_object* v___x_14460_; lean_object* v___x_14461_; lean_object* v___x_14462_; lean_object* v___x_14463_; lean_object* v___x_14464_; lean_object* v___x_14465_; lean_object* v___f_14466_; lean_object* v___x_14467_; lean_object* v___f_14468_; lean_object* v___x_14469_; lean_object* v___x_14470_; lean_object* v___x_14471_; lean_object* v___x_14473_; 
v___x_14459_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__2));
v___x_14460_ = l_Lake_Job_collectArray___redArg(v_a_14436_, v___x_14459_);
lean_dec_ref(v_a_14436_);
v___x_14461_ = lean_box(v_isModule_14404_);
v___x_14462_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_setupEditedModule___boxed__const__1));
v___x_14463_ = lean_box(v_buildType_14438_);
v___x_14464_ = lean_box(v_buildType_14442_);
v___x_14465_ = lean_box(v___y_14429_);
v___f_14466_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_setupEditedModule___lam__4___boxed), 23, 15);
lean_closure_set(v___f_14466_, 0, v_leanOptions_14439_);
lean_closure_set(v___f_14466_, 1, v_leanOptions_14443_);
lean_closure_set(v___f_14466_, 2, v_name_14389_);
lean_closure_set(v___f_14466_, 3, v___x_14461_);
lean_closure_set(v___f_14466_, 4, v_a_14408_);
lean_closure_set(v___f_14466_, 5, v_pkg_14388_);
lean_closure_set(v___f_14466_, 6, v___x_14462_);
lean_closure_set(v___f_14466_, 7, v___x_14463_);
lean_closure_set(v___f_14466_, 8, v___x_14464_);
lean_closure_set(v___f_14466_, 9, v___x_14465_);
lean_closure_set(v___f_14466_, 10, v___x_14426_);
lean_closure_set(v___f_14466_, 11, v_a_14454_);
lean_closure_set(v___f_14466_, 12, v_a_14449_);
lean_closure_set(v___f_14466_, 13, v___x_14460_);
lean_closure_set(v___f_14466_, 14, v___y_14428_);
v___x_14467_ = lean_box(v___y_14429_);
v___f_14468_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__5___boxed), 12, 4);
lean_closure_set(v___f_14468_, 0, v___x_14426_);
lean_closure_set(v___f_14468_, 1, v_a_14424_);
lean_closure_set(v___f_14468_, 2, v___f_14466_);
lean_closure_set(v___f_14468_, 3, v___x_14467_);
v___x_14469_ = lean_unsigned_to_nat(0u);
v___x_14470_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_14471_ = l_Lake_Job_bindM___redArg(v___x_14426_, v_a_14401_, v___f_14468_, v___x_14469_, v___y_14433_, v___y_14432_, v___y_14430_, v___y_14435_, v___y_14431_, v___y_14434_, v___x_14470_);
if (v_isShared_14458_ == 0)
{
lean_ctor_set(v___x_14457_, 0, v___x_14471_);
v___x_14473_ = v___x_14457_;
goto v_reusejp_14472_;
}
else
{
lean_object* v_reuseFailAlloc_14474_; 
v_reuseFailAlloc_14474_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_14474_, 0, v___x_14471_);
lean_ctor_set(v_reuseFailAlloc_14474_, 1, v_a_14455_);
v___x_14473_ = v_reuseFailAlloc_14474_;
goto v_reusejp_14472_;
}
v_reusejp_14472_:
{
return v___x_14473_;
}
}
}
else
{
lean_object* v_a_14476_; lean_object* v_a_14477_; lean_object* v___x_14479_; uint8_t v_isShared_14480_; uint8_t v_isSharedCheck_14484_; 
lean_dec(v_a_14449_);
lean_dec_ref(v_leanOptions_14443_);
lean_dec_ref(v_leanOptions_14439_);
lean_dec_ref(v_a_14436_);
lean_dec(v___y_14435_);
lean_dec_ref(v___y_14434_);
lean_dec_ref(v___y_14432_);
lean_dec(v___y_14431_);
lean_dec(v___y_14430_);
lean_dec_ref(v___y_14428_);
lean_dec(v_a_14424_);
lean_dec(v_a_14408_);
lean_dec(v_a_14401_);
lean_dec(v_name_14389_);
lean_dec_ref(v_pkg_14388_);
v_a_14476_ = lean_ctor_get(v___x_14453_, 0);
v_a_14477_ = lean_ctor_get(v___x_14453_, 1);
v_isSharedCheck_14484_ = !lean_is_exclusive(v___x_14453_);
if (v_isSharedCheck_14484_ == 0)
{
v___x_14479_ = v___x_14453_;
v_isShared_14480_ = v_isSharedCheck_14484_;
goto v_resetjp_14478_;
}
else
{
lean_inc(v_a_14477_);
lean_inc(v_a_14476_);
lean_dec(v___x_14453_);
v___x_14479_ = lean_box(0);
v_isShared_14480_ = v_isSharedCheck_14484_;
goto v_resetjp_14478_;
}
v_resetjp_14478_:
{
lean_object* v___x_14482_; 
if (v_isShared_14480_ == 0)
{
v___x_14482_ = v___x_14479_;
goto v_reusejp_14481_;
}
else
{
lean_object* v_reuseFailAlloc_14483_; 
v_reuseFailAlloc_14483_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_14483_, 0, v_a_14476_);
lean_ctor_set(v_reuseFailAlloc_14483_, 1, v_a_14477_);
v___x_14482_ = v_reuseFailAlloc_14483_;
goto v_reusejp_14481_;
}
v_reusejp_14481_:
{
return v___x_14482_;
}
}
}
}
else
{
lean_object* v_a_14485_; lean_object* v_a_14486_; lean_object* v___x_14488_; uint8_t v_isShared_14489_; uint8_t v_isSharedCheck_14493_; 
lean_dec_ref(v_plugins_14445_);
lean_dec_ref(v_leanOptions_14443_);
lean_dec_ref(v_leanOptions_14439_);
lean_dec_ref(v_a_14436_);
lean_dec(v___y_14435_);
lean_dec_ref(v___y_14434_);
lean_dec_ref(v___y_14432_);
lean_dec(v___y_14431_);
lean_dec(v___y_14430_);
lean_dec_ref(v___y_14428_);
lean_dec(v_a_14424_);
lean_dec(v_a_14408_);
lean_dec(v_a_14401_);
lean_dec(v_name_14389_);
lean_dec_ref(v_pkg_14388_);
v_a_14485_ = lean_ctor_get(v___x_14448_, 0);
v_a_14486_ = lean_ctor_get(v___x_14448_, 1);
v_isSharedCheck_14493_ = !lean_is_exclusive(v___x_14448_);
if (v_isSharedCheck_14493_ == 0)
{
v___x_14488_ = v___x_14448_;
v_isShared_14489_ = v_isSharedCheck_14493_;
goto v_resetjp_14487_;
}
else
{
lean_inc(v_a_14486_);
lean_inc(v_a_14485_);
lean_dec(v___x_14448_);
v___x_14488_ = lean_box(0);
v_isShared_14489_ = v_isSharedCheck_14493_;
goto v_resetjp_14487_;
}
v_resetjp_14487_:
{
lean_object* v___x_14491_; 
if (v_isShared_14489_ == 0)
{
v___x_14491_ = v___x_14488_;
goto v_reusejp_14490_;
}
else
{
lean_object* v_reuseFailAlloc_14492_; 
v_reuseFailAlloc_14492_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_14492_, 0, v_a_14485_);
lean_ctor_set(v_reuseFailAlloc_14492_, 1, v_a_14486_);
v___x_14491_ = v_reuseFailAlloc_14492_;
goto v_reusejp_14490_;
}
v_reusejp_14490_:
{
return v___x_14491_;
}
}
}
}
v___jp_14494_:
{
if (lean_obj_tag(v___y_14503_) == 0)
{
lean_object* v_a_14504_; lean_object* v_a_14505_; 
v_a_14504_ = lean_ctor_get(v___y_14503_, 0);
lean_inc(v_a_14504_);
v_a_14505_ = lean_ctor_get(v___y_14503_, 1);
lean_inc(v_a_14505_);
lean_dec_ref(v___y_14503_);
v___y_14428_ = v___y_14496_;
v___y_14429_ = v___y_14495_;
v___y_14430_ = v___y_14497_;
v___y_14431_ = v___y_14498_;
v___y_14432_ = v___y_14499_;
v___y_14433_ = v___y_14500_;
v___y_14434_ = v___y_14502_;
v___y_14435_ = v___y_14501_;
v_a_14436_ = v_a_14504_;
v_a_14437_ = v_a_14505_;
goto v___jp_14427_;
}
else
{
lean_object* v_a_14506_; lean_object* v_a_14507_; lean_object* v___x_14509_; uint8_t v_isShared_14510_; uint8_t v_isSharedCheck_14514_; 
lean_dec_ref(v___y_14502_);
lean_dec(v___y_14501_);
lean_dec_ref(v___y_14499_);
lean_dec(v___y_14498_);
lean_dec(v___y_14497_);
lean_dec_ref(v___y_14496_);
lean_dec(v_a_14424_);
lean_dec_ref(v_toLeanConfig_14413_);
lean_dec(v_a_14408_);
lean_dec(v_a_14401_);
lean_dec(v_name_14389_);
lean_dec_ref(v_pkg_14388_);
v_a_14506_ = lean_ctor_get(v___y_14503_, 0);
v_a_14507_ = lean_ctor_get(v___y_14503_, 1);
v_isSharedCheck_14514_ = !lean_is_exclusive(v___y_14503_);
if (v_isSharedCheck_14514_ == 0)
{
v___x_14509_ = v___y_14503_;
v_isShared_14510_ = v_isSharedCheck_14514_;
goto v_resetjp_14508_;
}
else
{
lean_inc(v_a_14507_);
lean_inc(v_a_14506_);
lean_dec(v___y_14503_);
v___x_14509_ = lean_box(0);
v_isShared_14510_ = v_isSharedCheck_14514_;
goto v_resetjp_14508_;
}
v_resetjp_14508_:
{
lean_object* v___x_14512_; 
if (v_isShared_14510_ == 0)
{
v___x_14512_ = v___x_14509_;
goto v_reusejp_14511_;
}
else
{
lean_object* v_reuseFailAlloc_14513_; 
v_reuseFailAlloc_14513_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_14513_, 0, v_a_14506_);
lean_ctor_set(v_reuseFailAlloc_14513_, 1, v_a_14507_);
v___x_14512_ = v_reuseFailAlloc_14513_;
goto v_reusejp_14511_;
}
v_reusejp_14511_:
{
return v___x_14512_;
}
}
}
}
v___jp_14515_:
{
lean_object* v___x_14524_; 
lean_inc_ref(v___y_14521_);
lean_inc(v___y_14518_);
lean_inc(v___y_14522_);
lean_inc(v___y_14517_);
lean_inc_ref(v___y_14519_);
v___x_14524_ = l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs(v_mod_14378_, v___y_14516_, v___y_14523_, v___y_14519_, v___y_14517_, v___y_14522_, v___y_14518_, v___y_14521_, v___y_14520_);
lean_dec_ref(v___y_14516_);
lean_dec_ref(v_mod_14378_);
if (lean_obj_tag(v___x_14524_) == 0)
{
lean_object* v_a_14525_; lean_object* v_a_14526_; lean_object* v___x_14527_; lean_object* v___x_14528_; uint8_t v___x_14529_; 
v_a_14525_ = lean_ctor_get(v___x_14524_, 0);
lean_inc(v_a_14525_);
v_a_14526_ = lean_ctor_get(v___x_14524_, 1);
lean_inc(v_a_14526_);
lean_dec_ref(v___x_14524_);
v___x_14527_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_fetchImportLibs___closed__0));
v___x_14528_ = l_Lake_Job_collectArray___redArg(v_a_14525_, v___x_14527_);
lean_dec(v_a_14525_);
v___x_14529_ = 1;
if (v___y_14523_ == 0)
{
lean_object* v___x_14530_; 
v___x_14530_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___closed__0));
v___y_14428_ = v___x_14528_;
v___y_14429_ = v___x_14529_;
v___y_14430_ = v___y_14517_;
v___y_14431_ = v___y_14518_;
v___y_14432_ = v___y_14519_;
v___y_14433_ = v___x_14529_;
v___y_14434_ = v___y_14521_;
v___y_14435_ = v___y_14522_;
v_a_14436_ = v___x_14530_;
v_a_14437_ = v_a_14526_;
goto v___jp_14427_;
}
else
{
lean_object* v___x_14531_; lean_object* v___x_14532_; lean_object* v___x_14533_; uint8_t v___x_14534_; 
v___x_14531_ = lean_unsigned_to_nat(0u);
v___x_14532_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__3));
v___x_14533_ = lean_array_get_size(v_targetDecls_14395_);
v___x_14534_ = lean_nat_dec_lt(v___x_14531_, v___x_14533_);
if (v___x_14534_ == 0)
{
size_t v_sz_14535_; lean_object* v___x_14536_; 
v_sz_14535_ = lean_usize_once(&l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__4, &l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__4_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__4);
lean_inc_ref(v___y_14521_);
lean_inc(v___y_14518_);
lean_inc(v___y_14522_);
lean_inc(v___y_14517_);
lean_inc_ref(v___y_14519_);
v___x_14536_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__2(v_sz_14535_, v___x_14406_, v___x_14532_, v___y_14519_, v___y_14517_, v___y_14522_, v___y_14518_, v___y_14521_, v_a_14526_);
v___y_14495_ = v___x_14529_;
v___y_14496_ = v___x_14528_;
v___y_14497_ = v___y_14517_;
v___y_14498_ = v___y_14518_;
v___y_14499_ = v___y_14519_;
v___y_14500_ = v___x_14529_;
v___y_14501_ = v___y_14522_;
v___y_14502_ = v___y_14521_;
v___y_14503_ = v___x_14536_;
goto v___jp_14494_;
}
else
{
uint8_t v___x_14537_; 
v___x_14537_ = lean_nat_dec_le(v___x_14533_, v___x_14533_);
if (v___x_14537_ == 0)
{
if (v___x_14534_ == 0)
{
size_t v_sz_14538_; lean_object* v___x_14539_; 
v_sz_14538_ = lean_usize_once(&l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__4, &l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__4_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__4);
lean_inc_ref(v___y_14521_);
lean_inc(v___y_14518_);
lean_inc(v___y_14522_);
lean_inc(v___y_14517_);
lean_inc_ref(v___y_14519_);
v___x_14539_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__2(v_sz_14538_, v___x_14406_, v___x_14532_, v___y_14519_, v___y_14517_, v___y_14522_, v___y_14518_, v___y_14521_, v_a_14526_);
v___y_14495_ = v___x_14529_;
v___y_14496_ = v___x_14528_;
v___y_14497_ = v___y_14517_;
v___y_14498_ = v___y_14518_;
v___y_14499_ = v___y_14519_;
v___y_14500_ = v___x_14529_;
v___y_14501_ = v___y_14522_;
v___y_14502_ = v___y_14521_;
v___y_14503_ = v___x_14539_;
goto v___jp_14494_;
}
else
{
size_t v___x_14540_; lean_object* v___x_14541_; size_t v_sz_14542_; lean_object* v___x_14543_; 
v___x_14540_ = lean_usize_of_nat(v___x_14533_);
lean_inc_ref(v_pkg_14388_);
v___x_14541_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__3(v_pkg_14388_, v_targetDecls_14395_, v___x_14406_, v___x_14540_, v___x_14532_);
v_sz_14542_ = lean_array_size(v___x_14541_);
lean_inc_ref(v___y_14521_);
lean_inc(v___y_14518_);
lean_inc(v___y_14522_);
lean_inc(v___y_14517_);
lean_inc_ref(v___y_14519_);
v___x_14543_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__2(v_sz_14542_, v___x_14406_, v___x_14541_, v___y_14519_, v___y_14517_, v___y_14522_, v___y_14518_, v___y_14521_, v_a_14526_);
v___y_14495_ = v___x_14529_;
v___y_14496_ = v___x_14528_;
v___y_14497_ = v___y_14517_;
v___y_14498_ = v___y_14518_;
v___y_14499_ = v___y_14519_;
v___y_14500_ = v___x_14529_;
v___y_14501_ = v___y_14522_;
v___y_14502_ = v___y_14521_;
v___y_14503_ = v___x_14543_;
goto v___jp_14494_;
}
}
else
{
size_t v___x_14544_; lean_object* v___x_14545_; size_t v_sz_14546_; lean_object* v___x_14547_; 
v___x_14544_ = lean_usize_of_nat(v___x_14533_);
lean_inc_ref(v_pkg_14388_);
v___x_14545_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__3(v_pkg_14388_, v_targetDecls_14395_, v___x_14406_, v___x_14544_, v___x_14532_);
v_sz_14546_ = lean_array_size(v___x_14545_);
lean_inc_ref(v___y_14521_);
lean_inc(v___y_14518_);
lean_inc(v___y_14522_);
lean_inc(v___y_14517_);
lean_inc_ref(v___y_14519_);
v___x_14547_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__2(v_sz_14546_, v___x_14406_, v___x_14545_, v___y_14519_, v___y_14517_, v___y_14522_, v___y_14518_, v___y_14521_, v_a_14526_);
v___y_14495_ = v___x_14529_;
v___y_14496_ = v___x_14528_;
v___y_14497_ = v___y_14517_;
v___y_14498_ = v___y_14518_;
v___y_14499_ = v___y_14519_;
v___y_14500_ = v___x_14529_;
v___y_14501_ = v___y_14522_;
v___y_14502_ = v___y_14521_;
v___y_14503_ = v___x_14547_;
goto v___jp_14494_;
}
}
}
}
else
{
lean_object* v_a_14548_; lean_object* v_a_14549_; lean_object* v___x_14551_; uint8_t v_isShared_14552_; uint8_t v_isSharedCheck_14556_; 
lean_dec(v___y_14522_);
lean_dec_ref(v___y_14521_);
lean_dec_ref(v___y_14519_);
lean_dec(v___y_14518_);
lean_dec(v___y_14517_);
lean_dec(v_a_14424_);
lean_dec_ref(v_toLeanConfig_14413_);
lean_dec(v_a_14408_);
lean_dec(v_a_14401_);
lean_dec(v_name_14389_);
lean_dec_ref(v_pkg_14388_);
v_a_14548_ = lean_ctor_get(v___x_14524_, 0);
v_a_14549_ = lean_ctor_get(v___x_14524_, 1);
v_isSharedCheck_14556_ = !lean_is_exclusive(v___x_14524_);
if (v_isSharedCheck_14556_ == 0)
{
v___x_14551_ = v___x_14524_;
v_isShared_14552_ = v_isSharedCheck_14556_;
goto v_resetjp_14550_;
}
else
{
lean_inc(v_a_14549_);
lean_inc(v_a_14548_);
lean_dec(v___x_14524_);
v___x_14551_ = lean_box(0);
v_isShared_14552_ = v_isSharedCheck_14556_;
goto v_resetjp_14550_;
}
v_resetjp_14550_:
{
lean_object* v___x_14554_; 
if (v_isShared_14552_ == 0)
{
v___x_14554_ = v___x_14551_;
goto v_reusejp_14553_;
}
else
{
lean_object* v_reuseFailAlloc_14555_; 
v_reuseFailAlloc_14555_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_14555_, 0, v_a_14548_);
lean_ctor_set(v_reuseFailAlloc_14555_, 1, v_a_14549_);
v___x_14554_ = v_reuseFailAlloc_14555_;
goto v_reusejp_14553_;
}
v_reusejp_14553_:
{
return v___x_14554_;
}
}
}
}
v___jp_14557_:
{
if (v_precompileModules_14411_ == 0)
{
v___y_14516_ = v_precompileImports_14558_;
v___y_14517_ = v___y_14560_;
v___y_14518_ = v___y_14562_;
v___y_14519_ = v___y_14559_;
v___y_14520_ = v___y_14564_;
v___y_14521_ = v___y_14563_;
v___y_14522_ = v___y_14561_;
v___y_14523_ = v_precompileModules_14415_;
goto v___jp_14515_;
}
else
{
v___y_14516_ = v_precompileImports_14558_;
v___y_14517_ = v___y_14560_;
v___y_14518_ = v___y_14562_;
v___y_14519_ = v___y_14559_;
v___y_14520_ = v___y_14564_;
v___y_14521_ = v___y_14563_;
v___y_14522_ = v___y_14561_;
v___y_14523_ = v_precompileModules_14411_;
goto v___jp_14515_;
}
}
v___jp_14568_:
{
lean_object* v___x_14569_; 
lean_inc_ref(v_a_14384_);
lean_inc(v_a_14383_);
lean_inc(v_a_14382_);
lean_inc(v_a_14381_);
lean_inc_ref(v_a_14380_);
v___x_14569_ = l___private_Lake_Build_Module_0__Lake_computeTransImportsAux(v___x_14422_, v___x_14567_, v_a_14380_, v_a_14381_, v_a_14382_, v_a_14383_, v_a_14384_, v_a_14425_);
if (lean_obj_tag(v___x_14569_) == 0)
{
lean_object* v_a_14570_; lean_object* v_a_14571_; lean_object* v___x_14572_; 
v_a_14570_ = lean_ctor_get(v___x_14569_, 0);
lean_inc(v_a_14570_);
v_a_14571_ = lean_ctor_get(v___x_14569_, 1);
lean_inc(v_a_14571_);
lean_dec_ref(v___x_14569_);
v___x_14572_ = l_Lake_Job_await___redArg(v_a_14570_, v_a_14571_);
if (lean_obj_tag(v___x_14572_) == 0)
{
lean_object* v_a_14573_; lean_object* v_a_14574_; 
v_a_14573_ = lean_ctor_get(v___x_14572_, 0);
lean_inc(v_a_14573_);
v_a_14574_ = lean_ctor_get(v___x_14572_, 1);
lean_inc(v_a_14574_);
lean_dec_ref(v___x_14572_);
v_precompileImports_14558_ = v_a_14573_;
v___y_14559_ = v_a_14380_;
v___y_14560_ = v_a_14381_;
v___y_14561_ = v_a_14382_;
v___y_14562_ = v_a_14383_;
v___y_14563_ = v_a_14384_;
v___y_14564_ = v_a_14574_;
goto v___jp_14557_;
}
else
{
lean_object* v_a_14575_; lean_object* v_a_14576_; lean_object* v___x_14578_; uint8_t v_isShared_14579_; uint8_t v_isSharedCheck_14583_; 
lean_dec(v_a_14424_);
lean_dec_ref(v_toLeanConfig_14413_);
lean_dec(v_a_14408_);
lean_dec(v_a_14401_);
lean_dec(v_name_14389_);
lean_dec_ref(v_pkg_14388_);
lean_dec_ref(v_a_14384_);
lean_dec(v_a_14383_);
lean_dec(v_a_14382_);
lean_dec(v_a_14381_);
lean_dec_ref(v_a_14380_);
lean_dec_ref(v_mod_14378_);
v_a_14575_ = lean_ctor_get(v___x_14572_, 0);
v_a_14576_ = lean_ctor_get(v___x_14572_, 1);
v_isSharedCheck_14583_ = !lean_is_exclusive(v___x_14572_);
if (v_isSharedCheck_14583_ == 0)
{
v___x_14578_ = v___x_14572_;
v_isShared_14579_ = v_isSharedCheck_14583_;
goto v_resetjp_14577_;
}
else
{
lean_inc(v_a_14576_);
lean_inc(v_a_14575_);
lean_dec(v___x_14572_);
v___x_14578_ = lean_box(0);
v_isShared_14579_ = v_isSharedCheck_14583_;
goto v_resetjp_14577_;
}
v_resetjp_14577_:
{
lean_object* v___x_14581_; 
if (v_isShared_14579_ == 0)
{
v___x_14581_ = v___x_14578_;
goto v_reusejp_14580_;
}
else
{
lean_object* v_reuseFailAlloc_14582_; 
v_reuseFailAlloc_14582_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_14582_, 0, v_a_14575_);
lean_ctor_set(v_reuseFailAlloc_14582_, 1, v_a_14576_);
v___x_14581_ = v_reuseFailAlloc_14582_;
goto v_reusejp_14580_;
}
v_reusejp_14580_:
{
return v___x_14581_;
}
}
}
}
else
{
lean_object* v_a_14584_; lean_object* v_a_14585_; lean_object* v___x_14587_; uint8_t v_isShared_14588_; uint8_t v_isSharedCheck_14592_; 
lean_dec(v_a_14424_);
lean_dec_ref(v_toLeanConfig_14413_);
lean_dec(v_a_14408_);
lean_dec(v_a_14401_);
lean_dec(v_name_14389_);
lean_dec_ref(v_pkg_14388_);
lean_dec_ref(v_a_14384_);
lean_dec(v_a_14383_);
lean_dec(v_a_14382_);
lean_dec(v_a_14381_);
lean_dec_ref(v_a_14380_);
lean_dec_ref(v_mod_14378_);
v_a_14584_ = lean_ctor_get(v___x_14569_, 0);
v_a_14585_ = lean_ctor_get(v___x_14569_, 1);
v_isSharedCheck_14592_ = !lean_is_exclusive(v___x_14569_);
if (v_isSharedCheck_14592_ == 0)
{
v___x_14587_ = v___x_14569_;
v_isShared_14588_ = v_isSharedCheck_14592_;
goto v_resetjp_14586_;
}
else
{
lean_inc(v_a_14585_);
lean_inc(v_a_14584_);
lean_dec(v___x_14569_);
v___x_14587_ = lean_box(0);
v_isShared_14588_ = v_isSharedCheck_14592_;
goto v_resetjp_14586_;
}
v_resetjp_14586_:
{
lean_object* v___x_14590_; 
if (v_isShared_14588_ == 0)
{
v___x_14590_ = v___x_14587_;
goto v_reusejp_14589_;
}
else
{
lean_object* v_reuseFailAlloc_14591_; 
v_reuseFailAlloc_14591_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_14591_, 0, v_a_14584_);
lean_ctor_set(v_reuseFailAlloc_14591_, 1, v_a_14585_);
v___x_14590_ = v_reuseFailAlloc_14591_;
goto v_reusejp_14589_;
}
v_reusejp_14589_:
{
return v___x_14590_;
}
}
}
}
}
else
{
lean_object* v_a_14617_; lean_object* v_a_14618_; lean_object* v___x_14620_; uint8_t v_isShared_14621_; uint8_t v_isSharedCheck_14625_; 
lean_dec_ref(v___x_14422_);
lean_dec_ref(v_toLeanConfig_14413_);
lean_dec(v_a_14408_);
lean_dec(v_a_14401_);
lean_dec(v_name_14389_);
lean_dec_ref(v_pkg_14388_);
lean_dec_ref(v_a_14384_);
lean_dec(v_a_14383_);
lean_dec(v_a_14382_);
lean_dec(v_a_14381_);
lean_dec_ref(v_a_14380_);
lean_dec_ref(v_mod_14378_);
v_a_14617_ = lean_ctor_get(v___x_14423_, 0);
v_a_14618_ = lean_ctor_get(v___x_14423_, 1);
v_isSharedCheck_14625_ = !lean_is_exclusive(v___x_14423_);
if (v_isSharedCheck_14625_ == 0)
{
v___x_14620_ = v___x_14423_;
v_isShared_14621_ = v_isSharedCheck_14625_;
goto v_resetjp_14619_;
}
else
{
lean_inc(v_a_14618_);
lean_inc(v_a_14617_);
lean_dec(v___x_14423_);
v___x_14620_ = lean_box(0);
v_isShared_14621_ = v_isSharedCheck_14625_;
goto v_resetjp_14619_;
}
v_resetjp_14619_:
{
lean_object* v___x_14623_; 
if (v_isShared_14621_ == 0)
{
v___x_14623_ = v___x_14620_;
goto v_reusejp_14622_;
}
else
{
lean_object* v_reuseFailAlloc_14624_; 
v_reuseFailAlloc_14624_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_14624_, 0, v_a_14617_);
lean_ctor_set(v_reuseFailAlloc_14624_, 1, v_a_14618_);
v___x_14623_ = v_reuseFailAlloc_14624_;
goto v_reusejp_14622_;
}
v_reusejp_14622_:
{
return v___x_14623_;
}
}
}
}
else
{
lean_object* v_a_14626_; lean_object* v_a_14627_; lean_object* v___x_14629_; uint8_t v_isShared_14630_; uint8_t v_isSharedCheck_14634_; 
lean_dec(v_a_14401_);
lean_dec(v_name_14389_);
lean_dec_ref(v_pkg_14388_);
lean_dec_ref(v_a_14384_);
lean_dec(v_a_14383_);
lean_dec(v_a_14382_);
lean_dec(v_a_14381_);
lean_dec_ref(v_a_14380_);
lean_dec_ref(v_header_14379_);
lean_dec_ref(v_mod_14378_);
v_a_14626_ = lean_ctor_get(v___x_14407_, 0);
v_a_14627_ = lean_ctor_get(v___x_14407_, 1);
v_isSharedCheck_14634_ = !lean_is_exclusive(v___x_14407_);
if (v_isSharedCheck_14634_ == 0)
{
v___x_14629_ = v___x_14407_;
v_isShared_14630_ = v_isSharedCheck_14634_;
goto v_resetjp_14628_;
}
else
{
lean_inc(v_a_14627_);
lean_inc(v_a_14626_);
lean_dec(v___x_14407_);
v___x_14629_ = lean_box(0);
v_isShared_14630_ = v_isSharedCheck_14634_;
goto v_resetjp_14628_;
}
v_resetjp_14628_:
{
lean_object* v___x_14632_; 
if (v_isShared_14630_ == 0)
{
v___x_14632_ = v___x_14629_;
goto v_reusejp_14631_;
}
else
{
lean_object* v_reuseFailAlloc_14633_; 
v_reuseFailAlloc_14633_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_14633_, 0, v_a_14626_);
lean_ctor_set(v_reuseFailAlloc_14633_, 1, v_a_14627_);
v___x_14632_ = v_reuseFailAlloc_14633_;
goto v_reusejp_14631_;
}
v_reusejp_14631_:
{
return v___x_14632_;
}
}
}
}
else
{
lean_object* v_a_14635_; lean_object* v_a_14636_; lean_object* v___x_14638_; uint8_t v_isShared_14639_; uint8_t v_isSharedCheck_14643_; 
lean_dec(v_name_14389_);
lean_dec_ref(v_pkg_14388_);
lean_dec_ref(v_a_14384_);
lean_dec(v_a_14383_);
lean_dec(v_a_14382_);
lean_dec(v_a_14381_);
lean_dec_ref(v_a_14380_);
lean_dec_ref(v_header_14379_);
lean_dec_ref(v_mod_14378_);
v_a_14635_ = lean_ctor_get(v___x_14400_, 0);
v_a_14636_ = lean_ctor_get(v___x_14400_, 1);
v_isSharedCheck_14643_ = !lean_is_exclusive(v___x_14400_);
if (v_isSharedCheck_14643_ == 0)
{
v___x_14638_ = v___x_14400_;
v_isShared_14639_ = v_isSharedCheck_14643_;
goto v_resetjp_14637_;
}
else
{
lean_inc(v_a_14636_);
lean_inc(v_a_14635_);
lean_dec(v___x_14400_);
v___x_14638_ = lean_box(0);
v_isShared_14639_ = v_isSharedCheck_14643_;
goto v_resetjp_14637_;
}
v_resetjp_14637_:
{
lean_object* v___x_14641_; 
if (v_isShared_14639_ == 0)
{
v___x_14641_ = v___x_14638_;
goto v_reusejp_14640_;
}
else
{
lean_object* v_reuseFailAlloc_14642_; 
v_reuseFailAlloc_14642_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_14642_, 0, v_a_14635_);
lean_ctor_set(v_reuseFailAlloc_14642_, 1, v_a_14636_);
v___x_14641_ = v_reuseFailAlloc_14642_;
goto v_reusejp_14640_;
}
v_reusejp_14640_:
{
return v___x_14641_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule___boxed(lean_object* v_mod_14644_, lean_object* v_header_14645_, lean_object* v_a_14646_, lean_object* v_a_14647_, lean_object* v_a_14648_, lean_object* v_a_14649_, lean_object* v_a_14650_, lean_object* v_a_14651_, lean_object* v_a_14652_){
_start:
{
lean_object* v_res_14653_; 
v_res_14653_ = l___private_Lake_Build_Module_0__Lake_setupEditedModule(v_mod_14644_, v_header_14645_, v_a_14646_, v_a_14647_, v_a_14648_, v_a_14649_, v_a_14650_, v_a_14651_);
return v_res_14653_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__0(size_t v_sz_14654_, size_t v_i_14655_, lean_object* v_bs_14656_, lean_object* v___y_14657_, lean_object* v___y_14658_, lean_object* v___y_14659_, lean_object* v___y_14660_, lean_object* v___y_14661_, lean_object* v___y_14662_){
_start:
{
lean_object* v___x_14664_; 
v___x_14664_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__0___redArg(v_sz_14654_, v_i_14655_, v_bs_14656_, v___y_14661_, v___y_14662_);
return v___x_14664_;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__0___boxed(lean_object* v_sz_14665_, lean_object* v_i_14666_, lean_object* v_bs_14667_, lean_object* v___y_14668_, lean_object* v___y_14669_, lean_object* v___y_14670_, lean_object* v___y_14671_, lean_object* v___y_14672_, lean_object* v___y_14673_, lean_object* v___y_14674_){
_start:
{
size_t v_sz_boxed_14675_; size_t v_i_boxed_14676_; lean_object* v_res_14677_; 
v_sz_boxed_14675_ = lean_unbox_usize(v_sz_14665_);
lean_dec(v_sz_14665_);
v_i_boxed_14676_ = lean_unbox_usize(v_i_14666_);
lean_dec(v_i_14666_);
v_res_14677_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__0(v_sz_boxed_14675_, v_i_boxed_14676_, v_bs_14667_, v___y_14668_, v___y_14669_, v___y_14670_, v___y_14671_, v___y_14672_, v___y_14673_);
lean_dec_ref(v___y_14672_);
lean_dec(v___y_14671_);
lean_dec(v___y_14670_);
lean_dec(v___y_14669_);
lean_dec_ref(v___y_14668_);
return v_res_14677_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__0(lean_object* v_impLibs_14681_, lean_object* v_dynlibs_14682_, lean_object* v_plugins_14683_, lean_object* v_info_14684_, lean_object* v_a_14685_, size_t v___x_14686_, uint8_t v_isModule_14687_, lean_object* v_leanOpts_14688_, uint8_t v___x_14689_, lean_object* v_externLibs_14690_, lean_object* v___y_14691_, lean_object* v___y_14692_, lean_object* v___y_14693_, lean_object* v___y_14694_, lean_object* v___y_14695_, lean_object* v___y_14696_){
_start:
{
lean_object* v_log_14698_; uint8_t v_action_14699_; uint8_t v_wantsRebuild_14700_; lean_object* v_trace_14701_; lean_object* v_buildTime_14702_; lean_object* v___x_14704_; uint8_t v_isShared_14705_; uint8_t v_isSharedCheck_14759_; 
v_log_14698_ = lean_ctor_get(v___y_14696_, 0);
v_action_14699_ = lean_ctor_get_uint8(v___y_14696_, sizeof(void*)*3);
v_wantsRebuild_14700_ = lean_ctor_get_uint8(v___y_14696_, sizeof(void*)*3 + 1);
v_trace_14701_ = lean_ctor_get(v___y_14696_, 1);
v_buildTime_14702_ = lean_ctor_get(v___y_14696_, 2);
v_isSharedCheck_14759_ = !lean_is_exclusive(v___y_14696_);
if (v_isSharedCheck_14759_ == 0)
{
v___x_14704_ = v___y_14696_;
v_isShared_14705_ = v_isSharedCheck_14759_;
goto v_resetjp_14703_;
}
else
{
lean_inc(v_buildTime_14702_);
lean_inc(v_trace_14701_);
lean_inc(v_log_14698_);
lean_dec(v___y_14696_);
v___x_14704_ = lean_box(0);
v_isShared_14705_ = v_isSharedCheck_14759_;
goto v_resetjp_14703_;
}
v_resetjp_14703_:
{
lean_object* v___x_14706_; 
lean_inc_ref(v___y_14695_);
v___x_14706_ = l___private_Lake_Build_Module_0__Lake_computeModuleDeps(v_impLibs_14681_, v_externLibs_14690_, v_dynlibs_14682_, v_plugins_14683_, v___y_14691_, v___y_14692_, v___y_14693_, v___y_14694_, v___y_14695_, v_log_14698_);
if (lean_obj_tag(v___x_14706_) == 0)
{
lean_object* v_a_14707_; lean_object* v_a_14708_; lean_object* v_dynlibs_14709_; lean_object* v_plugins_14710_; lean_object* v_directArts_14711_; uint8_t v___y_14713_; 
v_a_14707_ = lean_ctor_get(v___x_14706_, 0);
lean_inc(v_a_14707_);
v_a_14708_ = lean_ctor_get(v___x_14706_, 1);
lean_inc(v_a_14708_);
lean_dec_ref(v___x_14706_);
v_dynlibs_14709_ = lean_ctor_get(v_a_14707_, 0);
lean_inc_ref(v_dynlibs_14709_);
v_plugins_14710_ = lean_ctor_get(v_a_14707_, 1);
lean_inc_ref(v_plugins_14710_);
lean_dec(v_a_14707_);
v_directArts_14711_ = lean_ctor_get(v_info_14684_, 0);
lean_inc(v_directArts_14711_);
lean_dec_ref(v_info_14684_);
if (v_isModule_14687_ == 0)
{
v___y_14713_ = v___x_14689_;
goto v___jp_14712_;
}
else
{
uint8_t v___x_14746_; 
v___x_14746_ = 0;
v___y_14713_ = v___x_14746_;
goto v___jp_14712_;
}
v___jp_14712_:
{
lean_object* v___x_14714_; 
v___x_14714_ = l___private_Lake_Build_Module_0__Lake_fetchTransImportArts(v_a_14685_, v_directArts_14711_, v___y_14713_, v___y_14691_, v___y_14692_, v___y_14693_, v___y_14694_, v___y_14695_, v_a_14708_);
if (lean_obj_tag(v___x_14714_) == 0)
{
lean_object* v_a_14715_; lean_object* v_a_14716_; lean_object* v___x_14718_; uint8_t v_isShared_14719_; uint8_t v_isSharedCheck_14733_; 
v_a_14715_ = lean_ctor_get(v___x_14714_, 0);
v_a_14716_ = lean_ctor_get(v___x_14714_, 1);
v_isSharedCheck_14733_ = !lean_is_exclusive(v___x_14714_);
if (v_isSharedCheck_14733_ == 0)
{
v___x_14718_ = v___x_14714_;
v_isShared_14719_ = v_isSharedCheck_14733_;
goto v_resetjp_14717_;
}
else
{
lean_inc(v_a_14716_);
lean_inc(v_a_14715_);
lean_dec(v___x_14714_);
v___x_14718_ = lean_box(0);
v_isShared_14719_ = v_isSharedCheck_14733_;
goto v_resetjp_14717_;
}
v_resetjp_14717_:
{
lean_object* v___x_14721_; 
if (v_isShared_14705_ == 0)
{
lean_ctor_set(v___x_14704_, 0, v_a_14716_);
v___x_14721_ = v___x_14704_;
goto v_reusejp_14720_;
}
else
{
lean_object* v_reuseFailAlloc_14732_; 
v_reuseFailAlloc_14732_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_14732_, 0, v_a_14716_);
lean_ctor_set(v_reuseFailAlloc_14732_, 1, v_trace_14701_);
lean_ctor_set(v_reuseFailAlloc_14732_, 2, v_buildTime_14702_);
lean_ctor_set_uint8(v_reuseFailAlloc_14732_, sizeof(void*)*3, v_action_14699_);
lean_ctor_set_uint8(v_reuseFailAlloc_14732_, sizeof(void*)*3 + 1, v_wantsRebuild_14700_);
v___x_14721_ = v_reuseFailAlloc_14732_;
goto v_reusejp_14720_;
}
v_reusejp_14720_:
{
lean_object* v___x_14722_; lean_object* v___x_14723_; size_t v_sz_14724_; lean_object* v___x_14725_; size_t v_sz_14726_; lean_object* v___x_14727_; lean_object* v___x_14728_; lean_object* v___x_14730_; 
v___x_14722_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__0___closed__1));
v___x_14723_ = lean_box(0);
v_sz_14724_ = lean_array_size(v_dynlibs_14709_);
v___x_14725_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__1(v_sz_14724_, v___x_14686_, v_dynlibs_14709_);
v_sz_14726_ = lean_array_size(v_plugins_14710_);
v___x_14727_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__1(v_sz_14726_, v___x_14686_, v_plugins_14710_);
v___x_14728_ = lean_alloc_ctor(0, 7, 1);
lean_ctor_set(v___x_14728_, 0, v___x_14722_);
lean_ctor_set(v___x_14728_, 1, v___x_14723_);
lean_ctor_set(v___x_14728_, 2, v___x_14723_);
lean_ctor_set(v___x_14728_, 3, v_a_14715_);
lean_ctor_set(v___x_14728_, 4, v___x_14725_);
lean_ctor_set(v___x_14728_, 5, v___x_14727_);
lean_ctor_set(v___x_14728_, 6, v_leanOpts_14688_);
lean_ctor_set_uint8(v___x_14728_, sizeof(void*)*7, v_isModule_14687_);
if (v_isShared_14719_ == 0)
{
lean_ctor_set(v___x_14718_, 1, v___x_14721_);
lean_ctor_set(v___x_14718_, 0, v___x_14728_);
v___x_14730_ = v___x_14718_;
goto v_reusejp_14729_;
}
else
{
lean_object* v_reuseFailAlloc_14731_; 
v_reuseFailAlloc_14731_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_14731_, 0, v___x_14728_);
lean_ctor_set(v_reuseFailAlloc_14731_, 1, v___x_14721_);
v___x_14730_ = v_reuseFailAlloc_14731_;
goto v_reusejp_14729_;
}
v_reusejp_14729_:
{
return v___x_14730_;
}
}
}
}
else
{
lean_object* v_a_14734_; lean_object* v_a_14735_; lean_object* v___x_14737_; uint8_t v_isShared_14738_; uint8_t v_isSharedCheck_14745_; 
lean_dec_ref(v_plugins_14710_);
lean_dec_ref(v_dynlibs_14709_);
lean_dec(v_leanOpts_14688_);
v_a_14734_ = lean_ctor_get(v___x_14714_, 0);
v_a_14735_ = lean_ctor_get(v___x_14714_, 1);
v_isSharedCheck_14745_ = !lean_is_exclusive(v___x_14714_);
if (v_isSharedCheck_14745_ == 0)
{
v___x_14737_ = v___x_14714_;
v_isShared_14738_ = v_isSharedCheck_14745_;
goto v_resetjp_14736_;
}
else
{
lean_inc(v_a_14735_);
lean_inc(v_a_14734_);
lean_dec(v___x_14714_);
v___x_14737_ = lean_box(0);
v_isShared_14738_ = v_isSharedCheck_14745_;
goto v_resetjp_14736_;
}
v_resetjp_14736_:
{
lean_object* v___x_14740_; 
if (v_isShared_14705_ == 0)
{
lean_ctor_set(v___x_14704_, 0, v_a_14735_);
v___x_14740_ = v___x_14704_;
goto v_reusejp_14739_;
}
else
{
lean_object* v_reuseFailAlloc_14744_; 
v_reuseFailAlloc_14744_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_14744_, 0, v_a_14735_);
lean_ctor_set(v_reuseFailAlloc_14744_, 1, v_trace_14701_);
lean_ctor_set(v_reuseFailAlloc_14744_, 2, v_buildTime_14702_);
lean_ctor_set_uint8(v_reuseFailAlloc_14744_, sizeof(void*)*3, v_action_14699_);
lean_ctor_set_uint8(v_reuseFailAlloc_14744_, sizeof(void*)*3 + 1, v_wantsRebuild_14700_);
v___x_14740_ = v_reuseFailAlloc_14744_;
goto v_reusejp_14739_;
}
v_reusejp_14739_:
{
lean_object* v___x_14742_; 
if (v_isShared_14738_ == 0)
{
lean_ctor_set(v___x_14737_, 1, v___x_14740_);
v___x_14742_ = v___x_14737_;
goto v_reusejp_14741_;
}
else
{
lean_object* v_reuseFailAlloc_14743_; 
v_reuseFailAlloc_14743_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_14743_, 0, v_a_14734_);
lean_ctor_set(v_reuseFailAlloc_14743_, 1, v___x_14740_);
v___x_14742_ = v_reuseFailAlloc_14743_;
goto v_reusejp_14741_;
}
v_reusejp_14741_:
{
return v___x_14742_;
}
}
}
}
}
}
else
{
lean_object* v_a_14747_; lean_object* v_a_14748_; lean_object* v___x_14750_; uint8_t v_isShared_14751_; uint8_t v_isSharedCheck_14758_; 
lean_dec_ref(v___y_14695_);
lean_dec(v___y_14694_);
lean_dec(v___y_14693_);
lean_dec(v___y_14692_);
lean_dec_ref(v___y_14691_);
lean_dec(v_leanOpts_14688_);
lean_dec_ref(v_info_14684_);
v_a_14747_ = lean_ctor_get(v___x_14706_, 0);
v_a_14748_ = lean_ctor_get(v___x_14706_, 1);
v_isSharedCheck_14758_ = !lean_is_exclusive(v___x_14706_);
if (v_isSharedCheck_14758_ == 0)
{
v___x_14750_ = v___x_14706_;
v_isShared_14751_ = v_isSharedCheck_14758_;
goto v_resetjp_14749_;
}
else
{
lean_inc(v_a_14748_);
lean_inc(v_a_14747_);
lean_dec(v___x_14706_);
v___x_14750_ = lean_box(0);
v_isShared_14751_ = v_isSharedCheck_14758_;
goto v_resetjp_14749_;
}
v_resetjp_14749_:
{
lean_object* v___x_14753_; 
if (v_isShared_14705_ == 0)
{
lean_ctor_set(v___x_14704_, 0, v_a_14748_);
v___x_14753_ = v___x_14704_;
goto v_reusejp_14752_;
}
else
{
lean_object* v_reuseFailAlloc_14757_; 
v_reuseFailAlloc_14757_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_14757_, 0, v_a_14748_);
lean_ctor_set(v_reuseFailAlloc_14757_, 1, v_trace_14701_);
lean_ctor_set(v_reuseFailAlloc_14757_, 2, v_buildTime_14702_);
lean_ctor_set_uint8(v_reuseFailAlloc_14757_, sizeof(void*)*3, v_action_14699_);
lean_ctor_set_uint8(v_reuseFailAlloc_14757_, sizeof(void*)*3 + 1, v_wantsRebuild_14700_);
v___x_14753_ = v_reuseFailAlloc_14757_;
goto v_reusejp_14752_;
}
v_reusejp_14752_:
{
lean_object* v___x_14755_; 
if (v_isShared_14751_ == 0)
{
lean_ctor_set(v___x_14750_, 1, v___x_14753_);
v___x_14755_ = v___x_14750_;
goto v_reusejp_14754_;
}
else
{
lean_object* v_reuseFailAlloc_14756_; 
v_reuseFailAlloc_14756_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_14756_, 0, v_a_14747_);
lean_ctor_set(v_reuseFailAlloc_14756_, 1, v___x_14753_);
v___x_14755_ = v_reuseFailAlloc_14756_;
goto v_reusejp_14754_;
}
v_reusejp_14754_:
{
return v___x_14755_;
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__0___boxed(lean_object** _args){
lean_object* v_impLibs_14760_ = _args[0];
lean_object* v_dynlibs_14761_ = _args[1];
lean_object* v_plugins_14762_ = _args[2];
lean_object* v_info_14763_ = _args[3];
lean_object* v_a_14764_ = _args[4];
lean_object* v___x_14765_ = _args[5];
lean_object* v_isModule_14766_ = _args[6];
lean_object* v_leanOpts_14767_ = _args[7];
lean_object* v___x_14768_ = _args[8];
lean_object* v_externLibs_14769_ = _args[9];
lean_object* v___y_14770_ = _args[10];
lean_object* v___y_14771_ = _args[11];
lean_object* v___y_14772_ = _args[12];
lean_object* v___y_14773_ = _args[13];
lean_object* v___y_14774_ = _args[14];
lean_object* v___y_14775_ = _args[15];
lean_object* v___y_14776_ = _args[16];
_start:
{
size_t v___x_136234__boxed_14777_; uint8_t v_isModule_boxed_14778_; uint8_t v___x_136235__boxed_14779_; lean_object* v_res_14780_; 
v___x_136234__boxed_14777_ = lean_unbox_usize(v___x_14765_);
lean_dec(v___x_14765_);
v_isModule_boxed_14778_ = lean_unbox(v_isModule_14766_);
v___x_136235__boxed_14779_ = lean_unbox(v___x_14768_);
v_res_14780_ = l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__0(v_impLibs_14760_, v_dynlibs_14761_, v_plugins_14762_, v_info_14763_, v_a_14764_, v___x_136234__boxed_14777_, v_isModule_boxed_14778_, v_leanOpts_14767_, v___x_136235__boxed_14779_, v_externLibs_14769_, v___y_14770_, v___y_14771_, v___y_14772_, v___y_14773_, v___y_14774_, v___y_14775_);
lean_dec_ref(v_a_14764_);
lean_dec_ref(v_dynlibs_14761_);
lean_dec_ref(v_impLibs_14760_);
return v_res_14780_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__1(lean_object* v_impLibs_14781_, lean_object* v_dynlibs_14782_, lean_object* v_info_14783_, lean_object* v_a_14784_, size_t v___x_14785_, uint8_t v_isModule_14786_, lean_object* v_leanOpts_14787_, uint8_t v___x_14788_, lean_object* v___x_14789_, lean_object* v___x_14790_, lean_object* v___x_14791_, lean_object* v_plugins_14792_, lean_object* v___y_14793_, lean_object* v___y_14794_, lean_object* v___y_14795_, lean_object* v___y_14796_, lean_object* v___y_14797_, lean_object* v___y_14798_){
_start:
{
lean_object* v_trace_14800_; lean_object* v___x_14801_; lean_object* v___x_14802_; lean_object* v___x_14803_; lean_object* v___f_14804_; uint8_t v___x_14805_; lean_object* v___x_14806_; lean_object* v___x_14807_; 
v_trace_14800_ = lean_ctor_get(v___y_14798_, 1);
v___x_14801_ = lean_box_usize(v___x_14785_);
v___x_14802_ = lean_box(v_isModule_14786_);
v___x_14803_ = lean_box(v___x_14788_);
v___f_14804_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__0___boxed), 17, 9);
lean_closure_set(v___f_14804_, 0, v_impLibs_14781_);
lean_closure_set(v___f_14804_, 1, v_dynlibs_14782_);
lean_closure_set(v___f_14804_, 2, v_plugins_14792_);
lean_closure_set(v___f_14804_, 3, v_info_14783_);
lean_closure_set(v___f_14804_, 4, v_a_14784_);
lean_closure_set(v___f_14804_, 5, v___x_14801_);
lean_closure_set(v___f_14804_, 6, v___x_14802_);
lean_closure_set(v___f_14804_, 7, v_leanOpts_14787_);
lean_closure_set(v___f_14804_, 8, v___x_14803_);
v___x_14805_ = 0;
lean_inc_ref(v_trace_14800_);
v___x_14806_ = l_Lake_Job_mapM___redArg(v___x_14789_, v___x_14790_, v___f_14804_, v___x_14791_, v___x_14805_, v___y_14793_, v___y_14794_, v___y_14795_, v___y_14796_, v___y_14797_, v_trace_14800_);
v___x_14807_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_14807_, 0, v___x_14806_);
lean_ctor_set(v___x_14807_, 1, v___y_14798_);
return v___x_14807_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__1___boxed(lean_object** _args){
lean_object* v_impLibs_14808_ = _args[0];
lean_object* v_dynlibs_14809_ = _args[1];
lean_object* v_info_14810_ = _args[2];
lean_object* v_a_14811_ = _args[3];
lean_object* v___x_14812_ = _args[4];
lean_object* v_isModule_14813_ = _args[5];
lean_object* v_leanOpts_14814_ = _args[6];
lean_object* v___x_14815_ = _args[7];
lean_object* v___x_14816_ = _args[8];
lean_object* v___x_14817_ = _args[9];
lean_object* v___x_14818_ = _args[10];
lean_object* v_plugins_14819_ = _args[11];
lean_object* v___y_14820_ = _args[12];
lean_object* v___y_14821_ = _args[13];
lean_object* v___y_14822_ = _args[14];
lean_object* v___y_14823_ = _args[15];
lean_object* v___y_14824_ = _args[16];
lean_object* v___y_14825_ = _args[17];
lean_object* v___y_14826_ = _args[18];
_start:
{
size_t v___x_136375__boxed_14827_; uint8_t v_isModule_boxed_14828_; uint8_t v___x_136376__boxed_14829_; lean_object* v_res_14830_; 
v___x_136375__boxed_14827_ = lean_unbox_usize(v___x_14812_);
lean_dec(v___x_14812_);
v_isModule_boxed_14828_ = lean_unbox(v_isModule_14813_);
v___x_136376__boxed_14829_ = lean_unbox(v___x_14815_);
v_res_14830_ = l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__1(v_impLibs_14808_, v_dynlibs_14809_, v_info_14810_, v_a_14811_, v___x_136375__boxed_14827_, v_isModule_boxed_14828_, v_leanOpts_14814_, v___x_136376__boxed_14829_, v___x_14816_, v___x_14817_, v___x_14818_, v_plugins_14819_, v___y_14820_, v___y_14821_, v___y_14822_, v___y_14823_, v___y_14824_, v___y_14825_);
return v_res_14830_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__2(lean_object* v_impLibs_14831_, lean_object* v_info_14832_, lean_object* v_a_14833_, size_t v___x_14834_, uint8_t v_isModule_14835_, lean_object* v_leanOpts_14836_, uint8_t v___x_14837_, lean_object* v___x_14838_, lean_object* v___x_14839_, lean_object* v___x_14840_, lean_object* v_a_14841_, lean_object* v_dynlibs_14842_, lean_object* v___y_14843_, lean_object* v___y_14844_, lean_object* v___y_14845_, lean_object* v___y_14846_, lean_object* v___y_14847_, lean_object* v___y_14848_){
_start:
{
lean_object* v_trace_14850_; lean_object* v___x_14851_; lean_object* v___x_14852_; lean_object* v___x_14853_; lean_object* v___f_14854_; lean_object* v___x_14855_; lean_object* v___x_14856_; 
v_trace_14850_ = lean_ctor_get(v___y_14848_, 1);
v___x_14851_ = lean_box_usize(v___x_14834_);
v___x_14852_ = lean_box(v_isModule_14835_);
v___x_14853_ = lean_box(v___x_14837_);
lean_inc(v___x_14840_);
lean_inc(v___x_14838_);
v___f_14854_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__1___boxed), 19, 11);
lean_closure_set(v___f_14854_, 0, v_impLibs_14831_);
lean_closure_set(v___f_14854_, 1, v_dynlibs_14842_);
lean_closure_set(v___f_14854_, 2, v_info_14832_);
lean_closure_set(v___f_14854_, 3, v_a_14833_);
lean_closure_set(v___f_14854_, 4, v___x_14851_);
lean_closure_set(v___f_14854_, 5, v___x_14852_);
lean_closure_set(v___f_14854_, 6, v_leanOpts_14836_);
lean_closure_set(v___f_14854_, 7, v___x_14853_);
lean_closure_set(v___f_14854_, 8, v___x_14838_);
lean_closure_set(v___f_14854_, 9, v___x_14839_);
lean_closure_set(v___f_14854_, 10, v___x_14840_);
lean_inc_ref(v_trace_14850_);
v___x_14855_ = l_Lake_Job_bindM___redArg(v___x_14838_, v_a_14841_, v___f_14854_, v___x_14840_, v___x_14837_, v___y_14843_, v___y_14844_, v___y_14845_, v___y_14846_, v___y_14847_, v_trace_14850_);
v___x_14856_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_14856_, 0, v___x_14855_);
lean_ctor_set(v___x_14856_, 1, v___y_14848_);
return v___x_14856_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__2___boxed(lean_object** _args){
lean_object* v_impLibs_14857_ = _args[0];
lean_object* v_info_14858_ = _args[1];
lean_object* v_a_14859_ = _args[2];
lean_object* v___x_14860_ = _args[3];
lean_object* v_isModule_14861_ = _args[4];
lean_object* v_leanOpts_14862_ = _args[5];
lean_object* v___x_14863_ = _args[6];
lean_object* v___x_14864_ = _args[7];
lean_object* v___x_14865_ = _args[8];
lean_object* v___x_14866_ = _args[9];
lean_object* v_a_14867_ = _args[10];
lean_object* v_dynlibs_14868_ = _args[11];
lean_object* v___y_14869_ = _args[12];
lean_object* v___y_14870_ = _args[13];
lean_object* v___y_14871_ = _args[14];
lean_object* v___y_14872_ = _args[15];
lean_object* v___y_14873_ = _args[16];
lean_object* v___y_14874_ = _args[17];
lean_object* v___y_14875_ = _args[18];
_start:
{
size_t v___x_136428__boxed_14876_; uint8_t v_isModule_boxed_14877_; uint8_t v___x_136429__boxed_14878_; lean_object* v_res_14879_; 
v___x_136428__boxed_14876_ = lean_unbox_usize(v___x_14860_);
lean_dec(v___x_14860_);
v_isModule_boxed_14877_ = lean_unbox(v_isModule_14861_);
v___x_136429__boxed_14878_ = lean_unbox(v___x_14863_);
v_res_14879_ = l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__2(v_impLibs_14857_, v_info_14858_, v_a_14859_, v___x_136428__boxed_14876_, v_isModule_boxed_14877_, v_leanOpts_14862_, v___x_136429__boxed_14878_, v___x_14864_, v___x_14865_, v___x_14866_, v_a_14867_, v_dynlibs_14868_, v___y_14869_, v___y_14870_, v___y_14871_, v___y_14872_, v___y_14873_, v___y_14874_);
return v_res_14879_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__3(lean_object* v_info_14880_, lean_object* v_a_14881_, size_t v___x_14882_, uint8_t v_isModule_14883_, lean_object* v_leanOpts_14884_, uint8_t v___x_14885_, lean_object* v___x_14886_, lean_object* v___x_14887_, lean_object* v___x_14888_, lean_object* v_a_14889_, lean_object* v_a_14890_, lean_object* v_impLibs_14891_, lean_object* v___y_14892_, lean_object* v___y_14893_, lean_object* v___y_14894_, lean_object* v___y_14895_, lean_object* v___y_14896_, lean_object* v___y_14897_){
_start:
{
lean_object* v_trace_14899_; lean_object* v___x_14900_; lean_object* v___x_14901_; lean_object* v___x_14902_; lean_object* v___f_14903_; lean_object* v___x_14904_; lean_object* v___x_14905_; 
v_trace_14899_ = lean_ctor_get(v___y_14897_, 1);
v___x_14900_ = lean_box_usize(v___x_14882_);
v___x_14901_ = lean_box(v_isModule_14883_);
v___x_14902_ = lean_box(v___x_14885_);
lean_inc(v___x_14888_);
lean_inc(v___x_14886_);
v___f_14903_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__2___boxed), 19, 11);
lean_closure_set(v___f_14903_, 0, v_impLibs_14891_);
lean_closure_set(v___f_14903_, 1, v_info_14880_);
lean_closure_set(v___f_14903_, 2, v_a_14881_);
lean_closure_set(v___f_14903_, 3, v___x_14900_);
lean_closure_set(v___f_14903_, 4, v___x_14901_);
lean_closure_set(v___f_14903_, 5, v_leanOpts_14884_);
lean_closure_set(v___f_14903_, 6, v___x_14902_);
lean_closure_set(v___f_14903_, 7, v___x_14886_);
lean_closure_set(v___f_14903_, 8, v___x_14887_);
lean_closure_set(v___f_14903_, 9, v___x_14888_);
lean_closure_set(v___f_14903_, 10, v_a_14889_);
lean_inc_ref(v_trace_14899_);
v___x_14904_ = l_Lake_Job_bindM___redArg(v___x_14886_, v_a_14890_, v___f_14903_, v___x_14888_, v___x_14885_, v___y_14892_, v___y_14893_, v___y_14894_, v___y_14895_, v___y_14896_, v_trace_14899_);
v___x_14905_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_14905_, 0, v___x_14904_);
lean_ctor_set(v___x_14905_, 1, v___y_14897_);
return v___x_14905_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__3___boxed(lean_object** _args){
lean_object* v_info_14906_ = _args[0];
lean_object* v_a_14907_ = _args[1];
lean_object* v___x_14908_ = _args[2];
lean_object* v_isModule_14909_ = _args[3];
lean_object* v_leanOpts_14910_ = _args[4];
lean_object* v___x_14911_ = _args[5];
lean_object* v___x_14912_ = _args[6];
lean_object* v___x_14913_ = _args[7];
lean_object* v___x_14914_ = _args[8];
lean_object* v_a_14915_ = _args[9];
lean_object* v_a_14916_ = _args[10];
lean_object* v_impLibs_14917_ = _args[11];
lean_object* v___y_14918_ = _args[12];
lean_object* v___y_14919_ = _args[13];
lean_object* v___y_14920_ = _args[14];
lean_object* v___y_14921_ = _args[15];
lean_object* v___y_14922_ = _args[16];
lean_object* v___y_14923_ = _args[17];
lean_object* v___y_14924_ = _args[18];
_start:
{
size_t v___x_136482__boxed_14925_; uint8_t v_isModule_boxed_14926_; uint8_t v___x_136483__boxed_14927_; lean_object* v_res_14928_; 
v___x_136482__boxed_14925_ = lean_unbox_usize(v___x_14908_);
lean_dec(v___x_14908_);
v_isModule_boxed_14926_ = lean_unbox(v_isModule_14909_);
v___x_136483__boxed_14927_ = lean_unbox(v___x_14911_);
v_res_14928_ = l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__3(v_info_14906_, v_a_14907_, v___x_136482__boxed_14925_, v_isModule_boxed_14926_, v_leanOpts_14910_, v___x_136483__boxed_14927_, v___x_14912_, v___x_14913_, v___x_14914_, v_a_14915_, v_a_14916_, v_impLibs_14917_, v___y_14918_, v___y_14919_, v___y_14920_, v___y_14921_, v___y_14922_, v___y_14923_);
return v_res_14928_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__4(lean_object* v_a_14929_, size_t v___x_14930_, uint8_t v_isModule_14931_, lean_object* v_leanOpts_14932_, uint8_t v___x_14933_, lean_object* v___x_14934_, lean_object* v___x_14935_, lean_object* v___x_14936_, lean_object* v_a_14937_, lean_object* v_a_14938_, lean_object* v_a_14939_, lean_object* v_info_14940_, lean_object* v___y_14941_, lean_object* v___y_14942_, lean_object* v___y_14943_, lean_object* v___y_14944_, lean_object* v___y_14945_, lean_object* v___y_14946_){
_start:
{
lean_object* v_trace_14948_; lean_object* v___x_14949_; lean_object* v___x_14950_; lean_object* v___x_14951_; lean_object* v___f_14952_; lean_object* v___x_14953_; lean_object* v___x_14954_; 
v_trace_14948_ = lean_ctor_get(v___y_14946_, 1);
v___x_14949_ = lean_box_usize(v___x_14930_);
v___x_14950_ = lean_box(v_isModule_14931_);
v___x_14951_ = lean_box(v___x_14933_);
lean_inc(v___x_14936_);
lean_inc(v___x_14934_);
v___f_14952_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__3___boxed), 19, 11);
lean_closure_set(v___f_14952_, 0, v_info_14940_);
lean_closure_set(v___f_14952_, 1, v_a_14929_);
lean_closure_set(v___f_14952_, 2, v___x_14949_);
lean_closure_set(v___f_14952_, 3, v___x_14950_);
lean_closure_set(v___f_14952_, 4, v_leanOpts_14932_);
lean_closure_set(v___f_14952_, 5, v___x_14951_);
lean_closure_set(v___f_14952_, 6, v___x_14934_);
lean_closure_set(v___f_14952_, 7, v___x_14935_);
lean_closure_set(v___f_14952_, 8, v___x_14936_);
lean_closure_set(v___f_14952_, 9, v_a_14937_);
lean_closure_set(v___f_14952_, 10, v_a_14938_);
lean_inc_ref(v_trace_14948_);
v___x_14953_ = l_Lake_Job_bindM___redArg(v___x_14934_, v_a_14939_, v___f_14952_, v___x_14936_, v___x_14933_, v___y_14941_, v___y_14942_, v___y_14943_, v___y_14944_, v___y_14945_, v_trace_14948_);
v___x_14954_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_14954_, 0, v___x_14953_);
lean_ctor_set(v___x_14954_, 1, v___y_14946_);
return v___x_14954_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__4___boxed(lean_object** _args){
lean_object* v_a_14955_ = _args[0];
lean_object* v___x_14956_ = _args[1];
lean_object* v_isModule_14957_ = _args[2];
lean_object* v_leanOpts_14958_ = _args[3];
lean_object* v___x_14959_ = _args[4];
lean_object* v___x_14960_ = _args[5];
lean_object* v___x_14961_ = _args[6];
lean_object* v___x_14962_ = _args[7];
lean_object* v_a_14963_ = _args[8];
lean_object* v_a_14964_ = _args[9];
lean_object* v_a_14965_ = _args[10];
lean_object* v_info_14966_ = _args[11];
lean_object* v___y_14967_ = _args[12];
lean_object* v___y_14968_ = _args[13];
lean_object* v___y_14969_ = _args[14];
lean_object* v___y_14970_ = _args[15];
lean_object* v___y_14971_ = _args[16];
lean_object* v___y_14972_ = _args[17];
lean_object* v___y_14973_ = _args[18];
_start:
{
size_t v___x_136539__boxed_14974_; uint8_t v_isModule_boxed_14975_; uint8_t v___x_136540__boxed_14976_; lean_object* v_res_14977_; 
v___x_136539__boxed_14974_ = lean_unbox_usize(v___x_14956_);
lean_dec(v___x_14956_);
v_isModule_boxed_14975_ = lean_unbox(v_isModule_14957_);
v___x_136540__boxed_14976_ = lean_unbox(v___x_14959_);
v_res_14977_ = l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__4(v_a_14955_, v___x_136539__boxed_14974_, v_isModule_boxed_14975_, v_leanOpts_14958_, v___x_136540__boxed_14976_, v___x_14960_, v___x_14961_, v___x_14962_, v_a_14963_, v_a_14964_, v_a_14965_, v_info_14966_, v___y_14967_, v___y_14968_, v___y_14969_, v___y_14970_, v___y_14971_, v___y_14972_);
return v_res_14977_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__5(lean_object* v___x_14978_, lean_object* v_a_14979_, lean_object* v___f_14980_, lean_object* v___x_14981_, uint8_t v___x_14982_, lean_object* v_x_14983_, lean_object* v___y_14984_, lean_object* v___y_14985_, lean_object* v___y_14986_, lean_object* v___y_14987_, lean_object* v___y_14988_, lean_object* v___y_14989_){
_start:
{
lean_object* v_trace_14991_; lean_object* v___x_14992_; lean_object* v___x_14993_; 
v_trace_14991_ = lean_ctor_get(v___y_14989_, 1);
lean_inc_ref(v_trace_14991_);
v___x_14992_ = l_Lake_Job_bindM___redArg(v___x_14978_, v_a_14979_, v___f_14980_, v___x_14981_, v___x_14982_, v___y_14984_, v___y_14985_, v___y_14986_, v___y_14987_, v___y_14988_, v_trace_14991_);
v___x_14993_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v___x_14993_, 0, v___x_14992_);
lean_ctor_set(v___x_14993_, 1, v___y_14989_);
return v___x_14993_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__5___boxed(lean_object* v___x_14994_, lean_object* v_a_14995_, lean_object* v___f_14996_, lean_object* v___x_14997_, lean_object* v___x_14998_, lean_object* v_x_14999_, lean_object* v___y_15000_, lean_object* v___y_15001_, lean_object* v___y_15002_, lean_object* v___y_15003_, lean_object* v___y_15004_, lean_object* v___y_15005_, lean_object* v___y_15006_){
_start:
{
uint8_t v___x_136602__boxed_15007_; lean_object* v_res_15008_; 
v___x_136602__boxed_15007_ = lean_unbox(v___x_14998_);
v_res_15008_ = l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__5(v___x_14994_, v_a_14995_, v___f_14996_, v___x_14997_, v___x_136602__boxed_15007_, v_x_14999_, v___y_15000_, v___y_15001_, v___y_15002_, v___y_15003_, v___y_15004_, v___y_15005_);
return v_res_15008_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule(lean_object* v_fileName_15010_, lean_object* v_header_15011_, lean_object* v_leanOpts_15012_, lean_object* v_a_15013_, lean_object* v_a_15014_, lean_object* v_a_15015_, lean_object* v_a_15016_, lean_object* v_a_15017_, lean_object* v_a_15018_){
_start:
{
lean_object* v_toContext_15020_; lean_object* v_root_15021_; lean_object* v_keyName_15022_; lean_object* v_config_15023_; lean_object* v_targetDecls_15024_; lean_object* v___x_15025_; lean_object* v___x_15026_; lean_object* v___x_15027_; lean_object* v___x_15028_; lean_object* v___x_15029_; 
v_toContext_15020_ = lean_ctor_get(v_a_15017_, 1);
v_root_15021_ = lean_ctor_get(v_toContext_15020_, 0);
v_keyName_15022_ = lean_ctor_get(v_root_15021_, 2);
v_config_15023_ = lean_ctor_get(v_root_15021_, 6);
v_targetDecls_15024_ = lean_ctor_get(v_root_15021_, 13);
v___x_15025_ = l_Lake_Package_extraDepFacet;
lean_inc(v_keyName_15022_);
v___x_15026_ = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(v___x_15026_, 0, v_keyName_15022_);
v___x_15027_ = l_Lake_Package_keyword;
lean_inc_ref(v_root_15021_);
v___x_15028_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_15028_, 0, v___x_15026_);
lean_ctor_set(v___x_15028_, 1, v___x_15027_);
lean_ctor_set(v___x_15028_, 2, v_root_15021_);
lean_ctor_set(v___x_15028_, 3, v___x_15025_);
lean_inc_ref(v_a_15013_);
lean_inc_ref(v_a_15017_);
lean_inc(v_a_15016_);
lean_inc(v_a_15015_);
lean_inc(v_a_15014_);
v___x_15029_ = lean_apply_7(v_a_15013_, v___x_15028_, v_a_15014_, v_a_15015_, v_a_15016_, v_a_15017_, v_a_15018_, lean_box(0));
if (lean_obj_tag(v___x_15029_) == 0)
{
lean_object* v_a_15030_; lean_object* v_a_15031_; lean_object* v_imports_15032_; uint8_t v_isModule_15033_; size_t v_sz_15034_; size_t v___x_15035_; lean_object* v___x_15036_; 
v_a_15030_ = lean_ctor_get(v___x_15029_, 0);
lean_inc(v_a_15030_);
v_a_15031_ = lean_ctor_get(v___x_15029_, 1);
lean_inc(v_a_15031_);
lean_dec_ref(v___x_15029_);
v_imports_15032_ = lean_ctor_get(v_header_15011_, 0);
v_isModule_15033_ = lean_ctor_get_uint8(v_header_15011_, sizeof(void*)*1);
v_sz_15034_ = lean_array_size(v_imports_15032_);
v___x_15035_ = ((size_t)0ULL);
lean_inc_ref(v_imports_15032_);
v___x_15036_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__0___redArg(v_sz_15034_, v___x_15035_, v_imports_15032_, v_a_15017_, v_a_15031_);
if (lean_obj_tag(v___x_15036_) == 0)
{
lean_object* v_a_15037_; lean_object* v_a_15038_; lean_object* v___x_15039_; lean_object* v___x_15040_; 
v_a_15037_ = lean_ctor_get(v___x_15036_, 0);
lean_inc(v_a_15037_);
v_a_15038_ = lean_ctor_get(v___x_15036_, 1);
lean_inc(v_a_15038_);
lean_dec_ref(v___x_15036_);
v___x_15039_ = lean_box(0);
lean_inc_ref(v_a_15017_);
lean_inc(v_a_15016_);
lean_inc(v_a_15015_);
lean_inc(v_a_15014_);
lean_inc_ref(v_a_15013_);
lean_inc_ref(v_fileName_15010_);
v___x_15040_ = l___private_Lake_Build_Module_0__Lake_fetchImportInfo___redArg(v_fileName_15010_, v___x_15039_, v_header_15011_, v_a_15013_, v_a_15014_, v_a_15015_, v_a_15016_, v_a_15017_, v_a_15038_);
lean_dec_ref(v_header_15011_);
if (lean_obj_tag(v___x_15040_) == 0)
{
lean_object* v_a_15041_; lean_object* v_a_15042_; lean_object* v___x_15043_; lean_object* v___x_15044_; lean_object* v___x_15045_; lean_object* v___x_15046_; 
v_a_15041_ = lean_ctor_get(v___x_15040_, 0);
lean_inc(v_a_15041_);
v_a_15042_ = lean_ctor_get(v___x_15040_, 1);
lean_inc(v_a_15042_);
lean_dec_ref(v___x_15040_);
v___x_15043_ = lean_array_get_size(v_a_15037_);
v___x_15044_ = lean_unsigned_to_nat(0u);
v___x_15045_ = l_Array_filterMapM___at___00__private_Lake_Build_Module_0__Lake_setupEditedModule_spec__1(v_a_15037_, v___x_15044_, v___x_15043_);
lean_inc_ref(v_a_15017_);
lean_inc(v_a_15016_);
lean_inc(v_a_15015_);
lean_inc(v_a_15014_);
lean_inc_ref(v_a_15013_);
v___x_15046_ = l___private_Lake_Build_Module_0__Lake_computePrecompileImportsAux(v_fileName_15010_, v___x_15045_, v_a_15013_, v_a_15014_, v_a_15015_, v_a_15016_, v_a_15017_, v_a_15042_);
if (lean_obj_tag(v___x_15046_) == 0)
{
lean_object* v_a_15047_; lean_object* v_a_15048_; lean_object* v___x_15049_; 
v_a_15047_ = lean_ctor_get(v___x_15046_, 0);
lean_inc(v_a_15047_);
v_a_15048_ = lean_ctor_get(v___x_15046_, 1);
lean_inc(v_a_15048_);
lean_dec_ref(v___x_15046_);
v___x_15049_ = l_Lake_Job_await___redArg(v_a_15047_, v_a_15048_);
if (lean_obj_tag(v___x_15049_) == 0)
{
lean_object* v_a_15050_; lean_object* v_a_15051_; lean_object* v___x_15052_; 
v_a_15050_ = lean_ctor_get(v___x_15049_, 0);
lean_inc(v_a_15050_);
v_a_15051_ = lean_ctor_get(v___x_15049_, 1);
lean_inc(v_a_15051_);
lean_dec_ref(v___x_15049_);
lean_inc_ref(v_a_15017_);
lean_inc(v_a_15016_);
lean_inc(v_a_15015_);
lean_inc(v_a_15014_);
lean_inc_ref(v_a_15013_);
v___x_15052_ = l___private_Lake_Build_Module_0__Lake_fetchImportLibs(v_a_15050_, v_a_15013_, v_a_15014_, v_a_15015_, v_a_15016_, v_a_15017_, v_a_15051_);
lean_dec(v_a_15050_);
if (lean_obj_tag(v___x_15052_) == 0)
{
lean_object* v_a_15053_; lean_object* v_a_15054_; lean_object* v_toLeanConfig_15055_; uint8_t v_precompileModules_15056_; uint8_t v___x_15057_; lean_object* v_a_15059_; lean_object* v_a_15060_; lean_object* v___y_15106_; 
v_a_15053_ = lean_ctor_get(v___x_15052_, 0);
lean_inc(v_a_15053_);
v_a_15054_ = lean_ctor_get(v___x_15052_, 1);
lean_inc(v_a_15054_);
lean_dec_ref(v___x_15052_);
v_toLeanConfig_15055_ = lean_ctor_get(v_config_15023_, 1);
v_precompileModules_15056_ = lean_ctor_get_uint8(v_config_15023_, sizeof(void*)*27 + 1);
v___x_15057_ = 1;
if (v_precompileModules_15056_ == 0)
{
lean_object* v___x_15118_; 
v___x_15118_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___closed__0));
v_a_15059_ = v___x_15118_;
v_a_15060_ = v_a_15054_;
goto v___jp_15058_;
}
else
{
lean_object* v___x_15119_; lean_object* v___x_15120_; uint8_t v___x_15121_; 
v___x_15119_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__3));
v___x_15120_ = lean_array_get_size(v_targetDecls_15024_);
v___x_15121_ = lean_nat_dec_lt(v___x_15044_, v___x_15120_);
if (v___x_15121_ == 0)
{
size_t v_sz_15122_; lean_object* v___x_15123_; 
v_sz_15122_ = lean_usize_once(&l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__4, &l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__4_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__4);
lean_inc_ref(v_a_15017_);
lean_inc(v_a_15016_);
lean_inc(v_a_15015_);
lean_inc(v_a_15014_);
lean_inc_ref(v_a_15013_);
v___x_15123_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__2(v_sz_15122_, v___x_15035_, v___x_15119_, v_a_15013_, v_a_15014_, v_a_15015_, v_a_15016_, v_a_15017_, v_a_15054_);
v___y_15106_ = v___x_15123_;
goto v___jp_15105_;
}
else
{
uint8_t v___x_15124_; 
v___x_15124_ = lean_nat_dec_le(v___x_15120_, v___x_15120_);
if (v___x_15124_ == 0)
{
if (v___x_15121_ == 0)
{
size_t v_sz_15125_; lean_object* v___x_15126_; 
v_sz_15125_ = lean_usize_once(&l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__4, &l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__4_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__4);
lean_inc_ref(v_a_15017_);
lean_inc(v_a_15016_);
lean_inc(v_a_15015_);
lean_inc(v_a_15014_);
lean_inc_ref(v_a_15013_);
v___x_15126_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__2(v_sz_15125_, v___x_15035_, v___x_15119_, v_a_15013_, v_a_15014_, v_a_15015_, v_a_15016_, v_a_15017_, v_a_15054_);
v___y_15106_ = v___x_15126_;
goto v___jp_15105_;
}
else
{
size_t v___x_15127_; lean_object* v___x_15128_; size_t v_sz_15129_; lean_object* v___x_15130_; 
v___x_15127_ = lean_usize_of_nat(v___x_15120_);
lean_inc_ref(v_root_15021_);
v___x_15128_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__3(v_root_15021_, v_targetDecls_15024_, v___x_15035_, v___x_15127_, v___x_15119_);
v_sz_15129_ = lean_array_size(v___x_15128_);
lean_inc_ref(v_a_15017_);
lean_inc(v_a_15016_);
lean_inc(v_a_15015_);
lean_inc(v_a_15014_);
lean_inc_ref(v_a_15013_);
v___x_15130_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__2(v_sz_15129_, v___x_15035_, v___x_15128_, v_a_15013_, v_a_15014_, v_a_15015_, v_a_15016_, v_a_15017_, v_a_15054_);
v___y_15106_ = v___x_15130_;
goto v___jp_15105_;
}
}
else
{
size_t v___x_15131_; lean_object* v___x_15132_; size_t v_sz_15133_; lean_object* v___x_15134_; 
v___x_15131_ = lean_usize_of_nat(v___x_15120_);
lean_inc_ref(v_root_15021_);
v___x_15132_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__3(v_root_15021_, v_targetDecls_15024_, v___x_15035_, v___x_15131_, v___x_15119_);
v_sz_15133_ = lean_array_size(v___x_15132_);
lean_inc_ref(v_a_15017_);
lean_inc(v_a_15016_);
lean_inc(v_a_15015_);
lean_inc(v_a_15014_);
lean_inc_ref(v_a_15013_);
v___x_15134_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__2(v_sz_15133_, v___x_15035_, v___x_15132_, v_a_15013_, v_a_15014_, v_a_15015_, v_a_15016_, v_a_15017_, v_a_15054_);
v___y_15106_ = v___x_15134_;
goto v___jp_15105_;
}
}
}
v___jp_15058_:
{
lean_object* v_dynlibs_15061_; lean_object* v_plugins_15062_; lean_object* v___x_15063_; lean_object* v___x_15064_; 
v_dynlibs_15061_ = lean_ctor_get(v_toLeanConfig_15055_, 11);
v_plugins_15062_ = lean_ctor_get(v_toLeanConfig_15055_, 12);
v___x_15063_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_setupExternalModule___closed__0));
lean_inc_ref(v_a_15017_);
lean_inc(v_a_15016_);
lean_inc(v_a_15015_);
lean_inc(v_a_15014_);
lean_inc_ref(v_a_15013_);
lean_inc_ref(v_dynlibs_15061_);
lean_inc_ref(v_root_15021_);
v___x_15064_ = l_Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0(v_root_15021_, v_dynlibs_15061_, v___x_15063_, v_a_15013_, v_a_15014_, v_a_15015_, v_a_15016_, v_a_15017_, v_a_15060_);
if (lean_obj_tag(v___x_15064_) == 0)
{
lean_object* v_a_15065_; lean_object* v_a_15066_; lean_object* v___x_15067_; 
v_a_15065_ = lean_ctor_get(v___x_15064_, 0);
lean_inc(v_a_15065_);
v_a_15066_ = lean_ctor_get(v___x_15064_, 1);
lean_inc(v_a_15066_);
lean_dec_ref(v___x_15064_);
lean_inc_ref(v_a_15017_);
lean_inc(v_a_15016_);
lean_inc(v_a_15015_);
lean_inc(v_a_15014_);
lean_inc_ref(v_a_15013_);
lean_inc_ref(v_plugins_15062_);
lean_inc_ref(v_root_15021_);
v___x_15067_ = l_Lake_TargetArray_fetchIn___at___00__private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0(v_root_15021_, v_plugins_15062_, v___x_15063_, v_a_15013_, v_a_15014_, v_a_15015_, v_a_15016_, v_a_15017_, v_a_15066_);
if (lean_obj_tag(v___x_15067_) == 0)
{
lean_object* v_a_15068_; lean_object* v_a_15069_; lean_object* v___x_15071_; uint8_t v_isShared_15072_; uint8_t v_isSharedCheck_15086_; 
v_a_15068_ = lean_ctor_get(v___x_15067_, 0);
v_a_15069_ = lean_ctor_get(v___x_15067_, 1);
v_isSharedCheck_15086_ = !lean_is_exclusive(v___x_15067_);
if (v_isSharedCheck_15086_ == 0)
{
v___x_15071_ = v___x_15067_;
v_isShared_15072_ = v_isSharedCheck_15086_;
goto v_resetjp_15070_;
}
else
{
lean_inc(v_a_15069_);
lean_inc(v_a_15068_);
lean_dec(v___x_15067_);
v___x_15071_ = lean_box(0);
v_isShared_15072_ = v_isSharedCheck_15086_;
goto v_resetjp_15070_;
}
v_resetjp_15070_:
{
lean_object* v___x_15073_; lean_object* v___x_15074_; lean_object* v___x_15075_; lean_object* v___x_15076_; lean_object* v___x_15077_; lean_object* v___f_15078_; lean_object* v___x_15079_; lean_object* v___f_15080_; lean_object* v___x_15081_; lean_object* v___x_15082_; lean_object* v___x_15084_; 
v___x_15073_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__3___closed__2));
v___x_15074_ = l_Lake_Job_collectArray___redArg(v_a_15059_, v___x_15073_);
lean_dec_ref(v_a_15059_);
v___x_15075_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_setupEditedModule___boxed__const__1));
v___x_15076_ = lean_box(v_isModule_15033_);
v___x_15077_ = lean_box(v___x_15057_);
v___f_15078_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__4___boxed), 19, 11);
lean_closure_set(v___f_15078_, 0, v_a_15037_);
lean_closure_set(v___f_15078_, 1, v___x_15075_);
lean_closure_set(v___f_15078_, 2, v___x_15076_);
lean_closure_set(v___f_15078_, 3, v_leanOpts_15012_);
lean_closure_set(v___f_15078_, 4, v___x_15077_);
lean_closure_set(v___f_15078_, 5, v___x_15039_);
lean_closure_set(v___f_15078_, 6, v___x_15074_);
lean_closure_set(v___f_15078_, 7, v___x_15044_);
lean_closure_set(v___f_15078_, 8, v_a_15068_);
lean_closure_set(v___f_15078_, 9, v_a_15065_);
lean_closure_set(v___f_15078_, 10, v_a_15053_);
v___x_15079_ = lean_box(v___x_15057_);
v___f_15080_ = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__5___boxed), 13, 5);
lean_closure_set(v___f_15080_, 0, v___x_15039_);
lean_closure_set(v___f_15080_, 1, v_a_15041_);
lean_closure_set(v___f_15080_, 2, v___f_15078_);
lean_closure_set(v___f_15080_, 3, v___x_15044_);
lean_closure_set(v___f_15080_, 4, v___x_15079_);
v___x_15081_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_15082_ = l_Lake_Job_bindM___redArg(v___x_15039_, v_a_15030_, v___f_15080_, v___x_15044_, v___x_15057_, v_a_15013_, v_a_15014_, v_a_15015_, v_a_15016_, v_a_15017_, v___x_15081_);
if (v_isShared_15072_ == 0)
{
lean_ctor_set(v___x_15071_, 0, v___x_15082_);
v___x_15084_ = v___x_15071_;
goto v_reusejp_15083_;
}
else
{
lean_object* v_reuseFailAlloc_15085_; 
v_reuseFailAlloc_15085_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_15085_, 0, v___x_15082_);
lean_ctor_set(v_reuseFailAlloc_15085_, 1, v_a_15069_);
v___x_15084_ = v_reuseFailAlloc_15085_;
goto v_reusejp_15083_;
}
v_reusejp_15083_:
{
return v___x_15084_;
}
}
}
else
{
lean_object* v_a_15087_; lean_object* v_a_15088_; lean_object* v___x_15090_; uint8_t v_isShared_15091_; uint8_t v_isSharedCheck_15095_; 
lean_dec(v_a_15065_);
lean_dec_ref(v_a_15059_);
lean_dec(v_a_15053_);
lean_dec(v_a_15041_);
lean_dec(v_a_15037_);
lean_dec(v_a_15030_);
lean_dec_ref(v_a_15017_);
lean_dec(v_a_15016_);
lean_dec(v_a_15015_);
lean_dec(v_a_15014_);
lean_dec_ref(v_a_15013_);
lean_dec(v_leanOpts_15012_);
v_a_15087_ = lean_ctor_get(v___x_15067_, 0);
v_a_15088_ = lean_ctor_get(v___x_15067_, 1);
v_isSharedCheck_15095_ = !lean_is_exclusive(v___x_15067_);
if (v_isSharedCheck_15095_ == 0)
{
v___x_15090_ = v___x_15067_;
v_isShared_15091_ = v_isSharedCheck_15095_;
goto v_resetjp_15089_;
}
else
{
lean_inc(v_a_15088_);
lean_inc(v_a_15087_);
lean_dec(v___x_15067_);
v___x_15090_ = lean_box(0);
v_isShared_15091_ = v_isSharedCheck_15095_;
goto v_resetjp_15089_;
}
v_resetjp_15089_:
{
lean_object* v___x_15093_; 
if (v_isShared_15091_ == 0)
{
v___x_15093_ = v___x_15090_;
goto v_reusejp_15092_;
}
else
{
lean_object* v_reuseFailAlloc_15094_; 
v_reuseFailAlloc_15094_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_15094_, 0, v_a_15087_);
lean_ctor_set(v_reuseFailAlloc_15094_, 1, v_a_15088_);
v___x_15093_ = v_reuseFailAlloc_15094_;
goto v_reusejp_15092_;
}
v_reusejp_15092_:
{
return v___x_15093_;
}
}
}
}
else
{
lean_object* v_a_15096_; lean_object* v_a_15097_; lean_object* v___x_15099_; uint8_t v_isShared_15100_; uint8_t v_isSharedCheck_15104_; 
lean_dec_ref(v_a_15059_);
lean_dec(v_a_15053_);
lean_dec(v_a_15041_);
lean_dec(v_a_15037_);
lean_dec(v_a_15030_);
lean_dec_ref(v_a_15017_);
lean_dec(v_a_15016_);
lean_dec(v_a_15015_);
lean_dec(v_a_15014_);
lean_dec_ref(v_a_15013_);
lean_dec(v_leanOpts_15012_);
v_a_15096_ = lean_ctor_get(v___x_15064_, 0);
v_a_15097_ = lean_ctor_get(v___x_15064_, 1);
v_isSharedCheck_15104_ = !lean_is_exclusive(v___x_15064_);
if (v_isSharedCheck_15104_ == 0)
{
v___x_15099_ = v___x_15064_;
v_isShared_15100_ = v_isSharedCheck_15104_;
goto v_resetjp_15098_;
}
else
{
lean_inc(v_a_15097_);
lean_inc(v_a_15096_);
lean_dec(v___x_15064_);
v___x_15099_ = lean_box(0);
v_isShared_15100_ = v_isSharedCheck_15104_;
goto v_resetjp_15098_;
}
v_resetjp_15098_:
{
lean_object* v___x_15102_; 
if (v_isShared_15100_ == 0)
{
v___x_15102_ = v___x_15099_;
goto v_reusejp_15101_;
}
else
{
lean_object* v_reuseFailAlloc_15103_; 
v_reuseFailAlloc_15103_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_15103_, 0, v_a_15096_);
lean_ctor_set(v_reuseFailAlloc_15103_, 1, v_a_15097_);
v___x_15102_ = v_reuseFailAlloc_15103_;
goto v_reusejp_15101_;
}
v_reusejp_15101_:
{
return v___x_15102_;
}
}
}
}
v___jp_15105_:
{
if (lean_obj_tag(v___y_15106_) == 0)
{
lean_object* v_a_15107_; lean_object* v_a_15108_; 
v_a_15107_ = lean_ctor_get(v___y_15106_, 0);
lean_inc(v_a_15107_);
v_a_15108_ = lean_ctor_get(v___y_15106_, 1);
lean_inc(v_a_15108_);
lean_dec_ref(v___y_15106_);
v_a_15059_ = v_a_15107_;
v_a_15060_ = v_a_15108_;
goto v___jp_15058_;
}
else
{
lean_object* v_a_15109_; lean_object* v_a_15110_; lean_object* v___x_15112_; uint8_t v_isShared_15113_; uint8_t v_isSharedCheck_15117_; 
lean_dec(v_a_15053_);
lean_dec(v_a_15041_);
lean_dec(v_a_15037_);
lean_dec(v_a_15030_);
lean_dec_ref(v_a_15017_);
lean_dec(v_a_15016_);
lean_dec(v_a_15015_);
lean_dec(v_a_15014_);
lean_dec_ref(v_a_15013_);
lean_dec(v_leanOpts_15012_);
v_a_15109_ = lean_ctor_get(v___y_15106_, 0);
v_a_15110_ = lean_ctor_get(v___y_15106_, 1);
v_isSharedCheck_15117_ = !lean_is_exclusive(v___y_15106_);
if (v_isSharedCheck_15117_ == 0)
{
v___x_15112_ = v___y_15106_;
v_isShared_15113_ = v_isSharedCheck_15117_;
goto v_resetjp_15111_;
}
else
{
lean_inc(v_a_15110_);
lean_inc(v_a_15109_);
lean_dec(v___y_15106_);
v___x_15112_ = lean_box(0);
v_isShared_15113_ = v_isSharedCheck_15117_;
goto v_resetjp_15111_;
}
v_resetjp_15111_:
{
lean_object* v___x_15115_; 
if (v_isShared_15113_ == 0)
{
v___x_15115_ = v___x_15112_;
goto v_reusejp_15114_;
}
else
{
lean_object* v_reuseFailAlloc_15116_; 
v_reuseFailAlloc_15116_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_15116_, 0, v_a_15109_);
lean_ctor_set(v_reuseFailAlloc_15116_, 1, v_a_15110_);
v___x_15115_ = v_reuseFailAlloc_15116_;
goto v_reusejp_15114_;
}
v_reusejp_15114_:
{
return v___x_15115_;
}
}
}
}
}
else
{
lean_object* v_a_15135_; lean_object* v_a_15136_; lean_object* v___x_15138_; uint8_t v_isShared_15139_; uint8_t v_isSharedCheck_15143_; 
lean_dec(v_a_15041_);
lean_dec(v_a_15037_);
lean_dec(v_a_15030_);
lean_dec_ref(v_a_15017_);
lean_dec(v_a_15016_);
lean_dec(v_a_15015_);
lean_dec(v_a_15014_);
lean_dec_ref(v_a_15013_);
lean_dec(v_leanOpts_15012_);
v_a_15135_ = lean_ctor_get(v___x_15052_, 0);
v_a_15136_ = lean_ctor_get(v___x_15052_, 1);
v_isSharedCheck_15143_ = !lean_is_exclusive(v___x_15052_);
if (v_isSharedCheck_15143_ == 0)
{
v___x_15138_ = v___x_15052_;
v_isShared_15139_ = v_isSharedCheck_15143_;
goto v_resetjp_15137_;
}
else
{
lean_inc(v_a_15136_);
lean_inc(v_a_15135_);
lean_dec(v___x_15052_);
v___x_15138_ = lean_box(0);
v_isShared_15139_ = v_isSharedCheck_15143_;
goto v_resetjp_15137_;
}
v_resetjp_15137_:
{
lean_object* v___x_15141_; 
if (v_isShared_15139_ == 0)
{
v___x_15141_ = v___x_15138_;
goto v_reusejp_15140_;
}
else
{
lean_object* v_reuseFailAlloc_15142_; 
v_reuseFailAlloc_15142_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_15142_, 0, v_a_15135_);
lean_ctor_set(v_reuseFailAlloc_15142_, 1, v_a_15136_);
v___x_15141_ = v_reuseFailAlloc_15142_;
goto v_reusejp_15140_;
}
v_reusejp_15140_:
{
return v___x_15141_;
}
}
}
}
else
{
lean_object* v_a_15144_; lean_object* v_a_15145_; lean_object* v___x_15147_; uint8_t v_isShared_15148_; uint8_t v_isSharedCheck_15152_; 
lean_dec(v_a_15041_);
lean_dec(v_a_15037_);
lean_dec(v_a_15030_);
lean_dec_ref(v_a_15017_);
lean_dec(v_a_15016_);
lean_dec(v_a_15015_);
lean_dec(v_a_15014_);
lean_dec_ref(v_a_15013_);
lean_dec(v_leanOpts_15012_);
v_a_15144_ = lean_ctor_get(v___x_15049_, 0);
v_a_15145_ = lean_ctor_get(v___x_15049_, 1);
v_isSharedCheck_15152_ = !lean_is_exclusive(v___x_15049_);
if (v_isSharedCheck_15152_ == 0)
{
v___x_15147_ = v___x_15049_;
v_isShared_15148_ = v_isSharedCheck_15152_;
goto v_resetjp_15146_;
}
else
{
lean_inc(v_a_15145_);
lean_inc(v_a_15144_);
lean_dec(v___x_15049_);
v___x_15147_ = lean_box(0);
v_isShared_15148_ = v_isSharedCheck_15152_;
goto v_resetjp_15146_;
}
v_resetjp_15146_:
{
lean_object* v___x_15150_; 
if (v_isShared_15148_ == 0)
{
v___x_15150_ = v___x_15147_;
goto v_reusejp_15149_;
}
else
{
lean_object* v_reuseFailAlloc_15151_; 
v_reuseFailAlloc_15151_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_15151_, 0, v_a_15144_);
lean_ctor_set(v_reuseFailAlloc_15151_, 1, v_a_15145_);
v___x_15150_ = v_reuseFailAlloc_15151_;
goto v_reusejp_15149_;
}
v_reusejp_15149_:
{
return v___x_15150_;
}
}
}
}
else
{
lean_object* v_a_15153_; lean_object* v_a_15154_; lean_object* v___x_15156_; uint8_t v_isShared_15157_; uint8_t v_isSharedCheck_15161_; 
lean_dec(v_a_15041_);
lean_dec(v_a_15037_);
lean_dec(v_a_15030_);
lean_dec_ref(v_a_15017_);
lean_dec(v_a_15016_);
lean_dec(v_a_15015_);
lean_dec(v_a_15014_);
lean_dec_ref(v_a_15013_);
lean_dec(v_leanOpts_15012_);
v_a_15153_ = lean_ctor_get(v___x_15046_, 0);
v_a_15154_ = lean_ctor_get(v___x_15046_, 1);
v_isSharedCheck_15161_ = !lean_is_exclusive(v___x_15046_);
if (v_isSharedCheck_15161_ == 0)
{
v___x_15156_ = v___x_15046_;
v_isShared_15157_ = v_isSharedCheck_15161_;
goto v_resetjp_15155_;
}
else
{
lean_inc(v_a_15154_);
lean_inc(v_a_15153_);
lean_dec(v___x_15046_);
v___x_15156_ = lean_box(0);
v_isShared_15157_ = v_isSharedCheck_15161_;
goto v_resetjp_15155_;
}
v_resetjp_15155_:
{
lean_object* v___x_15159_; 
if (v_isShared_15157_ == 0)
{
v___x_15159_ = v___x_15156_;
goto v_reusejp_15158_;
}
else
{
lean_object* v_reuseFailAlloc_15160_; 
v_reuseFailAlloc_15160_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_15160_, 0, v_a_15153_);
lean_ctor_set(v_reuseFailAlloc_15160_, 1, v_a_15154_);
v___x_15159_ = v_reuseFailAlloc_15160_;
goto v_reusejp_15158_;
}
v_reusejp_15158_:
{
return v___x_15159_;
}
}
}
}
else
{
lean_object* v_a_15162_; lean_object* v_a_15163_; lean_object* v___x_15165_; uint8_t v_isShared_15166_; uint8_t v_isSharedCheck_15170_; 
lean_dec(v_a_15037_);
lean_dec(v_a_15030_);
lean_dec_ref(v_a_15017_);
lean_dec(v_a_15016_);
lean_dec(v_a_15015_);
lean_dec(v_a_15014_);
lean_dec_ref(v_a_15013_);
lean_dec(v_leanOpts_15012_);
lean_dec_ref(v_fileName_15010_);
v_a_15162_ = lean_ctor_get(v___x_15040_, 0);
v_a_15163_ = lean_ctor_get(v___x_15040_, 1);
v_isSharedCheck_15170_ = !lean_is_exclusive(v___x_15040_);
if (v_isSharedCheck_15170_ == 0)
{
v___x_15165_ = v___x_15040_;
v_isShared_15166_ = v_isSharedCheck_15170_;
goto v_resetjp_15164_;
}
else
{
lean_inc(v_a_15163_);
lean_inc(v_a_15162_);
lean_dec(v___x_15040_);
v___x_15165_ = lean_box(0);
v_isShared_15166_ = v_isSharedCheck_15170_;
goto v_resetjp_15164_;
}
v_resetjp_15164_:
{
lean_object* v___x_15168_; 
if (v_isShared_15166_ == 0)
{
v___x_15168_ = v___x_15165_;
goto v_reusejp_15167_;
}
else
{
lean_object* v_reuseFailAlloc_15169_; 
v_reuseFailAlloc_15169_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_15169_, 0, v_a_15162_);
lean_ctor_set(v_reuseFailAlloc_15169_, 1, v_a_15163_);
v___x_15168_ = v_reuseFailAlloc_15169_;
goto v_reusejp_15167_;
}
v_reusejp_15167_:
{
return v___x_15168_;
}
}
}
}
else
{
lean_object* v_a_15171_; lean_object* v_a_15172_; lean_object* v___x_15174_; uint8_t v_isShared_15175_; uint8_t v_isSharedCheck_15179_; 
lean_dec(v_a_15030_);
lean_dec_ref(v_a_15017_);
lean_dec(v_a_15016_);
lean_dec(v_a_15015_);
lean_dec(v_a_15014_);
lean_dec_ref(v_a_15013_);
lean_dec(v_leanOpts_15012_);
lean_dec_ref(v_header_15011_);
lean_dec_ref(v_fileName_15010_);
v_a_15171_ = lean_ctor_get(v___x_15036_, 0);
v_a_15172_ = lean_ctor_get(v___x_15036_, 1);
v_isSharedCheck_15179_ = !lean_is_exclusive(v___x_15036_);
if (v_isSharedCheck_15179_ == 0)
{
v___x_15174_ = v___x_15036_;
v_isShared_15175_ = v_isSharedCheck_15179_;
goto v_resetjp_15173_;
}
else
{
lean_inc(v_a_15172_);
lean_inc(v_a_15171_);
lean_dec(v___x_15036_);
v___x_15174_ = lean_box(0);
v_isShared_15175_ = v_isSharedCheck_15179_;
goto v_resetjp_15173_;
}
v_resetjp_15173_:
{
lean_object* v___x_15177_; 
if (v_isShared_15175_ == 0)
{
v___x_15177_ = v___x_15174_;
goto v_reusejp_15176_;
}
else
{
lean_object* v_reuseFailAlloc_15178_; 
v_reuseFailAlloc_15178_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_15178_, 0, v_a_15171_);
lean_ctor_set(v_reuseFailAlloc_15178_, 1, v_a_15172_);
v___x_15177_ = v_reuseFailAlloc_15178_;
goto v_reusejp_15176_;
}
v_reusejp_15176_:
{
return v___x_15177_;
}
}
}
}
else
{
lean_object* v_a_15180_; lean_object* v_a_15181_; lean_object* v___x_15183_; uint8_t v_isShared_15184_; uint8_t v_isSharedCheck_15188_; 
lean_dec_ref(v_a_15017_);
lean_dec(v_a_15016_);
lean_dec(v_a_15015_);
lean_dec(v_a_15014_);
lean_dec_ref(v_a_15013_);
lean_dec(v_leanOpts_15012_);
lean_dec_ref(v_header_15011_);
lean_dec_ref(v_fileName_15010_);
v_a_15180_ = lean_ctor_get(v___x_15029_, 0);
v_a_15181_ = lean_ctor_get(v___x_15029_, 1);
v_isSharedCheck_15188_ = !lean_is_exclusive(v___x_15029_);
if (v_isSharedCheck_15188_ == 0)
{
v___x_15183_ = v___x_15029_;
v_isShared_15184_ = v_isSharedCheck_15188_;
goto v_resetjp_15182_;
}
else
{
lean_inc(v_a_15181_);
lean_inc(v_a_15180_);
lean_dec(v___x_15029_);
v___x_15183_ = lean_box(0);
v_isShared_15184_ = v_isSharedCheck_15188_;
goto v_resetjp_15182_;
}
v_resetjp_15182_:
{
lean_object* v___x_15186_; 
if (v_isShared_15184_ == 0)
{
v___x_15186_ = v___x_15183_;
goto v_reusejp_15185_;
}
else
{
lean_object* v_reuseFailAlloc_15187_; 
v_reuseFailAlloc_15187_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_15187_, 0, v_a_15180_);
lean_ctor_set(v_reuseFailAlloc_15187_, 1, v_a_15181_);
v___x_15186_ = v_reuseFailAlloc_15187_;
goto v_reusejp_15185_;
}
v_reusejp_15185_:
{
return v___x_15186_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModule___boxed(lean_object* v_fileName_15189_, lean_object* v_header_15190_, lean_object* v_leanOpts_15191_, lean_object* v_a_15192_, lean_object* v_a_15193_, lean_object* v_a_15194_, lean_object* v_a_15195_, lean_object* v_a_15196_, lean_object* v_a_15197_, lean_object* v_a_15198_){
_start:
{
lean_object* v_res_15199_; 
v_res_15199_ = l___private_Lake_Build_Module_0__Lake_setupExternalModule(v_fileName_15189_, v_header_15190_, v_leanOpts_15191_, v_a_15192_, v_a_15193_, v_a_15194_, v_a_15195_, v_a_15196_, v_a_15197_);
return v_res_15199_;
}
}
LEAN_EXPORT lean_object* l_Lake_setupServerModule___lam__0(lean_object* v_path_15201_, lean_object* v_fileName_15202_, lean_object* v_header_x3f_15203_, lean_object* v___y_15204_, lean_object* v___y_15205_, lean_object* v___y_15206_, lean_object* v___y_15207_, lean_object* v___y_15208_, lean_object* v___y_15209_){
_start:
{
lean_object* v_a_15212_; lean_object* v_a_15234_; lean_object* v_a_15235_; 
if (lean_obj_tag(v_header_x3f_15203_) == 0)
{
lean_object* v___x_15237_; 
v___x_15237_ = l_IO_FS_readFile(v_path_15201_);
if (lean_obj_tag(v___x_15237_) == 0)
{
lean_object* v_a_15238_; lean_object* v___x_15239_; 
v_a_15238_ = lean_ctor_get(v___x_15237_, 0);
lean_inc(v_a_15238_);
lean_dec_ref(v___x_15237_);
lean_inc_ref(v_fileName_15202_);
v___x_15239_ = l_Lean_parseImports_x27(v_a_15238_, v_fileName_15202_);
if (lean_obj_tag(v___x_15239_) == 0)
{
lean_object* v_a_15240_; 
v_a_15240_ = lean_ctor_get(v___x_15239_, 0);
lean_inc(v_a_15240_);
lean_dec_ref(v___x_15239_);
v_a_15212_ = v_a_15240_;
goto v___jp_15211_;
}
else
{
lean_object* v_a_15241_; lean_object* v___x_15242_; uint8_t v___x_15243_; lean_object* v___x_15244_; lean_object* v___x_15245_; lean_object* v___x_15246_; 
lean_dec_ref(v___y_15208_);
lean_dec(v___y_15207_);
lean_dec(v___y_15206_);
lean_dec(v___y_15205_);
lean_dec_ref(v___y_15204_);
lean_dec_ref(v_fileName_15202_);
lean_dec_ref(v_path_15201_);
v_a_15241_ = lean_ctor_get(v___x_15239_, 0);
lean_inc(v_a_15241_);
lean_dec_ref(v___x_15239_);
v___x_15242_ = lean_io_error_to_string(v_a_15241_);
v___x_15243_ = 3;
v___x_15244_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_15244_, 0, v___x_15242_);
lean_ctor_set_uint8(v___x_15244_, sizeof(void*)*1, v___x_15243_);
v___x_15245_ = lean_array_get_size(v___y_15209_);
v___x_15246_ = lean_array_push(v___y_15209_, v___x_15244_);
v_a_15234_ = v___x_15245_;
v_a_15235_ = v___x_15246_;
goto v___jp_15233_;
}
}
else
{
lean_object* v_a_15247_; lean_object* v___x_15248_; uint8_t v___x_15249_; lean_object* v___x_15250_; lean_object* v___x_15251_; lean_object* v___x_15252_; 
lean_dec_ref(v___y_15208_);
lean_dec(v___y_15207_);
lean_dec(v___y_15206_);
lean_dec(v___y_15205_);
lean_dec_ref(v___y_15204_);
lean_dec_ref(v_fileName_15202_);
lean_dec_ref(v_path_15201_);
v_a_15247_ = lean_ctor_get(v___x_15237_, 0);
lean_inc(v_a_15247_);
lean_dec_ref(v___x_15237_);
v___x_15248_ = lean_io_error_to_string(v_a_15247_);
v___x_15249_ = 3;
v___x_15250_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_15250_, 0, v___x_15248_);
lean_ctor_set_uint8(v___x_15250_, sizeof(void*)*1, v___x_15249_);
v___x_15251_ = lean_array_get_size(v___y_15209_);
v___x_15252_ = lean_array_push(v___y_15209_, v___x_15250_);
v_a_15234_ = v___x_15251_;
v_a_15235_ = v___x_15252_;
goto v___jp_15233_;
}
}
else
{
lean_object* v_val_15253_; 
v_val_15253_ = lean_ctor_get(v_header_x3f_15203_, 0);
lean_inc(v_val_15253_);
lean_dec_ref(v_header_x3f_15203_);
v_a_15212_ = v_val_15253_;
goto v___jp_15211_;
}
v___jp_15211_:
{
lean_object* v_toContext_15213_; lean_object* v___x_15214_; 
v_toContext_15213_ = lean_ctor_get(v___y_15208_, 1);
v___x_15214_ = l_Lake_Workspace_findModuleBySrc_x3f(v_path_15201_, v_toContext_15213_);
if (lean_obj_tag(v___x_15214_) == 1)
{
lean_object* v_val_15215_; lean_object* v_name_15216_; lean_object* v___x_15217_; uint8_t v___x_15218_; lean_object* v___x_15219_; lean_object* v___x_15220_; uint8_t v___x_15221_; lean_object* v___x_15222_; lean_object* v___x_15223_; lean_object* v___x_15224_; 
lean_dec_ref(v_fileName_15202_);
v_val_15215_ = lean_ctor_get(v___x_15214_, 0);
lean_inc(v_val_15215_);
lean_dec_ref(v___x_15214_);
v_name_15216_ = lean_ctor_get(v_val_15215_, 1);
v___x_15217_ = ((lean_object*)(l_Lake_setupServerModule___lam__0___closed__0));
v___x_15218_ = 1;
lean_inc(v_name_15216_);
v___x_15219_ = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(v_name_15216_, v___x_15218_);
v___x_15220_ = lean_string_append(v___x_15217_, v___x_15219_);
lean_dec_ref(v___x_15219_);
v___x_15221_ = 0;
v___x_15222_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_15222_, 0, v___x_15220_);
lean_ctor_set_uint8(v___x_15222_, sizeof(void*)*1, v___x_15221_);
v___x_15223_ = lean_array_push(v___y_15209_, v___x_15222_);
v___x_15224_ = l___private_Lake_Build_Module_0__Lake_setupEditedModule(v_val_15215_, v_a_15212_, v___y_15204_, v___y_15205_, v___y_15206_, v___y_15207_, v___y_15208_, v___x_15223_);
return v___x_15224_;
}
else
{
lean_object* v_root_15225_; lean_object* v_config_15226_; lean_object* v_toLeanConfig_15227_; lean_object* v_leanOptions_15228_; lean_object* v_moreServerOptions_15229_; lean_object* v___x_15230_; lean_object* v___x_15231_; lean_object* v___x_15232_; 
lean_dec(v___x_15214_);
v_root_15225_ = lean_ctor_get(v_toContext_15213_, 0);
v_config_15226_ = lean_ctor_get(v_root_15225_, 6);
v_toLeanConfig_15227_ = lean_ctor_get(v_config_15226_, 1);
v_leanOptions_15228_ = lean_ctor_get(v_toLeanConfig_15227_, 0);
v_moreServerOptions_15229_ = lean_ctor_get(v_toLeanConfig_15227_, 4);
v___x_15230_ = l_Lean_LeanOptions_ofArray(v_leanOptions_15228_);
v___x_15231_ = l_Lean_LeanOptions_appendArray(v___x_15230_, v_moreServerOptions_15229_);
v___x_15232_ = l___private_Lake_Build_Module_0__Lake_setupExternalModule(v_fileName_15202_, v_a_15212_, v___x_15231_, v___y_15204_, v___y_15205_, v___y_15206_, v___y_15207_, v___y_15208_, v___y_15209_);
return v___x_15232_;
}
}
v___jp_15233_:
{
lean_object* v___x_15236_; 
v___x_15236_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_15236_, 0, v_a_15234_);
lean_ctor_set(v___x_15236_, 1, v_a_15235_);
return v___x_15236_;
}
}
}
LEAN_EXPORT lean_object* l_Lake_setupServerModule___lam__0___boxed(lean_object* v_path_15254_, lean_object* v_fileName_15255_, lean_object* v_header_x3f_15256_, lean_object* v___y_15257_, lean_object* v___y_15258_, lean_object* v___y_15259_, lean_object* v___y_15260_, lean_object* v___y_15261_, lean_object* v___y_15262_, lean_object* v___y_15263_){
_start:
{
lean_object* v_res_15264_; 
v_res_15264_ = l_Lake_setupServerModule___lam__0(v_path_15254_, v_fileName_15255_, v_header_x3f_15256_, v___y_15257_, v___y_15258_, v___y_15259_, v___y_15260_, v___y_15261_, v___y_15262_);
return v_res_15264_;
}
}
LEAN_EXPORT lean_object* l_Lake_setupServerModule(lean_object* v_fileName_15266_, lean_object* v_path_15267_, lean_object* v_header_x3f_15268_, lean_object* v_a_15269_, lean_object* v_a_15270_, lean_object* v_a_15271_, lean_object* v_a_15272_, lean_object* v_a_15273_, lean_object* v_a_15274_){
_start:
{
lean_object* v___f_15276_; lean_object* v___x_15277_; lean_object* v___x_15278_; 
lean_inc_ref(v_fileName_15266_);
v___f_15276_ = lean_alloc_closure((void*)(l_Lake_setupServerModule___lam__0___boxed), 10, 3);
lean_closure_set(v___f_15276_, 0, v_path_15267_);
lean_closure_set(v___f_15276_, 1, v_fileName_15266_);
lean_closure_set(v___f_15276_, 2, v_header_x3f_15268_);
v___x_15277_ = lean_box(0);
lean_inc_ref(v_a_15273_);
v___x_15278_ = l_Lake_ensureJob___redArg(v___x_15277_, v___f_15276_, v_a_15269_, v_a_15270_, v_a_15271_, v_a_15272_, v_a_15273_, v_a_15274_);
if (lean_obj_tag(v___x_15278_) == 0)
{
lean_object* v_a_15279_; lean_object* v_a_15280_; lean_object* v___x_15282_; uint8_t v_isShared_15283_; uint8_t v_isSharedCheck_15306_; 
v_a_15279_ = lean_ctor_get(v___x_15278_, 0);
v_a_15280_ = lean_ctor_get(v___x_15278_, 1);
v_isSharedCheck_15306_ = !lean_is_exclusive(v___x_15278_);
if (v_isSharedCheck_15306_ == 0)
{
v___x_15282_ = v___x_15278_;
v_isShared_15283_ = v_isSharedCheck_15306_;
goto v_resetjp_15281_;
}
else
{
lean_inc(v_a_15280_);
lean_inc(v_a_15279_);
lean_dec(v___x_15278_);
v___x_15282_ = lean_box(0);
v_isShared_15283_ = v_isSharedCheck_15306_;
goto v_resetjp_15281_;
}
v_resetjp_15281_:
{
lean_object* v_task_15284_; lean_object* v_kind_15285_; lean_object* v___x_15287_; uint8_t v_isShared_15288_; uint8_t v_isSharedCheck_15304_; 
v_task_15284_ = lean_ctor_get(v_a_15279_, 0);
v_kind_15285_ = lean_ctor_get(v_a_15279_, 1);
v_isSharedCheck_15304_ = !lean_is_exclusive(v_a_15279_);
if (v_isSharedCheck_15304_ == 0)
{
lean_object* v_unused_15305_; 
v_unused_15305_ = lean_ctor_get(v_a_15279_, 2);
lean_dec(v_unused_15305_);
v___x_15287_ = v_a_15279_;
v_isShared_15288_ = v_isSharedCheck_15304_;
goto v_resetjp_15286_;
}
else
{
lean_inc(v_kind_15285_);
lean_inc(v_task_15284_);
lean_dec(v_a_15279_);
v___x_15287_ = lean_box(0);
v_isShared_15288_ = v_isSharedCheck_15304_;
goto v_resetjp_15286_;
}
v_resetjp_15286_:
{
lean_object* v_registeredJobs_15289_; lean_object* v___x_15290_; lean_object* v___x_15291_; lean_object* v___x_15292_; uint8_t v___x_15293_; lean_object* v_job_15295_; 
v_registeredJobs_15289_ = lean_ctor_get(v_a_15273_, 3);
lean_inc(v_registeredJobs_15289_);
lean_dec_ref(v_a_15273_);
v___x_15290_ = lean_st_ref_take(v_registeredJobs_15289_);
v___x_15291_ = ((lean_object*)(l_Lake_setupServerModule___closed__0));
v___x_15292_ = lean_string_append(v___x_15291_, v_fileName_15266_);
lean_dec_ref(v_fileName_15266_);
v___x_15293_ = 0;
if (v_isShared_15288_ == 0)
{
lean_ctor_set(v___x_15287_, 2, v___x_15292_);
v_job_15295_ = v___x_15287_;
goto v_reusejp_15294_;
}
else
{
lean_object* v_reuseFailAlloc_15303_; 
v_reuseFailAlloc_15303_ = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(v_reuseFailAlloc_15303_, 0, v_task_15284_);
lean_ctor_set(v_reuseFailAlloc_15303_, 1, v_kind_15285_);
lean_ctor_set(v_reuseFailAlloc_15303_, 2, v___x_15292_);
v_job_15295_ = v_reuseFailAlloc_15303_;
goto v_reusejp_15294_;
}
v_reusejp_15294_:
{
lean_object* v___x_15296_; lean_object* v___x_15297_; lean_object* v___x_15298_; lean_object* v___x_15299_; lean_object* v___x_15301_; 
lean_ctor_set_uint8(v_job_15295_, sizeof(void*)*3, v___x_15293_);
lean_inc_ref(v_job_15295_);
v___x_15296_ = l_Lake_Job_toOpaque___redArg(v_job_15295_);
v___x_15297_ = lean_array_push(v___x_15290_, v___x_15296_);
v___x_15298_ = lean_st_ref_set(v_registeredJobs_15289_, v___x_15297_);
lean_dec(v_registeredJobs_15289_);
v___x_15299_ = l_Lake_Job_renew___redArg(v_job_15295_);
if (v_isShared_15283_ == 0)
{
lean_ctor_set(v___x_15282_, 0, v___x_15299_);
v___x_15301_ = v___x_15282_;
goto v_reusejp_15300_;
}
else
{
lean_object* v_reuseFailAlloc_15302_; 
v_reuseFailAlloc_15302_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_15302_, 0, v___x_15299_);
lean_ctor_set(v_reuseFailAlloc_15302_, 1, v_a_15280_);
v___x_15301_ = v_reuseFailAlloc_15302_;
goto v_reusejp_15300_;
}
v_reusejp_15300_:
{
return v___x_15301_;
}
}
}
}
}
else
{
lean_dec_ref(v_a_15273_);
lean_dec_ref(v_fileName_15266_);
return v___x_15278_;
}
}
}
LEAN_EXPORT lean_object* l_Lake_setupServerModule___boxed(lean_object* v_fileName_15307_, lean_object* v_path_15308_, lean_object* v_header_x3f_15309_, lean_object* v_a_15310_, lean_object* v_a_15311_, lean_object* v_a_15312_, lean_object* v_a_15313_, lean_object* v_a_15314_, lean_object* v_a_15315_, lean_object* v_a_15316_){
_start:
{
lean_object* v_res_15317_; 
v_res_15317_ = l_Lake_setupServerModule(v_fileName_15307_, v_path_15308_, v_header_x3f_15309_, v_a_15310_, v_a_15311_, v_a_15312_, v_a_15313_, v_a_15314_, v_a_15315_);
return v_res_15317_;
}
}
static lean_object* _init_l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___redArg___closed__2(void){
_start:
{
lean_object* v___x_15320_; lean_object* v___x_15321_; lean_object* v___x_15322_; lean_object* v___x_15323_; 
v___x_15320_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___redArg___closed__1));
v___x_15321_ = lean_unsigned_to_nat(2u);
v___x_15322_ = lean_mk_empty_array_with_capacity(v___x_15321_);
v___x_15323_ = lean_array_push(v___x_15322_, v___x_15320_);
return v___x_15323_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___redArg(lean_object* v_leanFile_15324_, lean_object* v_setup_15325_, lean_object* v_cfgArgs_15326_, lean_object* v_a_15327_){
_start:
{
lean_object* v_log_15329_; uint8_t v_action_15330_; uint8_t v_wantsRebuild_15331_; lean_object* v_trace_15332_; lean_object* v_buildTime_15333_; lean_object* v___x_15335_; uint8_t v_isShared_15336_; uint8_t v_isSharedCheck_15385_; 
v_log_15329_ = lean_ctor_get(v_a_15327_, 0);
v_action_15330_ = lean_ctor_get_uint8(v_a_15327_, sizeof(void*)*3);
v_wantsRebuild_15331_ = lean_ctor_get_uint8(v_a_15327_, sizeof(void*)*3 + 1);
v_trace_15332_ = lean_ctor_get(v_a_15327_, 1);
v_buildTime_15333_ = lean_ctor_get(v_a_15327_, 2);
v_isSharedCheck_15385_ = !lean_is_exclusive(v_a_15327_);
if (v_isSharedCheck_15385_ == 0)
{
v___x_15335_ = v_a_15327_;
v_isShared_15336_ = v_isSharedCheck_15385_;
goto v_resetjp_15334_;
}
else
{
lean_inc(v_buildTime_15333_);
lean_inc(v_trace_15332_);
lean_inc(v_log_15329_);
lean_dec(v_a_15327_);
v___x_15335_ = lean_box(0);
v_isShared_15336_ = v_isSharedCheck_15385_;
goto v_resetjp_15334_;
}
v_resetjp_15334_:
{
lean_object* v___x_15337_; 
v___x_15337_ = lean_io_create_tempfile();
if (lean_obj_tag(v___x_15337_) == 0)
{
lean_object* v_a_15338_; lean_object* v_fst_15339_; lean_object* v_snd_15340_; lean_object* v___x_15342_; uint8_t v_isShared_15343_; uint8_t v_isSharedCheck_15374_; 
v_a_15338_ = lean_ctor_get(v___x_15337_, 0);
lean_inc(v_a_15338_);
lean_dec_ref(v___x_15337_);
v_fst_15339_ = lean_ctor_get(v_a_15338_, 0);
v_snd_15340_ = lean_ctor_get(v_a_15338_, 1);
v_isSharedCheck_15374_ = !lean_is_exclusive(v_a_15338_);
if (v_isSharedCheck_15374_ == 0)
{
v___x_15342_ = v_a_15338_;
v_isShared_15343_ = v_isSharedCheck_15374_;
goto v_resetjp_15341_;
}
else
{
lean_inc(v_snd_15340_);
lean_inc(v_fst_15339_);
lean_dec(v_a_15338_);
v___x_15342_ = lean_box(0);
v_isShared_15343_ = v_isSharedCheck_15374_;
goto v_resetjp_15341_;
}
v_resetjp_15341_:
{
lean_object* v___x_15344_; lean_object* v___x_15345_; lean_object* v___x_15346_; lean_object* v___x_15347_; uint8_t v___x_15348_; lean_object* v___x_15349_; lean_object* v___x_15350_; lean_object* v___x_15351_; 
v___x_15344_ = l_Lean_instToJsonModuleSetup_toJson(v_setup_15325_);
v___x_15345_ = l_Lean_Json_compress(v___x_15344_);
v___x_15346_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___redArg___closed__0));
v___x_15347_ = lean_string_append(v___x_15346_, v___x_15345_);
v___x_15348_ = 0;
v___x_15349_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_15349_, 0, v___x_15347_);
lean_ctor_set_uint8(v___x_15349_, sizeof(void*)*1, v___x_15348_);
v___x_15350_ = lean_array_push(v_log_15329_, v___x_15349_);
v___x_15351_ = lean_io_prim_handle_put_str(v_fst_15339_, v___x_15345_);
lean_dec_ref(v___x_15345_);
lean_dec(v_fst_15339_);
if (lean_obj_tag(v___x_15351_) == 0)
{
lean_object* v_args_15352_; lean_object* v___x_15354_; 
lean_dec_ref(v___x_15351_);
v_args_15352_ = lean_array_push(v_cfgArgs_15326_, v_leanFile_15324_);
if (v_isShared_15336_ == 0)
{
lean_ctor_set(v___x_15335_, 0, v___x_15350_);
v___x_15354_ = v___x_15335_;
goto v_reusejp_15353_;
}
else
{
lean_object* v_reuseFailAlloc_15361_; 
v_reuseFailAlloc_15361_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_15361_, 0, v___x_15350_);
lean_ctor_set(v_reuseFailAlloc_15361_, 1, v_trace_15332_);
lean_ctor_set(v_reuseFailAlloc_15361_, 2, v_buildTime_15333_);
lean_ctor_set_uint8(v_reuseFailAlloc_15361_, sizeof(void*)*3, v_action_15330_);
lean_ctor_set_uint8(v_reuseFailAlloc_15361_, sizeof(void*)*3 + 1, v_wantsRebuild_15331_);
v___x_15354_ = v_reuseFailAlloc_15361_;
goto v_reusejp_15353_;
}
v_reusejp_15353_:
{
lean_object* v___x_15355_; lean_object* v___x_15356_; lean_object* v___x_15357_; lean_object* v___x_15359_; 
v___x_15355_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___redArg___closed__2, &l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___redArg___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___redArg___closed__2);
v___x_15356_ = lean_array_push(v___x_15355_, v_snd_15340_);
v___x_15357_ = l_Array_append___redArg(v_args_15352_, v___x_15356_);
lean_dec_ref(v___x_15356_);
if (v_isShared_15343_ == 0)
{
lean_ctor_set(v___x_15342_, 1, v___x_15354_);
lean_ctor_set(v___x_15342_, 0, v___x_15357_);
v___x_15359_ = v___x_15342_;
goto v_reusejp_15358_;
}
else
{
lean_object* v_reuseFailAlloc_15360_; 
v_reuseFailAlloc_15360_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_15360_, 0, v___x_15357_);
lean_ctor_set(v_reuseFailAlloc_15360_, 1, v___x_15354_);
v___x_15359_ = v_reuseFailAlloc_15360_;
goto v_reusejp_15358_;
}
v_reusejp_15358_:
{
return v___x_15359_;
}
}
}
else
{
lean_object* v_a_15362_; lean_object* v___x_15363_; uint8_t v___x_15364_; lean_object* v___x_15365_; lean_object* v___x_15366_; lean_object* v___x_15367_; lean_object* v___x_15369_; 
lean_dec(v_snd_15340_);
lean_dec_ref(v_cfgArgs_15326_);
lean_dec_ref(v_leanFile_15324_);
v_a_15362_ = lean_ctor_get(v___x_15351_, 0);
lean_inc(v_a_15362_);
lean_dec_ref(v___x_15351_);
v___x_15363_ = lean_io_error_to_string(v_a_15362_);
v___x_15364_ = 3;
v___x_15365_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_15365_, 0, v___x_15363_);
lean_ctor_set_uint8(v___x_15365_, sizeof(void*)*1, v___x_15364_);
v___x_15366_ = lean_array_get_size(v___x_15350_);
v___x_15367_ = lean_array_push(v___x_15350_, v___x_15365_);
if (v_isShared_15336_ == 0)
{
lean_ctor_set(v___x_15335_, 0, v___x_15367_);
v___x_15369_ = v___x_15335_;
goto v_reusejp_15368_;
}
else
{
lean_object* v_reuseFailAlloc_15373_; 
v_reuseFailAlloc_15373_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_15373_, 0, v___x_15367_);
lean_ctor_set(v_reuseFailAlloc_15373_, 1, v_trace_15332_);
lean_ctor_set(v_reuseFailAlloc_15373_, 2, v_buildTime_15333_);
lean_ctor_set_uint8(v_reuseFailAlloc_15373_, sizeof(void*)*3, v_action_15330_);
lean_ctor_set_uint8(v_reuseFailAlloc_15373_, sizeof(void*)*3 + 1, v_wantsRebuild_15331_);
v___x_15369_ = v_reuseFailAlloc_15373_;
goto v_reusejp_15368_;
}
v_reusejp_15368_:
{
lean_object* v___x_15371_; 
if (v_isShared_15343_ == 0)
{
lean_ctor_set_tag(v___x_15342_, 1);
lean_ctor_set(v___x_15342_, 1, v___x_15369_);
lean_ctor_set(v___x_15342_, 0, v___x_15366_);
v___x_15371_ = v___x_15342_;
goto v_reusejp_15370_;
}
else
{
lean_object* v_reuseFailAlloc_15372_; 
v_reuseFailAlloc_15372_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_15372_, 0, v___x_15366_);
lean_ctor_set(v_reuseFailAlloc_15372_, 1, v___x_15369_);
v___x_15371_ = v_reuseFailAlloc_15372_;
goto v_reusejp_15370_;
}
v_reusejp_15370_:
{
return v___x_15371_;
}
}
}
}
}
else
{
lean_object* v_a_15375_; lean_object* v___x_15376_; uint8_t v___x_15377_; lean_object* v___x_15378_; lean_object* v___x_15379_; lean_object* v___x_15380_; lean_object* v___x_15382_; 
lean_dec_ref(v_cfgArgs_15326_);
lean_dec_ref(v_setup_15325_);
lean_dec_ref(v_leanFile_15324_);
v_a_15375_ = lean_ctor_get(v___x_15337_, 0);
lean_inc(v_a_15375_);
lean_dec_ref(v___x_15337_);
v___x_15376_ = lean_io_error_to_string(v_a_15375_);
v___x_15377_ = 3;
v___x_15378_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_15378_, 0, v___x_15376_);
lean_ctor_set_uint8(v___x_15378_, sizeof(void*)*1, v___x_15377_);
v___x_15379_ = lean_array_get_size(v_log_15329_);
v___x_15380_ = lean_array_push(v_log_15329_, v___x_15378_);
if (v_isShared_15336_ == 0)
{
lean_ctor_set(v___x_15335_, 0, v___x_15380_);
v___x_15382_ = v___x_15335_;
goto v_reusejp_15381_;
}
else
{
lean_object* v_reuseFailAlloc_15384_; 
v_reuseFailAlloc_15384_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_15384_, 0, v___x_15380_);
lean_ctor_set(v_reuseFailAlloc_15384_, 1, v_trace_15332_);
lean_ctor_set(v_reuseFailAlloc_15384_, 2, v_buildTime_15333_);
lean_ctor_set_uint8(v_reuseFailAlloc_15384_, sizeof(void*)*3, v_action_15330_);
lean_ctor_set_uint8(v_reuseFailAlloc_15384_, sizeof(void*)*3 + 1, v_wantsRebuild_15331_);
v___x_15382_ = v_reuseFailAlloc_15384_;
goto v_reusejp_15381_;
}
v_reusejp_15381_:
{
lean_object* v___x_15383_; 
v___x_15383_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_15383_, 0, v___x_15379_);
lean_ctor_set(v___x_15383_, 1, v___x_15382_);
return v___x_15383_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___redArg___boxed(lean_object* v_leanFile_15386_, lean_object* v_setup_15387_, lean_object* v_cfgArgs_15388_, lean_object* v_a_15389_, lean_object* v_a_15390_){
_start:
{
lean_object* v_res_15391_; 
v_res_15391_ = l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___redArg(v_leanFile_15386_, v_setup_15387_, v_cfgArgs_15388_, v_a_15389_);
return v_res_15391_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs(lean_object* v_leanFile_15392_, lean_object* v_setup_15393_, lean_object* v_cfgArgs_15394_, lean_object* v_a_15395_, lean_object* v_a_15396_, lean_object* v_a_15397_, lean_object* v_a_15398_, lean_object* v_a_15399_, lean_object* v_a_15400_){
_start:
{
lean_object* v___x_15402_; 
v___x_15402_ = l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___redArg(v_leanFile_15392_, v_setup_15393_, v_cfgArgs_15394_, v_a_15400_);
return v___x_15402_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___boxed(lean_object* v_leanFile_15403_, lean_object* v_setup_15404_, lean_object* v_cfgArgs_15405_, lean_object* v_a_15406_, lean_object* v_a_15407_, lean_object* v_a_15408_, lean_object* v_a_15409_, lean_object* v_a_15410_, lean_object* v_a_15411_, lean_object* v_a_15412_){
_start:
{
lean_object* v_res_15413_; 
v_res_15413_ = l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs(v_leanFile_15403_, v_setup_15404_, v_cfgArgs_15405_, v_a_15406_, v_a_15407_, v_a_15408_, v_a_15409_, v_a_15410_, v_a_15411_);
lean_dec_ref(v_a_15410_);
lean_dec(v_a_15409_);
lean_dec(v_a_15408_);
lean_dec(v_a_15407_);
lean_dec_ref(v_a_15406_);
return v_res_15413_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkSpawnArgs___redArg(lean_object* v_moreArgs_15414_, lean_object* v_leanFile_15415_, lean_object* v_setup_15416_, lean_object* v_cfgArgs_15417_, lean_object* v_a_15418_, lean_object* v_a_15419_){
_start:
{
lean_object* v___x_15421_; 
v___x_15421_ = l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___redArg(v_leanFile_15415_, v_setup_15416_, v_cfgArgs_15417_, v_a_15419_);
if (lean_obj_tag(v___x_15421_) == 0)
{
lean_object* v_a_15422_; lean_object* v_toContext_15423_; lean_object* v_lakeEnv_15424_; lean_object* v_lean_15425_; lean_object* v_a_15426_; lean_object* v___x_15428_; uint8_t v_isShared_15429_; uint8_t v_isSharedCheck_15457_; 
v_a_15422_ = lean_ctor_get(v___x_15421_, 1);
lean_inc(v_a_15422_);
v_toContext_15423_ = lean_ctor_get(v_a_15418_, 1);
lean_inc(v_toContext_15423_);
lean_dec_ref(v_a_15418_);
v_lakeEnv_15424_ = lean_ctor_get(v_toContext_15423_, 1);
v_lean_15425_ = lean_ctor_get(v_lakeEnv_15424_, 1);
v_a_15426_ = lean_ctor_get(v___x_15421_, 0);
v_isSharedCheck_15457_ = !lean_is_exclusive(v___x_15421_);
if (v_isSharedCheck_15457_ == 0)
{
lean_object* v_unused_15458_; 
v_unused_15458_ = lean_ctor_get(v___x_15421_, 1);
lean_dec(v_unused_15458_);
v___x_15428_ = v___x_15421_;
v_isShared_15429_ = v_isSharedCheck_15457_;
goto v_resetjp_15427_;
}
else
{
lean_inc(v_a_15426_);
lean_dec(v___x_15421_);
v___x_15428_ = lean_box(0);
v_isShared_15429_ = v_isSharedCheck_15457_;
goto v_resetjp_15427_;
}
v_resetjp_15427_:
{
lean_object* v_log_15430_; uint8_t v_action_15431_; uint8_t v_wantsRebuild_15432_; lean_object* v_trace_15433_; lean_object* v_buildTime_15434_; lean_object* v___x_15436_; uint8_t v_isShared_15437_; uint8_t v_isSharedCheck_15456_; 
v_log_15430_ = lean_ctor_get(v_a_15422_, 0);
v_action_15431_ = lean_ctor_get_uint8(v_a_15422_, sizeof(void*)*3);
v_wantsRebuild_15432_ = lean_ctor_get_uint8(v_a_15422_, sizeof(void*)*3 + 1);
v_trace_15433_ = lean_ctor_get(v_a_15422_, 1);
v_buildTime_15434_ = lean_ctor_get(v_a_15422_, 2);
v_isSharedCheck_15456_ = !lean_is_exclusive(v_a_15422_);
if (v_isSharedCheck_15456_ == 0)
{
v___x_15436_ = v_a_15422_;
v_isShared_15437_ = v_isSharedCheck_15456_;
goto v_resetjp_15435_;
}
else
{
lean_inc(v_buildTime_15434_);
lean_inc(v_trace_15433_);
lean_inc(v_log_15430_);
lean_dec(v_a_15422_);
v___x_15436_ = lean_box(0);
v_isShared_15437_ = v_isSharedCheck_15456_;
goto v_resetjp_15435_;
}
v_resetjp_15435_:
{
lean_object* v_lean_15438_; lean_object* v___x_15439_; lean_object* v___x_15440_; lean_object* v___x_15441_; lean_object* v___x_15442_; uint8_t v___x_15443_; uint8_t v___x_15444_; lean_object* v___x_15445_; lean_object* v___x_15446_; uint8_t v___x_15447_; lean_object* v___x_15448_; lean_object* v___x_15449_; lean_object* v___x_15451_; 
v_lean_15438_ = lean_ctor_get(v_lean_15425_, 7);
lean_inc_ref(v_lean_15438_);
v___x_15439_ = l_Lake_Workspace_augmentedEnvVars(v_toContext_15423_);
v___x_15440_ = ((lean_object*)(l___private_Lake_Build_Module_0__Lake_Module_packLtar___closed__0));
v___x_15441_ = l_Array_append___redArg(v_a_15426_, v_moreArgs_15414_);
v___x_15442_ = lean_box(0);
v___x_15443_ = 1;
v___x_15444_ = 0;
v___x_15445_ = lean_alloc_ctor(0, 5, 2);
lean_ctor_set(v___x_15445_, 0, v___x_15440_);
lean_ctor_set(v___x_15445_, 1, v_lean_15438_);
lean_ctor_set(v___x_15445_, 2, v___x_15441_);
lean_ctor_set(v___x_15445_, 3, v___x_15442_);
lean_ctor_set(v___x_15445_, 4, v___x_15439_);
lean_ctor_set_uint8(v___x_15445_, sizeof(void*)*5, v___x_15443_);
lean_ctor_set_uint8(v___x_15445_, sizeof(void*)*5 + 1, v___x_15444_);
lean_inc_ref(v___x_15445_);
v___x_15446_ = l_Lake_mkCmdLog(v___x_15445_);
v___x_15447_ = 0;
v___x_15448_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_15448_, 0, v___x_15446_);
lean_ctor_set_uint8(v___x_15448_, sizeof(void*)*1, v___x_15447_);
v___x_15449_ = lean_array_push(v_log_15430_, v___x_15448_);
if (v_isShared_15437_ == 0)
{
lean_ctor_set(v___x_15436_, 0, v___x_15449_);
v___x_15451_ = v___x_15436_;
goto v_reusejp_15450_;
}
else
{
lean_object* v_reuseFailAlloc_15455_; 
v_reuseFailAlloc_15455_ = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(v_reuseFailAlloc_15455_, 0, v___x_15449_);
lean_ctor_set(v_reuseFailAlloc_15455_, 1, v_trace_15433_);
lean_ctor_set(v_reuseFailAlloc_15455_, 2, v_buildTime_15434_);
lean_ctor_set_uint8(v_reuseFailAlloc_15455_, sizeof(void*)*3, v_action_15431_);
lean_ctor_set_uint8(v_reuseFailAlloc_15455_, sizeof(void*)*3 + 1, v_wantsRebuild_15432_);
v___x_15451_ = v_reuseFailAlloc_15455_;
goto v_reusejp_15450_;
}
v_reusejp_15450_:
{
lean_object* v___x_15453_; 
if (v_isShared_15429_ == 0)
{
lean_ctor_set(v___x_15428_, 1, v___x_15451_);
lean_ctor_set(v___x_15428_, 0, v___x_15445_);
v___x_15453_ = v___x_15428_;
goto v_reusejp_15452_;
}
else
{
lean_object* v_reuseFailAlloc_15454_; 
v_reuseFailAlloc_15454_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_15454_, 0, v___x_15445_);
lean_ctor_set(v_reuseFailAlloc_15454_, 1, v___x_15451_);
v___x_15453_ = v_reuseFailAlloc_15454_;
goto v_reusejp_15452_;
}
v_reusejp_15452_:
{
return v___x_15453_;
}
}
}
}
}
else
{
lean_object* v_a_15459_; lean_object* v_a_15460_; lean_object* v___x_15462_; uint8_t v_isShared_15463_; uint8_t v_isSharedCheck_15467_; 
lean_dec_ref(v_a_15418_);
v_a_15459_ = lean_ctor_get(v___x_15421_, 0);
v_a_15460_ = lean_ctor_get(v___x_15421_, 1);
v_isSharedCheck_15467_ = !lean_is_exclusive(v___x_15421_);
if (v_isSharedCheck_15467_ == 0)
{
v___x_15462_ = v___x_15421_;
v_isShared_15463_ = v_isSharedCheck_15467_;
goto v_resetjp_15461_;
}
else
{
lean_inc(v_a_15460_);
lean_inc(v_a_15459_);
lean_dec(v___x_15421_);
v___x_15462_ = lean_box(0);
v_isShared_15463_ = v_isSharedCheck_15467_;
goto v_resetjp_15461_;
}
v_resetjp_15461_:
{
lean_object* v___x_15465_; 
if (v_isShared_15463_ == 0)
{
v___x_15465_ = v___x_15462_;
goto v_reusejp_15464_;
}
else
{
lean_object* v_reuseFailAlloc_15466_; 
v_reuseFailAlloc_15466_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_15466_, 0, v_a_15459_);
lean_ctor_set(v_reuseFailAlloc_15466_, 1, v_a_15460_);
v___x_15465_ = v_reuseFailAlloc_15466_;
goto v_reusejp_15464_;
}
v_reusejp_15464_:
{
return v___x_15465_;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkSpawnArgs___redArg___boxed(lean_object* v_moreArgs_15468_, lean_object* v_leanFile_15469_, lean_object* v_setup_15470_, lean_object* v_cfgArgs_15471_, lean_object* v_a_15472_, lean_object* v_a_15473_, lean_object* v_a_15474_){
_start:
{
lean_object* v_res_15475_; 
v_res_15475_ = l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkSpawnArgs___redArg(v_moreArgs_15468_, v_leanFile_15469_, v_setup_15470_, v_cfgArgs_15471_, v_a_15472_, v_a_15473_);
lean_dec_ref(v_moreArgs_15468_);
return v_res_15475_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkSpawnArgs(lean_object* v_moreArgs_15476_, lean_object* v_leanFile_15477_, lean_object* v_setup_15478_, lean_object* v_cfgArgs_15479_, lean_object* v_a_15480_, lean_object* v_a_15481_, lean_object* v_a_15482_, lean_object* v_a_15483_, lean_object* v_a_15484_, lean_object* v_a_15485_){
_start:
{
lean_object* v___x_15487_; 
v___x_15487_ = l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkSpawnArgs___redArg(v_moreArgs_15476_, v_leanFile_15477_, v_setup_15478_, v_cfgArgs_15479_, v_a_15484_, v_a_15485_);
return v___x_15487_;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkSpawnArgs___boxed(lean_object* v_moreArgs_15488_, lean_object* v_leanFile_15489_, lean_object* v_setup_15490_, lean_object* v_cfgArgs_15491_, lean_object* v_a_15492_, lean_object* v_a_15493_, lean_object* v_a_15494_, lean_object* v_a_15495_, lean_object* v_a_15496_, lean_object* v_a_15497_, lean_object* v_a_15498_){
_start:
{
lean_object* v_res_15499_; 
v_res_15499_ = l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkSpawnArgs(v_moreArgs_15488_, v_leanFile_15489_, v_setup_15490_, v_cfgArgs_15491_, v_a_15492_, v_a_15493_, v_a_15494_, v_a_15495_, v_a_15496_, v_a_15497_);
lean_dec(v_a_15495_);
lean_dec(v_a_15494_);
lean_dec(v_a_15493_);
lean_dec_ref(v_a_15492_);
lean_dec_ref(v_moreArgs_15488_);
return v_res_15499_;
}
}
LEAN_EXPORT lean_object* l_Lake_prepareLeanCommand___lam__0(lean_object* v_config_15500_, lean_object* v_config_15501_, lean_object* v_moreArgs_15502_, lean_object* v_val_15503_, uint8_t v___x_15504_, lean_object* v_setup_15505_, lean_object* v___y_15506_, lean_object* v___y_15507_, lean_object* v___y_15508_, lean_object* v___y_15509_, lean_object* v___y_15510_, lean_object* v___y_15511_){
_start:
{
lean_object* v_toLeanConfig_15513_; lean_object* v_toLeanConfig_15514_; uint8_t v_buildType_15515_; lean_object* v_moreLeanArgs_15516_; uint8_t v_buildType_15517_; lean_object* v_moreLeanArgs_15518_; uint8_t v___y_15520_; uint8_t v___x_15525_; 
v_toLeanConfig_15513_ = lean_ctor_get(v_config_15500_, 1);
v_toLeanConfig_15514_ = lean_ctor_get(v_config_15501_, 0);
v_buildType_15515_ = lean_ctor_get_uint8(v_toLeanConfig_15513_, sizeof(void*)*13);
v_moreLeanArgs_15516_ = lean_ctor_get(v_toLeanConfig_15513_, 1);
v_buildType_15517_ = lean_ctor_get_uint8(v_toLeanConfig_15514_, sizeof(void*)*13);
v_moreLeanArgs_15518_ = lean_ctor_get(v_toLeanConfig_15514_, 1);
v___x_15525_ = l_Lake_instOrdBuildType_ord(v_buildType_15515_, v_buildType_15517_);
if (v___x_15525_ == 2)
{
if (v___x_15504_ == 0)
{
v___y_15520_ = v_buildType_15517_;
goto v___jp_15519_;
}
else
{
v___y_15520_ = v_buildType_15515_;
goto v___jp_15519_;
}
}
else
{
v___y_15520_ = v_buildType_15515_;
goto v___jp_15519_;
}
v___jp_15519_:
{
lean_object* v___x_15521_; lean_object* v___x_15522_; lean_object* v___x_15523_; lean_object* v___x_15524_; 
v___x_15521_ = l_Lake_BuildType_leanArgs(v___y_15520_);
v___x_15522_ = l_Array_append___redArg(v___x_15521_, v_moreLeanArgs_15516_);
v___x_15523_ = l_Array_append___redArg(v___x_15522_, v_moreLeanArgs_15518_);
v___x_15524_ = l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkSpawnArgs___redArg(v_moreArgs_15502_, v_val_15503_, v_setup_15505_, v___x_15523_, v___y_15510_, v___y_15511_);
return v___x_15524_;
}
}
}
LEAN_EXPORT lean_object* l_Lake_prepareLeanCommand___lam__0___boxed(lean_object* v_config_15526_, lean_object* v_config_15527_, lean_object* v_moreArgs_15528_, lean_object* v_val_15529_, lean_object* v___x_15530_, lean_object* v_setup_15531_, lean_object* v___y_15532_, lean_object* v___y_15533_, lean_object* v___y_15534_, lean_object* v___y_15535_, lean_object* v___y_15536_, lean_object* v___y_15537_, lean_object* v___y_15538_){
_start:
{
uint8_t v___x_112582__boxed_15539_; lean_object* v_res_15540_; 
v___x_112582__boxed_15539_ = lean_unbox(v___x_15530_);
v_res_15540_ = l_Lake_prepareLeanCommand___lam__0(v_config_15526_, v_config_15527_, v_moreArgs_15528_, v_val_15529_, v___x_112582__boxed_15539_, v_setup_15531_, v___y_15532_, v___y_15533_, v___y_15534_, v___y_15535_, v___y_15536_, v___y_15537_);
lean_dec(v___y_15535_);
lean_dec(v___y_15534_);
lean_dec(v___y_15533_);
lean_dec_ref(v___y_15532_);
lean_dec_ref(v_moreArgs_15528_);
lean_dec(v_config_15527_);
lean_dec_ref(v_config_15526_);
return v_res_15540_;
}
}
LEAN_EXPORT lean_object* l_Lake_prepareLeanCommand___lam__1(lean_object* v_moreArgs_15541_, lean_object* v_val_15542_, lean_object* v_setup_15543_, lean_object* v___y_15544_, lean_object* v___y_15545_, lean_object* v___y_15546_, lean_object* v___y_15547_, lean_object* v___y_15548_, lean_object* v___y_15549_){
_start:
{
lean_object* v_toContext_15551_; lean_object* v_root_15552_; lean_object* v_config_15553_; lean_object* v_toLeanConfig_15554_; lean_object* v_moreLeanArgs_15555_; lean_object* v___x_15556_; 
v_toContext_15551_ = lean_ctor_get(v___y_15548_, 1);
v_root_15552_ = lean_ctor_get(v_toContext_15551_, 0);
v_config_15553_ = lean_ctor_get(v_root_15552_, 6);
v_toLeanConfig_15554_ = lean_ctor_get(v_config_15553_, 1);
v_moreLeanArgs_15555_ = lean_ctor_get(v_toLeanConfig_15554_, 1);
lean_inc_ref(v_moreLeanArgs_15555_);
v___x_15556_ = l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkSpawnArgs___redArg(v_moreArgs_15541_, v_val_15542_, v_setup_15543_, v_moreLeanArgs_15555_, v___y_15548_, v___y_15549_);
return v___x_15556_;
}
}
LEAN_EXPORT lean_object* l_Lake_prepareLeanCommand___lam__1___boxed(lean_object* v_moreArgs_15557_, lean_object* v_val_15558_, lean_object* v_setup_15559_, lean_object* v___y_15560_, lean_object* v___y_15561_, lean_object* v___y_15562_, lean_object* v___y_15563_, lean_object* v___y_15564_, lean_object* v___y_15565_, lean_object* v___y_15566_){
_start:
{
lean_object* v_res_15567_; 
v_res_15567_ = l_Lake_prepareLeanCommand___lam__1(v_moreArgs_15557_, v_val_15558_, v_setup_15559_, v___y_15560_, v___y_15561_, v___y_15562_, v___y_15563_, v___y_15564_, v___y_15565_);
lean_dec(v___y_15563_);
lean_dec(v___y_15562_);
lean_dec(v___y_15561_);
lean_dec_ref(v___y_15560_);
lean_dec_ref(v_moreArgs_15557_);
return v_res_15567_;
}
}
LEAN_EXPORT lean_object* l_Lake_prepareLeanCommand___lam__2(lean_object* v_leanFile_15569_, lean_object* v_moreArgs_15570_, lean_object* v___x_15571_, lean_object* v___y_15572_, lean_object* v___y_15573_, lean_object* v___y_15574_, lean_object* v___y_15575_, lean_object* v___y_15576_, lean_object* v___y_15577_){
_start:
{
lean_object* v___x_15579_; lean_object* v___x_15580_; lean_object* v___x_15581_; uint8_t v___x_15582_; 
lean_inc_ref(v_leanFile_15569_);
v___x_15579_ = l_Lake_resolvePath(v_leanFile_15569_);
v___x_15580_ = lean_string_utf8_byte_size(v___x_15579_);
v___x_15581_ = lean_unsigned_to_nat(0u);
v___x_15582_ = lean_nat_dec_eq(v___x_15580_, v___x_15581_);
if (v___x_15582_ == 0)
{
lean_object* v_toContext_15583_; lean_object* v___x_15584_; 
v_toContext_15583_ = lean_ctor_get(v___y_15576_, 1);
lean_inc_ref(v___x_15579_);
v___x_15584_ = l_Lake_Workspace_findModuleBySrc_x3f(v___x_15579_, v_toContext_15583_);
if (lean_obj_tag(v___x_15584_) == 1)
{
lean_object* v_val_15585_; lean_object* v_lib_15586_; lean_object* v_pkg_15587_; lean_object* v_name_15588_; lean_object* v_config_15589_; lean_object* v_keyName_15590_; lean_object* v_config_15591_; lean_object* v___x_15592_; uint8_t v___x_15593_; lean_object* v___x_15594_; lean_object* v___x_15595_; uint8_t v___x_15596_; lean_object* v___x_15597_; lean_object* v___x_15598_; lean_object* v___x_15599_; lean_object* v___x_15600_; lean_object* v___x_15601_; lean_object* v___x_15602_; lean_object* v___x_15603_; 
lean_dec_ref(v_leanFile_15569_);
v_val_15585_ = lean_ctor_get(v___x_15584_, 0);
lean_inc(v_val_15585_);
lean_dec_ref(v___x_15584_);
v_lib_15586_ = lean_ctor_get(v_val_15585_, 0);
v_pkg_15587_ = lean_ctor_get(v_lib_15586_, 0);
v_name_15588_ = lean_ctor_get(v_val_15585_, 1);
v_config_15589_ = lean_ctor_get(v_lib_15586_, 2);
lean_inc(v_config_15589_);
v_keyName_15590_ = lean_ctor_get(v_pkg_15587_, 2);
v_config_15591_ = lean_ctor_get(v_pkg_15587_, 6);
lean_inc_ref(v_config_15591_);
v___x_15592_ = ((lean_object*)(l_Lake_setupServerModule___lam__0___closed__0));
v___x_15593_ = 1;
lean_inc(v_name_15588_);
v___x_15594_ = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(v_name_15588_, v___x_15593_);
v___x_15595_ = lean_string_append(v___x_15592_, v___x_15594_);
lean_dec_ref(v___x_15594_);
v___x_15596_ = 0;
v___x_15597_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_15597_, 0, v___x_15595_);
lean_ctor_set_uint8(v___x_15597_, sizeof(void*)*1, v___x_15596_);
v___x_15598_ = lean_array_push(v___y_15577_, v___x_15597_);
v___x_15599_ = l_Lake_Module_setupFacet;
lean_inc(v_name_15588_);
lean_inc(v_keyName_15590_);
v___x_15600_ = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(v___x_15600_, 0, v_keyName_15590_);
lean_ctor_set(v___x_15600_, 1, v_name_15588_);
v___x_15601_ = l_Lake_Module_keyword;
v___x_15602_ = lean_alloc_ctor(1, 4, 0);
lean_ctor_set(v___x_15602_, 0, v___x_15600_);
lean_ctor_set(v___x_15602_, 1, v___x_15601_);
lean_ctor_set(v___x_15602_, 2, v_val_15585_);
lean_ctor_set(v___x_15602_, 3, v___x_15599_);
lean_inc_ref(v___y_15572_);
lean_inc_ref(v___y_15576_);
lean_inc(v___y_15575_);
lean_inc(v___y_15574_);
lean_inc(v___y_15573_);
v___x_15603_ = lean_apply_7(v___y_15572_, v___x_15602_, v___y_15573_, v___y_15574_, v___y_15575_, v___y_15576_, v___x_15598_, lean_box(0));
if (lean_obj_tag(v___x_15603_) == 0)
{
lean_object* v_a_15604_; lean_object* v_a_15605_; lean_object* v___x_15607_; uint8_t v_isShared_15608_; uint8_t v_isSharedCheck_15616_; 
v_a_15604_ = lean_ctor_get(v___x_15603_, 0);
v_a_15605_ = lean_ctor_get(v___x_15603_, 1);
v_isSharedCheck_15616_ = !lean_is_exclusive(v___x_15603_);
if (v_isSharedCheck_15616_ == 0)
{
v___x_15607_ = v___x_15603_;
v_isShared_15608_ = v_isSharedCheck_15616_;
goto v_resetjp_15606_;
}
else
{
lean_inc(v_a_15605_);
lean_inc(v_a_15604_);
lean_dec(v___x_15603_);
v___x_15607_ = lean_box(0);
v_isShared_15608_ = v_isSharedCheck_15616_;
goto v_resetjp_15606_;
}
v_resetjp_15606_:
{
lean_object* v___x_15609_; lean_object* v___f_15610_; lean_object* v___x_15611_; lean_object* v___x_15612_; lean_object* v___x_15614_; 
v___x_15609_ = lean_box(v___x_15582_);
v___f_15610_ = lean_alloc_closure((void*)(l_Lake_prepareLeanCommand___lam__0___boxed), 13, 5);
lean_closure_set(v___f_15610_, 0, v_config_15591_);
lean_closure_set(v___f_15610_, 1, v_config_15589_);
lean_closure_set(v___f_15610_, 2, v_moreArgs_15570_);
lean_closure_set(v___f_15610_, 3, v___x_15579_);
lean_closure_set(v___f_15610_, 4, v___x_15609_);
v___x_15611_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_15612_ = l_Lake_Job_mapM___redArg(v___x_15571_, v_a_15604_, v___f_15610_, v___x_15581_, v___x_15593_, v___y_15572_, v___y_15573_, v___y_15574_, v___y_15575_, v___y_15576_, v___x_15611_);
if (v_isShared_15608_ == 0)
{
lean_ctor_set(v___x_15607_, 0, v___x_15612_);
v___x_15614_ = v___x_15607_;
goto v_reusejp_15613_;
}
else
{
lean_object* v_reuseFailAlloc_15615_; 
v_reuseFailAlloc_15615_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_15615_, 0, v___x_15612_);
lean_ctor_set(v_reuseFailAlloc_15615_, 1, v_a_15605_);
v___x_15614_ = v_reuseFailAlloc_15615_;
goto v_reusejp_15613_;
}
v_reusejp_15613_:
{
return v___x_15614_;
}
}
}
else
{
lean_object* v_a_15617_; lean_object* v_a_15618_; lean_object* v___x_15620_; uint8_t v_isShared_15621_; uint8_t v_isSharedCheck_15625_; 
lean_dec_ref(v_config_15591_);
lean_dec(v_config_15589_);
lean_dec_ref(v___x_15579_);
lean_dec_ref(v___y_15576_);
lean_dec(v___y_15575_);
lean_dec(v___y_15574_);
lean_dec(v___y_15573_);
lean_dec_ref(v___y_15572_);
lean_dec(v___x_15571_);
lean_dec_ref(v_moreArgs_15570_);
v_a_15617_ = lean_ctor_get(v___x_15603_, 0);
v_a_15618_ = lean_ctor_get(v___x_15603_, 1);
v_isSharedCheck_15625_ = !lean_is_exclusive(v___x_15603_);
if (v_isSharedCheck_15625_ == 0)
{
v___x_15620_ = v___x_15603_;
v_isShared_15621_ = v_isSharedCheck_15625_;
goto v_resetjp_15619_;
}
else
{
lean_inc(v_a_15618_);
lean_inc(v_a_15617_);
lean_dec(v___x_15603_);
v___x_15620_ = lean_box(0);
v_isShared_15621_ = v_isSharedCheck_15625_;
goto v_resetjp_15619_;
}
v_resetjp_15619_:
{
lean_object* v___x_15623_; 
if (v_isShared_15621_ == 0)
{
v___x_15623_ = v___x_15620_;
goto v_reusejp_15622_;
}
else
{
lean_object* v_reuseFailAlloc_15624_; 
v_reuseFailAlloc_15624_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_15624_, 0, v_a_15617_);
lean_ctor_set(v_reuseFailAlloc_15624_, 1, v_a_15618_);
v___x_15623_ = v_reuseFailAlloc_15624_;
goto v_reusejp_15622_;
}
v_reusejp_15622_:
{
return v___x_15623_;
}
}
}
}
else
{
lean_object* v___x_15626_; 
lean_dec(v___x_15584_);
v___x_15626_ = l_IO_FS_readFile(v___x_15579_);
if (lean_obj_tag(v___x_15626_) == 0)
{
lean_object* v_a_15627_; lean_object* v___x_15628_; 
v_a_15627_ = lean_ctor_get(v___x_15626_, 0);
lean_inc(v_a_15627_);
lean_dec_ref(v___x_15626_);
lean_inc_ref(v_leanFile_15569_);
v___x_15628_ = l_Lean_parseImports_x27(v_a_15627_, v_leanFile_15569_);
if (lean_obj_tag(v___x_15628_) == 0)
{
lean_object* v_root_15629_; lean_object* v_config_15630_; lean_object* v_toLeanConfig_15631_; lean_object* v_a_15632_; lean_object* v_leanOptions_15633_; lean_object* v___x_15634_; lean_object* v___x_15635_; 
v_root_15629_ = lean_ctor_get(v_toContext_15583_, 0);
v_config_15630_ = lean_ctor_get(v_root_15629_, 6);
v_toLeanConfig_15631_ = lean_ctor_get(v_config_15630_, 1);
v_a_15632_ = lean_ctor_get(v___x_15628_, 0);
lean_inc(v_a_15632_);
lean_dec_ref(v___x_15628_);
v_leanOptions_15633_ = lean_ctor_get(v_toLeanConfig_15631_, 0);
v___x_15634_ = l_Lean_LeanOptions_ofArray(v_leanOptions_15633_);
lean_inc_ref(v___y_15576_);
lean_inc(v___y_15575_);
lean_inc(v___y_15574_);
lean_inc(v___y_15573_);
lean_inc_ref(v___y_15572_);
v___x_15635_ = l___private_Lake_Build_Module_0__Lake_setupExternalModule(v_leanFile_15569_, v_a_15632_, v___x_15634_, v___y_15572_, v___y_15573_, v___y_15574_, v___y_15575_, v___y_15576_, v___y_15577_);
if (lean_obj_tag(v___x_15635_) == 0)
{
lean_object* v_a_15636_; lean_object* v_a_15637_; lean_object* v___x_15639_; uint8_t v_isShared_15640_; uint8_t v_isSharedCheck_15648_; 
v_a_15636_ = lean_ctor_get(v___x_15635_, 0);
v_a_15637_ = lean_ctor_get(v___x_15635_, 1);
v_isSharedCheck_15648_ = !lean_is_exclusive(v___x_15635_);
if (v_isSharedCheck_15648_ == 0)
{
v___x_15639_ = v___x_15635_;
v_isShared_15640_ = v_isSharedCheck_15648_;
goto v_resetjp_15638_;
}
else
{
lean_inc(v_a_15637_);
lean_inc(v_a_15636_);
lean_dec(v___x_15635_);
v___x_15639_ = lean_box(0);
v_isShared_15640_ = v_isSharedCheck_15648_;
goto v_resetjp_15638_;
}
v_resetjp_15638_:
{
lean_object* v___f_15641_; uint8_t v___x_15642_; lean_object* v___x_15643_; lean_object* v___x_15644_; lean_object* v___x_15646_; 
v___f_15641_ = lean_alloc_closure((void*)(l_Lake_prepareLeanCommand___lam__1___boxed), 10, 2);
lean_closure_set(v___f_15641_, 0, v_moreArgs_15570_);
lean_closure_set(v___f_15641_, 1, v___x_15579_);
v___x_15642_ = 1;
v___x_15643_ = lean_obj_once(&l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2, &l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2_once, _init_l___private_Lake_Build_Module_0__Lake_Module_recParseImports___closed__2);
v___x_15644_ = l_Lake_Job_mapM___redArg(v___x_15571_, v_a_15636_, v___f_15641_, v___x_15581_, v___x_15642_, v___y_15572_, v___y_15573_, v___y_15574_, v___y_15575_, v___y_15576_, v___x_15643_);
if (v_isShared_15640_ == 0)
{
lean_ctor_set(v___x_15639_, 0, v___x_15644_);
v___x_15646_ = v___x_15639_;
goto v_reusejp_15645_;
}
else
{
lean_object* v_reuseFailAlloc_15647_; 
v_reuseFailAlloc_15647_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_15647_, 0, v___x_15644_);
lean_ctor_set(v_reuseFailAlloc_15647_, 1, v_a_15637_);
v___x_15646_ = v_reuseFailAlloc_15647_;
goto v_reusejp_15645_;
}
v_reusejp_15645_:
{
return v___x_15646_;
}
}
}
else
{
lean_object* v_a_15649_; lean_object* v_a_15650_; lean_object* v___x_15652_; uint8_t v_isShared_15653_; uint8_t v_isSharedCheck_15657_; 
lean_dec_ref(v___x_15579_);
lean_dec_ref(v___y_15576_);
lean_dec(v___y_15575_);
lean_dec(v___y_15574_);
lean_dec(v___y_15573_);
lean_dec_ref(v___y_15572_);
lean_dec(v___x_15571_);
lean_dec_ref(v_moreArgs_15570_);
v_a_15649_ = lean_ctor_get(v___x_15635_, 0);
v_a_15650_ = lean_ctor_get(v___x_15635_, 1);
v_isSharedCheck_15657_ = !lean_is_exclusive(v___x_15635_);
if (v_isSharedCheck_15657_ == 0)
{
v___x_15652_ = v___x_15635_;
v_isShared_15653_ = v_isSharedCheck_15657_;
goto v_resetjp_15651_;
}
else
{
lean_inc(v_a_15650_);
lean_inc(v_a_15649_);
lean_dec(v___x_15635_);
v___x_15652_ = lean_box(0);
v_isShared_15653_ = v_isSharedCheck_15657_;
goto v_resetjp_15651_;
}
v_resetjp_15651_:
{
lean_object* v___x_15655_; 
if (v_isShared_15653_ == 0)
{
v___x_15655_ = v___x_15652_;
goto v_reusejp_15654_;
}
else
{
lean_object* v_reuseFailAlloc_15656_; 
v_reuseFailAlloc_15656_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v_reuseFailAlloc_15656_, 0, v_a_15649_);
lean_ctor_set(v_reuseFailAlloc_15656_, 1, v_a_15650_);
v___x_15655_ = v_reuseFailAlloc_15656_;
goto v_reusejp_15654_;
}
v_reusejp_15654_:
{
return v___x_15655_;
}
}
}
}
else
{
lean_object* v_a_15658_; lean_object* v___x_15659_; uint8_t v___x_15660_; lean_object* v___x_15661_; lean_object* v___x_15662_; lean_object* v___x_15663_; lean_object* v___x_15664_; 
lean_dec_ref(v___x_15579_);
lean_dec_ref(v___y_15576_);
lean_dec(v___y_15575_);
lean_dec(v___y_15574_);
lean_dec(v___y_15573_);
lean_dec_ref(v___y_15572_);
lean_dec(v___x_15571_);
lean_dec_ref(v_moreArgs_15570_);
lean_dec_ref(v_leanFile_15569_);
v_a_15658_ = lean_ctor_get(v___x_15628_, 0);
lean_inc(v_a_15658_);
lean_dec_ref(v___x_15628_);
v___x_15659_ = lean_io_error_to_string(v_a_15658_);
v___x_15660_ = 3;
v___x_15661_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_15661_, 0, v___x_15659_);
lean_ctor_set_uint8(v___x_15661_, sizeof(void*)*1, v___x_15660_);
v___x_15662_ = lean_array_get_size(v___y_15577_);
v___x_15663_ = lean_array_push(v___y_15577_, v___x_15661_);
v___x_15664_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_15664_, 0, v___x_15662_);
lean_ctor_set(v___x_15664_, 1, v___x_15663_);
return v___x_15664_;
}
}
else
{
lean_object* v_a_15665_; lean_object* v___x_15666_; uint8_t v___x_15667_; lean_object* v___x_15668_; lean_object* v___x_15669_; lean_object* v___x_15670_; lean_object* v___x_15671_; 
lean_dec_ref(v___x_15579_);
lean_dec_ref(v___y_15576_);
lean_dec(v___y_15575_);
lean_dec(v___y_15574_);
lean_dec(v___y_15573_);
lean_dec_ref(v___y_15572_);
lean_dec(v___x_15571_);
lean_dec_ref(v_moreArgs_15570_);
lean_dec_ref(v_leanFile_15569_);
v_a_15665_ = lean_ctor_get(v___x_15626_, 0);
lean_inc(v_a_15665_);
lean_dec_ref(v___x_15626_);
v___x_15666_ = lean_io_error_to_string(v_a_15665_);
v___x_15667_ = 3;
v___x_15668_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_15668_, 0, v___x_15666_);
lean_ctor_set_uint8(v___x_15668_, sizeof(void*)*1, v___x_15667_);
v___x_15669_ = lean_array_get_size(v___y_15577_);
v___x_15670_ = lean_array_push(v___y_15577_, v___x_15668_);
v___x_15671_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_15671_, 0, v___x_15669_);
lean_ctor_set(v___x_15671_, 1, v___x_15670_);
return v___x_15671_;
}
}
}
else
{
lean_object* v___x_15672_; lean_object* v___x_15673_; uint8_t v___x_15674_; lean_object* v___x_15675_; lean_object* v___x_15676_; lean_object* v___x_15677_; lean_object* v___x_15678_; 
lean_dec_ref(v___x_15579_);
lean_dec_ref(v___y_15576_);
lean_dec(v___y_15575_);
lean_dec(v___y_15574_);
lean_dec(v___y_15573_);
lean_dec_ref(v___y_15572_);
lean_dec(v___x_15571_);
lean_dec_ref(v_moreArgs_15570_);
v___x_15672_ = ((lean_object*)(l_Lake_prepareLeanCommand___lam__2___closed__0));
v___x_15673_ = lean_string_append(v___x_15672_, v_leanFile_15569_);
lean_dec_ref(v_leanFile_15569_);
v___x_15674_ = 3;
v___x_15675_ = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(v___x_15675_, 0, v___x_15673_);
lean_ctor_set_uint8(v___x_15675_, sizeof(void*)*1, v___x_15674_);
v___x_15676_ = lean_array_get_size(v___y_15577_);
v___x_15677_ = lean_array_push(v___y_15577_, v___x_15675_);
v___x_15678_ = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(v___x_15678_, 0, v___x_15676_);
lean_ctor_set(v___x_15678_, 1, v___x_15677_);
return v___x_15678_;
}
}
}
LEAN_EXPORT lean_object* l_Lake_prepareLeanCommand___lam__2___boxed(lean_object* v_leanFile_15679_, lean_object* v_moreArgs_15680_, lean_object* v___x_15681_, lean_object* v___y_15682_, lean_object* v___y_15683_, lean_object* v___y_15684_, lean_object* v___y_15685_, lean_object* v___y_15686_, lean_object* v___y_15687_, lean_object* v___y_15688_){
_start:
{
lean_object* v_res_15689_; 
v_res_15689_ = l_Lake_prepareLeanCommand___lam__2(v_leanFile_15679_, v_moreArgs_15680_, v___x_15681_, v___y_15682_, v___y_15683_, v___y_15684_, v___y_15685_, v___y_15686_, v___y_15687_);
return v_res_15689_;
}
}
LEAN_EXPORT lean_object* l_Lake_prepareLeanCommand(lean_object* v_leanFile_15691_, lean_object* v_moreArgs_15692_, lean_object* v_a_15693_, lean_object* v_a_15694_, lean_object* v_a_15695_, lean_object* v_a_15696_, lean_object* v_a_15697_, lean_object* v_a_15698_){
_start:
{
lean_object* v___x_15700_; lean_object* v___f_15701_; lean_object* v___x_15702_; 
v___x_15700_ = lean_box(0);
lean_inc_ref(v_leanFile_15691_);
v___f_15701_ = lean_alloc_closure((void*)(l_Lake_prepareLeanCommand___lam__2___boxed), 10, 3);
lean_closure_set(v___f_15701_, 0, v_leanFile_15691_);
lean_closure_set(v___f_15701_, 1, v_moreArgs_15692_);
lean_closure_set(v___f_15701_, 2, v___x_15700_);
lean_inc_ref(v_a_15697_);
v___x_15702_ = l_Lake_ensureJob___redArg(v___x_15700_, v___f_15701_, v_a_15693_, v_a_15694_, v_a_15695_, v_a_15696_, v_a_15697_, v_a_15698_);
if (lean_obj_tag(v___x_15702_) == 0)
{
lean_object* v_a_15703_; lean_object* v_a_15704_; lean_object* v___x_15706_; uint8_t v_isShared_15707_; uint8_t v_isSharedCheck_15730_; 
v_a_15703_ = lean_ctor_get(v___x_15702_, 0);
v_a_15704_ = lean_ctor_get(v___x_15702_, 1);
v_isSharedCheck_15730_ = !lean_is_exclusive(v___x_15702_);
if (v_isSharedCheck_15730_ == 0)
{
v___x_15706_ = v___x_15702_;
v_isShared_15707_ = v_isSharedCheck_15730_;
goto v_resetjp_15705_;
}
else
{
lean_inc(v_a_15704_);
lean_inc(v_a_15703_);
lean_dec(v___x_15702_);
v___x_15706_ = lean_box(0);
v_isShared_15707_ = v_isSharedCheck_15730_;
goto v_resetjp_15705_;
}
v_resetjp_15705_:
{
lean_object* v_task_15708_; lean_object* v_kind_15709_; lean_object* v___x_15711_; uint8_t v_isShared_15712_; uint8_t v_isSharedCheck_15728_; 
v_task_15708_ = lean_ctor_get(v_a_15703_, 0);
v_kind_15709_ = lean_ctor_get(v_a_15703_, 1);
v_isSharedCheck_15728_ = !lean_is_exclusive(v_a_15703_);
if (v_isSharedCheck_15728_ == 0)
{
lean_object* v_unused_15729_; 
v_unused_15729_ = lean_ctor_get(v_a_15703_, 2);
lean_dec(v_unused_15729_);
v___x_15711_ = v_a_15703_;
v_isShared_15712_ = v_isSharedCheck_15728_;
goto v_resetjp_15710_;
}
else
{
lean_inc(v_kind_15709_);
lean_inc(v_task_15708_);
lean_dec(v_a_15703_);
v___x_15711_ = lean_box(0);
v_isShared_15712_ = v_isSharedCheck_15728_;
goto v_resetjp_15710_;
}
v_resetjp_15710_:
{
lean_object* v_registeredJobs_15713_; lean_object* v___x_15714_; lean_object* v___x_15715_; lean_object* v___x_15716_; uint8_t v___x_15717_; lean_object* v_job_15719_; 
v_registeredJobs_15713_ = lean_ctor_get(v_a_15697_, 3);
lean_inc(v_registeredJobs_15713_);
lean_dec_ref(v_a_15697_);
v___x_15714_ = lean_st_ref_take(v_registeredJobs_15713_);
v___x_15715_ = ((lean_object*)(l_Lake_prepareLeanCommand___closed__0));
v___x_15716_ = lean_string_append(v___x_15715_, v_leanFile_15691_);
lean_dec_ref(v_leanFile_15691_);
v___x_15717_ = 0;
if (v_isShared_15712_ == 0)
{
lean_ctor_set(v___x_15711_, 2, v___x_15716_);
v_job_15719_ = v___x_15711_;
goto v_reusejp_15718_;
}
else
{
lean_object* v_reuseFailAlloc_15727_; 
v_reuseFailAlloc_15727_ = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(v_reuseFailAlloc_15727_, 0, v_task_15708_);
lean_ctor_set(v_reuseFailAlloc_15727_, 1, v_kind_15709_);
lean_ctor_set(v_reuseFailAlloc_15727_, 2, v___x_15716_);
v_job_15719_ = v_reuseFailAlloc_15727_;
goto v_reusejp_15718_;
}
v_reusejp_15718_:
{
lean_object* v___x_15720_; lean_object* v___x_15721_; lean_object* v___x_15722_; lean_object* v___x_15723_; lean_object* v___x_15725_; 
lean_ctor_set_uint8(v_job_15719_, sizeof(void*)*3, v___x_15717_);
lean_inc_ref(v_job_15719_);
v___x_15720_ = l_Lake_Job_toOpaque___redArg(v_job_15719_);
v___x_15721_ = lean_array_push(v___x_15714_, v___x_15720_);
v___x_15722_ = lean_st_ref_set(v_registeredJobs_15713_, v___x_15721_);
lean_dec(v_registeredJobs_15713_);
v___x_15723_ = l_Lake_Job_renew___redArg(v_job_15719_);
if (v_isShared_15707_ == 0)
{
lean_ctor_set(v___x_15706_, 0, v___x_15723_);
v___x_15725_ = v___x_15706_;
goto v_reusejp_15724_;
}
else
{
lean_object* v_reuseFailAlloc_15726_; 
v_reuseFailAlloc_15726_ = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(v_reuseFailAlloc_15726_, 0, v___x_15723_);
lean_ctor_set(v_reuseFailAlloc_15726_, 1, v_a_15704_);
v___x_15725_ = v_reuseFailAlloc_15726_;
goto v_reusejp_15724_;
}
v_reusejp_15724_:
{
return v___x_15725_;
}
}
}
}
}
else
{
lean_dec_ref(v_a_15697_);
lean_dec_ref(v_leanFile_15691_);
return v___x_15702_;
}
}
}
LEAN_EXPORT lean_object* l_Lake_prepareLeanCommand___boxed(lean_object* v_leanFile_15731_, lean_object* v_moreArgs_15732_, lean_object* v_a_15733_, lean_object* v_a_15734_, lean_object* v_a_15735_, lean_object* v_a_15736_, lean_object* v_a_15737_, lean_object* v_a_15738_, lean_object* v_a_15739_){
_start:
{
lean_object* v_res_15740_; 
v_res_15740_ = l_Lake_prepareLeanCommand(v_leanFile_15731_, v_moreArgs_15732_, v_a_15733_, v_a_15734_, v_a_15735_, v_a_15736_, v_a_15737_, v_a_15738_);
return v_res_15740_;
}
}
lean_object* runtime_initialize_Lake_Config_FacetConfig(uint8_t builtin);
lean_object* runtime_initialize_Lake_Build_Job_Monad(uint8_t builtin);
lean_object* runtime_initialize_Lake_Build_Infos(uint8_t builtin);
lean_object* runtime_initialize_Lean_Elab_ParseImportsFast(uint8_t builtin);
lean_object* runtime_initialize_Lake_Util_Proc(uint8_t builtin);
lean_object* runtime_initialize_Lake_Build_Job_Register(uint8_t builtin);
lean_object* runtime_initialize_Lake_Build_Common(uint8_t builtin);
lean_object* runtime_initialize_Lake_Build_Target(uint8_t builtin);
lean_object* runtime_initialize_Init_Omega(uint8_t builtin);
static bool _G_runtime_initialized = false;
LEAN_EXPORT lean_object* runtime_initialize_Lake_Build_Module(uint8_t builtin) {
lean_object * res;
if (_G_runtime_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_runtime_initialized = true;
res = runtime_initialize_Lake_Config_FacetConfig(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = runtime_initialize_Lake_Build_Job_Monad(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = runtime_initialize_Lake_Build_Infos(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = runtime_initialize_Lean_Elab_ParseImportsFast(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = runtime_initialize_Lake_Util_Proc(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = runtime_initialize_Lake_Build_Job_Register(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = runtime_initialize_Lake_Build_Common(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = runtime_initialize_Lake_Build_Target(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = runtime_initialize_Init_Omega(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lake_Module_inputFacetConfig = _init_l_Lake_Module_inputFacetConfig();
lean_mark_persistent(l_Lake_Module_inputFacetConfig);
l_Lake_Module_leanFacetConfig = _init_l_Lake_Module_leanFacetConfig();
lean_mark_persistent(l_Lake_Module_leanFacetConfig);
l_Lake_Module_headerFacetConfig = _init_l_Lake_Module_headerFacetConfig();
lean_mark_persistent(l_Lake_Module_headerFacetConfig);
l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1 = _init_l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1();
lean_mark_persistent(l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__1);
l_Lake_Module_importsFacetConfig = _init_l_Lake_Module_importsFacetConfig();
lean_mark_persistent(l_Lake_Module_importsFacetConfig);
l_Lake_Module_transImportsFacetConfig = _init_l_Lake_Module_transImportsFacetConfig();
lean_mark_persistent(l_Lake_Module_transImportsFacetConfig);
l_Lake_Module_precompileImportsFacetConfig = _init_l_Lake_Module_precompileImportsFacetConfig();
lean_mark_persistent(l_Lake_Module_precompileImportsFacetConfig);
l___private_Lake_Build_Module_0__Lake_instInhabitedModuleDeps_default = _init_l___private_Lake_Build_Module_0__Lake_instInhabitedModuleDeps_default();
lean_mark_persistent(l___private_Lake_Build_Module_0__Lake_instInhabitedModuleDeps_default);
l___private_Lake_Build_Module_0__Lake_instInhabitedModuleDeps = _init_l___private_Lake_Build_Module_0__Lake_instInhabitedModuleDeps();
lean_mark_persistent(l___private_Lake_Build_Module_0__Lake_instInhabitedModuleDeps);
l_Lake_Module_importInfoFacetConfig = _init_l_Lake_Module_importInfoFacetConfig();
lean_mark_persistent(l_Lake_Module_importInfoFacetConfig);
l_Lake_Module_exportInfoFacetConfig = _init_l_Lake_Module_exportInfoFacetConfig();
lean_mark_persistent(l_Lake_Module_exportInfoFacetConfig);
l_Lake_Module_importArtsFacetConfig = _init_l_Lake_Module_importArtsFacetConfig();
lean_mark_persistent(l_Lake_Module_importArtsFacetConfig);
l_Lake_Module_importAllArtsFacetConfig = _init_l_Lake_Module_importAllArtsFacetConfig();
lean_mark_persistent(l_Lake_Module_importAllArtsFacetConfig);
l_Lake_Module_setupFacetConfig = _init_l_Lake_Module_setupFacetConfig();
lean_mark_persistent(l_Lake_Module_setupFacetConfig);
l_Lake_Module_depsFacetConfig = _init_l_Lake_Module_depsFacetConfig();
lean_mark_persistent(l_Lake_Module_depsFacetConfig);
l_Lake_Module_ltarFacetConfig = _init_l_Lake_Module_ltarFacetConfig();
lean_mark_persistent(l_Lake_Module_ltarFacetConfig);
l_Lake_Module_leanArtsFacetConfig = _init_l_Lake_Module_leanArtsFacetConfig();
lean_mark_persistent(l_Lake_Module_leanArtsFacetConfig);
l_Lake_Module_oleanFacetConfig = _init_l_Lake_Module_oleanFacetConfig();
lean_mark_persistent(l_Lake_Module_oleanFacetConfig);
l_Lake_Module_oleanServerFacetConfig = _init_l_Lake_Module_oleanServerFacetConfig();
lean_mark_persistent(l_Lake_Module_oleanServerFacetConfig);
l_Lake_Module_oleanPrivateFacetConfig = _init_l_Lake_Module_oleanPrivateFacetConfig();
lean_mark_persistent(l_Lake_Module_oleanPrivateFacetConfig);
l_Lake_Module_ileanFacetConfig = _init_l_Lake_Module_ileanFacetConfig();
lean_mark_persistent(l_Lake_Module_ileanFacetConfig);
l_Lake_Module_irFacetConfig = _init_l_Lake_Module_irFacetConfig();
lean_mark_persistent(l_Lake_Module_irFacetConfig);
l_Lake_Module_cFacetConfig = _init_l_Lake_Module_cFacetConfig();
lean_mark_persistent(l_Lake_Module_cFacetConfig);
l_Lake_Module_bcFacetConfig = _init_l_Lake_Module_bcFacetConfig();
lean_mark_persistent(l_Lake_Module_bcFacetConfig);
l_Lake_Module_coExportFacetConfig = _init_l_Lake_Module_coExportFacetConfig();
lean_mark_persistent(l_Lake_Module_coExportFacetConfig);
l_Lake_Module_coNoExportFacetConfig = _init_l_Lake_Module_coNoExportFacetConfig();
lean_mark_persistent(l_Lake_Module_coNoExportFacetConfig);
l_Lake_Module_coFacetConfig = _init_l_Lake_Module_coFacetConfig();
lean_mark_persistent(l_Lake_Module_coFacetConfig);
l_Lake_Module_bcoFacetConfig = _init_l_Lake_Module_bcoFacetConfig();
lean_mark_persistent(l_Lake_Module_bcoFacetConfig);
l_Lake_Module_oExportFacetConfig = _init_l_Lake_Module_oExportFacetConfig();
lean_mark_persistent(l_Lake_Module_oExportFacetConfig);
l_Lake_Module_oNoExportFacetConfig = _init_l_Lake_Module_oNoExportFacetConfig();
lean_mark_persistent(l_Lake_Module_oNoExportFacetConfig);
l_Lake_Module_oFacetConfig = _init_l_Lake_Module_oFacetConfig();
lean_mark_persistent(l_Lake_Module_oFacetConfig);
l_Lake_Module_dynlibFacetConfig = _init_l_Lake_Module_dynlibFacetConfig();
lean_mark_persistent(l_Lake_Module_dynlibFacetConfig);
l_Lake_Module_initFacetConfigs = _init_l_Lake_Module_initFacetConfigs();
lean_mark_persistent(l_Lake_Module_initFacetConfigs);
l_Lake_initModuleFacetConfigs = _init_l_Lake_initModuleFacetConfigs();
lean_mark_persistent(l_Lake_initModuleFacetConfigs);
return lean_io_result_mk_ok(lean_box(0));
}
static bool _G_meta_initialized = false;
LEAN_EXPORT lean_object* meta_initialize_Lake_Build_Module(uint8_t builtin) {
lean_object * res;
if (_G_meta_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_meta_initialized = true;
return lean_io_result_mk_ok(lean_box(0));
}
lean_object* initialize_Lake_Config_FacetConfig(uint8_t builtin);
lean_object* initialize_Lake_Build_Job_Monad(uint8_t builtin);
lean_object* initialize_Lake_Build_Infos(uint8_t builtin);
lean_object* initialize_Lean_Elab_ParseImportsFast(uint8_t builtin);
lean_object* initialize_Lake_Util_Proc(uint8_t builtin);
lean_object* initialize_Lake_Build_Job_Register(uint8_t builtin);
lean_object* initialize_Lake_Build_Common(uint8_t builtin);
lean_object* initialize_Lake_Build_Target(uint8_t builtin);
lean_object* initialize_Init_Omega(uint8_t builtin);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lake_Build_Module(uint8_t builtin) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Lake_Config_FacetConfig(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lake_Build_Job_Monad(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lake_Build_Infos(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Elab_ParseImportsFast(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lake_Util_Proc(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lake_Build_Job_Register(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lake_Build_Common(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lake_Build_Target(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Init_Omega(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = runtime_initialize_Lake_Build_Module(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = meta_initialize_Lake_Build_Module(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
return initialize_Lake_Build_Module(builtin);
}
#ifdef __cplusplus
}
#endif
